google-apis-ondemandscanning_v1 0.54.0 → 0.56.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91921610e169d9193b66eabe56fc2f90c0bd1a577f6784d16d8adf6ed8cc5a29
4
- data.tar.gz: 7597e3a2904c4dc098876d50617508f838f61ab754d63dc12a11d4ad2d9057ed
3
+ metadata.gz: 55f2d8aa7f760137bfaea8aefa5e447de1795e8b3cee71b7e9133a779f6e1e95
4
+ data.tar.gz: 547c3c889016855d8c4e31b7b3b6da6a947895ae97d63c4ee139d65e32a66c1b
5
5
  SHA512:
6
- metadata.gz: e0659f9bb700ea2f08483b984fabbda69cefa4457dc960f4001e042f910e9ffdf70da461273f5fe0048d9bb2f85efb8a3dba0a88cd649d9a2bc1c5c65f787b1a
7
- data.tar.gz: 3c5d351144fc3da9b2a87998da031cd96605dc5de7b4f88c84b1f1137e8993e6b851a74d065a2e4e3e2fe3ae76e76cc32f7f512d2a8ea6112035151301982eaf
6
+ metadata.gz: e94aaaf4ff95c4f0b664ceb5bb34ff6af41388136ffd8b7374f1e0375abeb4097f60dd41b6fda7adb073b9963621b3530a174d8c9b1092875d12db591155b7be
7
+ data.tar.gz: 34a3f6531f1b255be7f8038bb89ca890c79e5f51382355598e1549dec17f58490f231ef1b2170002570e9bbab5121523f54e919ab986bac47d356b6926ce40ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.56.0 (2025-05-21)
4
+
5
+ * Regenerated from discovery document revision 20250519
6
+
7
+ ### v0.55.0 (2025-05-18)
8
+
9
+ * Regenerated from discovery document revision 20250505
10
+ * Regenerated using generator version 0.17.0
11
+
3
12
  ### v0.54.0 (2025-03-30)
4
13
 
5
14
  * Regenerated from discovery document revision 20250321
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/container-analysis/docs/on-
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -1012,6 +1012,11 @@ module Google
1012
1012
  # @return [String]
1013
1013
  attr_accessor :cpe
1014
1014
 
1015
+ # Files that make up the resource described by the occurrence.
1016
+ # Corresponds to the JSON property `files`
1017
+ # @return [Array<Google::Apis::OndemandscanningV1::File>]
1018
+ attr_accessor :files
1019
+
1015
1020
  # The last time this resource was scanned.
1016
1021
  # Corresponds to the JSON property `lastScanTime`
1017
1022
  # @return [String]
@@ -1035,6 +1040,7 @@ module Google
1035
1040
  @archive_time = args[:archive_time] if args.key?(:archive_time)
1036
1041
  @continuous_analysis = args[:continuous_analysis] if args.key?(:continuous_analysis)
1037
1042
  @cpe = args[:cpe] if args.key?(:cpe)
1043
+ @files = args[:files] if args.key?(:files)
1038
1044
  @last_scan_time = args[:last_scan_time] if args.key?(:last_scan_time)
1039
1045
  @sbom_status = args[:sbom_status] if args.key?(:sbom_status)
1040
1046
  end
@@ -1115,6 +1121,31 @@ module Google
1115
1121
  end
1116
1122
  end
1117
1123
 
1124
+ #
1125
+ class File
1126
+ include Google::Apis::Core::Hashable
1127
+
1128
+ #
1129
+ # Corresponds to the JSON property `digest`
1130
+ # @return [Hash<String,String>]
1131
+ attr_accessor :digest
1132
+
1133
+ #
1134
+ # Corresponds to the JSON property `name`
1135
+ # @return [String]
1136
+ attr_accessor :name
1137
+
1138
+ def initialize(**args)
1139
+ update!(**args)
1140
+ end
1141
+
1142
+ # Update properties of this object
1143
+ def update!(**args)
1144
+ @digest = args[:digest] if args.key?(:digest)
1145
+ @name = args[:name] if args.key?(:name)
1146
+ end
1147
+ end
1148
+
1118
1149
  # Container message for hashes of byte content of files, used in source messages
