google-apis-ondemandscanning_v1 0.34.0 → 0.35.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: 57dec02c084594b5178dd5fe31742a2fb8ff2ead1b321f2bfed9fa530d2a5eaf
4
- data.tar.gz: 385fd0465706125af3a890fff7ec522c13f3802328b7fbb0d35846072b604b3a
3
+ metadata.gz: 73f779cce6ff04cb7e01eaa8320a0b3934fc1cde412db6fd58e8ec3e791b41e0
4
+ data.tar.gz: ce57e65bc3574f1f33a95a3f0787effae51ec9bf4cfb74b4bed0b7df85e50c40
5
5
  SHA512:
6
- metadata.gz: 907b848eee91a9c202490e4e8f85b57de080cc7f03397e5948a033598e12db002b4df593ccfd26053416431d727b7a4b4ef7c0be3ea14ebb6da31a3dd164fe81
7
- data.tar.gz: 196dfd8f9f4939f696eef193ee2987d6df6840a04ce17f4e4b43c18dbe21758d397d7acae3f64890face482168191431a7a8dcf20a36247b17fe5f1e2e92ebbe
6
+ metadata.gz: 721491f01af9d8d0b3a16c0a49b024710bdd6d92922159e6be0a9fda838b8a339f966bd3857992d43f81e8b77bedf5efa138b514fac0d8790277ae2f2022caf0
7
+ data.tar.gz: dcef3f9f5e6fb9ee5315088decb2cd241f517d5643f365e77f3d43ee08be86d57092a6adc74d2cb301547f6441945a62cdef0a92cf67709255b1e785de805ad3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.35.0 (2023-03-19)
4
+
5
+ * Regenerated from discovery document revision 20230313
6
+
3
7
  ### v0.34.0 (2023-03-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20230306
@@ -1461,6 +1461,32 @@ module Google
1461
1461
  end
1462
1462
  end
1463
1463
 
1464
+ # Justification provides the justification when the state of the assessment if
1465
+ # NOT_AFFECTED.
1466
+ class Justification
1467
+ include Google::Apis::Core::Hashable
1468
+
1469
+ # Additional details on why this justification was chosen.
1470
+ # Corresponds to the JSON property `details`
1471
+ # @return [String]
1472
+ attr_accessor :details
1473
+
1474
+ # The justification type for this vulnerability.
1475
+ # Corresponds to the JSON property `justificationType`
1476
+ # @return [String]
1477
+ attr_accessor :justification_type
1478
+
1479
+ def initialize(**args)
1480
+ update!(**args)
1481
+ end
1482
+
1483
+ # Update properties of this object
1484
+ def update!(**args)
1485
+ @details = args[:details] if args.key?(:details)
1486
+ @justification_type = args[:justification_type] if args.key?(:justification_type)
1487
+ end
1488
+ end
1489
+
1464
1490
  #
1465
1491
  class Jwt
1466
1492
  include Google::Apis::Core::Hashable
@@ -2331,6 +2357,37 @@ module Google
2331
2357
  end
2332
2358
  end
2333
2359
 
2360
+ # Specifies details on how to handle (and presumably, fix) a vulnerability.
2361
+ class Remediation
2362
+ include Google::Apis::Core::Hashable
2363
+
2364
+ # Contains a comprehensive human-readable discussion of the remediation.
2365
+ # Corresponds to the JSON property `details`
2366
+ # @return [String]
2367
+ attr_accessor :details
2368
+
2369
+ # The type of remediation that can be applied.
2370
+ # Corresponds to the JSON property `remediationType`
2371
+ # @return [String]
2372
+ attr_accessor :remediation_type
2373
+
2374
+ # Metadata for any related URL information.
2375
+ # Corresponds to the JSON property `remediationUri`
2376
+ # @return [Google::Apis::OndemandscanningV1::RelatedUrl]
2377
+ attr_accessor :remediation_uri
2378
+
2379
+ def initialize(**args)
2380
+ update!(**args)
2381
+ end
2382
+
2383
+ # Update properties of this object
2384
+ def update!(**args)
2385
+ @details = args[:details] if args.key?(:details)
2386
+ @remediation_type = args[:remediation_type] if args.key?(:remediation_type)
2387
+ @remediation_uri = args[:remediation_uri] if args.key?(:remediation_uri)
2388
+ end
2389
+ end
2390
+
2334
2391
  # A unique identifier for a Cloud Repo.
