Skip to content

Commit 5fd62a4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit bb4e49d of spec repo (#3443)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent cfdc78b commit 5fd62a4

7 files changed

Lines changed: 367 additions & 3 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44193,6 +44193,8 @@ components:
4419344193
description: Key of the case.
4419444194
example: "ET-123"
4419544195
type: string
44196+
linear_issue:
44197+
$ref: "#/components/schemas/IssueCaseLinearIssue"
4419644198
modified_at:
4419744199
description: Timestamp of when the case was last modified.
4419844200
example: "2025-01-01T00:00:00Z"
@@ -44230,6 +44232,10 @@ components:
4423044232
IssueCaseJiraIssue:
4423144233
description: Jira issue of the case.
4423244234
properties:
44235+
error_message:
44236+
description: Error message set when the Jira issue creation fails.
44237+
example: ""
44238+
type: string
4423344239
result:
4423444240
$ref: "#/components/schemas/IssueCaseJiraIssueResult"
4423544241
status:
@@ -44240,6 +44246,10 @@ components:
4424044246
IssueCaseJiraIssueResult:
4424144247
description: Contains the identifiers and URL for a successfully created Jira issue.
4424244248
properties:
44249+
account_id:
44250+
description: Jira account identifier.
44251+
example: "abcd1234-5678-90ab-cdef-1234567890ab"
44252+
type: string
4424344253
issue_id:
4424444254
description: Jira issue identifier.
4424544255
example: "1904866"
@@ -44252,11 +44262,53 @@ components:
4425244262
description: Jira issue URL.
4425344263
example: "https://your-jira-instance.atlassian.net/browse/ET-123"
4425444264
type: string
44265+
project_id:
44266+
description: Jira project identifier.
44267+
example: "10001"
44268+
type: string
4425544269
project_key:
4425644270
description: Jira project key.
4425744271
example: "ET"
4425844272
type: string
4425944273
type: object
44274+
IssueCaseLinearIssue:
44275+
description: Linear issue of the case.
44276+
properties:
44277+
error_message:
44278+
description: Error message set when the Linear issue creation fails.
44279+
example: ""
44280+
type: string
44281+
result:
44282+
$ref: "#/components/schemas/IssueCaseLinearIssueResult"
44283+
status:
44284+
description: Creation status of the Linear issue.
44285+
example: "COMPLETED"
44286+
type: string
44287+
type: object
44288+
IssueCaseLinearIssueResult:
44289+
description: Contains the identifiers and URL for a successfully created Linear issue.
44290+
properties:
44291+
account_id:
44292+
description: Linear account identifier.
44293+
example: "abcd1234-5678-90ab-cdef-1234567890ab"
44294+
type: string
44295+
issue_id:
44296+
description: Linear issue identifier.
44297+
example: "a1b2c3d4-5678-90ab-cdef-1234567890ab"
44298+
type: string
44299+
issue_key:
44300+
description: Linear issue key.
44301+
example: "ENG-123"
44302+
type: string
44303+
issue_url:
44304+
description: Linear issue URL.
44305+
example: "https://linear.app/your-workspace/issue/ENG-123"
44306+
type: string
44307+
team_id:
44308+
description: Linear team identifier.
44309+
example: "f1e2d3c4-5678-90ab-cdef-1234567890ab"
44310+
type: string
44311+
type: object
4426044312
IssueCaseReference:
4426144313
description: The case the issue is attached to.
4426244314
properties:

lib/datadog_api_client/inflector.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3708,6 +3708,8 @@ def overrides
37083708
"v2.issue_case_insight" => "IssueCaseInsight",
37093709
"v2.issue_case_jira_issue" => "IssueCaseJiraIssue",
37103710
"v2.issue_case_jira_issue_result" => "IssueCaseJiraIssueResult",
3711+
"v2.issue_case_linear_issue" => "IssueCaseLinearIssue",
3712+
"v2.issue_case_linear_issue_result" => "IssueCaseLinearIssueResult",
37113713
"v2.issue_case_reference" => "IssueCaseReference",
37123714
"v2.issue_case_relationship" => "IssueCaseRelationship",
37133715
"v2.issue_case_relationships" => "IssueCaseRelationships",

lib/datadog_api_client/v2/models/issue_case_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ class IssueCaseAttributes
4848
# Key of the case.
4949
attr_accessor :key
5050

51+
# Linear issue of the case.
52+
attr_accessor :linear_issue
53+
5154
# Timestamp of when the case was last modified.
5255
attr_accessor :modified_at
5356

@@ -78,6 +81,7 @@ def self.attribute_map
7881
:'insights' => :'insights',
7982
:'jira_issue' => :'jira_issue',
8083
:'key' => :'key',
84+
:'linear_issue' => :'linear_issue',
8185
:'modified_at' => :'modified_at',
8286
:'priority' => :'priority',
8387
:'status' => :'status',
@@ -99,6 +103,7 @@ def self.openapi_types
99103
:'insights' => :'Array<IssueCaseInsight>',
100104
:'jira_issue' => :'IssueCaseJiraIssue',
101105
:'key' => :'String',
106+
:'linear_issue' => :'IssueCaseLinearIssue',
102107
:'modified_at' => :'Time',
103108
:'priority' => :'CasePriority',
104109
:'status' => :'CaseStatus',
@@ -163,6 +168,10 @@ def initialize(attributes = {})
163168
self.key = attributes[:'key']
164169
end
165170

171+
if attributes.key?(:'linear_issue')
172+
self.linear_issue = attributes[:'linear_issue']
173+
end
174+
166175
if attributes.key?(:'modified_at')
167176
self.modified_at = attributes[:'modified_at']
168177
end
@@ -219,6 +228,7 @@ def ==(o)
219228
insights == o.insights &&
220229
jira_issue == o.jira_issue &&
221230
key == o.key &&
231+
linear_issue == o.linear_issue &&
222232
modified_at == o.modified_at &&
223233
priority == o.priority &&
224234
status == o.status &&
@@ -231,7 +241,7 @@ def ==(o)
231241
# @return [Integer] Hash code
232242
# @!visibility private
233243
def hash
234-
[archived_at, closed_at, created_at, creation_source, description, due_date, insights, jira_issue, key, modified_at, priority, status, title, type, additional_properties].hash
244+
[archived_at, closed_at, created_at, creation_source, description, due_date, insights, jira_issue, key, linear_issue, modified_at, priority, status, title, type, additional_properties].hash
235245
end
236246
end
237247
end

lib/datadog_api_client/v2/models/issue_case_jira_issue.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class IssueCaseJiraIssue
2222
include BaseGenericModel
2323

24+
# Error message set when the Jira issue creation fails.
25+
attr_accessor :error_message
26+
2427
# Contains the identifiers and URL for a successfully created Jira issue.
2528
attr_accessor :result
2629

@@ -33,6 +36,7 @@ class IssueCaseJiraIssue
3336
# @!visibility private
3437
def self.attribute_map
3538
{
39+
:'error_message' => :'error_message',
3640
:'result' => :'result',
3741
:'status' => :'status'
3842
}
@@ -42,6 +46,7 @@ def self.attribute_map
4246
# @!visibility private
4347
def self.openapi_types
4448
{
49+
:'error_message' => :'String',
4550
:'result' => :'IssueCaseJiraIssueResult',
4651
:'status' => :'String'
4752
}
@@ -65,6 +70,10 @@ def initialize(attributes = {})
6570
end
6671
}
6772