1119
1150
  # to verify integrity of source input to the build.
1120
1151
  class FileHashes
@@ -1325,6 +1356,12 @@ module Google
1325
1356
  # @return [Array<Google::Apis::OndemandscanningV1::GrafeasV1BaseImage>]
1326
1357
  attr_accessor :base_images
1327
1358
 
1359
+ # The layer chain ID (sha256 hash) of the layer in the container image. https://
1360
+ # github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid
1361
+ # Corresponds to the JSON property `chainId`
1362
+ # @return [String]
1363
+ attr_accessor :chain_id
1364
+
1328
1365
  # The layer build command that was used to build the layer. This may not be
1329
1366
  # found in all layers depending on how the container image is built.
1330
1367
  # Corresponds to the JSON property `command`
@@ -1348,6 +1385,7 @@ module Google
1348
1385
  # Update properties of this object
1349
1386
  def update!(**args)
1350
1387
  @base_images = args[:base_images] if args.key?(:base_images)
1388
+ @chain_id = args[:chain_id] if args.key?(:chain_id)
1351
1389
  @command = args[:command] if args.key?(:command)
1352
1390
  @diff_id = args[:diff_id] if args.key?(:diff_id)
1353
1391
  @index = args[:index] if args.key?(:index)
@@ -1876,6 +1914,12 @@ module Google
1876
1914
  # @return [Array<Google::Apis::OndemandscanningV1::BaseImage>]
1877
1915
  attr_accessor :base_images
1878
1916
 
1917
+ # The layer chain ID (sha256 hash) of the layer in the container image. https://
1918
+ # github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid
1919
+ # Corresponds to the JSON property `chainId`
1920
+ # @return [String]
1921
+ attr_accessor :chain_id
1922
+
1879
1923
  # The layer build command that was used to build the layer. This may not be
1880
1924
  # found in all layers depending on how the container image is built.
1881
1925
  # Corresponds to the JSON property `command`
@@ -1899,6 +1943,7 @@ module Google
1899
1943
  # Update properties of this object
1900
1944
  def update!(**args)
1901
1945
  @base_images = args[:base_images] if args.key?(:base_images)
1946
+ @chain_id = args[:chain_id] if args.key?(:chain_id)
1902
1947
  @command = args[:command] if args.key?(:command)
1903
1948
  @diff_id = args[:diff_id] if args.key?(:diff_id)
1904
1949
  @index = args[:index] if args.key?(:index)
@@ -2263,6 +2308,11 @@ module Google
2263
2308
  # @return [Google::Apis::OndemandscanningV1::SbomReferenceOccurrence]
2264
2309
  attr_accessor :sbom_reference
2265
2310
 
2311
+ # The occurrence provides details of a secret.
2312
+ # Corresponds to the JSON property `secret`
2313
+ # @return [Google::Apis::OndemandscanningV1::SecretOccurrence]
2314
+ attr_accessor :secret
2315
+
2266
2316
  # Output only. The time this occurrence was last updated.
2267
2317
  # Corresponds to the JSON property `updateTime`
2268
2318
  # @return [String]
@@ -2304,6 +2354,7 @@ module Google
2304
2354
  @remediation = args[:remediation] if args.key?(:remediation)
2305
2355
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
2306
2356
  @sbom_reference = args[:sbom_reference] if args.key?(:sbom_reference)
2357
+ @secret = args[:secret] if args.key?(:secret)
2307
2358
  @update_time = args[:update_time] if args.key?(:update_time)
2308
2359
  @upgrade = args[:upgrade] if args.key?(:upgrade)
2309
2360
  @vulnerability = args[:vulnerability] if args.key?(:vulnerability)
@@ -3103,6 +3154,87 @@ module Google
3103
3154
  end
3104
3155
  end
3105
3156
 
