google-apis-containeranalysis_v1alpha1 0.6.0 → 0.10.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: c54fafe6cf9bad8db9e5c4a515b632ef6722cca244fc631dd89a4b9b74a25705
4
- data.tar.gz: 2e9eabe72d8326cc5a2b66ce96ae23710efb85e7810519e33d7ec63adc29e69f
3
+ metadata.gz: 9d986addccc272f154ea16ad8e8da0e65a766413f3ff016e929c7543dfac3f65
4
+ data.tar.gz: b3e951bcfa7fd8904793ced24f97b012980541fdd4ec5e5f7063d74c5c389129
5
5
  SHA512:
6
- metadata.gz: 42476d46852363d310cfa963ea889665d1ed348e908fa2b7ce8f447c7ba18e6d22254a0f4901566b0f6c5b03821767aa2b091115240a44dfc98498d088b8aae7
7
- data.tar.gz: 38a44342825cf3168f2bd020ba79e3b9d427e1423401f4398c4146c6ba9febab79c07cef0be1ced0215fdda21754b0c302d3fc583e96a54fdfd35466f94ff31f
6
+ metadata.gz: c601d1ee3c3b0a888e8e238be01bb7d8c16f765921f571ffc353b6a6f63ced18da4f9e158f5ed18a17bca477c64ad7a56199c7f7471291ee13749820a54f313f
7
+ data.tar.gz: b554785aef8723e4d1238da962259fcc1baf683dfd8491641d726b491b9a82920162a42f3573113516fd9d6df14bd3f19e023982e05e0052cb5bb2f4b57533b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-containeranalysis_v1alpha1
2
2
 
3
+ ### v0.10.0 (2021-07-29)
4
+
5
+ * Regenerated from discovery document revision 20210723
6
+
7
+ ### v0.9.0 (2021-06-29)
8
+
9
+ * Regenerated using generator version 0.4.0
10
+
11
+ ### v0.8.0 (2021-06-24)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.7.0 (2021-06-10)
16
+
17
+ * Regenerated from discovery document revision 20210604
18
+ * Regenerated using generator version 0.3.0
19
+
3
20
  ### v0.6.0 (2021-05-19)
4
21
 
5
22
  * Unspecified changes
@@ -458,6 +458,31 @@ module Google
458
458
  end
459
459
  end
460
460
 
461
+ # A compliance check that is a CIS benchmark.
462
+ class CisBenchmark
463
+ include Google::Apis::Core::Hashable
464
+
465
+ # The profile level of this CIS benchmark check.
466
+ # Corresponds to the JSON property `profileLevel`
467
+ # @return [Fixnum]
468
+ attr_accessor :profile_level
469
+
470
+ # The severity level of this CIS benchmark check.
471
+ # Corresponds to the JSON property `severity`
472
+ # @return [String]
473
+ attr_accessor :severity
474
+
475
+ def initialize(**args)
476
+ update!(**args)
477
+ end
478
+
479
+ # Update properties of this object
480
+ def update!(**args)
481
+ @profile_level = args[:profile_level] if args.key?(:profile_level)
482
+ @severity = args[:severity] if args.key?(:severity)
483
+ end
484
+ end
485
+
461
486
  # Command describes a step performed as part of the build pipeline.
462
487
  class Command
463
488
  include Google::Apis::Core::Hashable
@@ -510,6 +535,116 @@ module Google
510
535
  end
511
536
  end
512
537
 
538
+ # ComplianceNote encapsulates all information about a specific compliance check.
539
+ class ComplianceNote
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # A compliance check that is a CIS benchmark.
543
+ # Corresponds to the JSON property `cisBenchmark`
544
+ # @return [Google::Apis::ContaineranalysisV1alpha1::CisBenchmark]
545
+ attr_accessor :cis_benchmark
546
+
547
+ # A description about this compliance check.
548
+ # Corresponds to the JSON property `description`
549
+ # @return [String]
550
+ attr_accessor :description
551
+
552
+ # A rationale for the existence of this compliance check.
553
+ # Corresponds to the JSON property `rationale`
554
+ # @return [String]
555
+ attr_accessor :rationale
556
+
557
+ # A description of remediation steps if the compliance check fails.
558
+ # Corresponds to the JSON property `remediation`
559
+ # @return [String]
560
+ attr_accessor :remediation
561
+
562
+ # Serialized scan instructions with a predefined format.
563
+ # Corresponds to the JSON property `scanInstructions`
564
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
565
+ # @return [String]
566
+ attr_accessor :scan_instructions
567
+
568
+ # The title that identifies this compliance check.
569
+ # Corresponds to the JSON property `title`
570
+ # @return [String]
571
+ attr_accessor :title
572
+
573
+ # The OS and config versions the benchmark applies to.
574
+ # Corresponds to the JSON property `version`
575
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::ComplianceVersion>]
576
+ attr_accessor :version
577
+
578
+ def initialize(**args)
579
+ update!(**args)
580
+ end
581
+
582
+ # Update properties of this object
583
+ def update!(**args)
584
+ @cis_benchmark = args[:cis_benchmark] if args.key?(:cis_benchmark)
585
+ @description = args[:description] if args.key?(:description)
586
+ @rationale = args[:rationale] if args.key?(:rationale)
587
+ @remediation = args[:remediation] if args.key?(:remediation)
588
+ @scan_instructions = args[:scan_instructions] if args.key?(:scan_instructions)
589
+ @title = args[:title] if args.key?(:title)
590
+ @version = args[:version] if args.key?(:version)
591
+ end
592
+ end
593
+
594
+ # An indication that the compliance checks in the associated ComplianceNote were
595
+ # not satisfied for particular resources or a specified reason.
596
+ class ComplianceOccurrence
597
+ include Google::Apis::Core::Hashable
598
+
599
+ # The reason for non compliance of these files.
600
+ # Corresponds to the JSON property `nonComplianceReason`
601
+ # @return [String]
602
+ attr_accessor :non_compliance_reason
603
+
604
+ # A list of files which are violating compliance checks.
605
+ # Corresponds to the JSON property `nonCompliantFiles`
606
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile>]
607
+ attr_accessor :non_compliant_files
608
+
609
+ def initialize(**args)
610
+ update!(**args)
611
+ end
612
+
613
+ # Update properties of this object
614
+ def update!(**args)
615
+ @non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
616
+ @non_compliant_files = args[:non_compliant_files] if args.key?(:non_compliant_files)
617
+ end
618
+ end
619
+
620
+ # Describes the CIS benchmark version that is applicable to a given OS and os
621
+ # version.
622
+ class ComplianceVersion
623
+ include Google::Apis::Core::Hashable
624
+
625
+ # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is
626
+ # applicable to.
627
+ # Corresponds to the JSON property `cpeUri`
628
+ # @return [String]
629
+ attr_accessor :cpe_uri
630
+
631
+ # The version of the benchmark. This is set to the version of the OS-specific
632
+ # CIS document the benchmark is defined in.
633
+ # Corresponds to the JSON property `version`
634
+ # @return [String]
635
+ attr_accessor :version
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
644
+ @version = args[:version] if args.key?(:version)
645
+ end
646
+ end
647
+
513
648
  # Request for creating an operation
