google-apis-containeranalysis_v1alpha1 0.17.0 → 0.21.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: f603c6365571a9695d2d23f8f416fd158cbb843d73f0286f089b641f7352c57e
4
- data.tar.gz: a6e248687a6a53f7e4868bd86b382392d77ae017be6b30beee1c603d54c847e8
3
+ metadata.gz: bc1b6e1c8109984994b065856249a183edb2ba9868e9d291319996c226028fa9
4
+ data.tar.gz: 168aac90644cd695325db7a06e27648951d3081bb875c9d3508190e128d6ebf1
5
5
  SHA512:
6
- metadata.gz: 65d15b5fd34ed6ea4db46c27e12edbaaf8239a002fb4402c438c789e6cc77a0037350febf1eedb562830715cc3a277ac647eae38797e3707f1d0a1b95676a859
7
- data.tar.gz: d1b1fa5243928675d3e4c15ee1f1515d48214e743e98884ffb0156e395bf31b6e86d49374a9092f110d7c3ab273f0155b5585e16e6d2adfe174fa8b3d6f92b95
6
+ metadata.gz: 3a624e7ff3f41bb50d2c827873e84b6b6c9a387b6e0ca2b2a253b52c95fcaa83a6cd038c0dab7f70197220cf52ee222226957bd60cbb2090d57efb9ffe1eecc2
7
+ data.tar.gz: 3ab85ad14387c8b307cf7f60afaf3c0146671589db9bf9a14ed3319fc7eb1cfb5a4e89fb9fca52de0358508833997de62d8b2a886825cccf843e9403df454cb6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-containeranalysis_v1alpha1
2
2
 
3
+ ### v0.21.0 (2022-01-20)
4
+
5
+ * Regenerated from discovery document revision 20220112
6
+
7
+ ### v0.20.0 (2022-01-13)
8
+
9
+ * Regenerated from discovery document revision 20220107
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.19.0 (2021-12-16)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.18.0 (2021-11-18)
17
+
18
+ * Regenerated from discovery document revision 20211112
19
+
3
20
  ### v0.17.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_v1alpha1"
51
51
  client = Google::Apis::ContaineranalysisV1alpha1::ContainerAnalysisService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
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.
@@ -259,11 +259,19 @@ module Google
259
259
  class BuildDetails
260
260
  include Google::Apis::Core::Hashable
261
261
 
262
- # In-toto Provenance representation as defined in spec.
262
+ # Deprecated. See InTotoStatement for the replacement. In-toto Provenance
263
+ # representation as defined in spec.
263
264
  # Corresponds to the JSON property `intotoProvenance`
264
265
  # @return [Google::Apis::ContaineranalysisV1alpha1::InTotoProvenance]
265
266
  attr_accessor :intoto_provenance
266
267
 
268
+ # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
269
+ # statement The serialized InTotoStatement will be stored as Envelope.payload.
270
+ # Envelope.payloadType is always "application/vnd.in-toto+json".
271
+ # Corresponds to the JSON property `intotoStatement`
272
+ # @return [Google::Apis::ContaineranalysisV1alpha1::InTotoStatement]
273
+ attr_accessor :intoto_statement
274
+
267
275
  # Provenance of a build. Contains all information needed to verify the full
268
276
  # details about the build from source to completion.
269
277
  # Corresponds to the JSON property `provenance`
@@ -289,6 +297,7 @@ module Google
289
297
  # Update properties of this object
290
298
  def update!(**args)
291
299
  @intoto_provenance = args[:intoto_provenance] if args.key?(:intoto_provenance)
300
+ @intoto_statement = args[:intoto_statement] if args.key?(:intoto_statement)
292
301
  @provenance = args[:provenance] if args.key?(:provenance)
293
302
  @provenance_bytes = args[:provenance_bytes] if args.key?(:provenance_bytes)
294
303
  end
@@ -483,6 +492,94 @@ module Google
483
492
  end
484
493
  end
485
494
 
