google-apis-ondemandscanning_v1beta1 0.32.0 → 0.34.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: 3de2b114b1624861d2a9ca89fb953fbd2187e1fc88bdd36eb4dec0fa05d9016a
4
- data.tar.gz: c244d1ee75313587c63071b2eb71d34c04512eeeb6853eaa66f574dc7dbe8f96
3
+ metadata.gz: 5ad60c0aca33c85bbcd51c60bb7b998ad0adab35da9cdc993462e2d34adc685e
4
+ data.tar.gz: 141b2a9473f028f94293d826722ae4e9616bcb4b0e3c6f18a052b12586c02d62
5
5
  SHA512:
6
- metadata.gz: 5ba072dc40a9edf2614ba8098898530f81d2221560c773c92ae30d26b25e582f0e4a5b76a8e9f91b0afa6746baa2f97be5b26e9cbcda22f5ad4bfa25146e1c0c
7
- data.tar.gz: bd069274d622cf2b941c176271542ec5f093eaf01c30ec166392e54040b013149dc74c1e193f17497e90e65a17eb7b130584fcb821bf7d545dc20e109983223b
6
+ metadata.gz: ec2ad9f495d475ba8206ef485d2e639414b68ca73917ffff2a7ae275bd1fdec0e09b280c1296190349e2feaaaf8626756c9825dd4f0dbb0c33863d8fba611b4f
7
+ data.tar.gz: 450888b46881ce1a86e09a8af61bd99d27c5aa28d8e740bed9d95a38a8068442df45caedaba88d1fe8b69a4d3438731a9eeaca0bb67b59b09fb1099aa194bfd7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-ondemandscanning_v1beta1
2
2
 
3
+ ### v0.34.0 (2023-03-26)
4
+
5
+ * Regenerated from discovery document revision 20230313
6
+
7
+ ### v0.33.0 (2023-03-05)
8
+
9
+ * Regenerated from discovery document revision 20230227
10
+
3
11
  ### v0.32.0 (2023-02-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20230213
@@ -1453,6 +1453,32 @@ module Google
1453
1453
  end
1454
1454
  end
1455
1455
 
1456
+ # Justification provides the justification when the state of the assessment if
1457
+ # NOT_AFFECTED.
1458
+ class Justification
1459
+ include Google::Apis::Core::Hashable
1460
+
1461
+ # Additional details on why this justification was chosen.
1462
+ # Corresponds to the JSON property `details`
1463
+ # @return [String]
1464
+ attr_accessor :details
1465
+
1466
+ # The justification type for this vulnerability.
1467
+ # Corresponds to the JSON property `justificationType`
1468
+ # @return [String]
1469
+ attr_accessor :justification_type
1470
+
1471
+ def initialize(**args)
1472
+ update!(**args)
1473
+ end
1474
+
1475
+ # Update properties of this object
1476
+ def update!(**args)
1477
+ @details = args[:details] if args.key?(:details)
1478
+ @justification_type = args[:justification_type] if args.key?(:justification_type)
1479
+ end
1480
+ end
1481
+
1456
1482
  #
1457
1483
  class Jwt
1458
1484
  include Google::Apis::Core::Hashable
@@ -1638,6 +1664,31 @@ module Google
1638
1664
  end
1639
1665
  end
1640
1666
 
1667
+ #
1668
+ class Maintainer
1669
+ include Google::Apis::Core::Hashable
1670
+
1671
+ #
1672
+ # Corresponds to the JSON property `kind`
1673
+ # @return [String]
1674
+ attr_accessor :kind
1675
+
1676
+ #
1677
+ # Corresponds to the JSON property `name`
1678
+ # @return [String]
1679
+ attr_accessor :name
1680
+
1681
+ def initialize(**args)
1682
+ update!(**args)
1683
+ end
1684
+
1685
+ # Update properties of this object
1686
+ def update!(**args)
1687
+ @kind = args[:kind] if args.key?(:kind)
1688
+ @name = args[:name] if args.key?(:name)
1689
+ end
1690
+ end
1691
+
1641
1692
  #
1642
1693
  class Material
1643
1694
  include Google::Apis::Core::Hashable
@@ -1952,6 +2003,11 @@ module Google
1952
2003
  class PackageData
1953
2004
  include Google::Apis::Core::Hashable
1954
2005
 