514
649
  class CreateOperationRequest
515
650
  include Google::Apis::Core::Hashable
@@ -872,6 +1007,112 @@ module Google
872
1007
  end
873
1008
  end
874
1009
 
1010
+ # DocumentNote represents an SPDX Document Creation Infromation section: https://
1011
+ # spdx.github.io/spdx-spec/2-document-creation-information/
1012
+ class DocumentNote
1013
+ include Google::Apis::Core::Hashable
1014
+
1015
+ # Compliance with the SPDX specification includes populating the SPDX fields
1016
+ # therein with data related to such fields ("SPDX-Metadata")
1017
+ # Corresponds to the JSON property `dataLicence`
1018
+ # @return [String]
1019
+ attr_accessor :data_licence
1020
+
1021
+ # Provide a reference number that can be used to understand how to parse and
1022
+ # interpret the rest of the file
1023
+ # Corresponds to the JSON property `spdxVersion`
1024
+ # @return [String]
1025
+ attr_accessor :spdx_version
1026
+
1027
+ def initialize(**args)
1028
+ update!(**args)
1029
+ end
1030
+
1031
+ # Update properties of this object
1032
+ def update!(**args)
1033
+ @data_licence = args[:data_licence] if args.key?(:data_licence)
1034
+ @spdx_version = args[:spdx_version] if args.key?(:spdx_version)
1035
+ end
1036
+ end
1037
+
1038
+ # DocumentOccurrence represents an SPDX Document Creation Information section:
1039
+ # https://spdx.github.io/spdx-spec/2-document-creation-information/
1040
+ class DocumentOccurrence
1041
+ include Google::Apis::Core::Hashable
1042
+
1043
+ # Identify when the SPDX file was originally created. The date is to be
1044
+ # specified according to combined date and time in UTC format as specified in
1045
+ # ISO 8601 standard
1046
+ # Corresponds to the JSON property `createTime`
1047
+ # @return [String]
1048
+ attr_accessor :create_time
1049
+
1050
+ # A field for creators of the SPDX file to provide general comments about the
1051
+ # creation of the SPDX file or any other relevant comment not included in the
1052
+ # other fields
1053
+ # Corresponds to the JSON property `creatorComment`
1054
+ # @return [String]
1055
+ attr_accessor :creator_comment
1056
+
1057
+ # Identify who (or what, in the case of a tool) created the SPDX file. If the
1058
+ # SPDX file was created by an individual, indicate the person's name
1059
+ # Corresponds to the JSON property `creators`
1060
+ # @return [Array<String>]
1061
+ attr_accessor :creators
1062
+
1063
+ # A field for creators of the SPDX file content to provide comments to the
1064
+ # consumers of the SPDX document
1065
+ # Corresponds to the JSON property `documentComment`
1066
+ # @return [String]
1067
+ attr_accessor :document_comment
1068
+
1069
+ # Identify any external SPDX documents referenced within this SPDX document
1070
+ # Corresponds to the JSON property `externalDocumentRefs`
1071
+ # @return [Array<String>]
1072
+ attr_accessor :external_document_refs
1073
+
1074
+ # Identify the current SPDX document which may be referenced in relationships by
1075
+ # other files, packages internally and documents externally
1076
+ # Corresponds to the JSON property `id`
1077
+ # @return [String]
1078
+ attr_accessor :id
1079
+
1080
+ # A field for creators of the SPDX file to provide the version of the SPDX
1081
+ # License List used when the SPDX file was created
1082
+ # Corresponds to the JSON property `licenseListVersion`
1083
+ # @return [String]
1084
+ attr_accessor :license_list_version
1085
+
1086
+ # Provide an SPDX document specific namespace as a unique absolute Uniform
1087
+ # Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘
1088
+ # #’ delimiter
1089
+ # Corresponds to the JSON property `namespace`
1090
+ # @return [String]
1091
+ attr_accessor :namespace
1092
+
1093
+ # Identify name of this document as designated by creator
1094
+ # Corresponds to the JSON property `title`
1095
+ # @return [String]
1096
+ attr_accessor :title
1097
+
1098
+ def initialize(**args)
1099
+ update!(**args)
1100
+ end
1101
+
1102
+ # Update properties of this object
1103
+ def update!(**args)
1104
+ @create_time = args[:create_time] if args.key?(:create_time)
1105
+ @creator_comment = args[:creator_comment] if args.key?(:creator_comment)
1106
+ @creators = args[:creators] if args.key?(:creators)
1107
+ @document_comment = args[:document_comment] if args.key?(:document_comment)
1108
+ @external_document_refs = args[:external_document_refs] if args.key?(:external_document_refs)
1109
+ @id = args[:id] if args.key?(:id)
1110
+ @license_list_version = args[:license_list_version] if args.key?(:license_list_version)
1111
+ @namespace = args[:namespace] if args.key?(:namespace)
1112
+ @title = args[:title] if args.key?(:title)
1113
+ end
1114
+ end
1115
+
875
1116
  # A generic empty message that you can re-use to avoid defining duplicated empty
876
1117
  # messages in your APIs. A typical example is to use it as the request or the
877
1118
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -943,6 +1184,48 @@ module Google
943
1184
  end
944
1185
  end
945
1186
 
1187
+ # An External Reference allows a Package to reference an external source of
1188
+ # additional information, metadata, enumerations, asset identifiers, or
1189
+ # downloadable content believed to be relevant to the Package
1190
+ class ExternalRef
1191
+ include Google::Apis::Core::Hashable
1192
+
1193
+ # An External Reference allows a Package to reference an external source of
1194
+ # additional information, metadata, enumerations, asset identifiers, or
1195
+ # downloadable content believed to be relevant to the Package
1196
+ # Corresponds to the JSON property `category`
1197
+ # @return [String]
1198
+ attr_accessor :category
1199
+
1200
+ # Human-readable information about the purpose and target of the reference
1201
+ # Corresponds to the JSON property `comment`
1202
+ # @return [String]
1203
+ attr_accessor :comment
1204
+
1205
+ # The unique string with no spaces necessary to access the package-specific
1206
+ # information, metadata, or content within the target location
1207
+ # Corresponds to the JSON property `locator`
1208
+ # @return [String]
1209
+ attr_accessor :locator
1210
+
1211
+ # Type of category (e.g. 'npm' for the PACKAGE_MANAGER category)
1212
+ # Corresponds to the JSON property `type`
1213
+ # @return [String]
1214
+ attr_accessor :type
1215
+
1216
+ def initialize(**args)
1217
+ update!(**args)
1218
+ end
1219
+
1220
+ # Update properties of this object
1221
+ def update!(**args)
1222
+ @category = args[:category] if args.key?(:category)
1223
+ @comment = args[:comment] if args.key?(:comment)
1224
+ @locator = args[:locator] if args.key?(:locator)
1225
+ @type = args[:type] if args.key?(:type)
1226
+ end
1227
+ end
1228
+
946
1229
  # Container message for hashes of byte content of files, used in Source messages
