Skip to content

Commit 1dbd980

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0c1bb74d of spec repo
1 parent 4c6c929 commit 1dbd980

File tree

4 files changed

+8
-70
lines changed

4 files changed

+8
-70
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-05-09 16:46:51.980300",
8-
"spec_repo_commit": "38260775"
7+
"regenerated": "2025-05-09 19:30:22.745702",
8+
"spec_repo_commit": "0c1bb74d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-09 16:46:51.995827",
13-
"spec_repo_commit": "38260775"
12+
"regenerated": "2025-05-09 19:30:22.763623",
13+
"spec_repo_commit": "0c1bb74d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10835,8 +10835,6 @@ components:
1083510835
- handle
1083610836
- version
1083710837
- name
10838-
- description
10839-
- icon_url
1084010838
type: object
1084110839
DORADeploymentRequest:
1084210840
description: Request to create a DORA deployment event.
@@ -15228,10 +15226,6 @@ components:
1522815226
FullCustomFrameworkDataAttributes:
1522915227
description: Full Framework Data Attributes.
1523015228
properties:
15231-
description:
15232-
description: Framework Description
15233-
example: this is a security framework
15234-
type: string
1523515229
handle:
1523615230
description: Framework Handle
1523715231
example: sec2
@@ -15257,8 +15251,6 @@ components:
1525715251
- handle
1525815252
- version
1525915253
- name
15260-
- description
15261-
- icon_url
1526215254
- requirements
1526315255
type: object
1526415256
GCPMetricNamespaceConfig:

lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class CustomFrameworkWithoutRequirements
2222
include BaseGenericModel
2323

2424
# Framework Description
25-
attr_reader :description
25+
attr_accessor :description
2626

2727
# Framework Handle
2828
attr_reader :handle
2929

3030
# Framework Icon URL
31-
attr_reader :icon_url
31+
attr_accessor :icon_url
3232

3333
# Framework Name
3434
attr_reader :name
@@ -105,24 +105,12 @@ def initialize(attributes = {})
105105
# @return true if the model is valid
106106
# @!visibility private
107107
def valid?
108-
return false if @description.nil?
109108
return false if @handle.nil?
110-
return false if @icon_url.nil?
111109
return false if @name.nil?
112110
return false if @version.nil?
113111
true
114112
end
115113

116-
# Custom attribute writer method with validation
117-
# @param description [Object] Object to be assigned
118-
# @!visibility private
119-
def description=(description)
120-
if description.nil?
121-
fail ArgumentError, 'invalid value for "description", description cannot be nil.'
122-
end
123-
@description = description
124-
end
125-
126114
# Custom attribute writer method with validation
127115
# @param handle [Object] Object to be assigned
128116
# @!visibility private
@@ -133,16 +121,6 @@ def handle=(handle)
133121
@handle = handle
134122
end
135123

136-
# Custom attribute writer method with validation
137-
# @param icon_url [Object] Object to be assigned
138-
# @!visibility private
139-
def icon_url=(icon_url)
140-
if icon_url.nil?
141-
fail ArgumentError, 'invalid value for "icon_url", icon_url cannot be nil.'
142-
end
143-
@icon_url = icon_url
144-
end
145-
146124
# Custom attribute writer method with validation
147125
# @param name [Object] Object to be assigned
148126
# @!visibility private

lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@ module DatadogAPIClient::V2
2121
class FullCustomFrameworkDataAttributes
2222
include BaseGenericModel
2323

24-
# Framework Description
25-
attr_reader :description
26-
2724
# Framework Handle
2825
attr_reader :handle
2926

3027
# Framework Icon URL
31-
attr_reader :icon_url
28+
attr_accessor :icon_url
3229

3330
# Framework Name
3431
attr_reader :name
@@ -45,7 +42,6 @@ class FullCustomFrameworkDataAttributes
4542
# @!visibility private
4643
def self.attribute_map
4744
{
48-
:'description' => :'description',
4945
:'handle' => :'handle',
5046
:'icon_url' => :'icon_url',
5147
:'name' => :'name',
@@ -58,7 +54,6 @@ def self.attribute_map
5854
# @!visibility private
5955
def self.openapi_types
6056
{
61-
:'description' => :'String',
6257
:'handle' => :'String',
6358
:'icon_url' => :'String',
6459
:'name' => :'String',
@@ -85,10 +80,6 @@ def initialize(attributes = {})
8580
end
8681
}
8782

88-
if attributes.key?(:'description')
89-
self.description = attributes[:'description']
90-
end
91-
9283
if attributes.key?(:'handle')
9384
self.handle = attributes[:'handle']
9485
end
@@ -116,25 +107,13 @@ def initialize(attributes = {})
116107
# @return true if the model is valid
117108
# @!visibility private
118109
def valid?
119-
return false if @description.nil?
120110
return false if @handle.nil?
121-
return false if @icon_url.nil?
122111
return false if @name.nil?
123112
return false if @requirements.nil?
124113
return false if @version.nil?
125114
true
126115
end
127116

128-
# Custom attribute writer method with validation
129-
# @param description [Object] Object to be assigned
130-
# @!visibility private
131-
def description=(description)
132-
if description.nil?
133-
fail ArgumentError, 'invalid value for "description", description cannot be nil.'
134-
end
135-
@description = description
136-
end
137-
138117
# Custom attribute writer method with validation
139118
# @param handle [Object] Object to be assigned
140119
# @!visibility private
@@ -145,16 +124,6 @@ def handle=(handle)
145124
@handle = handle
146125
end
147126

148-
# Custom attribute writer method with validation
149-
# @param icon_url [Object] Object to be assigned
150-
# @!visibility private
151-
def icon_url=(icon_url)
152-
if icon_url.nil?
153-
fail ArgumentError, 'invalid value for "icon_url", icon_url cannot be nil.'
154-
end
155-
@icon_url = icon_url
156-
end
157-
158127
# Custom attribute writer method with validation
159128
# @param name [Object] Object to be assigned
160129
# @!visibility private
@@ -211,7 +180,6 @@ def to_hash
211180
def ==(o)
212181
return true if self.equal?(o)
213182
self.class == o.class &&
214-
description == o.description &&
215183
handle == o.handle &&
216184
icon_url == o.icon_url &&
217185
name == o.name &&
@@ -224,7 +192,7 @@ def ==(o)
224192
# @return [Integer] Hash code
225193
# @!visibility private
226194
def hash
227-
[description, handle, icon_url, name, requirements, version, additional_properties].hash
195+
[handle, icon_url, name, requirements, version, additional_properties].hash
228196
end
229197
end
230198
end

0 commit comments

Comments
 (0)