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
32 changes: 0 additions & 32 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47115,11 +47115,6 @@ components:
IncidentUserDefinedFieldAttributesResponse:
description: Attributes of an incident user-defined field.
properties:
attached_to:
description: The resource type this field is attached to. Always "incidents".
example: "incidents"
readOnly: true
type: string
category:
$ref: "#/components/schemas/IncidentUserDefinedFieldCategory"
collected:
Expand Down Expand Up @@ -47164,12 +47159,6 @@ components:
example: "1.5"
nullable: true
type: string
prerequisite:
description: Reserved for future use. Always null.
example:
nullable: true
readOnly: true
type: string
required:
description: When true, users must fill out this field on incidents.
example: false
Expand All @@ -47179,12 +47168,6 @@ components:
example: false
readOnly: true
type: boolean
table_id:
description: Reserved for internal use. Always 0.
example: 0
format: int64
readOnly: true
type: integer
tag_key:
description: For metric tag-type fields only, the metric tag key that powers the autocomplete options.
example:
Expand All @@ -47205,7 +47188,6 @@ components:
nullable: true
type: array
required:
- attached_to
- category
- collected
- created
Expand All @@ -47216,10 +47198,8 @@ components:
- modified
- name
- ordinal
- prerequisite
- required
- reserved
- table_id
- tag_key
- type
- valid_values
Expand Down Expand Up @@ -139523,7 +139503,6 @@ paths:
value:
data:
- attributes:
attached_to: "incidents"
category: "what_happened"
collected: "active"
created: "2026-03-18T08:40:04.437887Z"
Expand All @@ -139534,10 +139513,8 @@ paths:
modified: "2026-03-18T08:40:04.437887Z"
name: "root_cause"
ordinal: "1.1"
prerequisite:
required: false
reserved: false
table_id: 0
tag_key:
type: 1
valid_values:
Expand Down Expand Up @@ -139642,7 +139619,6 @@ paths:
value:
data:
attributes:
attached_to: "incidents"
category:
collected:
created: "2026-03-18T08:40:05.185406Z"
Expand All @@ -139653,10 +139629,8 @@ paths:
modified: "2026-03-18T08:40:05.185406Z"
name: "root_cause"
ordinal: "9"
prerequisite:
required: false
reserved: false
table_id: 0
tag_key:
type: 3
valid_values:
Expand Down Expand Up @@ -139773,7 +139747,6 @@ paths:
value:
data:
attributes:
attached_to: "incidents"
category: "what_happened"
collected: "active"
created: "2026-03-18T08:40:04.437887Z"
Expand All @@ -139784,10 +139757,8 @@ paths:
modified: "2026-03-18T08:40:04.437887Z"
name: "root_cause"
ordinal: "1.1"
prerequisite:
required: false
reserved: false
table_id: 0
tag_key:
type: 1
valid_values:
Expand Down Expand Up @@ -139883,7 +139854,6 @@ paths:
value:
data:
attributes:
attached_to: "incidents"
category: "what_happened"
collected:
created: "2026-03-18T08:39:49.913895Z"
Expand All @@ -139894,10 +139864,8 @@ paths:
modified: "2026-03-18T08:39:49.922909Z"
name: "root_cause"
ordinal: "8"
prerequisite:
required: false
reserved: false
table_id: 0
tag_key:
type: 3
valid_values:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ module DatadogAPIClient::V2
class IncidentUserDefinedFieldAttributesResponse
include BaseGenericModel

# The resource type this field is attached to. Always "incidents".
attr_reader :attached_to

# The section in which the field appears: "what_happened" or "why_it_happened". When null, the field appears in the Attributes section.
attr_accessor :category

Expand Down Expand Up @@ -54,18 +51,12 @@ class IncidentUserDefinedFieldAttributesResponse
# A decimal string representing the field's display order in the UI.
attr_accessor :ordinal

# Reserved for future use. Always null.
attr_accessor :prerequisite

# When true, users must fill out this field on incidents.
attr_reader :required

# When true, this field is reserved for system use and cannot be deleted.
attr_reader :reserved

# Reserved for internal use. Always 0.
attr_reader :table_id

