Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -107368,6 +107384,7 @@ components:
- ONE_THREE
- ONE_FOUR
- ONE_FIVE
- ONE_SIX
SplitAPIKey:
description: The definition of the `SplitAPIKey` object.
properties:
Expand Down Expand Up @@ -121376,10 +121393,12 @@ components:
- ReflectionInjection
- RiskyLicense
- SessionRewriting
- SessionRewritting
- SessionTimeout
- SqlInjection
- Ssrf
- StackTraceLeak
- TemplateInjection
- TrustBoundaryViolation
- Unmaintained
- UntrustedDeserialization
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -194247,6 +194268,7 @@ paths:
last_success:
env: prod
id: "Host|i-0fc7edef1ab26d7ef"
type: scanned-assets-metadata
schema:
$ref: "#/components/schemas/ScannedAssetsMetadata"
description: OK
Expand Down
1 change: 1 addition & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/api/security_monitoring_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions lib/datadog_api_client/v2/models/asset_operating_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ 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.
# @!visibility private
def self.attribute_map
{
:'description' => :'description',
:'name' => :'name'
:'name' => :'name',
:'version' => :'version'
}
end

Expand All @@ -43,7 +47,8 @@ def self.attribute_map
def self.openapi_types
{
:'description' => :'String',
:'name' => :'String'
:'name' => :'String',
:'version' => :'String'
}
end

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -120,14 +129,15 @@ def ==(o)
self.class == o.class &&
description == o.description &&
name == o.name &&
version == o.version &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[description, name, additional_properties].hash
[description, name, version, additional_properties].hash
end
end
end
27 changes: 24 additions & 3 deletions lib/datadog_api_client/v2/models/scanned_asset_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ 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.
# @!visibility private
def self.attribute_map
{
:'attributes' => :'attributes',
:'id' => :'id'
:'id' => :'id',
:'type' => :'type'
}
end

Expand All @@ -43,7 +47,8 @@ def self.attribute_map
def self.openapi_types
{
:'attributes' => :'ScannedAssetMetadataAttributes',
:'id' => :'String'
:'id' => :'String',
:'type' => :'ScannedAssetMetadataType'
}
end

Expand Down Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -131,14 +151,15 @@ def ==(o)
self.class == o.class &&
attributes == o.attributes &&
id == o.id &&
type == o.type &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[attributes, id, additional_properties].hash
[attributes, id, type, additional_properties].hash
end
end
end
26 changes: 26 additions & 0 deletions lib/datadog_api_client/v2/models/scanned_asset_metadata_type.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lib/datadog_api_client/v2/models/spec_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions lib/datadog_api_client/v2/models/vulnerability_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading