Skip to content

Commit 18b3eb3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 4bf72bc2 of spec repo
1 parent f4e36ec commit 18b3eb3

File tree

11 files changed

+51
-76
lines changed

11 files changed

+51
-76
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-04-16 20:33:02.564302",
8-
"spec_repo_commit": "9708d631"
7+
"regenerated": "2025-04-17 01:14:18.748781",
8+
"spec_repo_commit": "4bf72bc2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-16 20:33:02.580600",
13-
"spec_repo_commit": "9708d631"
12+
"regenerated": "2025-04-17 01:14:18.765298",
13+
"spec_repo_commit": "4bf72bc2"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12932,7 +12932,7 @@ components:
1293212932
type: string
1293312933
name:
1293412934
description: Specifies the name for the new escalation policy.
12935-
example: On-call Escalation Policy
12935+
example: On-Call Escalation Policy
1293612936
type: string
1293712937
resolve_page_on_policy_end:
1293812938
description: Indicates whether the page is automatically resolved when the
@@ -13065,24 +13065,24 @@ components:
1306513065
$ref: '#/components/schemas/EscalationPolicyDataAttributes'
1306613066
id:
1306713067
description: Specifies the unique identifier of the escalation policy.
13068+
example: ab000000-0000-0000-0000-000000000000
1306813069
type: string
1306913070
relationships:
1307013071
$ref: '#/components/schemas/EscalationPolicyDataRelationships'
1307113072
type:
1307213073
$ref: '#/components/schemas/EscalationPolicyDataType'
13073-
required:
13074-
- type
1307513074
type: object
1307613075
EscalationPolicyDataAttributes:
1307713076
description: Defines the main attributes of an escalation policy, such as its
1307813077
description, name, and behavior on policy end.
1307913078
properties:
1308013079
description:
1308113080
description: Provides a detailed text description of the escalation policy.
13081+
example: This is an escalation policy for on-call support.
1308213082
type: string
1308313083
name:
1308413084
description: Specifies the name of the escalation policy.
13085-
example: On-call Escalation Policy
13085+
example: On-Call Escalation Policy
1308613086
type: string
1308713087
resolve_page_on_policy_end:
1308813088
description: Indicates whether the page is automatically resolved when the
@@ -13091,10 +13091,9 @@ components:
1309113091
retries:
1309213092
description: Specifies how many times the escalation sequence is retried
1309313093
if there is no response.
13094+
example: 2
1309413095
format: int64
1309513096
type: integer
13096-
required:
13097-
- name
1309813097
type: object
1309913098
EscalationPolicyDataRelationships:
1310013099
description: Represents the relationships for an escalation policy, including
@@ -13308,7 +13307,7 @@ components:
1330813307
type: string
1330913308
name:
1331013309
description: Specifies the name of the escalation policy.
13311-
example: On-call Escalation Policy
13310+
example: On-Call Escalation Policy
1331213311
type: string
1331313312
resolve_page_on_policy_end:
1331413313
description: Indicates whether the page is automatically resolved when the
@@ -27992,6 +27991,7 @@ components:
2799227991
$ref: '#/components/schemas/ScheduleCreateRequestDataType'
2799327992
required:
2799427993
- type
27994+
- attributes
2799527995
type: object
2799627996
ScheduleCreateRequestDataAttributes:
2799727997
description: Describes the main attributes for creating a new schedule, including
@@ -47424,7 +47424,7 @@ paths:
4742447424
- apiKeyAuth: []
4742547425
appKeyAuth: []
4742647426
- AuthZ: []
47427-
summary: Create on call escalation policy
47427+
summary: Create on-call escalation policy
4742847428
tags:
4742947429
- On-Call
4743047430
/api/v2/on-call/escalation-policies/{policy_id}:
@@ -47454,7 +47454,7 @@ paths:
4745447454
- apiKeyAuth: []
4745547455
appKeyAuth: []
4745647456
- AuthZ: []
47457-
summary: Delete on call escalation policy
47457+
summary: Delete on-call escalation policy
4745847458
tags:
4745947459
- On-Call
4746047460
get:
@@ -47495,7 +47495,7 @@ paths:
4749547495
- apiKeyAuth: []
4749647496
appKeyAuth: []
4749747497
- AuthZ: []
47498-
summary: Get on call escalation policy
47498+
summary: Get on-call escalation policy
4749947499
tags:
4750047500
- On-Call
4750147501
put:
@@ -47542,7 +47542,7 @@ paths:
4754247542
- apiKeyAuth: []
4754347543
appKeyAuth: []
4754447544
- AuthZ: []
47545-
summary: Update on call escalation policy
47545+
summary: Update on-call escalation policy
4754647546
tags:
4754747547
- On-Call
4754847548
/api/v2/on-call/schedules:

