google-apis-containeranalysis_v1beta1 0.40.0 → 0.42.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 +8 -0
- data/lib/google/apis/containeranalysis_v1beta1/classes.rb +325 -0
- data/lib/google/apis/containeranalysis_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/containeranalysis_v1beta1/representations.rb +162 -0
- data/lib/google/apis/containeranalysis_v1beta1/service.rb +34 -0
- 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: 7a07b9f2933c45d6c3794a1245a901d305c295f3119b28a1a18ea17674f73b6f
|
4
|
+
data.tar.gz: 51afb1e08e76fb4271630c78b7560ecc4215b2a34e9948b32a936a10b0e3ed57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add45b53fac612d1aef1d073ac40e9249128a4ebc2b0ef7787c1dff865836f5b913d276081741b264442de6764bd11e16ec01a3c1d16140725d22dac8ac5edae
|
7
|
+
data.tar.gz: 3b4e24bd8bd596c71712c7fb756aeb531e59a9914b69579d1d62d469db4c47203a8bc44ed14d2d8ac0ffb1699008a13ecf405bd0be2ab691a4a5c25ac2b322b7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-containeranalysis_v1beta1
|
2
2
|
|
3
|
+
### v0.42.0 (2023-07-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230707
|
6
|
+
|
7
|
+
### v0.41.0 (2023-07-02)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230623
|
10
|
+
|
3
11
|
### v0.40.0 (2023-05-28)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230519
|
@@ -484,6 +484,74 @@ module Google
|
|
484
484
|
end
|
485
485
|
end
|
486
486
|
|
487
|
+
#
|
488
|
+
class BuildDefinition
|
489
|
+
include Google::Apis::Core::Hashable
|
490
|
+
|
491
|
+
#
|
492
|
+
# Corresponds to the JSON property `buildType`
|
493
|
+
# @return [String]
|
494
|
+
attr_accessor :build_type
|
495
|
+
|
496
|
+
#
|
497
|
+
# Corresponds to the JSON property `externalParameters`
|
498
|
+
# @return [Hash<String,Object>]
|
499
|
+
attr_accessor :external_parameters
|
500
|
+
|
501
|
+
#
|
502
|
+
# Corresponds to the JSON property `internalParameters`
|
503
|
+
# @return [Hash<String,Object>]
|
504
|
+
attr_accessor :internal_parameters
|
505
|
+
|
506
|
+
#
|
507
|
+
# Corresponds to the JSON property `resolvedDependencies`
|
508
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor>]
|
509
|
+
attr_accessor :resolved_dependencies
|
510
|
+
|
511
|
+
def initialize(**args)
|
512
|
+
update!(**args)
|
513
|
+
end
|
514
|
+
|
515
|
+
# Update properties of this object
|
516
|
+
def update!(**args)
|
517
|
+
@build_type = args[:build_type] if args.key?(:build_type)
|
518
|
+
@external_parameters = args[:external_parameters] if args.key?(:external_parameters)
|
519
|
+
@internal_parameters = args[:internal_parameters] if args.key?(:internal_parameters)
|
520
|
+
@resolved_dependencies = args[:resolved_dependencies] if args.key?(:resolved_dependencies)
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
#
|
525
|
+
class BuildMetadata
|
526
|
+
include Google::Apis::Core::Hashable
|
527
|
+
|
528
|
+
#
|
529
|
+
# Corresponds to the JSON property `finishedOn`
|
530
|
+
# @return [String]
|
531
|
+
attr_accessor :finished_on
|
532
|
+
|
533
|
+
#
|
534
|
+
# Corresponds to the JSON property `invocationId`
|
535
|
+
# @return [String]
|
536
|
+
attr_accessor :invocation_id
|
537
|
+
|
538
|
+
#
|
539
|
+
# Corresponds to the JSON property `startedOn`
|
540
|
+
# @return [String]
|
541
|
+
attr_accessor :started_on
|
542
|
+
|
543
|
+
def initialize(**args)
|
544
|
+
update!(**args)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Update properties of this object
|
548
|
+
def update!(**args)
|
549
|
+
@finished_on = args[:finished_on] if args.key?(:finished_on)
|
550
|
+
@invocation_id = args[:invocation_id] if args.key?(:invocation_id)
|
551
|
+
@started_on = args[:started_on] if args.key?(:started_on)
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
487
555
|
# Provenance of a build. Contains all information needed to verify the full
|
488
556
|
# details about the build from source to completion.
|
489
557
|
class BuildProvenance
|
@@ -2930,6 +2998,11 @@ module Google
|
|
2930
2998
|
# @return [String]
|
2931
2999
|
attr_accessor :last_analysis_time
|
2932
3000
|
|
3001
|
+
# The status of an SBOM generation.
|
3002
|
+
# Corresponds to the JSON property `sbomStatus`
|
3003
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::SbomStatus]
|
3004
|
+
attr_accessor :sbom_status
|
3005
|
+
|
2933
3006
|
def initialize(**args)
|
2934
3007
|
update!(**args)
|
2935
3008
|
end
|
@@ -2942,6 +3015,7 @@ module Google
|
|
2942
3015
|
@analysis_status_error = args[:analysis_status_error] if args.key?(:analysis_status_error)
|
2943
3016
|
@continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
|
2944
3017
|
@last_analysis_time = args[:last_analysis_time] if args.key?(:last_analysis_time)
|
3018
|
+
@sbom_status = args[:sbom_status] if args.key?(:sbom_status)
|
2945
3019
|
end
|
2946
3020
|
end
|
2947
3021
|
|
@@ -3219,6 +3293,40 @@ module Google
|
|
3219
3293
|
end
|
3220
3294
|
end
|
3221
3295
|
|
3296
|
+
# The request to a call of ExportSBOM
|
3297
|
+
class ExportSbomRequest
|
3298
|
+
include Google::Apis::Core::Hashable
|
3299
|
+
|
3300
|
+
def initialize(**args)
|
3301
|
+
update!(**args)
|
3302
|
+
end
|
3303
|
+
|
3304
|
+
# Update properties of this object
|
3305
|
+
def update!(**args)
|
3306
|
+
end
|
3307
|
+
end
|
3308
|
+
|
3309
|
+
# The response from a call to ExportSBOM
|
3310
|
+
class ExportSbomResponse
|
3311
|
+
include Google::Apis::Core::Hashable
|
3312
|
+
|
3313
|
+
# The name of the discovery occurrence in the form "projects/`project_id`/
|
3314
|
+
# occurrences/`OCCURRENCE_ID` It can be used to track the progression of the
|
3315
|
+
# SBOM export.
|
3316
|
+
# Corresponds to the JSON property `discoveryOccurrenceId`
|
3317
|
+
# @return [String]
|
3318
|
+
attr_accessor :discovery_occurrence_id
|
3319
|
+
|
3320
|
+
def initialize(**args)
|
3321
|
+
update!(**args)
|
3322
|
+
end
|
3323
|
+
|
3324
|
+
# Update properties of this object
|
3325
|
+
def update!(**args)
|
3326
|
+
@discovery_occurrence_id = args[:discovery_occurrence_id] if args.key?(:discovery_occurrence_id)
|
3327
|
+
end
|
3328
|
+
end
|
3329
|
+
|
3222
3330
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
3223
3331
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
3224
3332
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -3707,6 +3815,11 @@ module Google
|
|
3707
3815
|
class GrafeasV1beta1BuildDetails
|
3708
3816
|
include Google::Apis::Core::Hashable
|
3709
3817
|
|
3818
|
+
#
|
3819
|
+
# Corresponds to the JSON property `inTotoSlsaProvenanceV1`
|
3820
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::InTotoSlsaProvenanceV1]
|
3821
|
+
attr_accessor :in_toto_slsa_provenance_v1
|
3822
|
+
|
3710
3823
|
# Provenance of a build. Contains all information needed to verify the full
|
3711
3824
|
# details about the build from source to completion.
|
3712
3825
|
# Corresponds to the JSON property `provenance`
|
@@ -3731,6 +3844,7 @@ module Google
|
|
3731
3844
|
|
3732
3845
|
# Update properties of this object
|
3733
3846
|
def update!(**args)
|
3847
|
+
@in_toto_slsa_provenance_v1 = args[:in_toto_slsa_provenance_v1] if args.key?(:in_toto_slsa_provenance_v1)
|
3734
3848
|
@provenance = args[:provenance] if args.key?(:provenance)
|
3735
3849
|
@provenance_bytes = args[:provenance_bytes] if args.key?(:provenance_bytes)
|
3736
3850
|
end
|
@@ -4100,6 +4214,46 @@ module Google
|
|
4100
4214
|
end
|
4101
4215
|
end
|
4102
4216
|
|
4217
|
+
#
|
4218
|
+
class InTotoSlsaProvenanceV1
|
4219
|
+
include Google::Apis::Core::Hashable
|
4220
|
+
|
4221
|
+
# InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#
|
4222
|
+
# statement
|
4223
|
+
# Corresponds to the JSON property `_type`
|
4224
|
+
# @return [String]
|
4225
|
+
attr_accessor :_type
|
4226
|
+
|
4227
|
+
# Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/
|
4228
|
+
# docs/provenance/schema/v1/provenance.proto Builder renamed to
|
4229
|
+
# ProvenanceBuilder because of Java conflicts.
|
4230
|
+
# Corresponds to the JSON property `predicate`
|
4231
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::SlsaProvenanceV1]
|
4232
|
+
attr_accessor :predicate
|
4233
|
+
|
4234
|
+
#
|
4235
|
+
# Corresponds to the JSON property `predicateType`
|
4236
|
+
# @return [String]
|
4237
|
+
attr_accessor :predicate_type
|
4238
|
+
|
4239
|
+
#
|
4240
|
+
# Corresponds to the JSON property `subject`
|
4241
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::Subject>]
|
4242
|
+
attr_accessor :subject
|
4243
|
+
|
4244
|
+
def initialize(**args)
|
4245
|
+
update!(**args)
|
4246
|
+
end
|
4247
|
+
|
4248
|
+
# Update properties of this object
|
4249
|
+
def update!(**args)
|
4250
|
+
@_type = args[:_type] if args.key?(:_type)
|
4251
|
+
@predicate = args[:predicate] if args.key?(:predicate)
|
4252
|
+
@predicate_type = args[:predicate_type] if args.key?(:predicate_type)
|
4253
|
+
@subject = args[:subject] if args.key?(:subject)
|
4254
|
+
end
|
4255
|
+
end
|
4256
|
+
|
4103
4257
|
# This represents how a particular software package may be installed on a system.
|
4104
4258
|
class Installation
|
4105
4259
|
include Google::Apis::Core::Hashable
|
@@ -5352,6 +5506,37 @@ module Google
|
|
5352
5506
|
end
|
5353
5507
|
end
|
5354
5508
|
|
5509
|
+
#
|
5510
|
+
class ProvenanceBuilder
|
5511
|
+
include Google::Apis::Core::Hashable
|
5512
|
+
|
5513
|
+
#
|
5514
|
+
# Corresponds to the JSON property `builderDependencies`
|
5515
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor>]
|
5516
|
+
attr_accessor :builder_dependencies
|
5517
|
+
|
5518
|
+
#
|
5519
|
+
# Corresponds to the JSON property `id`
|
5520
|
+
# @return [String]
|
5521
|
+
attr_accessor :id
|
5522
|
+
|
5523
|
+
#
|
5524
|
+
# Corresponds to the JSON property `version`
|
5525
|
+
# @return [Hash<String,String>]
|
5526
|
+
attr_accessor :version
|
5527
|
+
|
5528
|
+
def initialize(**args)
|
5529
|
+
update!(**args)
|
5530
|
+
end
|
5531
|
+
|
5532
|
+
# Update properties of this object
|
5533
|
+
def update!(**args)
|
5534
|
+
@builder_dependencies = args[:builder_dependencies] if args.key?(:builder_dependencies)
|
5535
|
+
@id = args[:id] if args.key?(:id)
|
5536
|
+
@version = args[:version] if args.key?(:version)
|
5537
|
+
end
|
5538
|
+
end
|
5539
|
+
|
5355
5540
|
# Publisher contains information about the publisher of this Note.
|
5356
5541
|
class Publisher
|
5357
5542
|
include Google::Apis::Core::Hashable
|
@@ -5566,6 +5751,93 @@ module Google
|
|
5566
5751
|
end
|
5567
5752
|
end
|
5568
5753
|
|
5754
|
+
#
|
5755
|
+
class ResourceDescriptor
|
5756
|
+
include Google::Apis::Core::Hashable
|
5757
|
+
|
5758
|
+
#
|
5759
|
+
# Corresponds to the JSON property `annotations`
|
5760
|
+
# @return [Hash<String,Object>]
|
5761
|
+
attr_accessor :annotations
|
5762
|
+
|
5763
|
+
#
|
5764
|
+
# Corresponds to the JSON property `content`
|
5765
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
5766
|
+
# @return [String]
|
5767
|
+
attr_accessor :content
|
5768
|
+
|
5769
|
+
#
|
5770
|
+
# Corresponds to the JSON property `digest`
|
5771
|
+
# @return [Hash<String,String>]
|
5772
|
+
attr_accessor :digest
|
5773
|
+
|
5774
|
+
#
|
5775
|
+
# Corresponds to the JSON property `downloadLocation`
|
5776
|
+
# @return [String]
|
5777
|
+
attr_accessor :download_location
|
5778
|
+
|
5779
|
+
#
|
5780
|
+
# Corresponds to the JSON property `mediaType`
|
5781
|
+
# @return [String]
|
5782
|
+
attr_accessor :media_type
|
5783
|
+
|
5784
|
+
#
|
5785
|
+
# Corresponds to the JSON property `name`
|
5786
|
+
# @return [String]
|
5787
|
+
attr_accessor :name
|
5788
|
+
|
5789
|
+
#
|
5790
|
+
# Corresponds to the JSON property `uri`
|
5791
|
+
# @return [String]
|
5792
|
+
attr_accessor :uri
|
5793
|
+
|
5794
|
+
def initialize(**args)
|
5795
|
+
update!(**args)
|
5796
|
+
end
|
5797
|
+
|
5798
|
+
# Update properties of this object
|
5799
|
+
def update!(**args)
|
5800
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
5801
|
+
@content = args[:content] if args.key?(:content)
|
5802
|
+
@digest = args[:digest] if args.key?(:digest)
|
5803
|
+
@download_location = args[:download_location] if args.key?(:download_location)
|
5804
|
+
@media_type = args[:media_type] if args.key?(:media_type)
|
5805
|
+
@name = args[:name] if args.key?(:name)
|
5806
|
+
@uri = args[:uri] if args.key?(:uri)
|
5807
|
+
end
|
5808
|
+
end
|
5809
|
+
|
5810
|
+
#
|
5811
|
+
class RunDetails
|
5812
|
+
include Google::Apis::Core::Hashable
|
5813
|
+
|
5814
|
+
#
|
5815
|
+
# Corresponds to the JSON property `builder`
|
5816
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ProvenanceBuilder]
|
5817
|
+
attr_accessor :builder
|
5818
|
+
|
5819
|
+
#
|
5820
|
+
# Corresponds to the JSON property `byproducts`
|
5821
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor>]
|
5822
|
+
attr_accessor :byproducts
|
5823
|
+
|
5824
|
+
#
|
5825
|
+
# Corresponds to the JSON property `metadata`
|
5826
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::BuildMetadata]
|
5827
|
+
attr_accessor :metadata
|
5828
|
+
|
5829
|
+
def initialize(**args)
|
5830
|
+
update!(**args)
|
5831
|
+
end
|
5832
|
+
|
5833
|
+
# Update properties of this object
|
5834
|
+
def update!(**args)
|
5835
|
+
@builder = args[:builder] if args.key?(:builder)
|
5836
|
+
@byproducts = args[:byproducts] if args.key?(:byproducts)
|
5837
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
5838
|
+
end
|
5839
|
+
end
|
5840
|
+
|
5569
5841
|
# The note representing an SBOM reference.
|
5570
5842
|
class SbomReferenceNote
|
5571
5843
|
include Google::Apis::Core::Hashable
|
@@ -5628,6 +5900,32 @@ module Google
|
|
5628
5900
|
end
|
5629
5901
|
end
|
5630
5902
|
|
5903
|
+
# The status of an SBOM generation.
|
5904
|
+
class SbomStatus
|
5905
|
+
include Google::Apis::Core::Hashable
|
5906
|
+
|
5907
|
+
# If there was an error generating an SBOM, this will indicate what that error
|
5908
|
+
# was.
|
5909
|
+
# Corresponds to the JSON property `error`
|
5910
|
+
# @return [String]
|
5911
|
+
attr_accessor :error
|
5912
|
+
|
5913
|
+
# The progress of the SBOM generation.
|
5914
|
+
# Corresponds to the JSON property `sbomState`
|
5915
|
+
# @return [String]
|
5916
|
+
attr_accessor :sbom_state
|
5917
|
+
|
5918
|
+
def initialize(**args)
|
5919
|
+
update!(**args)
|
5920
|
+
end
|
5921
|
+
|
5922
|
+
# Update properties of this object
|
5923
|
+
def update!(**args)
|
5924
|
+
@error = args[:error] if args.key?(:error)
|
5925
|
+
@sbom_state = args[:sbom_state] if args.key?(:sbom_state)
|
5926
|
+
end
|
5927
|
+
end
|
5928
|
+
|
5631
5929
|
# The actual payload that contains the SBOM Reference data. The payload follows
|
5632
5930
|
# the intoto statement specification. See https://github.com/in-toto/attestation/
|
5633
5931
|
# blob/main/spec/v1.0/statement.md for more details.
|
@@ -5850,6 +6148,33 @@ module Google
|
|
5850
6148
|
end
|
5851
6149
|
end
|
5852
6150
|
|
6151
|
+
# Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/
|
6152
|
+
# docs/provenance/schema/v1/provenance.proto Builder renamed to
|
6153
|
+
# ProvenanceBuilder because of Java conflicts.
|
6154
|
+
class SlsaProvenanceV1
|
6155
|
+
include Google::Apis::Core::Hashable
|
6156
|
+
|
6157
|
+
#
|
6158
|
+
# Corresponds to the JSON property `buildDefinition`
|
6159
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::BuildDefinition]
|
6160
|
+
attr_accessor :build_definition
|
6161
|
+
|
6162
|
+
#
|
6163
|
+
# Corresponds to the JSON property `runDetails`
|
6164
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::RunDetails]
|
6165
|
+
attr_accessor :run_details
|
6166
|
+
|
6167
|
+
def initialize(**args)
|
6168
|
+
update!(**args)
|
6169
|
+
end
|
6170
|
+
|
6171
|
+
# Update properties of this object
|
6172
|
+
def update!(**args)
|
6173
|
+
@build_definition = args[:build_definition] if args.key?(:build_definition)
|
6174
|
+
@run_details = args[:run_details] if args.key?(:run_details)
|
6175
|
+
end
|
6176
|
+
end
|
6177
|
+
|
5853
6178
|
# Source describes the location of the source used for the build.
|
5854
6179
|
class Source
|
5855
6180
|
include Google::Apis::Core::Hashable
|
@@ -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.42.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230707"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,18 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class BuildDefinition
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class BuildMetadata
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class BuildProvenance
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -448,6 +460,18 @@ module Google
|
|
448
460
|
include Google::Apis::Core::JsonObjectSupport
|
449
461
|
end
|
450
462
|
|
463
|
+
class ExportSbomRequest
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
469
|
+
class ExportSbomResponse
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
451
475
|
class Expr
|
452
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
477
|
|
@@ -604,6 +628,12 @@ module Google
|
|
604
628
|
include Google::Apis::Core::JsonObjectSupport
|
605
629
|
end
|
606
630
|
|
631
|
+
class InTotoSlsaProvenanceV1
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
+
|
634
|
+
include Google::Apis::Core::JsonObjectSupport
|
635
|
+
end
|
636
|
+
|
607
637
|
class Installation
|
608
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
639
|
|
@@ -736,6 +766,12 @@ module Google
|
|
736
766
|
include Google::Apis::Core::JsonObjectSupport
|
737
767
|
end
|
738
768
|
|
769
|
+
class ProvenanceBuilder
|
770
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
771
|
+
|
772
|
+
include Google::Apis::Core::JsonObjectSupport
|
773
|
+
end
|
774
|
+
|
739
775
|
class Publisher
|
740
776
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
741
777
|
|
@@ -778,6 +814,18 @@ module Google
|
|
778
814
|
include Google::Apis::Core::JsonObjectSupport
|
779
815
|
end
|
780
816
|
|
817
|
+
class ResourceDescriptor
|
818
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
819
|
+
|
820
|
+
include Google::Apis::Core::JsonObjectSupport
|
821
|
+
end
|
822
|
+
|
823
|
+
class RunDetails
|
824
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
|
+
|
826
|
+
include Google::Apis::Core::JsonObjectSupport
|
827
|
+
end
|
828
|
+
|
781
829
|
class SbomReferenceNote
|
782
830
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
783
831
|
|
@@ -790,6 +838,12 @@ module Google
|
|
790
838
|
include Google::Apis::Core::JsonObjectSupport
|
791
839
|
end
|
792
840
|
|
841
|
+
class SbomStatus
|
842
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
843
|
+
|
844
|
+
include Google::Apis::Core::JsonObjectSupport
|
845
|
+
end
|
846
|
+
|
793
847
|
class SbomReferenceIntotoPayload
|
794
848
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
795
849
|
|
@@ -820,6 +874,12 @@ module Google
|
|
820
874
|
include Google::Apis::Core::JsonObjectSupport
|
821
875
|
end
|
822
876
|
|
877
|
+
class SlsaProvenanceV1
|
878
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
879
|
+
|
880
|
+
include Google::Apis::Core::JsonObjectSupport
|
881
|
+
end
|
882
|
+
|
823
883
|
class Source
|
824
884
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
885
|
|
@@ -1043,6 +1103,26 @@ module Google
|
|
1043
1103
|
end
|
1044
1104
|
end
|
1045
1105
|
|
1106
|
+
class BuildDefinition
|
1107
|
+
# @private
|
1108
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1109
|
+
property :build_type, as: 'buildType'
|
1110
|
+
hash :external_parameters, as: 'externalParameters'
|
1111
|
+
hash :internal_parameters, as: 'internalParameters'
|
1112
|
+
collection :resolved_dependencies, as: 'resolvedDependencies', class: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor, decorator: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor::Representation
|
1113
|
+
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
class BuildMetadata
|
1118
|
+
# @private
|
1119
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1120
|
+
property :finished_on, as: 'finishedOn'
|
1121
|
+
property :invocation_id, as: 'invocationId'
|
1122
|
+
property :started_on, as: 'startedOn'
|
1123
|
+
end
|
1124
|
+
end
|
1125
|
+
|
1046
1126
|
class BuildProvenance
|
1047
1127
|
# @private
|
1048
1128
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1644,6 +1724,8 @@ module Google
|
|
1644
1724
|
|
1645
1725
|
property :continuous_analysis, as: 'continuousAnalysis'
|
1646
1726
|
property :last_analysis_time, as: 'lastAnalysisTime'
|
1727
|
+
property :sbom_status, as: 'sbomStatus', class: Google::Apis::ContaineranalysisV1beta1::SbomStatus, decorator: Google::Apis::ContaineranalysisV1beta1::SbomStatus::Representation
|
1728
|
+
|
1647
1729
|
end
|
1648
1730
|
end
|
1649
1731
|
|
@@ -1721,6 +1803,19 @@ module Google
|
|
1721
1803
|
end
|
1722
1804
|
end
|
1723
1805
|
|
1806
|
+
class ExportSbomRequest
|
1807
|
+
# @private
|
1808
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1809
|
+
end
|
1810
|
+
end
|
1811
|
+
|
1812
|
+
class ExportSbomResponse
|
1813
|
+
# @private
|
1814
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1815
|
+
property :discovery_occurrence_id, as: 'discoveryOccurrenceId'
|
1816
|
+
end
|
1817
|
+
end
|
1818
|
+
|
1724
1819
|
class Expr
|
1725
1820
|
# @private
|
1726
1821
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1854,6 +1949,8 @@ module Google
|
|
1854
1949
|
class GrafeasV1beta1BuildDetails
|
1855
1950
|
# @private
|
1856
1951
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1952
|
+
property :in_toto_slsa_provenance_v1, as: 'inTotoSlsaProvenanceV1', class: Google::Apis::ContaineranalysisV1beta1::InTotoSlsaProvenanceV1, decorator: Google::Apis::ContaineranalysisV1beta1::InTotoSlsaProvenanceV1::Representation
|
1953
|
+
|
1857
1954
|
property :provenance, as: 'provenance', class: Google::Apis::ContaineranalysisV1beta1::BuildProvenance, decorator: Google::Apis::ContaineranalysisV1beta1::BuildProvenance::Representation
|
1858
1955
|
|
1859
1956
|
property :provenance_bytes, as: 'provenanceBytes'
|
@@ -1972,6 +2069,18 @@ module Google
|
|
1972
2069
|
end
|
1973
2070
|
end
|
1974
2071
|
|
2072
|
+
class InTotoSlsaProvenanceV1
|
2073
|
+
# @private
|
2074
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2075
|
+
property :_type, as: '_type'
|
2076
|
+
property :predicate, as: 'predicate', class: Google::Apis::ContaineranalysisV1beta1::SlsaProvenanceV1, decorator: Google::Apis::ContaineranalysisV1beta1::SlsaProvenanceV1::Representation
|
2077
|
+
|
2078
|
+
property :predicate_type, as: 'predicateType'
|
2079
|
+
collection :subject, as: 'subject', class: Google::Apis::ContaineranalysisV1beta1::Subject, decorator: Google::Apis::ContaineranalysisV1beta1::Subject::Representation
|
2080
|
+
|
2081
|
+
end
|
2082
|
+
end
|
2083
|
+
|
1975
2084
|
class Installation
|
1976
2085
|
# @private
|
1977
2086
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2287,6 +2396,16 @@ module Google
|
|
2287
2396
|
end
|
2288
2397
|
end
|
2289
2398
|
|
2399
|
+
class ProvenanceBuilder
|
2400
|
+
# @private
|
2401
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2402
|
+
collection :builder_dependencies, as: 'builderDependencies', class: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor, decorator: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor::Representation
|
2403
|
+
|
2404
|
+
property :id, as: 'id'
|
2405
|
+
hash :version, as: 'version'
|
2406
|
+
end
|
2407
|
+
end
|
2408
|
+
|
2290
2409
|
class Publisher
|
2291
2410
|
# @private
|
2292
2411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2350,6 +2469,31 @@ module Google
|
|
2350
2469
|
end
|
2351
2470
|
end
|
2352
2471
|
|
2472
|
+
class ResourceDescriptor
|
2473
|
+
# @private
|
2474
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2475
|
+
hash :annotations, as: 'annotations'
|
2476
|
+
property :content, :base64 => true, as: 'content'
|
2477
|
+
hash :digest, as: 'digest'
|
2478
|
+
property :download_location, as: 'downloadLocation'
|
2479
|
+
property :media_type, as: 'mediaType'
|
2480
|
+
property :name, as: 'name'
|
2481
|
+
property :uri, as: 'uri'
|
2482
|
+
end
|
2483
|
+
end
|
2484
|
+
|
2485
|
+
class RunDetails
|
2486
|
+
# @private
|
2487
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2488
|
+
property :builder, as: 'builder', class: Google::Apis::ContaineranalysisV1beta1::ProvenanceBuilder, decorator: Google::Apis::ContaineranalysisV1beta1::ProvenanceBuilder::Representation
|
2489
|
+
|
2490
|
+
collection :byproducts, as: 'byproducts', class: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor, decorator: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor::Representation
|
2491
|
+
|
2492
|
+
property :metadata, as: 'metadata', class: Google::Apis::ContaineranalysisV1beta1::BuildMetadata, decorator: Google::Apis::ContaineranalysisV1beta1::BuildMetadata::Representation
|
2493
|
+
|
2494
|
+
end
|
2495
|
+
end
|
2496
|
+
|
2353
2497
|
class SbomReferenceNote
|
2354
2498
|
# @private
|
2355
2499
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2369,6 +2513,14 @@ module Google
|
|
2369
2513
|
end
|
2370
2514
|
end
|
2371
2515
|
|
2516
|
+
class SbomStatus
|
2517
|
+
# @private
|
2518
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2519
|
+
property :error, as: 'error'
|
2520
|
+
property :sbom_state, as: 'sbomState'
|
2521
|
+
end
|
2522
|
+
end
|
2523
|
+
|
2372
2524
|
class SbomReferenceIntotoPayload
|
2373
2525
|
# @private
|
2374
2526
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2417,6 +2569,16 @@ module Google
|
|
2417
2569
|
end
|
2418
2570
|
end
|
2419
2571
|
|
2572
|
+
class SlsaProvenanceV1
|
2573
|
+
# @private
|
2574
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2575
|
+
property :build_definition, as: 'buildDefinition', class: Google::Apis::ContaineranalysisV1beta1::BuildDefinition, decorator: Google::Apis::ContaineranalysisV1beta1::BuildDefinition::Representation
|
2576
|
+
|
2577
|
+
property :run_details, as: 'runDetails', class: Google::Apis::ContaineranalysisV1beta1::RunDetails, decorator: Google::Apis::ContaineranalysisV1beta1::RunDetails::Representation
|
2578
|
+
|
2579
|
+
end
|
2580
|
+
end
|
2581
|
+
|
2420
2582
|
class Source
|
2421
2583
|
# @private
|
2422
2584
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -814,6 +814,40 @@ module Google
|
|
814
814
|
execute_or_queue_command(command, &block)
|
815
815
|
end
|
816
816
|
|
817
|
+
# Generates an SBOM and other dependency information for the given resource.
|
818
|
+
# @param [String] name
|
819
|
+
# Required. The name of the resource in the form of `projects/[PROJECT_ID]/
|
820
|
+
# resources/[RESOURCE_URL]`.
|
821
|
+
# @param [Google::Apis::ContaineranalysisV1beta1::ExportSbomRequest] export_sbom_request_object
|
822
|
+
# @param [String] fields
|
823
|
+
# Selector specifying which fields to include in a partial response.
|
824
|
+
# @param [String] quota_user
|
825
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
826
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
827
|
+
# @param [Google::Apis::RequestOptions] options
|
828
|
+
# Request-specific options
|
829
|
+
#
|
830
|
+
# @yield [result, err] Result & error if block supplied
|
831
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ExportSbomResponse] parsed result object
|
832
|
+
# @yieldparam err [StandardError] error object if request failed
|
833
|
+
#
|
834
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ExportSbomResponse]
|
835
|
+
#
|
836
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
837
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
838
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
839
|
+
def export_resource_sbom(name, export_sbom_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
840
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:exportSBOM', options)
|
841
|
+
command.request_representation = Google::Apis::ContaineranalysisV1beta1::ExportSbomRequest::Representation
|
842
|
+
command.request_object = export_sbom_request_object
|
843
|
+
command.response_representation = Google::Apis::ContaineranalysisV1beta1::ExportSbomResponse::Representation
|
844
|
+
command.response_class = Google::Apis::ContaineranalysisV1beta1::ExportSbomResponse
|
845
|
+
command.params['name'] = name unless name.nil?
|
846
|
+
command.query['fields'] = fields unless fields.nil?
|
847
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
848
|
+
execute_or_queue_command(command, &block)
|
849
|
+
end
|
850
|
+
|
817
851
|
# Gets a summary of the packages within a given resource.
|
818
852
|
# @param [String] name
|
819
853
|
# Required. The name of the resource to get a packages summary for in the form
|
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.42.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: 2023-
|
11
|
+
date: 2023-07-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.42.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: []
|