Skip to content

Commit 8e08363

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 2a64634 of spec repo (#162)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 2319bb4 commit 8e08363

5 files changed

Lines changed: 54 additions & 14 deletions

File tree

.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.dev2",
7-
"regenerated": "2021-01-13 20:15:20.361030",
8-
"spec_repo_commit": "fe2e0b5"
7+
"regenerated": "2021-01-13 22:18:57.084599",
8+
"spec_repo_commit": "2a64634"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2021-01-13 20:15:32.853556",
13-
"spec_repo_commit": "fe2e0b5"
12+
"regenerated": "2021-01-13 22:19:09.596614",
13+
"spec_repo_commit": "2a64634"
1414
}
1515
}
1616
}

data/v1/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14500,6 +14500,9 @@ paths:
1450014500
- Service Level Objective Corrections
1450114501
x-undo:
1450214502
type: safe
14503+
x-unstable: '**Note**: This endpoint is in public beta.
14504+
14505+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1450314506
post:
1450414507
description: Create an SLO Correction
1450514508
operationId: CreateSLOCorrection
@@ -14549,6 +14552,9 @@ paths:
1454914552
- name: slo_correction_id
1455014553
source: data.id
1455114554
type: unsafe
14555+
x-unstable: '**Note**: This endpoint is in public beta.
14556+
14557+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1455214558
/api/v1/slo/correction/{slo_correction_id}:
1455314559
delete:
1455414560
description: Permanently delete the specified SLO Correction object
@@ -14580,6 +14586,9 @@ paths:
1458014586
- Service Level Objective Corrections
1458114587
x-undo:
1458214588
type: idempotent
14589+
x-unstable: '**Note**: This endpoint is in public beta.
14590+
14591+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1458314592
get:
1458414593
description: Get an SLO Correction
1458514594
operationId: GetSLOCorrection
@@ -14614,6 +14623,9 @@ paths:
1461414623
- Service Level Objective Corrections
1461514624
x-undo:
1461614625
type: safe
14626+
x-unstable: '**Note**: This endpoint is in public beta.
14627+
14628+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1461714629
patch:
1461814630
description: Update the specified SLO correction object object
1461914631
operationId: UpdateSLOCorrection
@@ -14662,6 +14674,9 @@ paths:
1466214674
x-codegen-request-body-name: body
1466314675
x-undo:
1466414676
type: idempotent
14677+
x-unstable: '**Note**: This endpoint is in public beta.
14678+
14679+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1466514680
/api/v1/slo/{slo_id}:
1466614681
delete:
1466714682
description: 'Permanently delete the specified service level objective object.

docs/v1/ServiceLevelObjectiveCorrectionsApi.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ DatadogAPIClient::V1.configure do |config|
3535
config.api_key['appKeyAuth'] = ENV["DD_CLIENT_APP_KEY"]
3636
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3737
# config.api_key_prefix['appKeyAuth'] = 'Bearer'
38+
39+
config.unstable_operations[:create_slo_correction] = true
3840
end
3941

4042
api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsApi.new
@@ -111,6 +113,8 @@ DatadogAPIClient::V1.configure do |config|
111113
config.api_key['appKeyAuth'] = ENV["DD_CLIENT_APP_KEY"]
112114
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
113115
# config.api_key_prefix['appKeyAuth'] = 'Bearer'
116+
117+
config.unstable_operations[:delete_slo_correction] = true
114118
end
115119

116120
api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsApi.new
@@ -186,6 +190,8 @@ DatadogAPIClient::V1.configure do |config|
186190
config.api_key['appKeyAuth'] = ENV["DD_CLIENT_APP_KEY"]
187191
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
188192
# config.api_key_prefix['appKeyAuth'] = 'Bearer'
193+
194+
config.unstable_operations[:get_slo_correction] = true
189195
end
190196

191197
api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsApi.new
@@ -262,6 +268,8 @@ DatadogAPIClient::V1.configure do |config|
262268
config.api_key['appKeyAuth'] = ENV["DD_CLIENT_APP_KEY"]
263269
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
264270
# config.api_key_prefix['appKeyAuth'] = 'Bearer'
271+
272+
config.unstable_operations[:list_slo_correction] = true
265273
end
266274

267275
api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsApi.new
@@ -335,6 +343,8 @@ DatadogAPIClient::V1.configure do |config|
335343
config.api_key['appKeyAuth'] = ENV["DD_CLIENT_APP_KEY"]
336344
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
337345
# config.api_key_prefix['appKeyAuth'] = 'Bearer'
346+
347+
config.unstable_operations[:update_slo_correction] = true
338348
end
339349

340350
api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsApi.new

features/v1/service_level_objective_corrections.feature

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,71 +13,81 @@ Feature: Service Level Objective Corrections
1313

1414
@generated @skip
1515
Scenario: Get all SLO corrections returns "OK" response
16-
Given new "ListSLOCorrection" request
16+
Given operation "ListSLOCorrection" enabled
17+
And new "ListSLOCorrection" request
1718
When the request is sent
1819
Then the response status is 200 OK
1920

2021
@generated @skip
2122
Scenario: Create an SLO correction returns "OK" response
22-
Given new "CreateSLOCorrection" request
23+
Given operation "CreateSLOCorrection" enabled
24+
And new "CreateSLOCorrection" request
2325
And body {}
2426
When the request is sent
2527
Then the response status is 200 OK
2628

2729
@generated @skip
2830
Scenario: Delete an SLO Correction returns "OK" response
29-
Given new "DeleteSLOCorrection" request
31+
Given operation "DeleteSLOCorrection" enabled
32+
And new "DeleteSLOCorrection" request
3033
And request contains "slo_correction_id" parameter from "<PATH>"
3134
When the request is sent
3235
Then the response status is 204 OK
3336

3437
@generated @skip
3538
Scenario: Get an SLO correction for an SLO returns "OK" response
36-
Given new "GetSLOCorrection" request
39+
Given operation "GetSLOCorrection" enabled
40+
And new "GetSLOCorrection" request
3741
And request contains "slo_correction_id" parameter from "<PATH>"
3842
When the request is sent
3943
Then the response status is 200 OK
4044

4145
@generated @skip
4246
Scenario: Update an SLO Correction returns "OK" response
43-
Given new "UpdateSLOCorrection" request
47+
Given operation "UpdateSLOCorrection" enabled
48+
And new "UpdateSLOCorrection" request
4449
And request contains "slo_correction_id" parameter from "<PATH>"
4550
And body {}
4651
When the request is sent
4752
Then the response status is 200 OK
4853

4954
@generated @skip
5055
Scenario: Create an SLO correction returns "Bad Request" response
51-
Given new "CreateSLOCorrection" request
56+
Given operation "CreateSLOCorrection" enabled
57+
And new "CreateSLOCorrection" request
5258
And body {}
5359
When the request is sent
5460
Then the response status is 400 Bad Request
5561

5662
@generated @skip
5763
Scenario: Delete an SLO Correction returns "Not found" response
58-
Given new "DeleteSLOCorrection" request
64+
Given operation "DeleteSLOCorrection" enabled
65+
And new "DeleteSLOCorrection" request
5966
And request contains "slo_correction_id" parameter from "<PATH>"
6067
When the request is sent
6168
Then the response status is 404 Not found
6269

6370
@generated @skip
6471
Scenario: Get an SLO correction for an SLO returns "Bad Request" response
65-
Given new "GetSLOCorrection" request
72+
Given operation "GetSLOCorrection" enabled
73+
And new "GetSLOCorrection" request
6674
And request contains "slo_correction_id" parameter from "<PATH>"
6775
When the request is sent
6876
Then the response status is 400 Bad Request
6977

7078
@generated @skip
7179
Scenario: Update an SLO Correction returns "Bad Request" response
72-
Given new "UpdateSLOCorrection" request
80+
Given operation "UpdateSLOCorrection" enabled
81+
And new "UpdateSLOCorrection" request
7382
And request contains "slo_correction_id" parameter from "<PATH>"
7483
And body {}
7584
When the request is sent
7685
Then the response status is 400 Bad Request
7786

7887
@generated @skip
7988
Scenario: Update an SLO Correction returns "Not Found" response
80-
Given new "UpdateSLOCorrection" request
89+
Given operation "UpdateSLOCorrection" enabled
90+
And new "UpdateSLOCorrection" request
8191
And request contains "slo_correction_id" parameter from "<PATH>"
8292
And body {}
8393
When the request is sent

lib/datadog_api_client/v1/configuration.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ def initialize
170170
list_log_indexes: false,
171171
update_logs_index: false,
172172
update_logs_index_order: false,
173+
create_slo_correction: false,
174+
delete_slo_correction: false,
175+
get_slo_correction: false,
176+
list_slo_correction: false,
177+
update_slo_correction: false,
173178
get_slo_history: false,
174179
get_daily_custom_reports: false,
175180
get_monthly_custom_reports: false,

0 commit comments

Comments
 (0)