examples/v2/on-call/CreateOnCallEscalationPolicy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create on call escalation policy returns "Created" response
1+
# Create on-call escalation policy returns "Created" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::On - CallAPI.new

examples/v2/on-call/DeleteOnCallEscalationPolicy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Delete on call escalation policy returns "No Content" response
1+
# Delete on-call escalation policy returns "No Content" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::On - CallAPI.new

examples/v2/on-call/GetOnCallEscalationPolicy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get on call escalation policy returns "OK" response
1+
# Get on-call escalation policy returns "OK" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::On - CallAPI.new

examples/v2/on-call/UpdateOnCallEscalationPolicy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Update on call escalation policy returns "OK" response
1+
# Update on-call escalation policy returns "OK" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V2::On - CallAPI.new

features/v2/on-call.feature

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Feature: On-Call
1010
And an instance of "On-Call" API
1111

1212
@generated @skip @team:DataDog/bugle
13-
Scenario: Create on call escalation policy returns "Bad Request" response
13+
Scenario: Create on-call escalation policy returns "Bad Request" response
1414
Given new "CreateOnCallEscalationPolicy" request
1515
And body with value {"data": {"attributes": {"description": "Escalation Policy 1 description", "name": "Escalation Policy 1", "resolve_page_on_policy_end": true, "retries": 2, "steps": [{"assignment": "default", "escalate_after_seconds": 3600, "targets": [{"id": "00000000-aba1-0000-0000-000000000000", "type": "users"}, {"id": "00000000-aba2-0000-0000-000000000000", "type": "schedules"}, {"id": "00000000-aba3-0000-0000-000000000000", "type": "teams"}]}, {"assignment": "round-robin", "escalate_after_seconds": 3600, "targets": [{"id": "00000000-aba1-0000-0000-000000000000", "type": "users"}, {"id": "00000000-abb1-0000-0000-000000000000", "type": "users"}]}]}, "relationships": {"teams": {"data": [{"id": "00000000-da3a-0000-0000-000000000000", "type": "teams"}]}}, "type": "policies"}}
1616
When the request is sent
1717
Then the response status is 400 Bad Request
1818

1919
@team:DataDog/bugle
20-
Scenario: Create on call escalation policy returns "Created" response
20+
Scenario: Create on-call escalation policy returns "Created" response
2121
Given new "CreateOnCallEscalationPolicy" request
2222
And there is a valid "schedule" in the system
2323
And there is a valid "dd_team" in the system
@@ -43,7 +43,7 @@ Feature: On-Call
4343
Then the response status is 201 Created
4444

4545
@team:DataDog/bugle
46-
Scenario: Delete on call escalation policy returns "No Content" response
46+
Scenario: Delete on-call escalation policy returns "No Content" response
4747
Given new "DeleteOnCallEscalationPolicy" request
4848
And there is a valid "user" in the system
4949
And there is a valid "dd_team" in the system
@@ -54,7 +54,7 @@ Feature: On-Call
5454
Then the response status is 204 No Content
5555

5656
@generated @skip @team:DataDog/bugle
57-
Scenario: Delete on call escalation policy returns "Not Found" response
57+
Scenario: Delete on-call escalation policy returns "Not Found" response
5858
Given new "DeleteOnCallEscalationPolicy" request
5959
And request contains "policy_id" parameter from "REPLACE.ME"
6060
When the request is sent
@@ -76,21 +76,21 @@ Feature: On-Call
7676
Then the response status is 404 Not Found
7777