2006
+ # The architecture of the package.
2007
+ # Corresponds to the JSON property `architecture`
2008
+ # @return [String]
2009
+ attr_accessor :architecture
2010
+
1955
2011
  # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
1956
2012
  # the vulnerability may manifest. Examples include distro or storage location
1957
2013
  # for vulnerable jar.
@@ -1977,6 +2033,11 @@ module Google
1977
2033
  # @return [String]
1978
2034
  attr_accessor :hash_digest
1979
2035
 
2036
+ # The maintainer of the package.
2037
+ # Corresponds to the JSON property `maintainer`
2038
+ # @return [Google::Apis::OndemandscanningV1beta1::Maintainer]
2039
+ attr_accessor :maintainer
2040
+
1980
2041
  # The OS affected by a vulnerability Used to generate the cpe_uri for OS
1981
2042
  # packages
1982
2043
  # Corresponds to the JSON property `os`
@@ -2020,10 +2081,12 @@ module Google
2020
2081
 
2021
2082
  # Update properties of this object
2022
2083
  def update!(**args)
2084
+ @architecture = args[:architecture] if args.key?(:architecture)
2023
2085
  @cpe_uri = args[:cpe_uri] if args.key?(:cpe_uri)
2024
2086
  @dependency_chain = args[:dependency_chain] if args.key?(:dependency_chain)
2025
2087
  @file_location = args[:file_location] if args.key?(:file_location)
2026
2088
  @hash_digest = args[:hash_digest] if args.key?(:hash_digest)
2089
+ @maintainer = args[:maintainer] if args.key?(:maintainer)
2027
2090
  @os = args[:os] if args.key?(:os)
2028
2091
  @os_version = args[:os_version] if args.key?(:os_version)
2029
2092
  @package = args[:package] if args.key?(:package)
@@ -2286,6 +2349,37 @@ module Google
2286
2349
  end
2287
2350
  end
2288
2351
 
2352
+ # Specifies details on how to handle (and presumably, fix) a vulnerability.
2353
+ class Remediation
2354
+ include Google::Apis::Core::Hashable
2355
+
2356
+ # Contains a comprehensive human-readable discussion of the remediation.
2357
+ # Corresponds to the JSON property `details`
2358
+ # @return [String]
2359
+ attr_accessor :details
2360
+
2361
+ # The type of remediation that can be applied.
2362
+ # Corresponds to the JSON property `remediationType`
2363
+ # @return [String]
2364
+ attr_accessor :remediation_type
2365
+
2366
+ # Metadata for any related URL information.
2367
+ # Corresponds to the JSON property `remediationUri`
2368
+ # @return [Google::Apis::OndemandscanningV1beta1::RelatedUrl]
2369
+ attr_accessor :remediation_uri
2370
+
2371
+ def initialize(**args)
2372
+ update!(**args)
2373
+ end
2374
+
2375
+ # Update properties of this object
2376
+ def update!(**args)
2377
+ @details = args[:details] if args.key?(:details)
2378
+ @remediation_type = args[:remediation_type] if args.key?(:remediation_type)
2379
+ @remediation_uri = args[:remediation_uri] if args.key?(:remediation_uri)
2380
+ end
2381
+ end
2382
+
2289
2383
  # A unique identifier for a Cloud Repo.
2290
2384
  class RepoId
2291
2385
  include Google::Apis::Core::Hashable
@@ -2916,6 +3010,67 @@ module Google
2916
3010
  end
2917
3011
  end
2918
3012
 