# For metric tag-type fields only, the metric tag key that powers the autocomplete options.
attr_accessor :tag_key

Expand All @@ -81,7 +72,6 @@ class IncidentUserDefinedFieldAttributesResponse
# @!visibility private
def self.attribute_map
{
:'attached_to' => :'attached_to',
:'category' => :'category',
:'collected' => :'collected',
:'created' => :'created',
Expand All @@ -92,10 +82,8 @@ def self.attribute_map
:'modified' => :'modified',
:'name' => :'name',
:'ordinal' => :'ordinal',
:'prerequisite' => :'prerequisite',
:'required' => :'required',
:'reserved' => :'reserved',
:'table_id' => :'table_id',
:'tag_key' => :'tag_key',
:'type' => :'type',
:'valid_values' => :'valid_values'
Expand All @@ -106,7 +94,6 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'attached_to' => :'String',
:'category' => :'IncidentUserDefinedFieldCategory',
:'collected' => :'IncidentUserDefinedFieldCollected',
:'created' => :'Time',
Expand All @@ -117,10 +104,8 @@ def self.openapi_types
:'modified' => :'Time',
:'name' => :'String',
:'ordinal' => :'String',
:'prerequisite' => :'String',
:'required' => :'Boolean',
:'reserved' => :'Boolean',
:'table_id' => :'Integer',
:'tag_key' => :'String',
:'type' => :'Integer',
:'valid_values' => :'Array<IncidentUserDefinedFieldValidValue>'
Expand All @@ -138,7 +123,6 @@ def self.openapi_nullable
:'metadata',
:'modified',
:'ordinal',
:'prerequisite',
:'tag_key',
:'type',
:'valid_values',
Expand All @@ -163,10 +147,6 @@ def initialize(attributes = {})
end
}

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

if attributes.key?(:'category')
self.category = attributes[:'category']
end
Expand Down Expand Up @@ -207,10 +187,6 @@ def initialize(attributes = {})
self.ordinal = attributes[:'ordinal']
end

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

if attributes.key?(:'required')
self.required = attributes[:'required']
end
Expand All @@ -219,10 +195,6 @@ def initialize(attributes = {})
self.reserved = attributes[:'reserved']
end

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

if attributes.key?(:'tag_key')
self.tag_key = attributes[:'tag_key']
end
Expand All @@ -242,28 +214,16 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @attached_to.nil?
return false if @created.nil?
return false if @display_name.nil?
return false if @name.nil?
return false if @required.nil?
return false if @reserved.nil?
return false if @table_id.nil?
return false if @type > 8
return false if @type < 1
true
end

# Custom attribute writer method with validation
# @param attached_to [Object] Object to be assigned
# @!visibility private
def attached_to=(attached_to)
if attached_to.nil?
fail ArgumentError, 'invalid value for "attached_to", attached_to cannot be nil.'
end
@attached_to = attached_to
end

# Custom attribute writer method with validation
# @param created [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -314,16 +274,6 @@ def reserved=(reserved)
@reserved = reserved
end

# Custom attribute writer method with validation
# @param table_id [Object] Object to be assigned
# @!visibility private
def table_id=(table_id)
if table_id.nil?
fail ArgumentError, 'invalid value for "table_id", table_id cannot be nil.'
end
@table_id = table_id
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -363,7 +313,6 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
attached_to == o.attached_to &&
category == o.category &&
collected == o.collected &&
created == o.created &&
Expand All @@ -374,10 +323,8 @@ def ==(o)
modified == o.modified &&
name == o.name &&
ordinal == o.ordinal &&
prerequisite == o.prerequisite &&
required == o.required &&
reserved == o.reserved &&
table_id == o.table_id &&
tag_key == o.tag_key &&
type == o.type &&
valid_values == o.valid_values &&
Expand All @@ -388,7 +335,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[attached_to, category, collected, created, default_value, deleted, display_name, metadata, modified, name, ordinal, prerequisite, required, reserved, table_id, tag_key, type, valid_values, additional_properties].hash
[category, collected, created, default_value, deleted, display_name, metadata, modified, name, ordinal, required, reserved, tag_key, type, valid_values, additional_properties].hash
end
end
end
Loading