7878
@generated @skip @team:DataDog/bugle
79-
Scenario: Get on call escalation policy returns "Bad Request" response
79+
Scenario: Get on-call escalation policy returns "Bad Request" response
8080
Given new "GetOnCallEscalationPolicy" request
8181
And request contains "policy_id" parameter from "REPLACE.ME"
8282
When the request is sent
8383
Then the response status is 400 Bad Request
8484

8585
@generated @skip @team:DataDog/bugle
86-
Scenario: Get on call escalation policy returns "Not Found" response
86+
Scenario: Get on-call escalation policy returns "Not Found" response
8787
Given new "GetOnCallEscalationPolicy" request
8888
And request contains "policy_id" parameter from "REPLACE.ME"
8989
When the request is sent
9090
Then the response status is 404 Not Found
9191

9292
@team:DataDog/bugle
93-
Scenario: Get on call escalation policy returns "OK" response
93+
Scenario: Get on-call escalation policy returns "OK" response
9494
Given new "GetOnCallEscalationPolicy" request
9595
And there is a valid "user" in the system
9696
And there is a valid "dd_team" in the system
@@ -116,23 +116,23 @@ Feature: On-Call
116116
Then the response status is 200 OK
117117

118118
@generated @skip @team:DataDog/bugle
119-
Scenario: Update on call escalation policy returns "Bad Request" response
119+
Scenario: Update on-call escalation policy returns "Bad Request" response
120120
Given new "UpdateOnCallEscalationPolicy" request
121121
And request contains "policy_id" parameter from "REPLACE.ME"
122122
And body with value {"data": {"attributes": {"description": "Escalation Policy 1 description", "name": "Escalation Policy 1", "resolve_page_on_policy_end": false, "retries": 2, "steps": [{"assignment": "default", "escalate_after_seconds": 3600, "id": "00000000-aba1-0000-0000-000000000000", "targets": [{"id": "00000000-aba1-0000-0000-000000000000", "type": "users"}, {"id": "00000000-aba2-0000-0000-000000000000", "type": "schedules"}]}]}, "id": "a3000000-0000-0000-0000-000000000000", "relationships": {"teams": {"data": [{"id": "00000000-da3a-0000-0000-000000000000", "type": "teams"}]}}, "type": "policies"}}
123123
When the request is sent
124124
Then the response status is 400 Bad Request
125125

126126
@generated @skip @team:DataDog/bugle
127-
Scenario: Update on call escalation policy returns "Not Found" response
127+
Scenario: Update on-call escalation policy returns "Not Found" response
128128
Given new "UpdateOnCallEscalationPolicy" request
129129
And request contains "policy_id" parameter from "REPLACE.ME"
130130
And body with value {"data": {"attributes": {"description": "Escalation Policy 1 description", "name": "Escalation Policy 1", "resolve_page_on_policy_end": false, "retries": 2, "steps": [{"assignment": "default", "escalate_after_seconds": 3600, "id": "00000000-aba1-0000-0000-000000000000", "targets": [{"id": "00000000-aba1-0000-0000-000000000000", "type": "users"}, {"id": "00000000-aba2-0000-0000-000000000000", "type": "schedules"}]}]}, "id": "a3000000-0000-0000-0000-000000000000", "relationships": {"teams": {"data": [{"id": "00000000-da3a-0000-0000-000000000000", "type": "teams"}]}}, "type": "policies"}}
131131
When the request is sent
132132
Then the response status is 404 Not Found
133133

134134
@team:DataDog/bugle
135-
Scenario: Update on call escalation policy returns "OK" response
135+
Scenario: Update on-call escalation policy returns "OK" response
136136
Given new "UpdateOnCallEscalationPolicy" request
137137
And there is a valid "user" in the system
138138
And there is a valid "dd_team" in the system

lib/datadog_api_client/v2/api/on_call_api.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ def initialize(api_client = DatadogAPIClient::APIClient.default)
2323
@api_client = api_client
2424
end
2525

26-
# Create on call escalation policy.
26+
# Create on-call escalation policy.
2727
#
2828
# @see #create_on_call_escalation_policy_with_http_info
2929
def create_on_call_escalation_policy(body, opts = {})
3030
data, _status_code, _headers = create_on_call_escalation_policy_with_http_info(body, opts)
3131
data
3232
end
3333

34-
# Create on call escalation policy.
34+
# Create on-call escalation policy.
3535
#
3636
# Create a new on-call escalation policy
3737
#
@@ -161,15 +161,15 @@ def create_on_call_schedule_with_http_info(body, opts = {})
161161
return data, status_code, headers
162162
end
163163

164-
# Delete on call escalation policy.
164+
# Delete on-call escalation policy.
165165
#
166166
# @see #delete_on_call_escalation_policy_with_http_info
167167
def delete_on_call_escalation_policy(policy_id, opts = {})
168168
delete_on_call_escalation_policy_with_http_info(policy_id, opts)
169169
nil
170170
end
171171

172-
# Delete on call escalation policy.
172+
# Delete on-call escalation policy.
173173
#
174174
# Delete an on-call escalation policy
175175
#
@@ -291,15 +291,15 @@ def delete_on_call_schedule_with_http_info(schedule_id, opts = {})
291291
return data, status_code, headers
292292
end
293293

294-
# Get on call escalation policy.
294+
# Get on-call escalation policy.
295295
#
296296
# @see #get_on_call_escalation_policy_with_http_info
297297
def get_on_call_escalation_policy(policy_id, opts = {})
298298
data, _status_code, _headers = get_on_call_escalation_policy_with_http_info(policy_id, opts)
299299
data
300300
end
301301

302-
# Get on call escalation policy.
302+
# Get on-call escalation policy.
303303
#
304304
# Get an on-call escalation policy
305305
#
@@ -425,15 +425,15 @@ def get_on_call_schedule_with_http_info(schedule_id, opts = {})
425425
return data, status_code, headers
426426
end
427427

428-
# Update on call escalation policy.
428+
# Update on-call escalation policy.
429429
#
430430
# @see #update_on_call_escalation_policy_with_http_info
431431
def update_on_call_escalation_policy(policy_id, body, opts = {})
432432
data, _status_code, _headers = update_on_call_escalation_policy_with_http_info(policy_id, body, opts)
433433
data
434434
end
435435

436-
# Update on call escalation policy.
436+
# Update on-call escalation policy.
437437
#
438438
# Update an on-call escalation policy
439439
#

lib/datadog_api_client/v2/models/escalation_policy_data.rb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class EscalationPolicyData
3131
attr_accessor :relationships
3232

3333
# Indicates that the resource is of type `policies`.
34-
attr_reader :type
34+
attr_accessor :type
3535

3636
attr_accessor :additional_properties
3737

@@ -92,24 +92,6 @@ 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 @type.nil?
100-
true
101-
end
102-
103-
# Custom attribute writer method with validation
104-
# @param type [Object] Object to be assigned
105-
# @!visibility private
106-
def type=(type)
107-
if type.nil?
108-
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
109-
end
110-
@type = type
111-
end
112-
11395
# Returns the object in the form of hash, with additionalProperties support.
11496
# @return [Hash] Returns the object in the form of hash
11597
# @!visibility private

lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class EscalationPolicyDataAttributes
2525
attr_accessor :description
2626

2727
# Specifies the name of the escalation policy.
28-
attr_reader :name
28+
attr_accessor :name
2929

3030
# Indicates whether the page is automatically resolved when the policy ends.
3131
attr_accessor :resolve_page_on_policy_end
@@ -92,24 +92,6 @@ 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 @name.nil?
100-
true
101-
end
102-
103-
# Custom attribute writer method with validation
104-
# @param name [Object] Object to be assigned
105-
# @!visibility private
106-
def name=(name)
107-
if name.nil?
108-
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
109-
end
110-
@name = name
111-
end
112-
11395
# Returns the object in the form of hash, with additionalProperties support.
11496
# @return [Hash] Returns the object in the form of hash
11597
# @!visibility private

0 commit comments

Comments
 (0)