947
1230
  # to verify integrity of source input to the build.
948
1231
  class FileHashes
@@ -963,6 +1246,117 @@ module Google
963
1246
  end
964
1247
  end
965
1248
 
1249
+ # FileNote represents an SPDX File Information section: https://spdx.github.io/
1250
+ # spdx-spec/4-file-information/
1251
+ class FileNote
1252
+ include Google::Apis::Core::Hashable
1253
+
1254
+ # Provide a unique identifier to match analysis information on each specific
1255
+ # file in a package
1256
+ # Corresponds to the JSON property `checksum`
1257
+ # @return [Array<String>]
1258
+ attr_accessor :checksum
1259
+
1260
+ # This field provides information about the type of file identified
1261
+ # Corresponds to the JSON property `fileType`
1262
+ # @return [String]
1263
+ attr_accessor :file_type
1264
+
1265
+ # Identify the full path and filename that corresponds to the file information
1266
+ # in this section
1267
+ # Corresponds to the JSON property `title`
1268
+ # @return [String]
1269
+ attr_accessor :title
1270
+
1271
+ def initialize(**args)
1272
+ update!(**args)
1273
+ end
1274
+
1275
+ # Update properties of this object
1276
+ def update!(**args)
1277
+ @checksum = args[:checksum] if args.key?(:checksum)
1278
+ @file_type = args[:file_type] if args.key?(:file_type)
1279
+ @title = args[:title] if args.key?(:title)
1280
+ end
1281
+ end
1282
+
1283
+ # FileOccurrence represents an SPDX File Information section: https://spdx.
1284
+ # github.io/spdx-spec/4-file-information/
1285
+ class FileOccurrence
1286
+ include Google::Apis::Core::Hashable
1287
+
1288
+ # This field provides a place for the SPDX data creator to record, at the file
1289
+ # level, acknowledgements that may be needed to be communicated in some contexts
1290
+ # Corresponds to the JSON property `attributions`
1291
+ # @return [Array<String>]
1292
+ attr_accessor :attributions
1293
+
1294
+ # This field provides a place for the SPDX file creator to record any general
1295
+ # comments about the file
1296
+ # Corresponds to the JSON property `comment`
1297
+ # @return [String]
1298
+ attr_accessor :comment
1299
+
1300
+ # This field provides a place for the SPDX file creator to record file
1301
+ # contributors
1302
+ # Corresponds to the JSON property `contributors`
1303
+ # @return [Array<String>]
1304
+ attr_accessor :contributors
1305
+
1306
+ # Identify the copyright holder of the file, as well as any dates present
1307
+ # Corresponds to the JSON property `copyright`
1308
+ # @return [String]
1309
+ attr_accessor :copyright
1310
+
1311
+ # This field contains the license information actually found in the file, if any
1312
+ # Corresponds to the JSON property `filesLicenseInfo`
1313
+ # @return [Array<String>]
1314
+ attr_accessor :files_license_info
1315
+
1316
+ # Uniquely identify any element in an SPDX document which may be referenced by
1317
+ # other elements
1318
+ # Corresponds to the JSON property `id`
1319
+ # @return [String]
1320
+ attr_accessor :id
1321
+
1322
+ # This field provides a place for the SPDX file creator to record any relevant
1323
+ # background references or analysis that went in to arriving at the Concluded
1324
+ # License for a file
1325
+ # Corresponds to the JSON property `licenseComments`
1326
+ # @return [String]
1327
+ attr_accessor :license_comments
1328
+
1329
+ # This field contains the license the SPDX file creator has concluded as
1330
+ # governing the file or alternative values if the governing license cannot be
1331
+ # determined
1332
+ # Corresponds to the JSON property `licenseConcluded`
1333
+ # @return [String]
1334
+ attr_accessor :license_concluded
1335
+
1336
+ # This field provides a place for the SPDX file creator to record license
1337
+ # notices or other such related notices found in the file
1338
+ # Corresponds to the JSON property `notice`
1339
+ # @return [String]
1340
+ attr_accessor :notice
1341
+
1342
+ def initialize(**args)
1343
+ update!(**args)
1344
+ end
1345
+
1346
+ # Update properties of this object
1347
+ def update!(**args)
1348
+ @attributions = args[:attributions] if args.key?(:attributions)
1349
+ @comment = args[:comment] if args.key?(:comment)
1350
+ @contributors = args[:contributors] if args.key?(:contributors)
1351
+ @copyright = args[:copyright] if args.key?(:copyright)
1352
+ @files_license_info = args[:files_license_info] if args.key?(:files_license_info)
1353
+ @id = args[:id] if args.key?(:id)
1354
+ @license_comments = args[:license_comments] if args.key?(:license_comments)
1355
+ @license_concluded = args[:license_concluded] if args.key?(:license_concluded)
1356
+ @notice = args[:notice] if args.key?(:notice)
1357
+ end
1358
+ end
1359
+
966
1360
  # A set of properties that uniquely identify a given Docker image.
967
1361
  class Fingerprint
968
1362
  include Google::Apis::Core::Hashable
@@ -1515,6 +1909,39 @@ module Google
1515
1909
  end
1516
1910
  end
1517
1911
 
1912
+ # Details about files that caused a compliance check to fail.
1913
+ class NonCompliantFile
1914
+ include Google::Apis::Core::Hashable
1915
+
1916
+ # Command to display the non-compliant files.
1917
+ # Corresponds to the JSON property `displayCommand`
1918
+ # @return [String]
1919
+ attr_accessor :display_command
1920
+
1921
+ # display_command is a single command that can be used to display a list of non
1922
+ # compliant files. When there is no such command, we can also iterate a list of
1923
+ # non compliant file using 'path'. Empty if `display_command` is set.
1924
+ # Corresponds to the JSON property `path`
1925
+ # @return [String]
1926
+ attr_accessor :path
1927
+
1928
+ # Explains why a file is non compliant for a CIS check.
1929
+ # Corresponds to the JSON property `reason`
1930
+ # @return [String]
1931
+ attr_accessor :reason
1932
+
1933
+ def initialize(**args)
1934
+ update!(**args)
1935
+ end
1936
+
1937
+ # Update properties of this object
1938
+ def update!(**args)
1939
+ @display_command = args[:display_command] if args.key?(:display_command)
1940
+ @path = args[:path] if args.key?(:path)
1941
+ @reason = args[:reason] if args.key?(:reason)
1942
+ end
1943
+ end
1944
+
1518
1945
  # Provides a detailed description of a `Note`.
1519
1946
  class Note
1520
1947
  include Google::Apis::Core::Hashable
@@ -1544,6 +1971,11 @@ module Google
1544
1971
  # @return [Google::Apis::ContaineranalysisV1alpha1::BuildType]
1545
1972
  attr_accessor :build_type
1546
1973
 
1974
+ # ComplianceNote encapsulates all information about a specific compliance check.
1975
+ # Corresponds to the JSON property `compliance`
1976
+ # @return [Google::Apis::ContaineranalysisV1alpha1::ComplianceNote]
1977
+ attr_accessor :compliance
1978
+
1547
1979
  # Output only. The time this note was created. This field can be used as a
1548
1980
  # filter in list requests.
1549
1981
  # Corresponds to the JSON property `createTime`
@@ -1597,11 +2029,35 @@ module Google
1597
2029
  # @return [Array<Google::Apis::ContaineranalysisV1alpha1::RelatedUrl>]
1598
2030
  attr_accessor :related_url
1599
2031
 
2032
+ # DocumentNote represents an SPDX Document Creation Infromation section: https://
2033
+ # spdx.github.io/spdx-spec/2-document-creation-information/
2034
+ # Corresponds to the JSON property `sbom`
2035
+ # @return [Google::Apis::ContaineranalysisV1alpha1::DocumentNote]
2036
+ attr_accessor :sbom
2037
+
1600
2038
  # A one sentence description of this `Note`.
1601
2039
  # Corresponds to the JSON property `shortDescription`
1602
2040
  # @return [String]
1603
2041
  attr_accessor :short_description
1604
2042
 
2043
+ # FileNote represents an SPDX File Information section: https://spdx.github.io/
2044
+ # spdx-spec/4-file-information/
2045
+ # Corresponds to the JSON property `spdxFile`
2046
+ # @return [Google::Apis::ContaineranalysisV1alpha1::FileNote]
2047
+ attr_accessor :spdx_file
2048
+
2049
+ # PackageNote represents an SPDX Package Information section: https://spdx.
2050
+ # github.io/spdx-spec/3-package-information/
2051
+ # Corresponds to the JSON property `spdxPackage`
2052
+ # @return [Google::Apis::ContaineranalysisV1alpha1::PackageNote]
2053
+ attr_accessor :spdx_package
2054
+
2055
+ # RelationshipNote represents an SPDX Relationship section: https://spdx.github.
2056
+ # io/spdx-spec/7-relationships-between-SPDX-elements/
2057
+ # Corresponds to the JSON property `spdxRelationship`
2058
+ # @return [Google::Apis::ContaineranalysisV1alpha1::RelationshipNote]
2059
+ attr_accessor :spdx_relationship
2060
+
1605
2061
  # Output only. The time this note was last updated. This field can be used as a
1606
2062
  # filter in list requests.
1607
2063
  # Corresponds to the JSON property `updateTime`
@@ -1629,6 +2085,7 @@ module Google
1629
2085
  @attestation_authority = args[:attestation_authority] if args.key?(:attestation_authority)
1630
2086
  @base_image = args[:base_image] if args.key?(:base_image)
1631
2087
  @build_type = args[:build_type] if args.key?(:build_type)
2088
+ @compliance = args[:compliance] if args.key?(:compliance)
1632
2089
  @create_time = args[:create_time] if args.key?(:create_time)
1633
2090
  @deployable = args[:deployable] if args.key?(:deployable)
1634
2091
  @discovery = args[:discovery] if args.key?(:discovery)
@@ -1638,7 +2095,11 @@ module Google
1638
2095
  @name = args[:name] if args.key?(:name)
1639
2096
  @package = args[:package] if args.key?(:package)
1640
2097
  @related_url = args[:related_url] if args.key?(:related_url)
2098
+ @sbom = args[:sbom] if args.key?(:sbom)
1641
2099
  @short_description = args[:short_description] if args.key?(:short_description)
2100
+ @spdx_file = args[:spdx_file] if args.key?(:spdx_file)
2101
+ @spdx_package = args[:spdx_package] if args.key?(:spdx_package)
2102
+ @spdx_relationship = args[:spdx_relationship] if args.key?(:spdx_relationship)
1642
2103
  @update_time = args[:update_time] if args.key?(:update_time)
1643
2104
  @upgrade = args[:upgrade] if args.key?(:upgrade)
1644
2105
  @vulnerability_type = args[:vulnerability_type] if args.key?(:vulnerability_type)
@@ -1666,6 +2127,12 @@ module Google
1666
2127
  # @return [Google::Apis::ContaineranalysisV1alpha1::BuildDetails]
1667
2128
  attr_accessor :build_details
1668
2129
 
2130
+ # An indication that the compliance checks in the associated ComplianceNote were
2131
+ # not satisfied for particular resources or a specified reason.
2132
+ # Corresponds to the JSON property `compliance`
2133
+ # @return [Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence]
2134
+ attr_accessor :compliance
2135
+
1669
2136
  # Output only. The time this `Occurrence` was created.
1670
2137
  # Corresponds to the JSON property `createTime`
1671
2138
  # @return [String]
@@ -1728,6 +2195,30 @@ module Google
1728
2195
  # @return [String]
1729
2196
  attr_accessor :resource_url
1730
2197
 
2198
+ # DocumentOccurrence represents an SPDX Document Creation Information section:
2199
+ # https://spdx.github.io/spdx-spec/2-document-creation-information/
2200
+ # Corresponds to the JSON property `sbom`
2201
+ # @return [Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence]
2202
+ attr_accessor :sbom
2203
+
2204
+ # FileOccurrence represents an SPDX File Information section: https://spdx.
2205
+ # github.io/spdx-spec/4-file-information/
2206
+ # Corresponds to the JSON property `spdxFile`
2207
+ # @return [Google::Apis::ContaineranalysisV1alpha1::FileOccurrence]
2208
+ attr_accessor :spdx_file
2209
+
2210
+ # PackageOccurrence represents an SPDX Package Information section: https://spdx.
2211
+ # github.io/spdx-spec/3-package-information/
2212
+ # Corresponds to the JSON property `spdxPackage`
2213
+ # @return [Google::Apis::ContaineranalysisV1alpha1::PackageOccurrence]
2214
+ attr_accessor :spdx_package
2215
+
2216
+ # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.
2217
+ # github.io/spdx-spec/7-relationships-between-SPDX-elements/
2218
+ # Corresponds to the JSON property `spdxRelationship`
2219
+ # @return [Google::Apis::ContaineranalysisV1alpha1::RelationshipOccurrence]
2220
+ attr_accessor :spdx_relationship
2221
+
1731
2222
  # Output only. The time this `Occurrence` was last updated.
