google-apis-containeranalysis_v1 0.2.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/containeranalysis_v1/classes.rb +147 -99
- data/lib/google/apis/containeranalysis_v1/gem_version.rb +3 -3
- data/lib/google/apis/containeranalysis_v1/representations.rb +36 -37
- data/lib/google/apis/containeranalysis_v1/service.rb +0 -150
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d481fc6556594c14316bcb501c886fbad60f0399709e4d36376a9f98e85e44a
|
4
|
+
data.tar.gz: 73477d46b61dae36d41adca2d8edf0dbba66731f4688e2cd7a10af3b27a292cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ddf0eeb5737878b78759da2217967b4242682513f66b9a9030da54ca1e7cf68ce575c5602b7932814873843c1e433aea281842ae6d64339b3893bb2e7645ea1
|
7
|
+
data.tar.gz: 8380da0d10a755b88cd1d5e7009761474e841bcfa9ccaa529bbdb471007910cebbde0f0d84f15938292fd8c6c47188e9e82688dd35ae151c7d4201555e31f45b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-containeranalysis_v1
|
2
2
|
|
3
|
+
### v0.6.0 (2022-01-20)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220112
|
6
|
+
|
7
|
+
### v0.5.0 (2022-01-13)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220107
|
10
|
+
* Regenerated using generator version 0.4.1
|
11
|
+
|
12
|
+
### v0.4.0 (2021-12-16)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.3.0 (2021-12-09)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211203
|
19
|
+
|
3
20
|
### v0.2.0 (2021-11-11)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211105
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/containeranalysis_v1"
|
|
51
51
|
client = Google::Apis::ContaineranalysisV1::ContainerAnalysisService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -491,9 +491,12 @@ module Google
|
|
491
491
|
end
|
492
492
|
end
|
493
493
|
|
494
|
-
# Common Vulnerability Scoring System
|
495
|
-
#
|
496
|
-
|
494
|
+
# Common Vulnerability Scoring System. For details, see https://www.first.org/
|
495
|
+
# cvss/specification-document This is a message we will try to use for storing
|
496
|
+
# multiple versions of CVSS. The intention is that as new versions of CVSS
|
497
|
+
# scores get added, we will be able to modify this message rather than adding
|
498
|
+
# new protos for each new version of the score.
|
499
|
+
class Cvss
|
497
500
|
include Google::Apis::Core::Hashable
|
498
501
|
|
499
502
|
#
|
@@ -507,6 +510,11 @@ module Google
|
|
507
510
|
# @return [String]
|
508
511
|
attr_accessor :attack_vector
|
509
512
|
|
513
|
+
#
|
514
|
+
# Corresponds to the JSON property `authentication`
|
515
|
+
# @return [String]
|
516
|
+
attr_accessor :authentication
|
517
|
+
|
510
518
|
#
|
511
519
|
# Corresponds to the JSON property `availabilityImpact`
|
512
520
|
# @return [String]
|
@@ -560,6 +568,7 @@ module Google
|
|
560
568
|
def update!(**args)
|
561
569
|
@attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
|
562
570
|
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
571
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
563
572
|
@availability_impact = args[:availability_impact] if args.key?(:availability_impact)
|
564
573
|
@base_score = args[:base_score] if args.key?(:base_score)
|
565
574
|
@confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
|
@@ -572,16 +581,84 @@ module Google
|
|
572
581
|
end
|
573
582
|
end
|
574
583
|
|
575
|
-
#
|
576
|
-
|
584
|
+
# Common Vulnerability Scoring System version 3. For details, see https://www.
|
585
|
+
# first.org/cvss/specification-document
|
586
|
+
class CvsSv3
|
577
587
|
include Google::Apis::Core::Hashable
|
578
588
|
|
589
|
+
#
|
590
|
+
# Corresponds to the JSON property `attackComplexity`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :attack_complexity
|
593
|
+
|
594
|
+
# Base Metrics Represents the intrinsic characteristics of a vulnerability that
|
595
|
+
# are constant over time and across user environments.
|
596
|
+
# Corresponds to the JSON property `attackVector`
|
597
|
+
# @return [String]
|
598
|
+
attr_accessor :attack_vector
|
599
|
+
|
600
|
+
#
|
601
|
+
# Corresponds to the JSON property `availabilityImpact`
|
602
|
+
# @return [String]
|
603
|
+
attr_accessor :availability_impact
|
604
|
+
|
605
|
+
# The base score is a function of the base metric scores.
|
606
|
+
# Corresponds to the JSON property `baseScore`
|
607
|
+
# @return [Float]
|
608
|
+
attr_accessor :base_score
|
609
|
+
|
610
|
+
#
|
611
|
+
# Corresponds to the JSON property `confidentialityImpact`
|
612
|
+
# @return [String]
|
613
|
+
attr_accessor :confidentiality_impact
|
614
|
+
|
615
|
+
#
|
616
|
+
# Corresponds to the JSON property `exploitabilityScore`
|
617
|
+
# @return [Float]
|
618
|
+
attr_accessor :exploitability_score
|
619
|
+
|
620
|
+
#
|
621
|
+
# Corresponds to the JSON property `impactScore`
|
622
|
+
# @return [Float]
|
623
|
+
attr_accessor :impact_score
|
624
|
+
|
625
|
+
#
|
626
|
+
# Corresponds to the JSON property `integrityImpact`
|
627
|
+
# @return [String]
|
628
|
+
attr_accessor :integrity_impact
|
629
|
+
|
630
|
+
#
|
631
|
+
# Corresponds to the JSON property `privilegesRequired`
|
632
|
+
# @return [String]
|
633
|
+
attr_accessor :privileges_required
|
634
|
+
|
635
|
+
#
|
636
|
+
# Corresponds to the JSON property `scope`
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :scope
|
639
|
+
|
640
|
+
#
|
641
|
+
# Corresponds to the JSON property `userInteraction`
|
642
|
+
# @return [String]
|
643
|
+
attr_accessor :user_interaction
|
644
|
+
|
579
645
|
def initialize(**args)
|
580
646
|
update!(**args)
|
581
647
|
end
|
582
648
|
|
583
649
|
# Update properties of this object
|
584
650
|
def update!(**args)
|
651
|
+
@attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
|
652
|
+
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
653
|
+
@availability_impact = args[:availability_impact] if args.key?(:availability_impact)
|
654
|
+
@base_score = args[:base_score] if args.key?(:base_score)
|
655
|
+
@confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
|
656
|
+
@exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
|
657
|
+
@impact_score = args[:impact_score] if args.key?(:impact_score)
|
658
|
+
@integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
|
659
|
+
@privileges_required = args[:privileges_required] if args.key?(:privileges_required)
|
660
|
+
@scope = args[:scope] if args.key?(:scope)
|
661
|
+
@user_interaction = args[:user_interaction] if args.key?(:user_interaction)
|
585
662
|
end
|
586
663
|
end
|
587
664
|
|
@@ -1411,6 +1488,11 @@ module Google
|
|
1411
1488
|
# @return [String]
|
1412
1489
|
attr_accessor :name
|
1413
1490
|
|
1491
|
+
# Configuration per workload for both Private Pools and Hybrid Pools.
|
1492
|
+
# Corresponds to the JSON property `workerConfig`
|
1493
|
+
# @return [Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig]
|
1494
|
+
attr_accessor :worker_config
|
1495
|
+
|
1414
1496
|
def initialize(**args)
|
1415
1497
|
update!(**args)
|
1416
1498
|
end
|
@@ -1418,6 +1500,41 @@ module Google
|
|
1418
1500
|
# Update properties of this object
|
1419
1501
|
def update!(**args)
|
1420
1502
|
@name = args[:name] if args.key?(:name)
|
1503
|
+
@worker_config = args[:worker_config] if args.key?(:worker_config)
|
1504
|
+
end
|
1505
|
+
end
|
1506
|
+
|
1507
|
+
# Configuration per workload for both Private Pools and Hybrid Pools.
|
1508
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
|
1509
|
+
include Google::Apis::Core::Hashable
|
1510
|
+
|
1511
|
+
# The disk size (in GB) which is requested for the build container. If unset, a
|
1512
|
+
# value of 10 GB will be used.
|
1513
|
+
# Corresponds to the JSON property `diskSizeGb`
|
1514
|
+
# @return [Fixnum]
|
1515
|
+
attr_accessor :disk_size_gb
|
1516
|
+
|
1517
|
+
# The memory (in GB) which is requested for the build container. If unset, a
|
1518
|
+
# value of 4 GB will be used.
|
1519
|
+
# Corresponds to the JSON property `memoryGb`
|
1520
|
+
# @return [Float]
|
1521
|
+
attr_accessor :memory_gb
|
1522
|
+
|
1523
|
+
# The number of vCPUs which are requested for the build container. If unset, a
|
1524
|
+
# value of 1 will be used.
|
1525
|
+
# Corresponds to the JSON property `vcpuCount`
|
1526
|
+
# @return [Float]
|
1527
|
+
attr_accessor :vcpu_count
|
1528
|
+
|
1529
|
+
def initialize(**args)
|
1530
|
+
update!(**args)
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
# Update properties of this object
|
1534
|
+
def update!(**args)
|
1535
|
+
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
1536
|
+
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
|
1537
|
+
@vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
|
1421
1538
|
end
|
1422
1539
|
end
|
1423
1540
|
|
@@ -2402,6 +2519,12 @@ module Google
|
|
2402
2519
|
# @return [Google::Apis::ContaineranalysisV1::Status]
|
2403
2520
|
attr_accessor :analysis_status_error
|
2404
2521
|
|
2522
|
+
# Output only. The time occurrences related to this discovery occurrence were
|
2523
|
+
# archived.
|
2524
|
+
# Corresponds to the JSON property `archiveTime`
|
2525
|
+
# @return [String]
|
2526
|
+
attr_accessor :archive_time
|
2527
|
+
|
2405
2528
|
# Whether the resource is continuously analyzed.
|
2406
2529
|
# Corresponds to the JSON property `continuousAnalysis`
|
2407
2530
|
# @return [String]
|
@@ -2425,6 +2548,7 @@ module Google
|
|
2425
2548
|
def update!(**args)
|
2426
2549
|
@analysis_status = args[:analysis_status] if args.key?(:analysis_status)
|
2427
2550
|
@analysis_status_error = args[:analysis_status_error] if args.key?(:analysis_status_error)
|
2551
|
+
@archive_time = args[:archive_time] if args.key?(:archive_time)
|
2428
2552
|
@continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
|
2429
2553
|
@cpe = args[:cpe] if args.key?(:cpe)
|
2430
2554
|
@last_scan_time = args[:last_scan_time] if args.key?(:last_scan_time)
|
@@ -3034,12 +3158,12 @@ module Google
|
|
3034
3158
|
class InTotoStatement
|
3035
3159
|
include Google::Apis::Core::Hashable
|
3036
3160
|
|
3037
|
-
# Always
|
3161
|
+
# Always `https://in-toto.io/Statement/v0.1`.
|
3038
3162
|
# Corresponds to the JSON property `_type`
|
3039
3163
|
# @return [String]
|
3040
3164
|
attr_accessor :_type
|
3041
3165
|
|
3042
|
-
#
|
3166
|
+
# `https://slsa.dev/provenance/v0.1` for SlsaProvenance.
|
3043
3167
|
# Corresponds to the JSON property `predicateType`
|
3044
3168
|
# @return [String]
|
3045
3169
|
attr_accessor :predicate_type
|
@@ -3223,31 +3347,6 @@ module Google
|
|
3223
3347
|
end
|
3224
3348
|
end
|
3225
3349
|
|
3226
|
-
# The response message for Operations.ListOperations.
|
3227
|
-
class ListOperationsResponse
|
3228
|
-
include Google::Apis::Core::Hashable
|
3229
|
-
|
3230
|
-
# The standard List next-page token.
|
3231
|
-
# Corresponds to the JSON property `nextPageToken`
|
3232
|
-
# @return [String]
|
3233
|
-
attr_accessor :next_page_token
|
3234
|
-
|
3235
|
-
# A list of operations that matches the specified filter in the request.
|
3236
|
-
# Corresponds to the JSON property `operations`
|
3237
|
-
# @return [Array<Google::Apis::ContaineranalysisV1::Operation>]
|
3238
|
-
attr_accessor :operations
|
3239
|
-
|
3240
|
-
def initialize(**args)
|
3241
|
-
update!(**args)
|
3242
|
-
end
|
3243
|
-
|
3244
|
-
# Update properties of this object
|
3245
|
-
def update!(**args)
|
3246
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3247
|
-
@operations = args[:operations] if args.key?(:operations)
|
3248
|
-
end
|
3249
|
-
end
|
3250
|
-
|
3251
3350
|
# An occurrence of a particular package installation found within a system's
|
3252
3351
|
# filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
|
3253
3352
|
class Location
|
@@ -3354,7 +3453,10 @@ module Google
|
|
3354
3453
|
end
|
3355
3454
|
end
|
3356
3455
|
|
3357
|
-
# Details about files that caused a compliance check to fail.
|
3456
|
+
# Details about files that caused a compliance check to fail. display_command is
|
3457
|
+
# a single command that can be used to display a list of non compliant files.
|
3458
|
+
# When there is no such command, we can also iterate a list of non compliant
|
3459
|
+
# file using 'path'.
|
3358
3460
|
class NonCompliantFile
|
3359
3461
|
include Google::Apis::Core::Hashable
|
3360
3462
|
|
@@ -3363,9 +3465,7 @@ module Google
|
|
3363
3465
|
# @return [String]
|
3364
3466
|
attr_accessor :display_command
|
3365
3467
|
|
3366
|
-
# display_command is
|
3367
|
-
# compliant files. When there is no such command, we can also iterate a list of
|
3368
|
-
# non compliant file using 'path'. Empty if `display_command` is set.
|
3468
|
+
# Empty if `display_command` is set.
|
3369
3469
|
# Corresponds to the JSON property `path`
|
3370
3470
|
# @return [String]
|
3371
3471
|
attr_accessor :path
|
@@ -3675,68 +3775,6 @@ module Google
|
|
3675
3775
|
end
|
3676
3776
|
end
|
3677
3777
|
|
3678
|
-
# This resource represents a long-running operation that is the result of a
|
3679
|
-
# network API call.
|
3680
|
-
class Operation
|
3681
|
-
include Google::Apis::Core::Hashable
|
3682
|
-
|
3683
|
-
# If the value is `false`, it means the operation is still in progress. If `true`
|
3684
|
-
# , the operation is completed, and either `error` or `response` is available.
|
3685
|
-
# Corresponds to the JSON property `done`
|
3686
|
-
# @return [Boolean]
|
3687
|
-
attr_accessor :done
|
3688
|
-
alias_method :done?, :done
|
3689
|
-
|
3690
|
-
# The `Status` type defines a logical error model that is suitable for different
|
3691
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
3692
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
3693
|
-
# data: error code, error message, and error details. You can find out more
|
3694
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
3695
|
-
# //cloud.google.com/apis/design/errors).
|
3696
|
-
# Corresponds to the JSON property `error`
|
3697
|
-
# @return [Google::Apis::ContaineranalysisV1::Status]
|
3698
|
-
attr_accessor :error
|
3699
|
-
|
3700
|
-
# Service-specific metadata associated with the operation. It typically contains
|
3701
|
-
# progress information and common metadata such as create time. Some services
|
3702
|
-
# might not provide such metadata. Any method that returns a long-running
|
3703
|
-
# operation should document the metadata type, if any.
|
3704
|
-
# Corresponds to the JSON property `metadata`
|
3705
|
-
# @return [Hash<String,Object>]
|
3706
|
-
attr_accessor :metadata
|
3707
|
-
|
3708
|
-
# The server-assigned name, which is only unique within the same service that
|
3709
|
-
# originally returns it. If you use the default HTTP mapping, the `name` should
|
3710
|
-
# be a resource name ending with `operations/`unique_id``.
|
3711
|
-
# Corresponds to the JSON property `name`
|
3712
|
-
# @return [String]
|
3713
|
-
attr_accessor :name
|
3714
|
-
|
3715
|
-
# The normal response of the operation in case of success. If the original
|
3716
|
-
# method returns no data on success, such as `Delete`, the response is `google.
|
3717
|
-
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
3718
|
-
# the response should be the resource. For other methods, the response should
|
3719
|
-
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
3720
|
-
# example, if the original method name is `TakeSnapshot()`, the inferred
|
3721
|
-
# response type is `TakeSnapshotResponse`.
|
3722
|
-
# Corresponds to the JSON property `response`
|
3723
|
-
# @return [Hash<String,Object>]
|
3724
|
-
attr_accessor :response
|
3725
|
-
|
3726
|
-
def initialize(**args)
|
3727
|
-
update!(**args)
|
3728
|
-
end
|
3729
|
-
|
3730
|
-
# Update properties of this object
|
3731
|
-
def update!(**args)
|
3732
|
-
@done = args[:done] if args.key?(:done)
|
3733
|
-
@error = args[:error] if args.key?(:error)
|
3734
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
3735
|
-
@name = args[:name] if args.key?(:name)
|
3736
|
-
@response = args[:response] if args.key?(:response)
|
3737
|
-
end
|
3738
|
-
end
|
3739
|
-
|
3740
3778
|
# A detail for a distro and package this vulnerability occurrence was found in
|
3741
3779
|
# and its associated fix (if one is available).
|
3742
3780
|
class PackageIssue
|
@@ -4522,7 +4560,7 @@ module Google
|
|
4522
4560
|
class Subject
|
4523
4561
|
include Google::Apis::Core::Hashable
|
4524
4562
|
|
4525
|
-
# "": "" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/
|
4563
|
+
# `"": ""` Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/
|
4526
4564
|
# attestation/blob/main/spec/field_types.md#DigestSet
|
4527
4565
|
# Corresponds to the JSON property `digest`
|
4528
4566
|
# @return [Hash<String,String>]
|
@@ -4838,6 +4876,15 @@ module Google
|
|
4838
4876
|
# @return [Float]
|
4839
4877
|
attr_accessor :cvss_score
|
4840
4878
|
|
4879
|
+
# Common Vulnerability Scoring System. For details, see https://www.first.org/
|
4880
|
+
# cvss/specification-document This is a message we will try to use for storing
|
4881
|
+
# multiple versions of CVSS. The intention is that as new versions of CVSS
|
4882
|
+
# scores get added, we will be able to modify this message rather than adding
|
4883
|
+
# new protos for each new version of the score.
|
4884
|
+
# Corresponds to the JSON property `cvssv3`
|
4885
|
+
# @return [Google::Apis::ContaineranalysisV1::Cvss]
|
4886
|
+
attr_accessor :cvssv3
|
4887
|
+
|
4841
4888
|
# The distro assigned severity for this vulnerability when it is available,
|
4842
4889
|
# otherwise this is the note provider assigned severity. When there are multiple
|
4843
4890
|
# PackageIssues for this vulnerability, they can have different effective
|
@@ -4895,6 +4942,7 @@ module Google
|
|
4895
4942
|
# Update properties of this object
|
4896
4943
|
def update!(**args)
|
4897
4944
|
@cvss_score = args[:cvss_score] if args.key?(:cvss_score)
|
4945
|
+
@cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
|
4898
4946
|
@effective_severity = args[:effective_severity] if args.key?(:effective_severity)
|
4899
4947
|
@fix_available = args[:fix_available] if args.key?(:fix_available)
|
4900
4948
|
@long_description = args[:long_description] if args.key?(:long_description)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContaineranalysisV1
|
18
18
|
# Version of the google-apis-containeranalysis_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220112"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,13 +100,13 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class Cvss
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
105
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class CvsSv3
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -214,6 +214,12 @@ module Google
|
|
214
214
|
include Google::Apis::Core::JsonObjectSupport
|
215
215
|
end
|
216
216
|
|
217
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
217
223
|
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep
|
218
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
225
|
|
@@ -520,12 +526,6 @@ module Google
|
|
520
526
|
include Google::Apis::Core::JsonObjectSupport
|
521
527
|
end
|
522
528
|
|
523
|
-
class ListOperationsResponse
|
524
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
|
-
|
526
|
-
include Google::Apis::Core::JsonObjectSupport
|
527
|
-
end
|
528
|
-
|
529
529
|
class Location
|
530
530
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
531
|
|
@@ -562,12 +562,6 @@ module Google
|
|
562
562
|
include Google::Apis::Core::JsonObjectSupport
|
563
563
|
end
|
564
564
|
|
565
|
-
class Operation
|
566
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
|
-
|
568
|
-
include Google::Apis::Core::JsonObjectSupport
|
569
|
-
end
|
570
|
-
|
571
565
|
class PackageIssue
|
572
566
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
567
|
|
@@ -875,11 +869,12 @@ module Google
|
|
875
869
|
end
|
876
870
|
end
|
877
871
|
|
878
|
-
class
|
872
|
+
class Cvss
|
879
873
|
# @private
|
880
874
|
class Representation < Google::Apis::Core::JsonRepresentation
|
881
875
|
property :attack_complexity, as: 'attackComplexity'
|
882
876
|
property :attack_vector, as: 'attackVector'
|
877
|
+
property :authentication, as: 'authentication'
|
883
878
|
property :availability_impact, as: 'availabilityImpact'
|
884
879
|
property :base_score, as: 'baseScore'
|
885
880
|
property :confidentiality_impact, as: 'confidentialityImpact'
|
@@ -892,9 +887,20 @@ module Google
|
|
892
887
|
end
|
893
888
|
end
|
894
889
|
|
895
|
-
class
|
890
|
+
class CvsSv3
|
896
891
|
# @private
|
897
892
|
class Representation < Google::Apis::Core::JsonRepresentation
|
893
|
+
property :attack_complexity, as: 'attackComplexity'
|
894
|
+
property :attack_vector, as: 'attackVector'
|
895
|
+
property :availability_impact, as: 'availabilityImpact'
|
896
|
+
property :base_score, as: 'baseScore'
|
897
|
+
property :confidentiality_impact, as: 'confidentialityImpact'
|
898
|
+
property :exploitability_score, as: 'exploitabilityScore'
|
899
|
+
property :impact_score, as: 'impactScore'
|
900
|
+
property :integrity_impact, as: 'integrityImpact'
|
901
|
+
property :privileges_required, as: 'privilegesRequired'
|
902
|
+
property :scope, as: 'scope'
|
903
|
+
property :user_interaction, as: 'userInteraction'
|
898
904
|
end
|
899
905
|
end
|
900
906
|
|
@@ -1106,6 +1112,17 @@ module Google
|
|
1106
1112
|
# @private
|
1107
1113
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1108
1114
|
property :name, as: 'name'
|
1115
|
+
property :worker_config, as: 'workerConfig', class: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig, decorator: Google::Apis::ContaineranalysisV1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig::Representation
|
1116
|
+
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
|
1121
|
+
# @private
|
1122
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1123
|
+
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
1124
|
+
property :memory_gb, as: 'memoryGb'
|
1125
|
+
property :vcpu_count, as: 'vcpuCount'
|
1109
1126
|
end
|
1110
1127
|
end
|
1111
1128
|
|
@@ -1369,6 +1386,7 @@ module Google
|
|
1369
1386
|
property :analysis_status, as: 'analysisStatus'
|
1370
1387
|
property :analysis_status_error, as: 'analysisStatusError', class: Google::Apis::ContaineranalysisV1::Status, decorator: Google::Apis::ContaineranalysisV1::Status::Representation
|
1371
1388
|
|
1389
|
+
property :archive_time, as: 'archiveTime'
|
1372
1390
|
property :continuous_analysis, as: 'continuousAnalysis'
|
1373
1391
|
property :cpe, as: 'cpe'
|
1374
1392
|
property :last_scan_time, as: 'lastScanTime'
|
@@ -1612,15 +1630,6 @@ module Google
|
|
1612
1630
|
end
|
1613
1631
|
end
|
1614
1632
|
|
1615
|
-
class ListOperationsResponse
|
1616
|
-
# @private
|
1617
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1618
|
-
property :next_page_token, as: 'nextPageToken'
|
1619
|
-
collection :operations, as: 'operations', class: Google::Apis::ContaineranalysisV1::Operation, decorator: Google::Apis::ContaineranalysisV1::Operation::Representation
|
1620
|
-
|
1621
|
-
end
|
1622
|
-
end
|
1623
|
-
|
1624
1633
|
class Location
|
1625
1634
|
# @private
|
1626
1635
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1731,18 +1740,6 @@ module Google
|
|
1731
1740
|
end
|
1732
1741
|
end
|
1733
1742
|
|
1734
|
-
class Operation
|
1735
|
-
# @private
|
1736
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1737
|
-
property :done, as: 'done'
|
1738
|
-
property :error, as: 'error', class: Google::Apis::ContaineranalysisV1::Status, decorator: Google::Apis::ContaineranalysisV1::Status::Representation
|
1739
|
-
|
1740
|
-
hash :metadata, as: 'metadata'
|
1741
|
-
property :name, as: 'name'
|
1742
|
-
hash :response, as: 'response'
|
1743
|
-
end
|
1744
|
-
end
|
1745
|
-
|
1746
1743
|
class PackageIssue
|
1747
1744
|
# @private
|
1748
1745
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2017,6 +2014,8 @@ module Google
|
|
2017
2014
|
# @private
|
2018
2015
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2019
2016
|
property :cvss_score, as: 'cvssScore'
|
2017
|
+
property :cvssv3, as: 'cvssv3', class: Google::Apis::ContaineranalysisV1::Cvss, decorator: Google::Apis::ContaineranalysisV1::Cvss::Representation
|
2018
|
+
|
2020
2019
|
property :effective_severity, as: 'effectiveSeverity'
|
2021
2020
|
property :fix_available, as: 'fixAvailable'
|
2022
2021
|
property :long_description, as: 'longDescription'
|
@@ -50,156 +50,6 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
54
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
55
|
-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
56
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
57
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
58
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
59
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
60
|
-
# corresponding to `Code.CANCELLED`.
|
61
|
-
# @param [String] name
|
62
|
-
# The name of the operation resource to be cancelled.
|
63
|
-
# @param [Google::Apis::ContaineranalysisV1::CancelOperationRequest] cancel_operation_request_object
|
64
|
-
# @param [String] fields
|
65
|
-
# Selector specifying which fields to include in a partial response.
|
66
|
-
# @param [String] quota_user
|
67
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
-
# @param [Google::Apis::RequestOptions] options
|
70
|
-
# Request-specific options
|
71
|
-
#
|
72
|
-
# @yield [result, err] Result & error if block supplied
|
73
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::Empty] parsed result object
|
74
|
-
# @yieldparam err [StandardError] error object if request failed
|
75
|
-
#
|
76
|
-
# @return [Google::Apis::ContaineranalysisV1::Empty]
|
77
|
-
#
|
78
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
-
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
83
|
-
command.request_representation = Google::Apis::ContaineranalysisV1::CancelOperationRequest::Representation
|
84
|
-
command.request_object = cancel_operation_request_object
|
85
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation
|
86
|
-
command.response_class = Google::Apis::ContaineranalysisV1::Empty
|
87
|
-
command.params['name'] = name unless name.nil?
|
88
|
-
command.query['fields'] = fields unless fields.nil?
|
89
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
-
execute_or_queue_command(command, &block)
|
91
|
-
end
|
92
|
-
|
93
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
94
|
-
# longer interested in the operation result. It does not cancel the operation.
|
95
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
96
|
-
# UNIMPLEMENTED`.
|
97
|
-
# @param [String] name
|
98
|
-
# The name of the operation resource to be deleted.
|
99
|
-
# @param [String] fields
|
100
|
-
# Selector specifying which fields to include in a partial response.
|
101
|
-
# @param [String] quota_user
|
102
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
-
# @param [Google::Apis::RequestOptions] options
|
105
|
-
# Request-specific options
|
106
|
-
#
|
107
|
-
# @yield [result, err] Result & error if block supplied
|
108
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::Empty] parsed result object
|
109
|
-
# @yieldparam err [StandardError] error object if request failed
|
110
|
-
#
|
111
|
-
# @return [Google::Apis::ContaineranalysisV1::Empty]
|
112
|
-
#
|
113
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
-
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
118
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation
|
119
|
-
command.response_class = Google::Apis::ContaineranalysisV1::Empty
|
120
|
-
command.params['name'] = name unless name.nil?
|
121
|
-
command.query['fields'] = fields unless fields.nil?
|
122
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
-
execute_or_queue_command(command, &block)
|
124
|
-
end
|
125
|
-
|
126
|
-
# Gets the latest state of a long-running operation. Clients can use this method
|
127
|
-
# to poll the operation result at intervals as recommended by the API service.
|
128
|
-
# @param [String] name
|
129
|
-
# The name of the operation resource.
|
130
|
-
# @param [String] fields
|
131
|
-
# Selector specifying which fields to include in a partial response.
|
132
|
-
# @param [String] quota_user
|
133
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
134
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
135
|
-
# @param [Google::Apis::RequestOptions] options
|
136
|
-
# Request-specific options
|
137
|
-
#
|
138
|
-
# @yield [result, err] Result & error if block supplied
|
139
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::Operation] parsed result object
|
140
|
-
# @yieldparam err [StandardError] error object if request failed
|
141
|
-
#
|
142
|
-
# @return [Google::Apis::ContaineranalysisV1::Operation]
|
143
|
-
#
|
144
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
-
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
149
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::Operation::Representation
|
150
|
-
command.response_class = Google::Apis::ContaineranalysisV1::Operation
|
151
|
-
command.params['name'] = name unless name.nil?
|
152
|
-
command.query['fields'] = fields unless fields.nil?
|
153
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
|
-
execute_or_queue_command(command, &block)
|
155
|
-
end
|
156
|
-
|
157
|
-
# Lists operations that match the specified filter in the request. If the server
|
158
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
159
|
-
# binding allows API services to override the binding to use different resource
|
160
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
161
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
162
|
-
# service configuration. For backwards compatibility, the default name includes
|
163
|
-
# the operations collection id, however overriding users must ensure the name
|
164
|
-
# binding is the parent resource, without the operations collection id.
|
165
|
-
# @param [String] name
|
166
|
-
# The name of the operation's parent resource.
|
167
|
-
# @param [String] filter
|
168
|
-
# The standard list filter.
|
169
|
-
# @param [Fixnum] page_size
|
170
|
-
# The standard list page size.
|
171
|
-
# @param [String] page_token
|
172
|
-
# The standard list page token.
|
173
|
-
# @param [String] fields
|
174
|
-
# Selector specifying which fields to include in a partial response.
|
175
|
-
# @param [String] quota_user
|
176
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
177
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
178
|
-
# @param [Google::Apis::RequestOptions] options
|
179
|
-
# Request-specific options
|
180
|
-
#
|
181
|
-
# @yield [result, err] Result & error if block supplied
|
182
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::ListOperationsResponse] parsed result object
|
183
|
-
# @yieldparam err [StandardError] error object if request failed
|
184
|
-
#
|
185
|
-
# @return [Google::Apis::ContaineranalysisV1::ListOperationsResponse]
|
186
|
-
#
|
187
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
188
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
189
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
190
|
-
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
191
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
192
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::ListOperationsResponse::Representation
|
193
|
-
command.response_class = Google::Apis::ContaineranalysisV1::ListOperationsResponse
|
194
|
-
command.params['name'] = name unless name.nil?
|
195
|
-
command.query['filter'] = filter unless filter.nil?
|
196
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
197
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
198
|
-
command.query['fields'] = fields unless fields.nil?
|
199
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
|
-
execute_or_queue_command(command, &block)
|
201
|
-
end
|
202
|
-
|
203
53
|
# Creates new notes in batch.
|
204
54
|
# @param [String] parent
|
205
55
|
# Required. The name of the project in the form of `projects/[PROJECT_ID]`,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-containeranalysis_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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:
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.6.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Container Analysis API V1
|