From 0b197cf4f162906b556f120d65c8bbf9bb2f3667 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 24 Aug 2026 11:25:26 +0000 Subject: [PATCH] Regenerate client from commit 6dc3a80 of spec repo --- .generator/schemas/v2/openapi.yaml | 26 ++++++++++++++++-- lib/datadog_api_client/inflector.rb | 1 + .../v2/api/security_monitoring_api.rb | 2 +- .../v2/models/asset_operating_system.rb | 16 ++++++++--- .../v2/models/scanned_asset_metadata.rb | 27 ++++++++++++++++--- .../v2/models/scanned_asset_metadata_type.rb | 26 ++++++++++++++++++ .../v2/models/spec_version.rb | 1 + .../v2/models/vulnerability_type.rb | 2 ++ 8 files changed, 92 insertions(+), 9 deletions(-) create mode 100644 lib/datadog_api_client/v2/models/scanned_asset_metadata_type.rb diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9b5a962d1755..e5cc997783df 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -10910,6 +10910,10 @@ components: description: Operating system name. example: ubuntu type: string + version: + description: Operating system version. + example: "24.04" + type: string required: - name type: object @@ -94632,8 +94636,11 @@ components: description: The ID of the scanned asset metadata. example: "Host|i-0fc7edef1ab26d7ef" type: string + type: + $ref: "#/components/schemas/ScannedAssetMetadataType" required: - id + - type - attributes type: object ScannedAssetMetadataAsset: @@ -94688,6 +94695,14 @@ components: required: - timestamp type: object + ScannedAssetMetadataType: + description: The JSON:API type. + enum: + - scanned-assets-metadata + example: scanned-assets-metadata + type: string + x-enum-varnames: + - SCANNED_ASSETS_METADATA ScannedAssetsMetadata: description: The expected response schema when listing scanned assets metadata. properties: @@ -107359,7 +107374,8 @@ components: - "1.3" - "1.4" - "1.5" - example: "1.5" + - "1.6" + example: "1.6" type: string x-enum-varnames: - ONE_ZERO @@ -107368,6 +107384,7 @@ components: - ONE_THREE - ONE_FOUR - ONE_FIVE + - ONE_SIX SplitAPIKey: description: The definition of the `SplitAPIKey` object. properties: @@ -121376,10 +121393,12 @@ components: - ReflectionInjection - RiskyLicense - SessionRewriting + - SessionRewritting - SessionTimeout - SqlInjection - Ssrf - StackTraceLeak + - TemplateInjection - TrustBoundaryViolation - Unmaintained - UntrustedDeserialization @@ -121421,10 +121440,12 @@ components: - REFLECTION_INJECTION - RISKY_LICENSE - SESSION_REWRITING + - SESSION_REWRITTING - SESSION_TIMEOUT - SQL_INJECTION - SSRF - STACK_TRACE_LEAK + - TEMPLATE_INJECTION - TRUST_BOUNDARY_VIOLATION - UNMAINTAINED - UNTRUSTED_DESERIALIZATION @@ -194101,7 +194122,7 @@ paths: dependencies: [] metadata: {} serialNumber: urn:uuid:abc-123 - specVersion: "1.5" + specVersion: "1.6" version: 1 id: "github.com/datadog/datadog-agent" type: sboms @@ -194247,6 +194268,7 @@ paths: last_success: env: prod id: "Host|i-0fc7edef1ab26d7ef" + type: scanned-assets-metadata schema: $ref: "#/components/schemas/ScannedAssetsMetadata" description: OK diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 105d969ef8bb..00df5b8d0c62 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -6928,6 +6928,7 @@ def overrides "v2.scanned_asset_metadata_asset" => "ScannedAssetMetadataAsset", "v2.scanned_asset_metadata_attributes" => "ScannedAssetMetadataAttributes", "v2.scanned_asset_metadata_last_success" => "ScannedAssetMetadataLastSuccess", + "v2.scanned_asset_metadata_type" => "ScannedAssetMetadataType", "v2.scanned_assets_metadata" => "ScannedAssetsMetadata", "v2.scan_result_response" => "ScanResultResponse", "v2.sca_request" => "ScaRequest", diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 11081546ccda..5af733107603 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -9674,7 +9674,7 @@ def list_vulnerabilities_with_http_info(opts = {}) if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 1 fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling SecurityMonitoringAPI.list_vulnerabilities, must be greater than or equal to 1.' end - allowable_values = ['AdminConsoleActive', 'CodeInjection', 'CommandInjection', 'ComponentWithKnownVulnerability', 'DangerousWorkflows', 'DefaultAppDeployed', 'DefaultHtmlEscapeInvalid', 'DirectoryListingLeak', 'EmailHtmlInjection', 'EndOfLife', 'HardcodedPassword', 'HardcodedSecret', 'HeaderInjection', 'HstsHeaderMissing', 'InsecureAuthProtocol', 'InsecureCookie', 'InsecureJspLayout', 'LdapInjection', 'MaliciousPackage', 'MandatoryRemediation', 'NoHttpOnlyCookie', 'NoSameSiteCookie', 'NoSqlMongoDbInjection', 'PathTraversal', 'ReflectionInjection', 'RiskyLicense', 'SessionRewriting', 'SessionTimeout', 'SqlInjection', 'Ssrf', 'StackTraceLeak', 'TrustBoundaryViolation', 'Unmaintained', 'UntrustedDeserialization', 'UnvalidatedRedirect', 'VerbTampering', 'WeakCipher', 'WeakHash', 'WeakRandomness', 'XContentTypeHeaderMissing', 'XPathInjection', 'Xss'] + allowable_values = ['AdminConsoleActive', 'CodeInjection', 'CommandInjection', 'ComponentWithKnownVulnerability', 'DangerousWorkflows', 'DefaultAppDeployed', 'DefaultHtmlEscapeInvalid', 'DirectoryListingLeak', 'EmailHtmlInjection', 'EndOfLife', 'HardcodedPassword', 'HardcodedSecret', 'HeaderInjection', 'HstsHeaderMissing', 'InsecureAuthProtocol', 'InsecureCookie', 'InsecureJspLayout', 'LdapInjection', 'MaliciousPackage', 'MandatoryRemediation', 'NoHttpOnlyCookie', 'NoSameSiteCookie', 'NoSqlMongoDbInjection', 'PathTraversal', 'ReflectionInjection', 'RiskyLicense', 'SessionRewriting', 'SessionRewritting', 'SessionTimeout', 'SqlInjection', 'Ssrf', 'StackTraceLeak', 'TemplateInjection', 'TrustBoundaryViolation', 'Unmaintained', 'UntrustedDeserialization', 'UnvalidatedRedirect', 'VerbTampering', 'WeakCipher', 'WeakHash', 'WeakRandomness', 'XContentTypeHeaderMissing', 'XPathInjection', 'Xss'] if @api_client.config.client_side_validation && opts[:'filter_type'] && !allowable_values.include?(opts[:'filter_type']) fail ArgumentError, "invalid value for \"filter_type\", must be one of #{allowable_values}" end diff --git a/lib/datadog_api_client/v2/models/asset_operating_system.rb b/lib/datadog_api_client/v2/models/asset_operating_system.rb index 60937568b5f8..b7417a6ad682 100644 --- a/lib/datadog_api_client/v2/models/asset_operating_system.rb +++ b/lib/datadog_api_client/v2/models/asset_operating_system.rb @@ -27,6 +27,9 @@ class AssetOperatingSystem # Operating system name. attr_reader :name + # Operating system version. + attr_accessor :version + attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. @@ -34,7 +37,8 @@ class AssetOperatingSystem def self.attribute_map { :'description' => :'description', - :'name' => :'name' + :'name' => :'name', + :'version' => :'version' } end @@ -43,7 +47,8 @@ def self.attribute_map def self.openapi_types { :'description' => :'String', - :'name' => :'String' + :'name' => :'String', + :'version' => :'String' } end @@ -72,6 +77,10 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] end + + if attributes.key?(:'version') + self.version = attributes[:'version'] + end end # Check to see if the all the properties in the model are valid @@ -120,6 +129,7 @@ def ==(o) self.class == o.class && description == o.description && name == o.name && + version == o.version && additional_properties == o.additional_properties end @@ -127,7 +137,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [description, name, additional_properties].hash + [description, name, version, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb b/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb index b492387cdd27..1b3578eef3da 100644 --- a/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb +++ b/lib/datadog_api_client/v2/models/scanned_asset_metadata.rb @@ -27,6 +27,9 @@ class ScannedAssetMetadata # The ID of the scanned asset metadata. attr_reader :id + # The JSON:API type. + attr_reader :type + attr_accessor :additional_properties # Attribute mapping from ruby-style variable name to JSON key. @@ -34,7 +37,8 @@ class ScannedAssetMetadata def self.attribute_map { :'attributes' => :'attributes', - :'id' => :'id' + :'id' => :'id', + :'type' => :'type' } end @@ -43,7 +47,8 @@ def self.attribute_map def self.openapi_types { :'attributes' => :'ScannedAssetMetadataAttributes', - :'id' => :'String' + :'id' => :'String', + :'type' => :'ScannedAssetMetadataType' } end @@ -72,6 +77,10 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end end # Check to see if the all the properties in the model are valid @@ -80,6 +89,7 @@ def initialize(attributes = {}) def valid? return false if @attributes.nil? return false if @id.nil? + return false if @type.nil? true end @@ -103,6 +113,16 @@ def id=(id) @id = id end + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + # @!visibility private + def type=(type) + if type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + # Returns the object in the form of hash, with additionalProperties support. # @return [Hash] Returns the object in the form of hash # @!visibility private @@ -131,6 +151,7 @@ def ==(o) self.class == o.class && attributes == o.attributes && id == o.id && + type == o.type && additional_properties == o.additional_properties end @@ -138,7 +159,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [attributes, id, additional_properties].hash + [attributes, id, type, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/scanned_asset_metadata_type.rb b/lib/datadog_api_client/v2/models/scanned_asset_metadata_type.rb new file mode 100644 index 000000000000..3d5059491d1c --- /dev/null +++ b/lib/datadog_api_client/v2/models/scanned_asset_metadata_type.rb @@ -0,0 +1,26 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The JSON:API type. + class ScannedAssetMetadataType + include BaseEnumModel + + SCANNED_ASSETS_METADATA = "scanned-assets-metadata".freeze + end +end diff --git a/lib/datadog_api_client/v2/models/spec_version.rb b/lib/datadog_api_client/v2/models/spec_version.rb index 998009ba806c..231b8dcdf2f9 100644 --- a/lib/datadog_api_client/v2/models/spec_version.rb +++ b/lib/datadog_api_client/v2/models/spec_version.rb @@ -27,5 +27,6 @@ class SpecVersion ONE_THREE = "1.3".freeze ONE_FOUR = "1.4".freeze ONE_FIVE = "1.5".freeze + ONE_SIX = "1.6".freeze end end diff --git a/lib/datadog_api_client/v2/models/vulnerability_type.rb b/lib/datadog_api_client/v2/models/vulnerability_type.rb index 437bf544b0d6..74a0b020fd68 100644 --- a/lib/datadog_api_client/v2/models/vulnerability_type.rb +++ b/lib/datadog_api_client/v2/models/vulnerability_type.rb @@ -48,10 +48,12 @@ class VulnerabilityType REFLECTION_INJECTION = "ReflectionInjection".freeze RISKY_LICENSE = "RiskyLicense".freeze SESSION_REWRITING = "SessionRewriting".freeze + SESSION_REWRITTING = "SessionRewritting".freeze SESSION_TIMEOUT = "SessionTimeout".freeze SQL_INJECTION = "SqlInjection".freeze SSRF = "Ssrf".freeze STACK_TRACE_LEAK = "StackTraceLeak".freeze + TEMPLATE_INJECTION = "TemplateInjection".freeze TRUST_BOUNDARY_VIOLATION = "TrustBoundaryViolation".freeze UNMAINTAINED = "Unmaintained".freeze UNTRUSTED_DESERIALIZATION = "UntrustedDeserialization".freeze