1732
2223
  # Corresponds to the JSON property `updateTime`
1733
2224
  # @return [String]
@@ -1754,6 +2245,7 @@ module Google
1754
2245
  def update!(**args)
1755
2246
  @attestation = args[:attestation] if args.key?(:attestation)
1756
2247
  @build_details = args[:build_details] if args.key?(:build_details)
2248
+ @compliance = args[:compliance] if args.key?(:compliance)
1757
2249
  @create_time = args[:create_time] if args.key?(:create_time)
1758
2250
  @deployment = args[:deployment] if args.key?(:deployment)
1759
2251
  @derived_image = args[:derived_image] if args.key?(:derived_image)
@@ -1765,6 +2257,10 @@ module Google
1765
2257
  @remediation = args[:remediation] if args.key?(:remediation)
1766
2258
  @resource = args[:resource] if args.key?(:resource)
1767
2259
  @resource_url = args[:resource_url] if args.key?(:resource_url)
2260
+ @sbom = args[:sbom] if args.key?(:sbom)
2261
+ @spdx_file = args[:spdx_file] if args.key?(:spdx_file)
2262
+ @spdx_package = args[:spdx_package] if args.key?(:spdx_package)
2263
+ @spdx_relationship = args[:spdx_relationship] if args.key?(:spdx_relationship)
1768
2264
  @update_time = args[:update_time] if args.key?(:update_time)
1769
2265
  @upgrade = args[:upgrade] if args.key?(:upgrade)
1770
2266
  @vulnerability_details = args[:vulnerability_details] if args.key?(:vulnerability_details)
@@ -1891,6 +2387,189 @@ module Google
1891
2387
  end
1892
2388
  end
1893
2389
 
2390
+ # PackageNote represents an SPDX Package Information section: https://spdx.
2391
+ # github.io/spdx-spec/3-package-information/
2392
+ class PackageNote
2393
+ include Google::Apis::Core::Hashable
2394
+
2395
+ # Indicates whether the file content of this package has been available for or
2396
+ # subjected to analysis when creating the SPDX document
2397
+ # Corresponds to the JSON property `analyzed`
2398
+ # @return [Boolean]
2399
+ attr_accessor :analyzed
2400
+ alias_method :analyzed?, :analyzed
2401
+
2402
+ # A place for the SPDX data creator to record, at the package level,
2403
+ # acknowledgements that may be needed to be communicated in some contexts
2404
+ # Corresponds to the JSON property `attribution`
2405
+ # @return [String]
2406
+ attr_accessor :attribution
2407
+
2408
+ # Provide an independently reproducible mechanism that permits unique
2409
+ # identification of a specific package that correlates to the data in this SPDX
2410
+ # file
2411
+ # Corresponds to the JSON property `checksum`
2412
+ # @return [String]
2413
+ attr_accessor :checksum
2414
+
2415
+ # Identify the copyright holders of the package, as well as any dates present
2416
+ # Corresponds to the JSON property `copyright`
2417
+ # @return [String]
2418
+ attr_accessor :copyright
2419
+
2420
+ # A more detailed description of the package
2421
+ # Corresponds to the JSON property `detailedDescription`
2422
+ # @return [String]
2423
+ attr_accessor :detailed_description
2424
+
2425
+ # This section identifies the download Universal Resource Locator (URL), or a
2426
+ # specific location within a version control system (VCS) for the package at the
2427
+ # time that the SPDX file was created
2428
+ # Corresponds to the JSON property `downloadLocation`
2429
+ # @return [String]
2430
+ attr_accessor :download_location
2431
+
2432
+ # ExternalRef
2433
+ # Corresponds to the JSON property `externalRefs`
2434
+ # @return [Array<Google::Apis::ContaineranalysisV1alpha1::ExternalRef>]
2435
+ attr_accessor :external_refs
2436
+
2437
+ # Contain the license the SPDX file creator has concluded as governing the This
2438
+ # field is to contain a list of all licenses found in the package. The
2439
+ # relationship between licenses (i.e., conjunctive, disjunctive) is not
2440
+ # specified in this field – it is simply a listing of all licenses found
2441
+ # Corresponds to the JSON property `filesLicenseInfo`
2442
+ # @return [Array<String>]
2443
+ attr_accessor :files_license_info
2444
+
2445
+ # Provide a place for the SPDX file creator to record a web site that serves as
2446
+ # the package's home page
2447
+ # Corresponds to the JSON property `homePage`
2448
+ # @return [String]
2449
+ attr_accessor :home_page
2450
+
2451
+ # List the licenses that have been declared by the authors of the package
2452
+ # Corresponds to the JSON property `licenseDeclared`
2453
+ # @return [String]
2454
+ attr_accessor :license_declared
2455
+
2456
+ # If the package identified in the SPDX file originated from a different person
2457
+ # or organization than identified as Package Supplier, this field identifies
2458
+ # from where or whom the package originally came
2459
+ # Corresponds to the JSON property `originator`
2460
+ # @return [String]
2461
+ attr_accessor :originator
2462
+
2463
+ # A short description of the package
2464
+ # Corresponds to the JSON property `summaryDescription`
2465
+ # @return [String]
2466
+ attr_accessor :summary_description
2467
+
2468
+ # Identify the actual distribution source for the package/directory identified
2469
+ # in the SPDX file
2470
+ # Corresponds to the JSON property `supplier`
2471
+ # @return [String]
2472
+ attr_accessor :supplier
2473
+
2474
+ # Identify the full name of the package as given by the Package Originator
2475
+ # Corresponds to the JSON property `title`
2476
+ # @return [String]
2477
+ attr_accessor :title
2478
+
2479
+ # This field provides an independently reproducible mechanism identifying
2480
+ # specific contents of a package based on the actual files (except the SPDX file
2481
+ # itself, if it is included in the package) that make up each package and that
2482
+ # correlates to the data in this SPDX file
2483
+ # Corresponds to the JSON property `verificationCode`
2484
+ # @return [String]
2485
+ attr_accessor :verification_code
2486
+
2487
+ # Identify the version of the package
2488
+ # Corresponds to the JSON property `version`
2489
+ # @return [String]
2490
+ attr_accessor :version
2491
+
2492
+ def initialize(**args)
2493
+ update!(**args)
2494
+ end
2495
+
2496
+ # Update properties of this object
2497
+ def update!(**args)
2498
+ @analyzed = args[:analyzed] if args.key?(:analyzed)
2499
+ @attribution = args[:attribution] if args.key?(:attribution)
2500
+ @checksum = args[:checksum] if args.key?(:checksum)
2501
+ @copyright = args[:copyright] if args.key?(:copyright)
2502
+ @detailed_description = args[:detailed_description] if args.key?(:detailed_description)
2503
+ @download_location = args[:download_location] if args.key?(:download_location)
2504
+ @external_refs = args[:external_refs] if args.key?(:external_refs)
2505
+ @files_license_info = args[:files_license_info] if args.key?(:files_license_info)
2506
+ @home_page = args[:home_page] if args.key?(:home_page)
2507
+ @license_declared = args[:license_declared] if args.key?(:license_declared)
2508
+ @originator = args[:originator] if args.key?(:originator)
2509
+ @summary_description = args[:summary_description] if args.key?(:summary_description)
2510
+ @supplier = args[:supplier] if args.key?(:supplier)
2511
+ @title = args[:title] if args.key?(:title)
2512
+ @verification_code = args[:verification_code] if args.key?(:verification_code)
2513
+ @version = args[:version] if args.key?(:version)
2514
+ end
2515
+ end
2516
+
2517
+ # PackageOccurrence represents an SPDX Package Information section: https://spdx.
2518
+ # github.io/spdx-spec/3-package-information/
2519
+ class PackageOccurrence
2520
+ include Google::Apis::Core::Hashable
2521
+
2522
+ # A place for the SPDX file creator to record any general comments about the
2523
+ # package being described
2524
+ # Corresponds to the JSON property `comment`
2525
+ # @return [String]
2526
+ attr_accessor :comment
2527
+
2528
+ # Provide the actual file name of the package, or path of the directory being
2529
+ # treated as a package
2530
+ # Corresponds to the JSON property `filename`
2531
+ # @return [String]
2532
+ attr_accessor :filename
2533
+
2534
+ # Uniquely identify any element in an SPDX document which may be referenced by
2535
+ # other elements
2536
+ # Corresponds to the JSON property `id`
2537
+ # @return [String]
2538
+ attr_accessor :id
2539
+
2540
+ # This field provides a place for the SPDX file creator to record any relevant
2541
+ # background information or analysis that went in to arriving at the Concluded
2542
+ # License for a package
2543
+ # Corresponds to the JSON property `licenseComments`
2544
+ # @return [String]
2545
+ attr_accessor :license_comments
2546
+
2547
+ # package or alternative values, if the governing license cannot be determined
2548
+ # Corresponds to the JSON property `licenseConcluded`
2549
+ # @return [String]
2550
+ attr_accessor :license_concluded
2551
+
2552
+ # Provide a place for the SPDX file creator to record any relevant background
2553
+ # information or additional comments about the origin of the package
2554
+ # Corresponds to the JSON property `sourceInfo`
2555
+ # @return [String]
2556
+ attr_accessor :source_info
2557
+
2558
+ def initialize(**args)
2559
+ update!(**args)
2560
+ end
2561
+
2562
+ # Update properties of this object
2563
+ def update!(**args)
2564
+ @comment = args[:comment] if args.key?(:comment)
2565
+ @filename = args[:filename] if args.key?(:filename)
2566
+ @id = args[:id] if args.key?(:id)
2567
+ @license_comments = args[:license_comments] if args.key?(:license_comments)
2568
+ @license_concluded = args[:license_concluded] if args.key?(:license_concluded)
2569
+ @source_info = args[:source_info] if args.key?(:source_info)
2570
+ end
2571
+ end
2572
+
1894
2573
  # An attestation wrapper with a PGP-compatible signature. This message only
