Skip to content

Commit 06f9405

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 9a30209 of spec repo (#314)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 949b000 commit 06f9405

File tree

6 files changed

+55
-55
lines changed

6 files changed

+55
-55
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.4.1.dev8",
7-
"regenerated": "2021-03-08 16:50:32.502804",
8-
"spec_repo_commit": "ce24aad"
7+
"regenerated": "2021-03-08 20:18:53.690166",
8+
"spec_repo_commit": "9a30209"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-03-08 16:51:11.736074",
13-
"spec_repo_commit": "ce24aad"
12+
"regenerated": "2021-03-08 20:19:27.232217",
13+
"spec_repo_commit": "9a30209"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ Class | Method | HTTP request | Description
203203
*ServiceLevelObjectiveCorrectionsApi* | [**list_slo_correction**](ServiceLevelObjectiveCorrectionsApi.md#list_slo_correction) | **GET** /api/v1/slo/correction | Get all SLO corrections
204204
*ServiceLevelObjectiveCorrectionsApi* | [**update_slo_correction**](ServiceLevelObjectiveCorrectionsApi.md#update_slo_correction) | **PATCH** /api/v1/slo/correction/{slo_correction_id} | Update an SLO Correction
205205
*ServiceLevelObjectivesApi* | [**check_can_delete_slo**](ServiceLevelObjectivesApi.md#check_can_delete_slo) | **GET** /api/v1/slo/can_delete | Check if SLOs can be safely deleted
206-
*ServiceLevelObjectivesApi* | [**create_slo**](ServiceLevelObjectivesApi.md#create_slo) | **POST** /api/v1/slo | Create a SLO object
207-
*ServiceLevelObjectivesApi* | [**delete_slo**](ServiceLevelObjectivesApi.md#delete_slo) | **DELETE** /api/v1/slo/{slo_id} | Delete a SLO
206+
*ServiceLevelObjectivesApi* | [**create_slo**](ServiceLevelObjectivesApi.md#create_slo) | **POST** /api/v1/slo | Create an SLO object
207+
*ServiceLevelObjectivesApi* | [**delete_slo**](ServiceLevelObjectivesApi.md#delete_slo) | **DELETE** /api/v1/slo/{slo_id} | Delete an SLO
208208
*ServiceLevelObjectivesApi* | [**delete_slo_timeframe_in_bulk**](ServiceLevelObjectivesApi.md#delete_slo_timeframe_in_bulk) | **POST** /api/v1/slo/bulk_delete | Bulk Delete SLO Timeframes
209-
*ServiceLevelObjectivesApi* | [**get_slo**](ServiceLevelObjectivesApi.md#get_slo) | **GET** /api/v1/slo/{slo_id} | Get a SLO&#39;s details
209+
*ServiceLevelObjectivesApi* | [**get_slo**](ServiceLevelObjectivesApi.md#get_slo) | **GET** /api/v1/slo/{slo_id} | Get an SLO&#39;s details
210210
*ServiceLevelObjectivesApi* | [**get_slo_history**](ServiceLevelObjectivesApi.md#get_slo_history) | **GET** /api/v1/slo/{slo_id}/history | Get an SLO&#39;s history
211211
*ServiceLevelObjectivesApi* | [**list_slos**](ServiceLevelObjectivesApi.md#list_slos) | **GET** /api/v1/slo | Get all SLOs
212-
*ServiceLevelObjectivesApi* | [**update_slo**](ServiceLevelObjectivesApi.md#update_slo) | **PUT** /api/v1/slo/{slo_id} | Update a SLO
212+
*ServiceLevelObjectivesApi* | [**update_slo**](ServiceLevelObjectivesApi.md#update_slo) | **PUT** /api/v1/slo/{slo_id} | Update an SLO
213213
*SlackIntegrationApi* | [**create_slack_integration_channel**](SlackIntegrationApi.md#create_slack_integration_channel) | **POST** /api/v1/integration/slack/configuration/accounts/{account_name}/channels | Create a Slack integration channel
214214
*SlackIntegrationApi* | [**get_slack_integration_channel**](SlackIntegrationApi.md#get_slack_integration_channel) | **GET** /api/v1/integration/slack/configuration/accounts/{account_name}/channels/{channel_name} | Get a Slack integration channel
215215
*SlackIntegrationApi* | [**get_slack_integration_channels**](SlackIntegrationApi.md#get_slack_integration_channels) | **GET** /api/v1/integration/slack/configuration/accounts/{account_name}/channels | Get all channels in a Slack integration

docs/v1/ServiceLevelObjectivesApi.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ All URIs are relative to *https://api.datadoghq.com*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**check_can_delete_slo**](ServiceLevelObjectivesApi.md#check_can_delete_slo) | **GET** /api/v1/slo/can_delete | Check if SLOs can be safely deleted
8-
[**create_slo**](ServiceLevelObjectivesApi.md#create_slo) | **POST** /api/v1/slo | Create a SLO object
9-
[**delete_slo**](ServiceLevelObjectivesApi.md#delete_slo) | **DELETE** /api/v1/slo/{slo_id} | Delete a SLO
8+
[**create_slo**](ServiceLevelObjectivesApi.md#create_slo) | **POST** /api/v1/slo | Create an SLO object
9+
[**delete_slo**](ServiceLevelObjectivesApi.md#delete_slo) | **DELETE** /api/v1/slo/{slo_id} | Delete an SLO
1010
[**delete_slo_timeframe_in_bulk**](ServiceLevelObjectivesApi.md#delete_slo_timeframe_in_bulk) | **POST** /api/v1/slo/bulk_delete | Bulk Delete SLO Timeframes
11-
[**get_slo**](ServiceLevelObjectivesApi.md#get_slo) | **GET** /api/v1/slo/{slo_id} | Get a SLO&#39;s details
11+
[**get_slo**](ServiceLevelObjectivesApi.md#get_slo) | **GET** /api/v1/slo/{slo_id} | Get an SLO&#39;s details
1212
[**get_slo_history**](ServiceLevelObjectivesApi.md#get_slo_history) | **GET** /api/v1/slo/{slo_id}/history | Get an SLO&#39;s history
1313
[**list_slos**](ServiceLevelObjectivesApi.md#list_slos) | **GET** /api/v1/slo | Get all SLOs
14-
[**update_slo**](ServiceLevelObjectivesApi.md#update_slo) | **PUT** /api/v1/slo/{slo_id} | Update a SLO
14+
[**update_slo**](ServiceLevelObjectivesApi.md#update_slo) | **PUT** /api/v1/slo/{slo_id} | Update an SLO
1515

1616

1717
# **check_can_delete_slo**
1818
> CheckCanDeleteSLOResponse check_can_delete_slo(ids)
1919
2020
Check if SLOs can be safely deleted
2121

22-
Check if a SLO can be safely deleted. For example, assure an SLO can be deleted without disrupting a dashboard.
22+
Check if an SLO can be safely deleted. For example, assure an SLO can be deleted without disrupting a dashboard.
2323

2424
### Example
2525

@@ -92,7 +92,7 @@ Name | Type | Description | Notes
9292
# **create_slo**
9393
> SLOListResponse create_slo(body)
9494
95-
Create a SLO object
95+
Create an SLO object
9696

9797
Create a service level objective object.
9898

@@ -150,7 +150,7 @@ with ApiClient(configuration) as api_client:
150150

151151
# example passing only required values which don't have defaults set
152152
try:
153-
# Create a SLO object
153+
# Create an SLO object
154154
api_response = api_instance.create_slo(body)
155155
pprint(api_response)
156156
except ApiException as e:
@@ -188,7 +188,7 @@ Name | Type | Description | Notes
188188
# **delete_slo**
189189
> SLODeleteResponse delete_slo(slo_id)
190190
191-
Delete a SLO
191+
Delete an SLO
192192

193193
Permanently delete the specified service level objective object. If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns a 409 conflict error because the SLO is referenced in a dashboard.
194194

@@ -225,7 +225,7 @@ with ApiClient(configuration) as api_client:
225225

226226
# example passing only required values which don't have defaults set
227227
try:
228-
# Delete a SLO
228+
# Delete an SLO
229229
api_response = api_instance.delete_slo(slo_id)
230230
pprint(api_response)
231231
except ApiException as e:
@@ -234,7 +234,7 @@ with ApiClient(configuration) as api_client:
234234
# example passing only required values which don't have defaults set
235235
# and optional values
236236
try:
237-
# Delete a SLO
237+
# Delete an SLO
238238
api_response = api_instance.delete_slo(slo_id, force=force)
239239
pprint(api_response)
240240
except ApiException as e:
@@ -352,7 +352,7 @@ Name | Type | Description | Notes
352352
# **get_slo**
353353
> SLOResponse get_slo(slo_id)
354354
355-
Get a SLO's details
355+
Get an SLO's details
356356

357357
Get a service level objective object.
358358

@@ -388,7 +388,7 @@ with ApiClient(configuration) as api_client:
388388

389389
# example passing only required values which don't have defaults set
390390
try:
391-
# Get a SLO's details
391+
# Get an SLO's details
392392
api_response = api_instance.get_slo(slo_id)
393393
pprint(api_response)
394394
except ApiException as e:
@@ -588,7 +588,7 @@ Name | Type | Description | Notes
588588
# **update_slo**
589589
> SLOListResponse update_slo(slo_id, body)
590590
591-
Update a SLO
591+
Update an SLO
592592

593593
Update the specified service level objective object.
594594

@@ -650,7 +650,7 @@ with ApiClient(configuration) as api_client:
650650

651651
# example passing only required values which don't have defaults set
652652
try:
653-
# Update a SLO
653+
# Update an SLO
654654
api_response = api_instance.update_slo(slo_id, body)
655655
pprint(api_response)
656656
except ApiException as e:

src/datadog_api_client/v1/api/service_level_objectives_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, api_client=None):
4343
def __check_can_delete_slo(self, ids, **kwargs):
4444
"""Check if SLOs can be safely deleted # noqa: E501
4545
46-
Check if a SLO can be safely deleted. For example, assure an SLO can be deleted without disrupting a dashboard. # noqa: E501
46+
Check if an SLO can be safely deleted. For example, assure an SLO can be deleted without disrupting a dashboard. # noqa: E501
4747
This method makes a synchronous HTTP request by default. To make an
4848
asynchronous HTTP request, please pass async_req=True
4949
@@ -132,7 +132,7 @@ def __check_can_delete_slo(self, ids, **kwargs):
132132
)
133133

134134
def __create_slo(self, body, **kwargs):
135-
"""Create a SLO object # noqa: E501
135+
"""Create an SLO object # noqa: E501
136136
137137
Create a service level objective object. # noqa: E501
138138
This method makes a synchronous HTTP request by default. To make an
@@ -218,7 +218,7 @@ def __create_slo(self, body, **kwargs):
218218
)
219219

220220
def __delete_slo(self, slo_id, **kwargs):
221-
"""Delete a SLO # noqa: E501
221+
"""Delete an SLO # noqa: E501
222222
223223
Permanently delete the specified service level objective object. If an SLO is used in a dashboard, the `DELETE /v1/slo/` endpoint returns a 409 conflict error because the SLO is referenced in a dashboard. # noqa: E501
224224
This method makes a synchronous HTTP request by default. To make an
@@ -400,7 +400,7 @@ def __delete_slo_timeframe_in_bulk(self, body, **kwargs):
400400
)
401401

402402
def __get_slo(self, slo_id, **kwargs):
403-
"""Get a SLO's details # noqa: E501
403+
"""Get an SLO's details # noqa: E501
404404
405405
Get a service level objective object. # noqa: E501
406406
This method makes a synchronous HTTP request by default. To make an
@@ -698,7 +698,7 @@ def __list_slos(self, **kwargs):
698698
)
699699

700700
def __update_slo(self, slo_id, body, **kwargs):
701-
"""Update a SLO # noqa: E501
701+
"""Update an SLO # noqa: E501
702702
703703
Update the specified service level objective object. # noqa: E501
704704
This method makes a synchronous HTTP request by default. To make an

src/datadog_api_client/v1/openapi.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ components:
760760
ok:
761761
description: An array of of SLO IDs that can be safely deleted.
762762
items:
763-
description: A SLO ID.
763+
description: An SLO ID.
764764
type: string
765765
type: array
766766
type: object
@@ -15535,7 +15535,7 @@ paths:
1553515535
schema:
1553615536
$ref: '#/components/schemas/APIErrorResponse'
1553715537
description: Forbidden
15538-
summary: Create a SLO object
15538+
summary: Create an SLO object
1553915539
tags:
1554015540
- Service Level Objectives
1554115541
x-codegen-request-body-name: body
@@ -15602,7 +15602,7 @@ paths:
1560215602
type: idempotent
1560315603
/api/v1/slo/can_delete:
1560415604
get:
15605-
description: 'Check if a SLO can be safely deleted. For example,
15605+
description: 'Check if an SLO can be safely deleted. For example,
1560615606

1560715607
assure an SLO can be deleted without disrupting a dashboard.'
1560815608
operationId: CheckCanDeleteSLO
@@ -15892,7 +15892,7 @@ paths:
1589215892
schema:
1589315893
$ref: '#/components/schemas/SLODeleteResponse'
1589415894
description: Conflict
15895-
summary: Delete a SLO
15895+
summary: Delete an SLO
1589615896
tags:
1589715897
- Service Level Objectives
1589815898
x-undo:
@@ -15926,7 +15926,7 @@ paths:
1592615926
schema:
1592715927
$ref: '#/components/schemas/APIErrorResponse'
1592815928
description: Not found
15929-
summary: Get a SLO's details
15929+
summary: Get an SLO's details
1593015930
tags:
1593115931
- Service Level Objectives
1593215932
x-undo:
@@ -15973,7 +15973,7 @@ paths:
1597315973
schema:
1597415974
$ref: '#/components/schemas/APIErrorResponse'
1597515975
description: Not Found
15976-
summary: Update a SLO
15976+
summary: Update an SLO
1597715977
tags:
1597815978
- Service Level Objectives
1597915979
x-codegen-request-body-name: body

tests/v1/features/service_level_objectives.feature

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,54 +46,40 @@ Feature: Service Level Objectives
4646
Then the response status is 200 OK
4747

4848
@generated @skip
49-
Scenario: Create a SLO object returns "Bad Request" response
49+
Scenario: Create an SLO object returns "Bad Request" response
5050
Given new "CreateSLO" request
5151
And body {}
5252
When the request is sent
5353
Then the response status is 400 Bad Request
5454

5555
@generated @skip
56-
Scenario: Create a SLO object returns "OK" response
56+
Scenario: Create an SLO object returns "OK" response
5757
Given new "CreateSLO" request
5858
And body {}
5959
When the request is sent
6060
Then the response status is 200 OK
6161

6262
@generated @skip
63-
Scenario: Delete a SLO returns "Conflict" response
63+
Scenario: Delete an SLO returns "Conflict" response
6464
Given new "DeleteSLO" request
6565
And request contains "slo_id" parameter from "<PATH>"
6666
When the request is sent
6767
Then the response status is 409 Conflict
6868

6969
@generated @skip
70-
Scenario: Delete a SLO returns "Not found" response
70+
Scenario: Delete an SLO returns "Not found" response
7171
Given new "DeleteSLO" request
7272
And request contains "slo_id" parameter from "<PATH>"
7373
When the request is sent
7474
Then the response status is 404 Not found
7575

7676
@generated @skip
77-
Scenario: Delete a SLO returns "OK" response
77+
Scenario: Delete an SLO returns "OK" response
7878
Given new "DeleteSLO" request
7979
And request contains "slo_id" parameter from "<PATH>"
8080
When the request is sent
8181
Then the response status is 200 OK
8282

83-
@generated @skip
84-
Scenario: Get a SLO's details returns "Not found" response
85-
Given new "GetSLO" request
86-
And request contains "slo_id" parameter from "<PATH>"
87-
When the request is sent
88-
Then the response status is 404 Not found
89-
90-
@generated @skip
91-
Scenario: Get a SLO's details returns "OK" response
92-
Given new "GetSLO" request
93-
And request contains "slo_id" parameter from "<PATH>"
94-
When the request is sent
95-
Then the response status is 200 OK
96-
9783
@generated @skip
9884
Scenario: Get all SLOs returns "Bad Request" response
9985
Given new "ListSLOs" request
@@ -112,6 +98,20 @@ Feature: Service Level Objectives
11298
When the request is sent
11399
Then the response status is 200 OK
114100

101+
@generated @skip
102+
Scenario: Get an SLO's details returns "Not found" response
103+
Given new "GetSLO" request
104+
And request contains "slo_id" parameter from "<PATH>"
105+
When the request is sent
106+
Then the response status is 404 Not found
107+
108+
@generated @skip
109+
Scenario: Get an SLO's details returns "OK" response
110+
Given new "GetSLO" request
111+
And request contains "slo_id" parameter from "<PATH>"
112+
When the request is sent
113+
Then the response status is 200 OK
114+
115115
@generated @skip
116116
Scenario: Get an SLO's history returns "Bad Request" response
117117
Given operation "GetSLOHistory" enabled
@@ -137,23 +137,23 @@ Feature: Service Level Objectives
137137
Then the response status is 200 OK
138138

139139
@generated @skip
140-
Scenario: Update a SLO returns "Bad Request" response
140+
Scenario: Update an SLO returns "Bad Request" response
141141
Given new "UpdateSLO" request
142142
And request contains "slo_id" parameter from "<PATH>"
143143
And body {}
144144
When the request is sent
145145
Then the response status is 400 Bad Request
146146

147147
@generated @skip
148-
Scenario: Update a SLO returns "Not Found" response
148+
Scenario: Update an SLO returns "Not Found" response
149149
Given new "UpdateSLO" request
150150
And request contains "slo_id" parameter from "<PATH>"
151151
And body {}
152152
When the request is sent
153153
Then the response status is 404 Not Found
154154

155155
@generated @skip
156-
Scenario: Update a SLO returns "OK" response
156+
Scenario: Update an SLO returns "OK" response
157157
Given new "UpdateSLO" request
158158
And request contains "slo_id" parameter from "<PATH>"
159159
And body {}

0 commit comments

Comments
 (0)