495
+ # Common Vulnerability Scoring System. This is the storage level proto that is
496
+ # intended to store similar data as the CVSS proto in google3/third_party/
497
+ # grafeas/proto/v1/cvss.proto
498
+ class Cvss
499
+ include Google::Apis::Core::Hashable
500
+
501
+ #
502
+ # Corresponds to the JSON property `attackComplexity`
503
+ # @return [String]
504
+ attr_accessor :attack_complexity
505
+
506
+ # Base Metrics Represents the intrinsic characteristics of a vulnerability that
507
+ # are constant over time and across user environments.
508
+ # Corresponds to the JSON property `attackVector`
509
+ # @return [String]
510
+ attr_accessor :attack_vector
511
+
512
+ #
513
+ # Corresponds to the JSON property `authentication`
514
+ # @return [String]
515
+ attr_accessor :authentication
516
+
517
+ #
518
+ # Corresponds to the JSON property `availabilityImpact`
519
+ # @return [String]
520
+ attr_accessor :availability_impact
521
+
522
+ # The base score is a function of the base metric scores.
523
+ # Corresponds to the JSON property `baseScore`
524
+ # @return [Float]
525
+ attr_accessor :base_score
526
+
527
+ #
528
+ # Corresponds to the JSON property `confidentialityImpact`
529
+ # @return [String]
530
+ attr_accessor :confidentiality_impact
531
+
532
+ #
533
+ # Corresponds to the JSON property `exploitabilityScore`
534
+ # @return [Float]
535
+ attr_accessor :exploitability_score
536
+
537
+ #
538
+ # Corresponds to the JSON property `impactScore`
539
+ # @return [Float]
540
+ attr_accessor :impact_score
541
+
542
+ #
543
+ # Corresponds to the JSON property `integrityImpact`
544
+ # @return [String]
545
+ attr_accessor :integrity_impact
546
+
547
+ #
548
+ # Corresponds to the JSON property `privilegesRequired`
549
+ # @return [String]
550
+ attr_accessor :privileges_required
551
+
552
+ #
553
+ # Corresponds to the JSON property `scope`
554
+ # @return [String]
555
+ attr_accessor :scope
556
+
557
+ #
558
+ # Corresponds to the JSON property `userInteraction`
559
+ # @return [String]
560
+ attr_accessor :user_interaction
561
+
562
+ def initialize(**args)
563
+ update!(**args)
564
+ end
565
+
566
+ # Update properties of this object
567
+ def update!(**args)
568
+ @attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
569
+ @attack_vector = args[:attack_vector] if args.key?(:attack_vector)
570
+ @authentication = args[:authentication] if args.key?(:authentication)
571
+ @availability_impact = args[:availability_impact] if args.key?(:availability_impact)
572
+ @base_score = args[:base_score] if args.key?(:base_score)
573
+ @confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
574
+ @exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
575
+ @impact_score = args[:impact_score] if args.key?(:impact_score)
576
+ @integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
577
+ @privileges_required = args[:privileges_required] if args.key?(:privileges_required)
578
+ @scope = args[:scope] if args.key?(:scope)
579
+ @user_interaction = args[:user_interaction] if args.key?(:user_interaction)
580
+ end
581
+ end
582
+
486
583
  # A compliance check that is a CIS benchmark.
487
584
  class CisBenchmark
488
585
  include Google::Apis::Core::Hashable
@@ -1252,6 +1349,11 @@ module Google
1252
1349
  # @return [String]
1253
1350
  attr_accessor :name
1254
1351
 
1352
+ # Configuration per workload for both Private Pools and Hybrid Pools.
1353
+ # Corresponds to the JSON property `workerConfig`
1354
+ # @return [Google::Apis::ContaineranalysisV1alpha1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig]
1355
+ attr_accessor :worker_config
1356
+
1255
1357
  def initialize(**args)
1256
1358
  update!(**args)
1257
1359
  end
@@ -1259,6 +1361,41 @@ module Google
1259
1361
  # Update properties of this object
1260
1362
  def update!(**args)
1261
1363
  @name = args[:name] if args.key?(:name)