1895
2574
  # supports `ATTACHED` signatures, where the payload that is signed is included
1896
2575
  # alongside the signature itself in the same file.
@@ -2053,6 +2732,63 @@ module Google
2053
2732
  end
2054
2733
  end
2055
2734
 
2735
+ # RelationshipNote represents an SPDX Relationship section: https://spdx.github.
2736
+ # io/spdx-spec/7-relationships-between-SPDX-elements/
2737
+ class RelationshipNote
2738
+ include Google::Apis::Core::Hashable
2739
+
2740
+ def initialize(**args)
2741
+ update!(**args)
2742
+ end
2743
+
2744
+ # Update properties of this object
2745
+ def update!(**args)
2746
+ end
2747
+ end
2748
+
2749
+ # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.
2750
+ # github.io/spdx-spec/7-relationships-between-SPDX-elements/
2751
+ class RelationshipOccurrence
2752
+ include Google::Apis::Core::Hashable
2753
+
2754
+ # A place for the SPDX file creator to record any general comments about the
2755
+ # relationship
2756
+ # Corresponds to the JSON property `comment`
2757
+ # @return [String]
2758
+ attr_accessor :comment
2759
+
2760
+ # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2761
+ # Corresponds to the JSON property `source`
2762
+ # @return [String]
2763
+ attr_accessor :source
2764
+
2765
+ # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In
2766
+ # cases where there are "known unknowns", the use of the keyword NOASSERTION can
2767
+ # be used The keywords NONE can be used to indicate that an SPDX element (
2768
+ # package/file/snippet) has no other elements connected by some relationship to
2769
+ # it
2770
+ # Corresponds to the JSON property `target`
2771
+ # @return [String]
2772
+ attr_accessor :target
2773
+
2774
+ # The type of relationship between the source and target SPDX elements
2775
+ # Corresponds to the JSON property `type`
2776
+ # @return [String]
2777
+ attr_accessor :type
2778
+
2779
+ def initialize(**args)
2780
+ update!(**args)
2781
+ end
2782
+
2783
+ # Update properties of this object
2784
+ def update!(**args)
2785
+ @comment = args[:comment] if args.key?(:comment)
2786
+ @source = args[:source] if args.key?(:source)
2787
+ @target = args[:target] if args.key?(:target)
2788
+ @type = args[:type] if args.key?(:type)
2789
+ end
2790
+ end
2791
+
2056
2792
  # RepoSource describes the location of the source in a Google Cloud Source
2057
2793
  # Repository.
2058
2794
  class RepoSource
@@ -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.6.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210409"
25
+ REVISION = "20210723"
26
26
  end
27
27
  end
28
28
  end
@@ -82,12 +82,36 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class CisBenchmark
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class Command
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class ComplianceNote
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ComplianceOccurrence
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ComplianceVersion
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
91
115
  class CreateOperationRequest
92
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
117
 
@@ -136,6 +160,18 @@ module Google
136
160
  include Google::Apis::Core::JsonObjectSupport
