google-apis-containeranalysis_v1beta1 0.40.0 → 0.41.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 +4 -0
- data/lib/google/apis/containeranalysis_v1beta1/classes.rb +254 -0
- data/lib/google/apis/containeranalysis_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/containeranalysis_v1beta1/representations.rb +128 -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: 1447a5f0d9fc670f89c67a93a7473d2ae18c7db04bcb2a2bd469e3890ea84b15
|
4
|
+
data.tar.gz: '0089e14e0084e253954f9c428bc2b846f2a78e10f3e1c73c8340dc9fe9c58700'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd8a787c6f20cc559a64f07a51d3f9d0436129bfec734b2d2d5212b0938dd20e1b8403714df88b1b3f8677d8e085171cb5d3d4fbdca155c7a1df1cd4f12c4071
|
7
|
+
data.tar.gz: fca17d5c39a947885d1e0cd0a5aa67292a937dfa96a590e009ab12586bc631a0c47c21c0fd560a56e53d81b869f6804640bb500bb6022c57f93d4f40c7e69375
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -3219,6 +3287,39 @@ module Google
|
|
3219
3287
|
end
|
3220
3288
|
end
|
3221
3289
|
|
3290
|
+
# The request to a call of ExportSBOM
|
3291
|
+
class ExportSbomRequest
|
3292
|
+
include Google::Apis::Core::Hashable
|
3293
|
+
|
3294
|
+
def initialize(**args)
|
3295
|
+
update!(**args)
|
3296
|
+
end
|
3297
|
+
|
3298
|
+
# Update properties of this object
|
3299
|
+
def update!(**args)
|
3300
|
+
end
|
3301
|
+
end
|
3302
|
+
|
3303
|
+
# The response from a call to ExportSBOM
|
3304
|
+
class ExportSbomResponse
|
3305
|
+
include Google::Apis::Core::Hashable
|
3306
|
+
|
3307
|
+
# The id of the discovery occurrence that can be used to track the progression
|
3308
|
+
# of the SBOM export.
|
3309
|
+
# Corresponds to the JSON property `discoveryOccurrenceId`
|
3310
|
+
# @return [String]
|
3311
|
+
attr_accessor :discovery_occurrence_id
|
3312
|
+
|
3313
|
+
def initialize(**args)
|
3314
|
+
update!(**args)
|
3315
|
+
end
|
3316
|
+
|
3317
|
+
# Update properties of this object
|
3318
|
+
def update!(**args)
|
3319
|
+
@discovery_occurrence_id = args[:discovery_occurrence_id] if args.key?(:discovery_occurrence_id)
|
3320
|
+
end
|
3321
|
+
end
|
3322
|
+
|
3222
3323
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
3223
3324
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
3224
3325
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -3707,6 +3808,13 @@ module Google
|
|
3707
3808
|
class GrafeasV1beta1BuildDetails
|
3708
3809
|
include Google::Apis::Core::Hashable
|
3709
3810
|
|
3811
|
+
# Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/
|
3812
|
+
# docs/provenance/schema/v1/provenance.proto Builder renamed to
|
3813
|
+
# ProvenanceBuilder because of Java conflicts.
|
3814
|
+
# Corresponds to the JSON property `inTotoSlsaProvenanceV1`
|
3815
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::InTotoSlsaProvenanceV1]
|
3816
|
+
attr_accessor :in_toto_slsa_provenance_v1
|
3817
|
+
|
3710
3818
|
# Provenance of a build. Contains all information needed to verify the full
|
3711
3819
|
# details about the build from source to completion.
|
3712
3820
|
# Corresponds to the JSON property `provenance`
|
@@ -3731,6 +3839,7 @@ module Google
|
|
3731
3839
|
|
3732
3840
|
# Update properties of this object
|
3733
3841
|
def update!(**args)
|
3842
|
+
@in_toto_slsa_provenance_v1 = args[:in_toto_slsa_provenance_v1] if args.key?(:in_toto_slsa_provenance_v1)
|
3734
3843
|
@provenance = args[:provenance] if args.key?(:provenance)
|
3735
3844
|
@provenance_bytes = args[:provenance_bytes] if args.key?(:provenance_bytes)
|
3736
3845
|
end
|
@@ -4100,6 +4209,33 @@ module Google
|
|
4100
4209
|
end
|
4101
4210
|
end
|
4102
4211
|
|
4212
|
+
# Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/
|
4213
|
+
# docs/provenance/schema/v1/provenance.proto Builder renamed to
|
4214
|
+
# ProvenanceBuilder because of Java conflicts.
|
4215
|
+
class InTotoSlsaProvenanceV1
|
4216
|
+
include Google::Apis::Core::Hashable
|
4217
|
+
|
4218
|
+
#
|
4219
|
+
# Corresponds to the JSON property `buildDefinition`
|
4220
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::BuildDefinition]
|
4221
|
+
attr_accessor :build_definition
|
4222
|
+
|
4223
|
+
#
|
4224
|
+
# Corresponds to the JSON property `runDetails`
|
4225
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::RunDetails]
|
4226
|
+
attr_accessor :run_details
|
4227
|
+
|
4228
|
+
def initialize(**args)
|
4229
|
+
update!(**args)
|
4230
|
+
end
|
4231
|
+
|
4232
|
+
# Update properties of this object
|
4233
|
+
def update!(**args)
|
4234
|
+
@build_definition = args[:build_definition] if args.key?(:build_definition)
|
4235
|
+
@run_details = args[:run_details] if args.key?(:run_details)
|
4236
|
+
end
|
4237
|
+
end
|
4238
|
+
|
4103
4239
|
# This represents how a particular software package may be installed on a system.
|
4104
4240
|
class Installation
|
4105
4241
|
include Google::Apis::Core::Hashable
|
@@ -5352,6 +5488,37 @@ module Google
|
|
5352
5488
|
end
|
5353
5489
|
end
|
5354
5490
|
|
5491
|
+
#
|
5492
|
+
class ProvenanceBuilder
|
5493
|
+
include Google::Apis::Core::Hashable
|
5494
|
+
|
5495
|
+
#
|
5496
|
+
# Corresponds to the JSON property `builderDependencies`
|
5497
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor>]
|
5498
|
+
attr_accessor :builder_dependencies
|
5499
|
+
|
5500
|
+
#
|
5501
|
+
# Corresponds to the JSON property `id`
|
5502
|
+
# @return [String]
|
5503
|
+
attr_accessor :id
|
5504
|
+
|
5505
|
+
#
|
5506
|
+
# Corresponds to the JSON property `version`
|
5507
|
+
# @return [Hash<String,String>]
|
5508
|
+
attr_accessor :version
|
5509
|
+
|
5510
|
+
def initialize(**args)
|
5511
|
+
update!(**args)
|
5512
|
+
end
|
5513
|
+
|
5514
|
+
# Update properties of this object
|
5515
|
+
def update!(**args)
|
5516
|
+
@builder_dependencies = args[:builder_dependencies] if args.key?(:builder_dependencies)
|
5517
|
+
@id = args[:id] if args.key?(:id)
|
5518
|
+
@version = args[:version] if args.key?(:version)
|
5519
|
+
end
|
5520
|
+
end
|
5521
|
+
|
5355
5522
|
# Publisher contains information about the publisher of this Note.
|
5356
5523
|
class Publisher
|
5357
5524
|
include Google::Apis::Core::Hashable
|
@@ -5566,6 +5733,93 @@ module Google
|
|
5566
5733
|
end
|
5567
5734
|
end
|
5568
5735
|
|
5736
|
+
#
|
5737
|
+
class ResourceDescriptor
|
5738
|
+
include Google::Apis::Core::Hashable
|
5739
|
+
|
5740
|
+
#
|
5741
|
+
# Corresponds to the JSON property `annotations`
|
5742
|
+
# @return [Hash<String,Object>]
|
5743
|
+
attr_accessor :annotations
|
5744
|
+
|
5745
|
+
#
|
5746
|
+
# Corresponds to the JSON property `content`
|
5747
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
5748
|
+
# @return [String]
|
5749
|
+
attr_accessor :content
|
5750
|
+
|
5751
|
+
#
|
5752
|
+
# Corresponds to the JSON property `digest`
|
5753
|
+
# @return [Hash<String,String>]
|
5754
|
+
attr_accessor :digest
|
5755
|
+
|
5756
|
+
#
|
5757
|
+
# Corresponds to the JSON property `downloadLocation`
|
5758
|
+
# @return [String]
|
5759
|
+
attr_accessor :download_location
|
5760
|
+
|
5761
|
+
#
|
5762
|
+
# Corresponds to the JSON property `mediaType`
|
5763
|
+
# @return [String]
|
5764
|
+
attr_accessor :media_type
|
5765
|
+
|
5766
|
+
#
|
5767
|
+
# Corresponds to the JSON property `name`
|
5768
|
+
# @return [String]
|
5769
|
+
attr_accessor :name
|
5770
|
+
|
5771
|
+
#
|
5772
|
+
# Corresponds to the JSON property `uri`
|
5773
|
+
# @return [String]
|
5774
|
+
attr_accessor :uri
|
5775
|
+
|
5776
|
+
def initialize(**args)
|
5777
|
+
update!(**args)
|
5778
|
+
end
|
5779
|
+
|
5780
|
+
# Update properties of this object
|
5781
|
+
def update!(**args)
|
5782
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
5783
|
+
@content = args[:content] if args.key?(:content)
|
5784
|
+
@digest = args[:digest] if args.key?(:digest)
|
5785
|
+
@download_location = args[:download_location] if args.key?(:download_location)
|
5786
|
+
@media_type = args[:media_type] if args.key?(:media_type)
|
5787
|
+
@name = args[:name] if args.key?(:name)
|
5788
|
+
@uri = args[:uri] if args.key?(:uri)
|
5789
|
+
end
|
5790
|
+
end
|
5791
|
+
|
5792
|
+
#
|
5793
|
+
class RunDetails
|
5794
|
+
include Google::Apis::Core::Hashable
|
5795
|
+
|
5796
|
+
#
|
5797
|
+
# Corresponds to the JSON property `builder`
|
5798
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::ProvenanceBuilder]
|
5799
|
+
attr_accessor :builder
|
5800
|
+
|
5801
|
+
#
|
5802
|
+
# Corresponds to the JSON property `byproducts`
|
5803
|
+
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor>]
|
5804
|
+
attr_accessor :byproducts
|
5805
|
+
|
5806
|
+
#
|
5807
|
+
# Corresponds to the JSON property `metadata`
|
5808
|
+
# @return [Google::Apis::ContaineranalysisV1beta1::BuildMetadata]
|
5809
|
+
attr_accessor :metadata
|
5810
|
+
|
5811
|
+
def initialize(**args)
|
5812
|
+
update!(**args)
|
5813
|
+
end
|
5814
|
+
|
5815
|
+
# Update properties of this object
|
5816
|
+
def update!(**args)
|
5817
|
+
@builder = args[:builder] if args.key?(:builder)
|
5818
|
+
@byproducts = args[:byproducts] if args.key?(:byproducts)
|
5819
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
5820
|
+
end
|
5821
|
+
end
|
5822
|
+
|
5569
5823
|
# The note representing an SBOM reference.
|
5570
5824
|
class SbomReferenceNote
|
5571
5825
|
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.41.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 = "20230623"
|
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
|
|
@@ -1043,6 +1091,26 @@ module Google
|
|
1043
1091
|
end
|
1044
1092
|
end
|
1045
1093
|
|
1094
|
+
class BuildDefinition
|
1095
|
+
# @private
|
1096
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1097
|
+
property :build_type, as: 'buildType'
|
1098
|
+
hash :external_parameters, as: 'externalParameters'
|
1099
|
+
hash :internal_parameters, as: 'internalParameters'
|
1100
|
+
collection :resolved_dependencies, as: 'resolvedDependencies', class: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor, decorator: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor::Representation
|
1101
|
+
|
1102
|
+
end
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
class BuildMetadata
|
1106
|
+
# @private
|
1107
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1108
|
+
property :finished_on, as: 'finishedOn'
|
1109
|
+
property :invocation_id, as: 'invocationId'
|
1110
|
+
property :started_on, as: 'startedOn'
|
1111
|
+
end
|
1112
|
+
end
|
1113
|
+
|
1046
1114
|
class BuildProvenance
|
1047
1115
|
# @private
|
1048
1116
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1721,6 +1789,19 @@ module Google
|
|
1721
1789
|
end
|
1722
1790
|
end
|
1723
1791
|
|
1792
|
+
class ExportSbomRequest
|
1793
|
+
# @private
|
1794
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1795
|
+
end
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
class ExportSbomResponse
|
1799
|
+
# @private
|
1800
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1801
|
+
property :discovery_occurrence_id, as: 'discoveryOccurrenceId'
|
1802
|
+
end
|
1803
|
+
end
|
1804
|
+
|
1724
1805
|
class Expr
|
1725
1806
|
# @private
|
1726
1807
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1854,6 +1935,8 @@ module Google
|
|
1854
1935
|
class GrafeasV1beta1BuildDetails
|
1855
1936
|
# @private
|
1856
1937
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1938
|
+
property :in_toto_slsa_provenance_v1, as: 'inTotoSlsaProvenanceV1', class: Google::Apis::ContaineranalysisV1beta1::InTotoSlsaProvenanceV1, decorator: Google::Apis::ContaineranalysisV1beta1::InTotoSlsaProvenanceV1::Representation
|
1939
|
+
|
1857
1940
|
property :provenance, as: 'provenance', class: Google::Apis::ContaineranalysisV1beta1::BuildProvenance, decorator: Google::Apis::ContaineranalysisV1beta1::BuildProvenance::Representation
|
1858
1941
|
|
1859
1942
|
property :provenance_bytes, as: 'provenanceBytes'
|
@@ -1972,6 +2055,16 @@ module Google
|
|
1972
2055
|
end
|
1973
2056
|
end
|
1974
2057
|
|
2058
|
+
class InTotoSlsaProvenanceV1
|
2059
|
+
# @private
|
2060
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2061
|
+
property :build_definition, as: 'buildDefinition', class: Google::Apis::ContaineranalysisV1beta1::BuildDefinition, decorator: Google::Apis::ContaineranalysisV1beta1::BuildDefinition::Representation
|
2062
|
+
|
2063
|
+
property :run_details, as: 'runDetails', class: Google::Apis::ContaineranalysisV1beta1::RunDetails, decorator: Google::Apis::ContaineranalysisV1beta1::RunDetails::Representation
|
2064
|
+
|
2065
|
+
end
|
2066
|
+
end
|
2067
|
+
|
1975
2068
|
class Installation
|
1976
2069
|
# @private
|
1977
2070
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2287,6 +2380,16 @@ module Google
|
|
2287
2380
|
end
|
2288
2381
|
end
|
2289
2382
|
|
2383
|
+
class ProvenanceBuilder
|
2384
|
+
# @private
|
2385
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2386
|
+
collection :builder_dependencies, as: 'builderDependencies', class: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor, decorator: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor::Representation
|
2387
|
+
|
2388
|
+
property :id, as: 'id'
|
2389
|
+
hash :version, as: 'version'
|
2390
|
+
end
|
2391
|
+
end
|
2392
|
+
|
2290
2393
|
class Publisher
|
2291
2394
|
# @private
|
2292
2395
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2350,6 +2453,31 @@ module Google
|
|
2350
2453
|
end
|
2351
2454
|
end
|
2352
2455
|
|
2456
|
+
class ResourceDescriptor
|
2457
|
+
# @private
|
2458
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2459
|
+
hash :annotations, as: 'annotations'
|
2460
|
+
property :content, :base64 => true, as: 'content'
|
2461
|
+
hash :digest, as: 'digest'
|
2462
|
+
property :download_location, as: 'downloadLocation'
|
2463
|
+
property :media_type, as: 'mediaType'
|
2464
|
+
property :name, as: 'name'
|
2465
|
+
property :uri, as: 'uri'
|
2466
|
+
end
|
2467
|
+
end
|
2468
|
+
|
2469
|
+
class RunDetails
|
2470
|
+
# @private
|
2471
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2472
|
+
property :builder, as: 'builder', class: Google::Apis::ContaineranalysisV1beta1::ProvenanceBuilder, decorator: Google::Apis::ContaineranalysisV1beta1::ProvenanceBuilder::Representation
|
2473
|
+
|
2474
|
+
collection :byproducts, as: 'byproducts', class: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor, decorator: Google::Apis::ContaineranalysisV1beta1::ResourceDescriptor::Representation
|
2475
|
+
|
2476
|
+
property :metadata, as: 'metadata', class: Google::Apis::ContaineranalysisV1beta1::BuildMetadata, decorator: Google::Apis::ContaineranalysisV1beta1::BuildMetadata::Representation
|
2477
|
+
|
2478
|
+
end
|
2479
|
+
end
|
2480
|
+
|
2353
2481
|
class SbomReferenceNote
|
2354
2482
|
# @private
|
2355
2483
|
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.41.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-02 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.41.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: []
|