2335
2392
  class RepoId
2336
2393
  include Google::Apis::Core::Hashable
@@ -2961,6 +3018,67 @@ module Google
2961
3018
  end
2962
3019
  end
2963
3020
 
3021
+ # VexAssessment provides all publisher provided Vex information that is related
3022
+ # to this vulnerability.
3023
+ class VexAssessment
3024
+ include Google::Apis::Core::Hashable
3025
+
3026
+ # Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
3027
+ # number for the vulnerability.
3028
+ # Corresponds to the JSON property `cve`
3029
+ # @return [String]
3030
+ attr_accessor :cve
3031
+
3032
+ # Contains information about the impact of this vulnerability, this will change
3033
+ # with time.
3034
+ # Corresponds to the JSON property `impacts`
3035
+ # @return [Array<String>]
3036
+ attr_accessor :impacts
3037
+
3038
+ # Justification provides the justification when the state of the assessment if
3039
+ # NOT_AFFECTED.
3040
+ # Corresponds to the JSON property `justification`
3041
+ # @return [Google::Apis::OndemandscanningV1::Justification]
3042
+ attr_accessor :justification
3043
+
3044
+ # The VulnerabilityAssessment note from which this VexAssessment was generated.
3045
+ # This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
3046
+ # Corresponds to the JSON property `noteName`
3047
+ # @return [String]
3048
+ attr_accessor :note_name
3049
+
3050
+ # Holds a list of references associated with this vulnerability item and
3051
+ # assessment.
3052
+ # Corresponds to the JSON property `relatedUris`
3053
+ # @return [Array<Google::Apis::OndemandscanningV1::RelatedUrl>]
3054
+ attr_accessor :related_uris
3055
+
3056
+ # Specifies details on how to handle (and presumably, fix) a vulnerability.
3057
+ # Corresponds to the JSON property `remediations`
3058
+ # @return [Array<Google::Apis::OndemandscanningV1::Remediation>]
3059
+ attr_accessor :remediations
3060
+
3061
+ # Provides the state of this Vulnerability assessment.
3062
+ # Corresponds to the JSON property `state`
3063
+ # @return [String]
3064
+ attr_accessor :state
3065
+
3066
+ def initialize(**args)
3067
+ update!(**args)
3068
+ end
3069
+
3070
+ # Update properties of this object
3071
+ def update!(**args)
3072
+ @cve = args[:cve] if args.key?(:cve)
3073
+ @impacts = args[:impacts] if args.key?(:impacts)
3074
+ @justification = args[:justification] if args.key?(:justification)
3075
+ @note_name = args[:note_name] if args.key?(:note_name)
3076
+ @related_uris = args[:related_uris] if args.key?(:related_uris)
3077
+ @remediations = args[:remediations] if args.key?(:remediations)
3078
+ @state = args[:state] if args.key?(:state)
3079
+ end
3080
+ end
3081
+
2964
3082
  # An occurrence of a severity vulnerability on a resource.
2965
3083
  class VulnerabilityOccurrence
2966
3084
  include Google::Apis::Core::Hashable
@@ -3042,6 +3160,12 @@ module Google
3042
3160
  # @return [String]
3043
3161
  attr_accessor :type
3044
3162
 
3163
+ # VexAssessment provides all publisher provided Vex information that is related
3164
+ # to this vulnerability.
3165
+ # Corresponds to the JSON property `vexAssessment`
3166
+ # @return [Google::Apis::OndemandscanningV1::VexAssessment]
3167
+ attr_accessor :vex_assessment
3168
+
3045
3169
  def initialize(**args)
3046
3170
  update!(**args)
3047
3171
  end
@@ -3060,6 +3184,7 @@ module Google
3060
3184
  @severity = args[:severity] if args.key?(:severity)
3061
3185
  @short_description = args[:short_description] if args.key?(:short_description)
3062
3186
  @type = args[:type] if args.key?(:type)
3187
+ @vex_assessment = args[:vex_assessment] if args.key?(:vex_assessment)
3063
3188
  end
3064
3189
  end
3065
3190
 
@@ -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.34.0"
19
+ GEM_VERSION = "0.35.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 = "20230306"
25
+ REVISION = "20230313"
26
26
  end
27
27
  end
28
28
  end
@@ -268,6 +268,12 @@ module Google
268
268
  include Google::Apis::Core::JsonObjectSupport
269
269
  end
270
270
 
271
+ class Justification
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
271
277
  class Jwt
272
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
279
 
@@ -382,6 +388,12 @@ module Google
382
388
  include Google::Apis::Core::JsonObjectSupport
383
389
  end
384
390
 
391
+ class Remediation
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
385
397
  class RepoId
386
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
399
 
@@ -472,6 +484,12 @@ module Google
472
484
  include Google::Apis::Core::JsonObjectSupport
473
485
  end
474
486
 
487
+ class VexAssessment
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
475
493
  class VulnerabilityOccurrence
476
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
495
 
@@ -894,6 +912,14 @@ module Google
894
912
  end
895
913
  end
896
914
 
915
+ class Justification
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ property :details, as: 'details'
919
+ property :justification_type, as: 'justificationType'
920
+ end
921
+ end
922
+
897
923
  class Jwt
898
924
  # @private
899
925
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1121,6 +1147,16 @@ module Google
1121
1147
  end
1122
1148
  end
1123
1149
 
1150
+ class Remediation
1151
+ # @private
1152
+ class Representation < Google::Apis::Core::JsonRepresentation
1153
+ property :details, as: 'details'
1154
+ property :remediation_type, as: 'remediationType'
1155
+ property :remediation_uri, as: 'remediationUri', class: Google::Apis::OndemandscanningV1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1::RelatedUrl::Representation
1156
+
1157
+ end
1158
+ end
1159
+
1124
1160
  class RepoId
1125
1161
  # @private
1126
1162
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1285,6 +1321,22 @@ module Google
1285
1321
  end
1286
1322
  end
1287
1323
 
1324
+ class VexAssessment
1325
+ # @private
1326
+ class Representation < Google::Apis::Core::JsonRepresentation
1327
+ property :cve, as: 'cve'
1328
+ collection :impacts, as: 'impacts'
1329
+ property :justification, as: 'justification', class: Google::Apis::OndemandscanningV1::Justification, decorator: Google::Apis::OndemandscanningV1::Justification::Representation
1330
+
1331
+ property :note_name, as: 'noteName'
1332
+ collection :related_uris, as: 'relatedUris', class: Google::Apis::OndemandscanningV1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1::RelatedUrl::Representation
1333
+
1334
+ collection :remediations, as: 'remediations', class: Google::Apis::OndemandscanningV1::Remediation, decorator: Google::Apis::OndemandscanningV1::Remediation::Representation
1335
+
1336
+ property :state, as: 'state'
1337
+ end
1338
+ end
1339
+
1288
1340
  class VulnerabilityOccurrence
1289
1341
  # @private
1290
1342
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1304,6 +1356,8 @@ module Google
1304
1356
  property :severity, as: 'severity'
1305
1357
  property :short_description, as: 'shortDescription'
1306
1358
  property :type, as: 'type'
1359
+ property :vex_assessment, as: 'vexAssessment', class: Google::Apis::OndemandscanningV1::VexAssessment, decorator: Google::Apis::OndemandscanningV1::VexAssessment::Representation
1360
+
1307
1361
  end
1308
1362
  end
1309
1363
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ondemandscanning_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.35.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-03-12 00:00:00.000000000 Z
11
+ date: 2023-03-19 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-ondemandscanning_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.35.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1
63
63
  post_install_message:
64
64
  rdoc_options: []