Skip to content

Commit bbd92e9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8b9cffb1 of spec repo
1 parent 5ab5990 commit bbd92e9

7 files changed

+113
-9
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-17 21:06:24.773354",
8-
"spec_repo_commit": "2dfddc18"
7+
"regenerated": "2025-03-18 18:57:53.011554",
8+
"spec_repo_commit": "8b9cffb1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-17 21:06:24.789125",
13-
"spec_repo_commit": "2dfddc18"
12+
"regenerated": "2025-03-18 18:57:53.027622",
13+
"spec_repo_commit": "8b9cffb1"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11968,7 +11968,10 @@ components:
1196811968
properties:
1196911969
rawSchema:
1197011970
description: Schema from user input in base64 encoding.
11971+
example: ''
1197111972
type: string
11973+
required:
11974+
- rawSchema
1197211975
type: object
1197311976
EntityResponseIncludedRelatedEntity:
1197411977
description: Included related entity.
@@ -11989,6 +11992,7 @@ components:
1198911992
properties:
1199011993
kind:
1199111994
description: Entity kind.
11995+
example: ''
1199211996
type: string
1199311997
name:
1199411998
description: Entity name.
@@ -11999,6 +12003,8 @@ components:
1199912003
type:
1200012004
description: Entity relation type to the associated entity.
1200112005
type: string
12006+
required:
12007+
- kind
1200212008
type: object
1200312009
EntityResponseIncludedRelatedEntityMeta:
1200412010
description: Included related entity meta.
@@ -12036,7 +12042,10 @@ components:
1203612042
type: string
1203712043
title:
1203812044
description: Incident title.
12045+
example: ''
1203912046
type: string
12047+
required:
12048+
- title
1204012049
type: object
1204112050
EntityResponseIncludedRelatedOncallAttributes:
1204212051
description: Included related oncall attributes.
@@ -12045,7 +12054,10 @@ components:
1204512054
$ref: '#/components/schemas/EntityResponseIncludedRelatedOncallEscalations'
1204612055
provider:
1204712056
description: Oncall provider.
12057+
example: ''
1204812058
type: string
12059+
required:
12060+
- provider
1204912061
type: object
1205012062
EntityResponseIncludedRelatedOncallEscalationItem:
1205112063
description: Oncall escalation.
@@ -12083,6 +12095,8 @@ components:
1208312095
properties:
1208412096
schema:
1208512097
$ref: '#/components/schemas/EntityV3'
12098+
required:
12099+
- schema
1208612100
type: object
1208712101
EntityResponseMeta:
1208812102
description: Entity metadata.

lib/datadog_api_client/v2/models/entity_response_included_raw_schema_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EntityResponseIncludedRawSchemaAttributes
2222
include BaseGenericModel
2323

2424
# Schema from user input in base64 encoding.
25-
attr_accessor :raw_schema
25+
attr_reader :raw_schema
2626

2727
attr_accessor :additional_properties
2828

@@ -65,6 +65,24 @@ def initialize(attributes = {})
6565
end
6666
end
6767

68+
# Check to see if the all the properties in the model are valid
69+
# @return true if the model is valid
70+
# @!visibility private
71+
def valid?
72+
return false if @raw_schema.nil?
73+
true
74+
end
75+
76+
# Custom attribute writer method with validation
77+
# @param raw_schema [Object] Object to be assigned
78+
# @!visibility private
79+
def raw_schema=(raw_schema)
80+
if raw_schema.nil?
81+
fail ArgumentError, 'invalid value for "raw_schema", raw_schema cannot be nil.'
82+
end
83+
@raw_schema = raw_schema
84+
end
85+
6886
# Returns the object in the form of hash, with additionalProperties support.
6987
# @return [Hash] Returns the object in the form of hash
7088
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_related_entity_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EntityResponseIncludedRelatedEntityAttributes
2222
include BaseGenericModel
2323

2424
# Entity kind.
25-
attr_accessor :kind
25+
attr_reader :kind
2626