137
161
  end
138
162
 
163
+ class DocumentNote
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class DocumentOccurrence
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
139
175
  class Empty
140
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
177
 
@@ -148,12 +184,30 @@ module Google
148
184
  include Google::Apis::Core::JsonObjectSupport
149
185
  end
150
186
 
187
+ class ExternalRef
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
151
193
  class FileHashes
152
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
195
 
154
196
  include Google::Apis::Core::JsonObjectSupport
155
197
  end
156
198
 
199
+ class FileNote
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class FileOccurrence
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
157
211
  class Fingerprint
158
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
213
 
@@ -274,6 +328,12 @@ module Google
274
328
  include Google::Apis::Core::JsonObjectSupport
275
329
  end
276
330
 
331
+ class NonCompliantFile
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
277
337
  class Note
278
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
339
 
@@ -304,6 +364,18 @@ module Google
304
364
  include Google::Apis::Core::JsonObjectSupport
305
365
  end
306
366
 
367
+ class PackageNote
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class PackageOccurrence
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
307
379
  class PgpSignedAttestation
308
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
381
 
@@ -322,6 +394,18 @@ module Google
322
394
  include Google::Apis::Core::JsonObjectSupport
323
395
  end
324
396
 
397
+ class RelationshipNote
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
403
+ class RelationshipOccurrence
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
325
409
  class RepoSource
326
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
411
 
@@ -532,6 +616,14 @@ module Google
532
616
  end
533
617
  end
534
618
 
619
+ class CisBenchmark
620
+ # @private
621
+ class Representation < Google::Apis::Core::JsonRepresentation
622
+ property :profile_level, as: 'profileLevel'
623
+ property :severity, as: 'severity'
624
+ end
625
+ end
626
+
535
627
  class Command
536
628
  # @private
537
629
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -544,6 +636,38 @@ module Google
544
636
  end
545
637
  end
546
638
 
639
+ class ComplianceNote
640
+ # @private
641
+ class Representation < Google::Apis::Core::JsonRepresentation
642
+ property :cis_benchmark, as: 'cisBenchmark', class: Google::Apis::ContaineranalysisV1alpha1::CisBenchmark, decorator: Google::Apis::ContaineranalysisV1alpha1::CisBenchmark::Representation
643
+
644
+ property :description, as: 'description'
645
+ property :rationale, as: 'rationale'
646
+ property :remediation, as: 'remediation'
647
+ property :scan_instructions, :base64 => true, as: 'scanInstructions'
648
+ property :title, as: 'title'
649
+ collection :version, as: 'version', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceVersion, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceVersion::Representation
650
+
651
+ end
652
+ end
653
+
654
+ class ComplianceOccurrence
655
+ # @private
656
+ class Representation < Google::Apis::Core::JsonRepresentation
657
+ property :non_compliance_reason, as: 'nonComplianceReason'
658
+ collection :non_compliant_files, as: 'nonCompliantFiles', class: Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile, decorator: Google::Apis::ContaineranalysisV1alpha1::NonCompliantFile::Representation
659
+
660
+ end
661
+ end
662
+
663
+ class ComplianceVersion
664
+ # @private
665
+ class Representation < Google::Apis::Core::JsonRepresentation
666
+ property :cpe_uri, as: 'cpeUri'
667
+ property :version, as: 'version'
668
+ end
669
+ end
670
+
547
671
  class CreateOperationRequest
548
672
  # @private
549
673
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -638,6 +762,29 @@ module Google
638
762
  end
639
763
  end
640
764
 
765
+ class DocumentNote
766
+ # @private
767
+ class Representation < Google::Apis::Core::JsonRepresentation
768
+ property :data_licence, as: 'dataLicence'
769
+ property :spdx_version, as: 'spdxVersion'
770
+ end
771
+ end
772
+
773
+ class DocumentOccurrence
774
+ # @private
775
+ class Representation < Google::Apis::Core::JsonRepresentation
776
+ property :create_time, as: 'createTime'
777
+ property :creator_comment, as: 'creatorComment'
778
+ collection :creators, as: 'creators'
779
+ property :document_comment, as: 'documentComment'
780
+ collection :external_document_refs, as: 'externalDocumentRefs'
781
+ property :id, as: 'id'
782
+ property :license_list_version, as: 'licenseListVersion'
783
+ property :namespace, as: 'namespace'
784
+ property :title, as: 'title'
785
+ end
786
+ end
787
+
641
788
  class Empty
642
789
  # @private
643
790
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -654,6 +801,16 @@ module Google
654
801
  end
655
802
  end
656
803
 
804
+ class ExternalRef
805
+ # @private
806
+ class Representation < Google::Apis::Core::JsonRepresentation
807
+ property :category, as: 'category'
808
+ property :comment, as: 'comment'
809
+ property :locator, as: 'locator'
810
+ property :type, as: 'type'
811
+ end
812
+ end
813
+
657
814
  class FileHashes
658
815
  # @private
659
816
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -662,6 +819,30 @@ module Google
662
819
  end
663
820
  end
664
821
 
822
+ class FileNote
823
+ # @private
824
+ class Representation < Google::Apis::Core::JsonRepresentation
825
+ collection :checksum, as: 'checksum'
826
+ property :file_type, as: 'fileType'
827
+ property :title, as: 'title'
828
+ end
829
+ end
830
+
831
+ class FileOccurrence
832
+ # @private
833
+ class Representation < Google::Apis::Core::JsonRepresentation
834
+ collection :attributions, as: 'attributions'
835
+ property :comment, as: 'comment'
836
+ collection :contributors, as: 'contributors'
837
+ property :copyright, as: 'copyright'
838
+ collection :files_license_info, as: 'filesLicenseInfo'
839
+ property :id, as: 'id'
840
+ property :license_comments, as: 'licenseComments'
841
+ property :license_concluded, as: 'licenseConcluded'
842
+ property :notice, as: 'notice'
843
+ end
844
+ end
845
+
665
846
  class Fingerprint
666
847
  # @private
667
848
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -841,6 +1022,15 @@ module Google
841
1022
  end
842
1023
  end
843
1024
 
1025
+ class NonCompliantFile
1026
+ # @private
1027
+ class Representation < Google::Apis::Core::JsonRepresentation
1028
+ property :display_command, as: 'displayCommand'
1029
+ property :path, as: 'path'
1030
+ property :reason, as: 'reason'
1031
+ end
1032
+ end
1033
+
844
1034
  class Note
845
1035
  # @private
846
1036
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -850,6 +1040,8 @@ module Google
850
1040
 
851
1041
  property :build_type, as: 'buildType', class: Google::Apis::ContaineranalysisV1alpha1::BuildType, decorator: Google::Apis::ContaineranalysisV1alpha1::BuildType::Representation