73+
if attributes.key?(:'error_message')
74+
self.error_message = attributes[:'error_message']
75+
end
76+
6877
if attributes.key?(:'result')
6978
self.result = attributes[:'result']
7079
end
@@ -100,6 +109,7 @@ def to_hash
100109
def ==(o)
101110
return true if self.equal?(o)
102111
self.class == o.class &&
112+
error_message == o.error_message &&
103113
result == o.result &&
104114
status == o.status &&
105115
additional_properties == o.additional_properties
@@ -109,7 +119,7 @@ def ==(o)
109119
# @return [Integer] Hash code
110120
# @!visibility private
111121
def hash
112-
[result, status, additional_properties].hash
122+
[error_message, result, status, additional_properties].hash
113123
end
114124
end
115125
end

lib/datadog_api_client/v2/models/issue_case_jira_issue_result.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class IssueCaseJiraIssueResult
2222
include BaseGenericModel
2323

24+
# Jira account identifier.
25+
attr_accessor :account_id
26+
2427
# Jira issue identifier.
2528
attr_accessor :issue_id
2629

@@ -30,6 +33,9 @@ class IssueCaseJiraIssueResult
3033
# Jira issue URL.
3134
attr_accessor :issue_url
3235

36+
# Jira project identifier.
37+
attr_accessor :project_id
38+
3339
# Jira project key.
3440
attr_accessor :project_key
3541

@@ -39,9 +45,11 @@ class IssueCaseJiraIssueResult
3945
# @!visibility private
4046
def self.attribute_map
4147
{
48+
:'account_id' => :'account_id',
4249
:'issue_id' => :'issue_id',
4350
:'issue_key' => :'issue_key',
4451
:'issue_url' => :'issue_url',
52+
:'project_id' => :'project_id',
4553
:'project_key' => :'project_key'
4654
}
4755
end
@@ -50,9 +58,11 @@ def self.attribute_map
5058
# @!visibility private
5159
def self.openapi_types
5260
{
61+
:'account_id' => :'String',
5362
:'issue_id' => :'String',
5463
:'issue_key' => :'String',
5564
:'issue_url' => :'String',
65+
:'project_id' => :'String',
5666
:'project_key' => :'String'
5767
}
5868
end
@@ -75,6 +85,10 @@ def initialize(attributes = {})
7585
end
7686
}
7787

88+
if attributes.key?(:'account_id')
89+
self.account_id = attributes[:'account_id']
90+
end
91+
7892
if attributes.key?(:'issue_id')
7993
self.issue_id = attributes[:'issue_id']
8094
end
@@ -87,6 +101,10 @@ def initialize(attributes = {})
87101
self.issue_url = attributes[:'issue_url']
88102
end
89103

104+
if attributes.key?(:'project_id')
105+
self.project_id = attributes[:'project_id']
106+
end
107+
90108
if attributes.key?(:'project_key')
91109
self.project_key = attributes[:'project_key']
92110
end
@@ -118,9 +136,11 @@ def to_hash
118136
def ==(o)
119137
return true if self.equal?(o)
120138
self.class == o.class &&
139+
account_id == o.account_id &&
121140
issue_id == o.issue_id &&
122141
issue_key == o.issue_key &&
123142
issue_url == o.issue_url &&
143+
project_id == o.project_id &&
124144
project_key == o.project_key &&
125145
additional_properties == o.additional_properties
126146
end
@@ -129,7 +149,7 @@ def ==(o)
129149
# @return [Integer] Hash code
130150
# @!visibility private
131151
def hash
132-
[issue_id, issue_key, issue_url, project_key, additional_properties].hash
152+
[account_id, issue_id, issue_key, issue_url, project_id, project_key, additional_properties].hash
133153
end
134154
end
135155
end

0 commit comments

Comments
 (0)