1364
+ @worker_config = args[:worker_config] if args.key?(:worker_config)
1365
+ end
1366
+ end
1367
+
1368
+ # Configuration per workload for both Private Pools and Hybrid Pools.
1369
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
1370
+ include Google::Apis::Core::Hashable
1371
+
1372
+ # The disk size (in GB) which is requested for the build container. If unset, a
1373
+ # value of 10 GB will be used.
1374
+ # Corresponds to the JSON property `diskSizeGb`
1375
+ # @return [Fixnum]
1376
+ attr_accessor :disk_size_gb
1377
+
1378
+ # The memory (in GB) which is requested for the build container. If unset, a
1379
+ # value of 4 GB will be used.
1380
+ # Corresponds to the JSON property `memoryGb`
1381
+ # @return [Float]
1382
+ attr_accessor :memory_gb
1383
+
1384
+ # The number of vCPUs which are requested for the build container. If unset, a
1385
+ # value of 1 will be used.
1386
+ # Corresponds to the JSON property `vcpuCount`
1387
+ # @return [Float]
1388
+ attr_accessor :vcpu_count
1389
+
1390
+ def initialize(**args)
1391
+ update!(**args)
1392
+ end
1393
+
1394
+ # Update properties of this object
1395
+ def update!(**args)
1396
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
1397
+ @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
1398
+ @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
1262
1399
  end
1263
1400
  end
1264
1401
 
@@ -2273,6 +2410,11 @@ module Google
2273
2410
  # @return [Google::Apis::ContaineranalysisV1alpha1::Status]
2274
2411
  attr_accessor :analysis_status_error
2275
2412
 
2413
+ # The time occurrences related to this discovery occurrence were archived.
2414
+ # Corresponds to the JSON property `archiveTime`
2415
+ # @return [String]
2416
+ attr_accessor :archive_time
2417
+
2276
2418
  # Whether the resource is continuously analyzed.
2277
2419
  # Corresponds to the JSON property `continuousAnalysis`
2278
2420
  # @return [String]
@@ -2283,6 +2425,11 @@ module Google
2283
2425
  # @return [String]
2284
2426
  attr_accessor :cpe
2285
2427
 
2428
+ # The last time this resource was scanned.
2429
+ # Corresponds to the JSON property `lastScanTime`
2430
+ # @return [String]
2431
+ attr_accessor :last_scan_time
2432
+
2286
2433
  # This resource represents a long-running operation that is the result of a
2287
2434
  # network API call.
2288
2435
  # Corresponds to the JSON property `operation`
@@ -2297,8 +2444,10 @@ module Google
2297
2444
  def update!(**args)
2298
2445
  @analysis_status = args[:analysis_status] if args.key?(:analysis_status)
2299
2446
  @analysis_status_error = args[:analysis_status_error] if args.key?(:analysis_status_error)
2447
+ @archive_time = args[:archive_time] if args.key?(:archive_time)
2300
2448
  @continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
2301
2449
  @cpe = args[:cpe] if args.key?(:cpe)
2450
+ @last_scan_time = args[:last_scan_time] if args.key?(:last_scan_time)
2302
2451
  @operation = args[:operation] if args.key?(:operation)
2303
2452
  end
2304
2453
  end
@@ -5334,6 +5483,13 @@ module Google
5334
5483
  # @return [Float]
5335
5484
  attr_accessor :cvss_score
5336
5485
 
5486
+ # Common Vulnerability Scoring System. This is the storage level proto that is
5487
+ # intended to store similar data as the CVSS proto in google3/third_party/
5488
+ # grafeas/proto/v1/cvss.proto
5489
+ # Corresponds to the JSON property `cvssV3`
5490
+ # @return [Google::Apis::ContaineranalysisV1alpha1::Cvss]
5491
+ attr_accessor :cvss_v3
5492
+
5337
5493
  # The distro assigned severity for this vulnerability when that is available and
5338
5494
  # note provider assigned severity when distro has not yet assigned a severity
5339
5495
  # for this vulnerability. When there are multiple package issues for this
@@ -5373,6 +5529,7 @@ module Google
5373
5529
  # Update properties of this object
5374
5530
  def update!(**args)
5375
5531
  @cvss_score = args[:cvss_score] if args.key?(:cvss_score)
5532
+ @cvss_v3 = args[:cvss_v3] if args.key?(:cvss_v3)
5376
5533
  @effective_severity = args[:effective_severity] if args.key?(:effective_severity)
5377
5534
  @package_issue = args[:package_issue] if args.key?(:package_issue)
5378
5535
  @severity = args[:severity] if args.key?(:severity)
@@ -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.17.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211105"
25
+ REVISION = "20220112"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class Cvss
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class CisBenchmark
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -178,6 +184,12 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildStep
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -841,6 +853,8 @@ module Google
841
853
  class Representation < Google::Apis::Core::JsonRepresentation