3157
+ # The location of the secret.
3158
+ class SecretLocation
3159
+ include Google::Apis::Core::Hashable
3160
+
3161
+ # Indicates the location at which a package was found.
3162
+ # Corresponds to the JSON property `fileLocation`
3163
+ # @return [Google::Apis::OndemandscanningV1::GrafeasV1FileLocation]
3164
+ attr_accessor :file_location
3165
+
3166
+ def initialize(**args)
3167
+ update!(**args)
3168
+ end
3169
+
3170
+ # Update properties of this object
3171
+ def update!(**args)
3172
+ @file_location = args[:file_location] if args.key?(:file_location)
3173
+ end
3174
+ end
3175
+
3176
+ # The occurrence provides details of a secret.
3177
+ class SecretOccurrence
3178
+ include Google::Apis::Core::Hashable
3179
+
3180
+ # Required. Type of secret.
3181
+ # Corresponds to the JSON property `kind`
3182
+ # @return [String]
3183
+ attr_accessor :kind
3184
+
3185
+ # Optional. Locations where the secret is detected.
3186
+ # Corresponds to the JSON property `locations`
3187
+ # @return [Array<Google::Apis::OndemandscanningV1::SecretLocation>]
3188
+ attr_accessor :locations
3189
+
3190
+ # Optional. Status of the secret.
3191
+ # Corresponds to the JSON property `statuses`
3192
+ # @return [Array<Google::Apis::OndemandscanningV1::SecretStatus>]
3193
+ attr_accessor :statuses
3194
+
3195
+ def initialize(**args)
3196
+ update!(**args)
3197
+ end
3198
+
3199
+ # Update properties of this object
3200
+ def update!(**args)
3201
+ @kind = args[:kind] if args.key?(:kind)
3202
+ @locations = args[:locations] if args.key?(:locations)
3203
+ @statuses = args[:statuses] if args.key?(:statuses)
3204
+ end
3205
+ end
3206
+
3207
+ # The status of the secret with a timestamp.
3208
+ class SecretStatus
3209
+ include Google::Apis::Core::Hashable
3210
+
3211
+ # Optional. Optional message about the status code.
3212
+ # Corresponds to the JSON property `message`
3213
+ # @return [String]
3214
+ attr_accessor :message
3215
+
3216
+ # Optional. The status of the secret.
3217
+ # Corresponds to the JSON property `status`
3218
+ # @return [String]
3219
+ attr_accessor :status
3220
+
3221
+ # Optional. The time the secret status was last updated.
3222
+ # Corresponds to the JSON property `updateTime`
3223
+ # @return [String]
3224
+ attr_accessor :update_time
3225
+
3226
+ def initialize(**args)
3227
+ update!(**args)
3228
+ end
3229
+
3230
+ # Update properties of this object
3231
+ def update!(**args)
3232
+ @message = args[:message] if args.key?(:message)
3233
+ @status = args[:status] if args.key?(:status)
3234
+ @update_time = args[:update_time] if args.key?(:update_time)
3235
+ end
3236
+ end
3237
+
3106
3238
  # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
3107
3239
  # the trust anchors defined in policy (e.g. a Kritis policy). Typically this
3108
3240
  # means that the verifier has been configured with a map from `public_key_id` to
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OndemandscanningV1
18
18
  # Version of the google-apis-ondemandscanning_v1 gem
19
- GEM_VERSION = "0.54.0"
19
+ GEM_VERSION = "0.56.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250321"
25
+ REVISION = "20250519"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class File
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class FileHashes
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -502,6 +508,24 @@ module Google
502
508
  include Google::Apis::Core::JsonObjectSupport
503
509
  end
504
510
 
511
+ class SecretLocation
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
517
+ class SecretOccurrence
518
+ class Representation < Google::Apis::Core::JsonRepresentation; end
519
+
520
+ include Google::Apis::Core::JsonObjectSupport
521
+ end
522
+
523
+ class SecretStatus
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
505
529
  class Signature
506
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
531
 
@@ -882,6 +906,8 @@ module Google
882
906
  property :archive_time, as: 'archiveTime'
883
907
  property :continuous_analysis, as: 'continuousAnalysis'
884
908
  property :cpe, as: 'cpe'
909
+ collection :files, as: 'files', class: Google::Apis::OndemandscanningV1::File, decorator: Google::Apis::OndemandscanningV1::File::Representation
910
+
885
911
  property :last_scan_time, as: 'lastScanTime'
886
912
  property :sbom_status, as: 'sbomStatus', class: Google::Apis::OndemandscanningV1::SbomStatus, decorator: Google::Apis::OndemandscanningV1::SbomStatus::Representation