2727
# Entity name.
2828
attr_accessor :name
@@ -92,6 +92,24 @@ def initialize(attributes = {})
9292
end
9393
end
9494

95+
# Check to see if the all the properties in the model are valid
96+
# @return true if the model is valid
97+
# @!visibility private
98+
def valid?
99+
return false if @kind.nil?
100+
true
101+
end
102+
103+
# Custom attribute writer method with validation
104+
# @param kind [Object] Object to be assigned
105+
# @!visibility private
106+
def kind=(kind)
107+
if kind.nil?
108+
fail ArgumentError, 'invalid value for "kind", kind cannot be nil.'
109+
end
110+
@kind = kind
111+
end
112+
95113
# Returns the object in the form of hash, with additionalProperties support.
96114
# @return [Hash] Returns the object in the form of hash
97115
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_related_incident_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class EntityResponseIncludedRelatedIncidentAttributes
3434
attr_accessor :status
3535

3636
# Incident title.
37-
attr_accessor :title
37+
attr_reader :title
3838

3939
attr_accessor :additional_properties
4040

@@ -101,6 +101,24 @@ def initialize(attributes = {})
101101
end
102102
end
103103

104+
# Check to see if the all the properties in the model are valid
105+
# @return true if the model is valid
106+
# @!visibility private
107+
def valid?
108+
return false if @title.nil?
109+
true
110+
end
111+
112+
# Custom attribute writer method with validation
113+
# @param title [Object] Object to be assigned
114+
# @!visibility private
115+
def title=(title)
116+
if title.nil?
117+
fail ArgumentError, 'invalid value for "title", title cannot be nil.'
118+
end
119+
@title = title
120+
end
121+
104122
# Returns the object in the form of hash, with additionalProperties support.
105123
# @return [Hash] Returns the object in the form of hash
106124
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EntityResponseIncludedRelatedOncallAttributes
2525
attr_accessor :escalations
2626

2727
# Oncall provider.
28-
attr_accessor :provider
28+
attr_reader :provider
2929

3030
attr_accessor :additional_properties
3131

@@ -76,6 +76,24 @@ def initialize(attributes = {})
7676
end
7777
end
7878

79+
# Check to see if the all the properties in the model are valid
80+
# @return true if the model is valid
81+
# @!visibility private
82+
def valid?
83+
return false if @provider.nil?
84+
true
85+
end
86+
87+
# Custom attribute writer method with validation
88+
# @param provider [Object] Object to be assigned
89+
# @!visibility private
90+
def provider=(provider)
91+
if provider.nil?
92+
fail ArgumentError, 'invalid value for "provider", provider cannot be nil.'
93+
end
94+
@provider = provider
95+
end
96+
7997
# Returns the object in the form of hash, with additionalProperties support.
8098
# @return [Hash] Returns the object in the form of hash
8199
# @!visibility private

lib/datadog_api_client/v2/models/entity_response_included_schema_attributes.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class EntityResponseIncludedSchemaAttributes
2222
include BaseGenericModel
2323

2424
# Entity schema v3.
25-
attr_accessor :schema
25+
attr_reader :schema
2626

2727
attr_accessor :additional_properties
2828

@@ -65,6 +65,24 @@ def initialize(attributes = {})
6565
end
6666
end
6767

68+
# Check to see if the all the properties in the model are valid
69+
# @return true if the model is valid
70+
# @!visibility private
71+
def valid?
72+
return false if @schema.nil?
73+
true
74+
end
75+
76+
# Custom attribute writer method with validation
77+
# @param schema [Object] Object to be assigned
78+
# @!visibility private
79+
def schema=(schema)
80+
if schema.nil?
81+
fail ArgumentError, 'invalid value for "schema", schema cannot be nil.'
82+
end
83+
@schema = schema
84+
end
85+
6886
# Returns the object in the form of hash, with additionalProperties support.
6987
# @return [Hash] Returns the object in the form of hash
7088
# @!visibility private

0 commit comments

Comments
 (0)