852
1042
 
1043
+ property :compliance, as: 'compliance', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceNote, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceNote::Representation
1044
+
853
1045
  property :create_time, as: 'createTime'
854
1046
  property :deployable, as: 'deployable', class: Google::Apis::ContaineranalysisV1alpha1::Deployable, decorator: Google::Apis::ContaineranalysisV1alpha1::Deployable::Representation
855
1047
 
@@ -863,7 +1055,15 @@ module Google
863
1055
 
864
1056
  collection :related_url, as: 'relatedUrl', class: Google::Apis::ContaineranalysisV1alpha1::RelatedUrl, decorator: Google::Apis::ContaineranalysisV1alpha1::RelatedUrl::Representation
865
1057
 
1058
+ property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1alpha1::DocumentNote, decorator: Google::Apis::ContaineranalysisV1alpha1::DocumentNote::Representation
1059
+
866
1060
  property :short_description, as: 'shortDescription'
1061
+ property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1alpha1::FileNote, decorator: Google::Apis::ContaineranalysisV1alpha1::FileNote::Representation
1062
+
1063
+ property :spdx_package, as: 'spdxPackage', class: Google::Apis::ContaineranalysisV1alpha1::PackageNote, decorator: Google::Apis::ContaineranalysisV1alpha1::PackageNote::Representation
1064
+
1065
+ property :spdx_relationship, as: 'spdxRelationship', class: Google::Apis::ContaineranalysisV1alpha1::RelationshipNote, decorator: Google::Apis::ContaineranalysisV1alpha1::RelationshipNote::Representation
1066
+
867
1067
  property :update_time, as: 'updateTime'
868
1068
  property :upgrade, as: 'upgrade', class: Google::Apis::ContaineranalysisV1alpha1::UpgradeNote, decorator: Google::Apis::ContaineranalysisV1alpha1::UpgradeNote::Representation
869
1069
 
@@ -879,6 +1079,8 @@ module Google
879
1079
 
880
1080
  property :build_details, as: 'buildDetails', class: Google::Apis::ContaineranalysisV1alpha1::BuildDetails, decorator: Google::Apis::ContaineranalysisV1alpha1::BuildDetails::Representation
881
1081
 
1082
+ property :compliance, as: 'compliance', class: Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::ComplianceOccurrence::Representation
1083
+
882
1084
  property :create_time, as: 'createTime'
883
1085
  property :deployment, as: 'deployment', class: Google::Apis::ContaineranalysisV1alpha1::Deployment, decorator: Google::Apis::ContaineranalysisV1alpha1::Deployment::Representation
884
1086
 
@@ -895,6 +1097,14 @@ module Google
895
1097
  property :resource, as: 'resource', class: Google::Apis::ContaineranalysisV1alpha1::Resource, decorator: Google::Apis::ContaineranalysisV1alpha1::Resource::Representation
896
1098
 
897
1099
  property :resource_url, as: 'resourceUrl'
1100
+ property :sbom, as: 'sbom', class: Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::DocumentOccurrence::Representation
1101
+
1102
+ property :spdx_file, as: 'spdxFile', class: Google::Apis::ContaineranalysisV1alpha1::FileOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::FileOccurrence::Representation
1103
+
1104
+ property :spdx_package, as: 'spdxPackage', class: Google::Apis::ContaineranalysisV1alpha1::PackageOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::PackageOccurrence::Representation
1105
+
1106
+ property :spdx_relationship, as: 'spdxRelationship', class: Google::Apis::ContaineranalysisV1alpha1::RelationshipOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::RelationshipOccurrence::Representation
1107
+
898
1108
  property :update_time, as: 'updateTime'
899
1109
  property :upgrade, as: 'upgrade', class: Google::Apis::ContaineranalysisV1alpha1::UpgradeOccurrence, decorator: Google::Apis::ContaineranalysisV1alpha1::UpgradeOccurrence::Representation
900
1110
 
@@ -935,6 +1145,41 @@ module Google
935
1145
  end
936
1146
  end
937
1147
 
1148
+ class PackageNote
1149
+ # @private
1150
+ class Representation < Google::Apis::Core::JsonRepresentation
1151
+ property :analyzed, as: 'analyzed'
1152
+ property :attribution, as: 'attribution'
1153
+ property :checksum, as: 'checksum'
1154
+ property :copyright, as: 'copyright'
1155
+ property :detailed_description, as: 'detailedDescription'
1156
+ property :download_location, as: 'downloadLocation'
1157
+ collection :external_refs, as: 'externalRefs', class: Google::Apis::ContaineranalysisV1alpha1::ExternalRef, decorator: Google::Apis::ContaineranalysisV1alpha1::ExternalRef::Representation
1158
+
1159
+ collection :files_license_info, as: 'filesLicenseInfo'
1160
+ property :home_page, as: 'homePage'
1161
+ property :license_declared, as: 'licenseDeclared'
1162
+ property :originator, as: 'originator'
1163
+ property :summary_description, as: 'summaryDescription'
1164
+ property :supplier, as: 'supplier'
1165
+ property :title, as: 'title'
1166
+ property :verification_code, as: 'verificationCode'
1167
+ property :version, as: 'version'
1168
+ end
1169
+ end
1170
+
1171
+ class PackageOccurrence
1172
+ # @private
1173
+ class Representation < Google::Apis::Core::JsonRepresentation
1174
+ property :comment, as: 'comment'
1175
+ property :filename, as: 'filename'
1176
+ property :id, as: 'id'
1177
+ property :license_comments, as: 'licenseComments'
1178
+ property :license_concluded, as: 'licenseConcluded'
1179
+ property :source_info, as: 'sourceInfo'
1180
+ end
1181
+ end
1182
+
938
1183
  class PgpSignedAttestation
939
1184
  # @private
940
1185
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -962,6 +1207,22 @@ module Google
962
1207
  end
963
1208
  end
964
1209
 
1210
+ class RelationshipNote
1211
+ # @private
1212
+ class Representation < Google::Apis::Core::JsonRepresentation
1213
+ end
1214
+ end
1215
+
1216
+ class RelationshipOccurrence
1217
+ # @private
1218
+ class Representation < Google::Apis::Core::JsonRepresentation
1219
+ property :comment, as: 'comment'
1220
+ property :source, as: 'source'
1221
+ property :target, as: 'target'
1222
+ property :type, as: 'type'
1223
+ end
1224
+ end
1225
+
965
1226
  class RepoSource
966
1227
  # @private
967
1228
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.10.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-05-24 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Container Analysis API V1alpha1. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-containeranalysis_v1alpha1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1alpha1/v0.10.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-containeranalysis_v1alpha1
57
63
  post_install_message:
58
64
  rdoc_options: []