887
913
 
@@ -912,6 +938,14 @@ module Google
912
938
  end
913
939
  end
914
940
 
941
+ class File
942
+ # @private
943
+ class Representation < Google::Apis::Core::JsonRepresentation
944
+ hash :digest, as: 'digest'
945
+ property :name, as: 'name'
946
+ end
947
+ end
948
+
915
949
  class FileHashes
916
950
  # @private
917
951
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -980,6 +1014,7 @@ module Google
980
1014
  class Representation < Google::Apis::Core::JsonRepresentation
981
1015
  collection :base_images, as: 'baseImages', class: Google::Apis::OndemandscanningV1::GrafeasV1BaseImage, decorator: Google::Apis::OndemandscanningV1::GrafeasV1BaseImage::Representation
982
1016
 
1017
+ property :chain_id, as: 'chainId'
983
1018
  property :command, as: 'command'
984
1019
  property :diff_id, as: 'diffId'
985
1020
  property :index, as: 'index'
@@ -1146,6 +1181,7 @@ module Google
1146
1181
  class Representation < Google::Apis::Core::JsonRepresentation
1147
1182
  collection :base_images, as: 'baseImages', class: Google::Apis::OndemandscanningV1::BaseImage, decorator: Google::Apis::OndemandscanningV1::BaseImage::Representation
1148
1183
 
1184
+ property :chain_id, as: 'chainId'
1149
1185
  property :command, as: 'command'
1150
1186
  property :diff_id, as: 'diffId'
1151
1187
  property :index, as: 'index'
@@ -1256,6 +1292,8 @@ module Google
1256
1292
  property :resource_uri, as: 'resourceUri'
1257
1293
  property :sbom_reference, as: 'sbomReference', class: Google::Apis::OndemandscanningV1::SbomReferenceOccurrence, decorator: Google::Apis::OndemandscanningV1::SbomReferenceOccurrence::Representation
1258
1294
 
1295
+ property :secret, as: 'secret', class: Google::Apis::OndemandscanningV1::SecretOccurrence, decorator: Google::Apis::OndemandscanningV1::SecretOccurrence::Representation
1296
+
1259
1297
  property :update_time, as: 'updateTime'
1260
1298
  property :upgrade, as: 'upgrade', class: Google::Apis::OndemandscanningV1::UpgradeOccurrence, decorator: Google::Apis::OndemandscanningV1::UpgradeOccurrence::Representation
1261
1299
 
@@ -1473,6 +1511,34 @@ module Google
1473
1511
  end
1474
1512
  end
1475
1513
 
1514
+ class SecretLocation
1515
+ # @private
1516
+ class Representation < Google::Apis::Core::JsonRepresentation
1517
+ property :file_location, as: 'fileLocation', class: Google::Apis::OndemandscanningV1::GrafeasV1FileLocation, decorator: Google::Apis::OndemandscanningV1::GrafeasV1FileLocation::Representation
1518
+
1519
+ end
1520
+ end
1521
+
1522
+ class SecretOccurrence
1523
+ # @private
1524
+ class Representation < Google::Apis::Core::JsonRepresentation
1525
+ property :kind, as: 'kind'
1526
+ collection :locations, as: 'locations', class: Google::Apis::OndemandscanningV1::SecretLocation, decorator: Google::Apis::OndemandscanningV1::SecretLocation::Representation
1527
+
1528
+ collection :statuses, as: 'statuses', class: Google::Apis::OndemandscanningV1::SecretStatus, decorator: Google::Apis::OndemandscanningV1::SecretStatus::Representation
1529
+
1530
+ end
1531
+ end
1532
+
1533
+ class SecretStatus
1534
+ # @private
1535
+ class Representation < Google::Apis::Core::JsonRepresentation
1536
+ property :message, as: 'message'
1537
+ property :status, as: 'status'
1538
+ property :update_time, as: 'updateTime'
1539
+ end
1540
+ end
1541
+
1476
1542
  class Signature
1477
1543
  # @private
1478
1544
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ondemandscanning_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.0
4
+ version: 0.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-30 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.54.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.56.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '2.7'
69
+ version: '3.1'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.5
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for On-Demand Scanning API V1
79
79
  test_files: []