842
854
  property :intoto_provenance, as: 'intotoProvenance', class: Google::Apis::ContaineranalysisV1alpha1::InTotoProvenance, decorator: Google::Apis::ContaineranalysisV1alpha1::InTotoProvenance::Representation
843
855
 
856
+ property :intoto_statement, as: 'intotoStatement', class: Google::Apis::ContaineranalysisV1alpha1::InTotoStatement, decorator: Google::Apis::ContaineranalysisV1alpha1::InTotoStatement::Representation
857
+
844
858
  property :provenance, as: 'provenance', class: Google::Apis::ContaineranalysisV1alpha1::BuildProvenance, decorator: Google::Apis::ContaineranalysisV1alpha1::BuildProvenance::Representation
845
859
 
846
860
  property :provenance_bytes, as: 'provenanceBytes'
@@ -895,6 +909,24 @@ module Google
895
909
  end
896
910
  end
897
911
 
912
+ class Cvss
913
+ # @private
914
+ class Representation < Google::Apis::Core::JsonRepresentation
915
+ property :attack_complexity, as: 'attackComplexity'
916
+ property :attack_vector, as: 'attackVector'
917
+ property :authentication, as: 'authentication'
918
+ property :availability_impact, as: 'availabilityImpact'
919
+ property :base_score, as: 'baseScore'
920
+ property :confidentiality_impact, as: 'confidentialityImpact'
921
+ property :exploitability_score, as: 'exploitabilityScore'
922
+ property :impact_score, as: 'impactScore'
923
+ property :integrity_impact, as: 'integrityImpact'
924
+ property :privileges_required, as: 'privilegesRequired'
925
+ property :scope, as: 'scope'
926
+ property :user_interaction, as: 'userInteraction'
927
+ end
928
+ end
929
+
898
930
  class CisBenchmark
899
931
  # @private
900
932
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1084,6 +1116,17 @@ module Google
1084
1116
  # @private
1085
1117
  class Representation < Google::Apis::Core::JsonRepresentation
1086
1118
  property :name, as: 'name'
1119
+ property :worker_config, as: 'workerConfig', class: Google::Apis::ContaineranalysisV1alpha1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig, decorator: Google::Apis::ContaineranalysisV1alpha1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig::Representation
1120
+
1121
+ end
1122
+ end
1123
+
1124
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOptionWorkerConfig
1125
+ # @private
1126
+ class Representation < Google::Apis::Core::JsonRepresentation
1127
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
1128
+ property :memory_gb, as: 'memoryGb'
1129
+ property :vcpu_count, as: 'vcpuCount'
1087
1130
  end
1088
1131
  end
1089
1132
 
@@ -1358,8 +1401,10 @@ module Google
1358
1401
  property :analysis_status, as: 'analysisStatus'
1359
1402
  property :analysis_status_error, as: 'analysisStatusError', class: Google::Apis::ContaineranalysisV1alpha1::Status, decorator: Google::Apis::ContaineranalysisV1alpha1::Status::Representation
1360
1403
 
1404
+ property :archive_time, as: 'archiveTime'
1361
1405
  property :continuous_analysis, as: 'continuousAnalysis'
1362
1406
  property :cpe, as: 'cpe'
1407
+ property :last_scan_time, as: 'lastScanTime'
1363
1408
  property :operation, as: 'operation', class: Google::Apis::ContaineranalysisV1alpha1::Operation, decorator: Google::Apis::ContaineranalysisV1alpha1::Operation::Representation
1364
1409
 
1365
1410
  end
@@ -2161,6 +2206,8 @@ module Google
2161
2206
  # @private
2162
2207
  class Representation < Google::Apis::Core::JsonRepresentation
2163
2208
  property :cvss_score, as: 'cvssScore'
2209
+ property :cvss_v3, as: 'cvssV3', class: Google::Apis::ContaineranalysisV1alpha1::Cvss, decorator: Google::Apis::ContaineranalysisV1alpha1::Cvss::Representation
2210
+
2164
2211
  property :effective_severity, as: 'effectiveSeverity'
2165
2212
  collection :package_issue, as: 'packageIssue', class: Google::Apis::ContaineranalysisV1alpha1::PackageIssue, decorator: Google::Apis::ContaineranalysisV1alpha1::PackageIssue::Representation
2166
2213
 
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.17.0
4
+ version: 0.21.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: 2021-11-15 00:00:00.000000000 Z
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_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.21.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.2.17
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 V1alpha1