Skip to content
Open
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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33763,6 +33763,10 @@ components:
DetachCaseRequestData:
description: Data for detaching security findings from their case.
properties:
id:
description: Unique identifier of the case.
example: "c1234567-89ab-cdef-0123-456789abcdef"
type: string
relationships:
$ref: "#/components/schemas/DetachCaseRequestDataRelationships"
type:
Expand Down
12 changes: 11 additions & 1 deletion lib/datadog_api_client/v2/models/detach_case_request_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class DetachCaseRequestData
include BaseGenericModel

# Unique identifier of the case.
attr_accessor :id

# Relationships detaching security findings from their case.
attr_accessor :relationships

Expand All @@ -33,6 +36,7 @@ class DetachCaseRequestData
# @!visibility private
def self.attribute_map
{
:'id' => :'id',
:'relationships' => :'relationships',
:'type' => :'type'
}
Expand All @@ -42,6 +46,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'id' => :'String',
:'relationships' => :'DetachCaseRequestDataRelationships',
:'type' => :'CaseDataType'
}
Expand All @@ -65,6 +70,10 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'id')
self.id = attributes[:'id']
end

if attributes.key?(:'relationships')
self.relationships = attributes[:'relationships']
end
Expand Down Expand Up @@ -118,6 +127,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
relationships == o.relationships &&
type == o.type &&
additional_properties == o.additional_properties
Expand All @@ -127,7 +137,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[relationships, type, additional_properties].hash
[id, relationships, type, additional_properties].hash
end
end
end
Loading