3013
+ # VexAssessment provides all publisher provided Vex information that is related
3014
+ # to this vulnerability.
3015
+ class VexAssessment
3016
+ include Google::Apis::Core::Hashable
3017
+
3018
+ # Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking
3019
+ # number for the vulnerability.
3020
+ # Corresponds to the JSON property `cve`
3021
+ # @return [String]
3022
+ attr_accessor :cve
3023
+
3024
+ # Contains information about the impact of this vulnerability, this will change
3025
+ # with time.
3026
+ # Corresponds to the JSON property `impacts`
3027
+ # @return [Array<String>]
3028
+ attr_accessor :impacts
3029
+
3030
+ # Justification provides the justification when the state of the assessment if
3031
+ # NOT_AFFECTED.
3032
+ # Corresponds to the JSON property `justification`
3033
+ # @return [Google::Apis::OndemandscanningV1beta1::Justification]
3034
+ attr_accessor :justification
3035
+
3036
+ # The VulnerabilityAssessment note from which this VexAssessment was generated.
3037
+ # This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
3038
+ # Corresponds to the JSON property `noteName`
3039
+ # @return [String]
3040
+ attr_accessor :note_name
3041
+
3042
+ # Holds a list of references associated with this vulnerability item and
3043
+ # assessment.
3044
+ # Corresponds to the JSON property `relatedUris`
3045
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::RelatedUrl>]
3046
+ attr_accessor :related_uris
3047
+
3048
+ # Specifies details on how to handle (and presumably, fix) a vulnerability.
3049
+ # Corresponds to the JSON property `remediations`
3050
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::Remediation>]
3051
+ attr_accessor :remediations
3052
+
3053
+ # Provides the state of this Vulnerability assessment.
3054
+ # Corresponds to the JSON property `state`
3055
+ # @return [String]
3056
+ attr_accessor :state
3057
+
3058
+ def initialize(**args)
3059
+ update!(**args)
3060
+ end
3061
+
3062
+ # Update properties of this object
3063
+ def update!(**args)
3064
+ @cve = args[:cve] if args.key?(:cve)
3065
+ @impacts = args[:impacts] if args.key?(:impacts)
3066
+ @justification = args[:justification] if args.key?(:justification)
3067
+ @note_name = args[:note_name] if args.key?(:note_name)
3068
+ @related_uris = args[:related_uris] if args.key?(:related_uris)
3069
+ @remediations = args[:remediations] if args.key?(:remediations)
3070
+ @state = args[:state] if args.key?(:state)
3071
+ end
3072
+ end
3073
+
2919
3074
  # An occurrence of a severity vulnerability on a resource.
2920
3075
  class VulnerabilityOccurrence
2921
3076
  include Google::Apis::Core::Hashable
@@ -2997,6 +3152,12 @@ module Google
2997
3152
  # @return [String]
2998
3153
  attr_accessor :type
2999
3154
 
3155
+ # VexAssessment provides all publisher provided Vex information that is related
3156
+ # to this vulnerability.
3157
+ # Corresponds to the JSON property `vexAssessment`
3158
+ # @return [Google::Apis::OndemandscanningV1beta1::VexAssessment]
3159
+ attr_accessor :vex_assessment
3160
+
3000
3161
  def initialize(**args)
3001
3162
  update!(**args)
3002
3163
  end
@@ -3015,6 +3176,7 @@ module Google
3015
3176
  @severity = args[:severity] if args.key?(:severity)
3016
3177
  @short_description = args[:short_description] if args.key?(:short_description)
3017
3178
  @type = args[:type] if args.key?(:type)
3179
+ @vex_assessment = args[:vex_assessment] if args.key?(:vex_assessment)
3018
3180
  end
3019
3181
  end
3020
3182
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OndemandscanningV1beta1
18
18
  # Version of the google-apis-ondemandscanning_v1beta1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.34.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 = "20230213"
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
 
@@ -310,6 +316,12 @@ module Google
310
316
  include Google::Apis::Core::JsonObjectSupport
311
317
  end
312
318
 
319
+ class Maintainer
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
313
325
  class Material
314
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
327
 
@@ -376,6 +388,12 @@ module Google
376
388
  include Google::Apis::Core::JsonObjectSupport
377
389
  end
378
390
 
391
+ class Remediation
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
379
397
  class RepoId
380
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
399
 
@@ -466,6 +484,12 @@ module Google
466
484
  include Google::Apis::Core::JsonObjectSupport
467
485
  end
468
486
 
487
+ class VexAssessment
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
469
493
  class VulnerabilityOccurrence
470
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
495
 
@@ -887,6 +911,14 @@ module Google
887
911
  end
888
912
  end
889
913
 
914
+ class Justification
915
+ # @private
916
+ class Representation < Google::Apis::Core::JsonRepresentation
917
+ property :details, as: 'details'
918
+ property :justification_type, as: 'justificationType'
919
+ end
920
+ end
921
+
890
922
  class Jwt
891
923
  # @private
892
924
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -946,6 +978,14 @@ module Google
946
978
  end
947
979
  end
948
980
 
981
+ class Maintainer
982
+ # @private
983
+ class Representation < Google::Apis::Core::JsonRepresentation
984
+ property :kind, as: 'kind'
985
+ property :name, as: 'name'
986
+ end
987
+ end
988
+
949
989
  class Material
950
990
  # @private
951
991
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1025,12 +1065,15 @@ module Google
1025
1065
  class PackageData
1026
1066
  # @private
1027
1067
  class Representation < Google::Apis::Core::JsonRepresentation
1068
+ property :architecture, as: 'architecture'
1028
1069
  property :cpe_uri, as: 'cpeUri'
1029
1070
  collection :dependency_chain, as: 'dependencyChain', class: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency, decorator: Google::Apis::OndemandscanningV1beta1::LanguagePackageDependency::Representation
1030
1071
 
1031
1072
  collection :file_location, as: 'fileLocation', class: Google::Apis::OndemandscanningV1beta1::FileLocation, decorator: Google::Apis::OndemandscanningV1beta1::FileLocation::Representation
1032
1073
 
1033
1074
  property :hash_digest, as: 'hashDigest'
1075
+ property :maintainer, as: 'maintainer', class: Google::Apis::OndemandscanningV1beta1::Maintainer, decorator: Google::Apis::OndemandscanningV1beta1::Maintainer::Representation
1076
+
1034
1077
  property :os, as: 'os'
1035
1078
  property :os_version, as: 'osVersion'
1036
1079
  property :package, as: 'package'
@@ -1103,6 +1146,16 @@ module Google
1103
1146
  end
1104
1147
  end
1105
1148
 
1149
+ class Remediation
1150
+ # @private
1151
+ class Representation < Google::Apis::Core::JsonRepresentation
1152
+ property :details, as: 'details'
1153
+ property :remediation_type, as: 'remediationType'
1154
+ property :remediation_uri, as: 'remediationUri', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
1155
+
1156
+ end
1157
+ end
1158
+
1106
1159
  class RepoId
1107
1160
  # @private
1108
1161
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1267,6 +1320,22 @@ module Google
1267
1320
  end
1268
1321
  end
1269
1322
 
1323
+ class VexAssessment
1324
+ # @private
1325
+ class Representation < Google::Apis::Core::JsonRepresentation
1326
+ property :cve, as: 'cve'
1327
+ collection :impacts, as: 'impacts'
1328
+ property :justification, as: 'justification', class: Google::Apis::OndemandscanningV1beta1::Justification, decorator: Google::Apis::OndemandscanningV1beta1::Justification::Representation
1329
+
1330
+ property :note_name, as: 'noteName'
1331
+ collection :related_uris, as: 'relatedUris', class: Google::Apis::OndemandscanningV1beta1::RelatedUrl, decorator: Google::Apis::OndemandscanningV1beta1::RelatedUrl::Representation
1332
+
1333
+ collection :remediations, as: 'remediations', class: Google::Apis::OndemandscanningV1beta1::Remediation, decorator: Google::Apis::OndemandscanningV1beta1::Remediation::Representation
1334
+
1335
+ property :state, as: 'state'
1336
+ end
1337
+ end
1338
+
1270
1339
  class VulnerabilityOccurrence
1271
1340
  # @private
1272
1341
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1286,6 +1355,8 @@ module Google
1286
1355
  property :severity, as: 'severity'
1287
1356
  property :short_description, as: 'shortDescription'
1288
1357
  property :type, as: 'type'
1358
+ property :vex_assessment, as: 'vexAssessment', class: Google::Apis::OndemandscanningV1beta1::VexAssessment, decorator: Google::Apis::OndemandscanningV1beta1::VexAssessment::Representation
1359
+
1289
1360
  end
1290
1361
  end
1291
1362
 
@@ -151,13 +151,7 @@ module Google
151
151
  end
152
152
 
153
153
  # Lists operations that match the specified filter in the request. If the server
154
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
155
- # binding allows API services to override the binding to use different resource
156
- # name schemes, such as `users/*/operations`. To override the binding, API
157
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
158
- # service configuration. For backwards compatibility, the default name includes
159
- # the operations collection id, however overriding users must ensure the name
160
- # binding is the parent resource, without the operations collection id.
154
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
161
155
  # @param [String] name
162
156
  # The name of the operation's parent resource.
163
157
  # @param [String] filter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ondemandscanning_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.34.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-02-26 00:00:00.000000000 Z
11
+ date: 2023-03-26 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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-ondemandscanning_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []