Skip to content

Commit 9c8f3cb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 104aacd of spec repo (#268)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 38c0c9b commit 9c8f3cb

File tree

11 files changed

+27
-105
lines changed

11 files changed

+27
-105
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.dev2",
7-
"regenerated": "2021-02-05 21:08:23.815865",
8-
"spec_repo_commit": "bd96110"
7+
"regenerated": "2021-02-09 09:15:52.434814",
8+
"spec_repo_commit": "104aacd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2021-02-05 21:09:01.316378",
13-
"spec_repo_commit": "bd96110"
12+
"regenerated": "2021-02-09 09:16:28.785073",
13+
"spec_repo_commit": "104aacd"
1414
}
1515
}
1616
}

docs/v1/LogsIndexesApi.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
4141

4242
# Configure API key authorization: appKeyAuth
4343
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
44-
configuration.unstable_operations["create_logs_index"] = True
4544

4645
# Enter a context with an instance of the API client
4746
with ApiClient(configuration) as api_client:
@@ -133,7 +132,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
133132

134133
# Configure API key authorization: appKeyAuth
135134
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
136-
configuration.unstable_operations["get_logs_index"] = True
137135

138136
# Enter a context with an instance of the API client
139137
with ApiClient(configuration) as api_client:
@@ -207,7 +205,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
207205

208206
# Configure API key authorization: appKeyAuth
209207
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
210-
configuration.unstable_operations["get_logs_index_order"] = True
211208

212209
# Enter a context with an instance of the API client
213210
with ApiClient(configuration) as api_client:
@@ -276,7 +273,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
276273

277274
# Configure API key authorization: appKeyAuth
278275
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
279-
configuration.unstable_operations["list_log_indexes"] = True
280276

281277
# Enter a context with an instance of the API client
282278
with ApiClient(configuration) as api_client:
@@ -345,7 +341,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
345341

346342
# Configure API key authorization: appKeyAuth
347343
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
348-
configuration.unstable_operations["update_logs_index"] = True
349344

350345
# Enter a context with an instance of the API client
351346
with ApiClient(configuration) as api_client:
@@ -439,7 +434,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
439434

440435
# Configure API key authorization: appKeyAuth
441436
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
442-
configuration.unstable_operations["update_logs_index_order"] = True
443437

444438
# Enter a context with an instance of the API client
445439
with ApiClient(configuration) as api_client:

docs/v2/LogsApi.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
152152

153153
# Configure API key authorization: appKeyAuth
154154
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
155-
configuration.unstable_operations["list_logs"] = True
156155

157156
# Enter a context with an instance of the API client
158157
with ApiClient(configuration) as api_client:
@@ -243,7 +242,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
243242

244243
# Configure API key authorization: appKeyAuth
245244
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
246-
configuration.unstable_operations["list_logs_get"] = True
247245

248246
# Enter a context with an instance of the API client
249247
with ApiClient(configuration) as api_client:

docs/v2/LogsArchivesApi.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
4545

4646
# Configure API key authorization: appKeyAuth
4747
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
48-
configuration.unstable_operations["add_read_role_to_archive"] = True
4948

5049
# Enter a context with an instance of the API client
5150
with ApiClient(configuration) as api_client:
@@ -425,7 +424,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
425424

426425
# Configure API key authorization: appKeyAuth
427426
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
428-
configuration.unstable_operations["list_archive_read_roles"] = True
429427

430428
# Enter a context with an instance of the API client
431429
with ApiClient(configuration) as api_client:
@@ -568,7 +566,6 @@ configuration.api_key['apiKeyAuth'] = os.getenv('DD_CLIENT_API_KEY')
568566

569567
# Configure API key authorization: appKeyAuth
570568
configuration.api_key['appKeyAuth'] = os.getenv('DD_CLIENT_APP_KEY')
571-
configuration.unstable_operations["remove_role_from_archive"] = True
572569

573570
# Enter a context with an instance of the API client
574571
with ApiClient(configuration) as api_client:

src/datadog_api_client/v1/configuration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,6 @@ def __init__(
222222

223223
# Keep track of unstable operations
224224
self.unstable_operations = {
225-
"create_logs_index": False,
226-
"get_logs_index": False,
227-
"get_logs_index_order": False,
228-
"list_log_indexes": False,
229-
"update_logs_index": False,
230-
"update_logs_index_order": False,
231225
"create_slo_correction": False,
232226
"delete_slo_correction": False,
233227
"get_slo_correction": False,

src/datadog_api_client/v1/openapi.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13175,9 +13175,6 @@ paths:
1317513175
- Logs Indexes
1317613176
x-undo:
1317713177
type: safe
13178-
x-unstable: '**Note: This endpoint is in public beta.**
13179-
13180-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1318113178
put:
1318213179
description: 'This endpoint updates the index order of your organization.
1318313180

@@ -13216,9 +13213,6 @@ paths:
1321613213
x-codegen-request-body-name: body
1321713214
x-undo:
1321813215
type: idempotent
13219-
x-unstable: '**Note: This endpoint is in public beta.**
13220-
13221-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1322213216
/api/v1/logs/config/indexes:
1322313217
get:
1322413218
description: 'The Index object describes the configuration of a log index.
@@ -13243,9 +13237,6 @@ paths:
1324313237
- Logs Indexes
1324413238
x-undo:
1324513239
type: safe
13246-
x-unstable: '**Note**: This endpoint is in public beta.
13247-
13248-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1324913240
post:
1325013241
description: Creates a new index. Returns the Index object passed in the request
1325113242
body when the request is successful.
@@ -13284,9 +13275,6 @@ paths:
1328413275
operationId: TODO
1328513276
parameters: []
1328613277
type: unsafe
13287-
x-unstable: '**Note**: This endpoint is in public beta.
13288-
13289-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1329013278
/api/v1/logs/config/indexes/{name}:
1329113279
get:
1329213280
description: Get one log index from your organization. This endpoint takes no
@@ -13323,9 +13311,6 @@ paths:
1332313311
- Logs Indexes
1332413312
x-undo:
1332513313
type: safe
13326-
x-unstable: '**Note**: This endpoint is in public beta.
13327-
13328-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1332913314
put:
1333013315
description: "Update an index as identified by its name.\nReturns the Index\
1333113316
\ object passed in the request body when the request is successful.\n\nUsing\
@@ -13377,9 +13362,6 @@ paths:
1337713362
x-codegen-request-body-name: body
1337813363
x-undo:
1337913364
type: idempotent
13380-
x-unstable: '**Note: This endpoint is in public beta.**
13381-
13382-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
1338313365
/api/v1/logs/config/pipeline-order:
1338413366
get:
1338513367
description: 'Get the current order of your pipelines.

src/datadog_api_client/v2/configuration.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,6 @@ def __init__(
237237
"get_incident": False,
238238
"list_incidents": False,
239239
"update_incident": False,
240-
"list_logs": False,
241-
"list_logs_get": False,
242-
"add_read_role_to_archive": False,
243-
"list_archive_read_roles": False,
244-
"remove_role_from_archive": False,
245240
"list_security_monitoring_signals": False,
246241
"search_security_monitoring_signals": False,
247242
}

src/datadog_api_client/v2/openapi.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5506,9 +5506,6 @@ paths:
55065506
x-codegen-request-body-name: body
55075507
x-undo:
55085508
type: idempotent
5509-
x-unstable: '**Note**: This endpoint is in public beta.
5510-
5511-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
55125509
get:
55135510
description: Returns all read roles a given archive is restricted to.
55145511
operationId: ListArchiveReadRoles
@@ -5545,9 +5542,6 @@ paths:
55455542
x-codegen-request-body-name: body
55465543
x-undo:
55475544
type: safe
5548-
x-unstable: '**Note**: This endpoint is in public beta.
5549-
5550-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
55515545
post:
55525546
description: Adds a read role to an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))
55535547
operationId: AddReadRoleToArchive
@@ -5586,9 +5580,6 @@ paths:
55865580
x-codegen-request-body-name: body
55875581
x-undo:
55885582
type: unsafe
5589-
x-unstable: '**Note**: This endpoint is in public beta.
5590-
5591-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
55925583
/api/v2/logs/config/metrics:
55935584
get:
55945585
description: Get the list of configured log-based metrics with their definitions.
@@ -5829,9 +5820,6 @@ paths:
58295820
- Logs
58305821
x-undo:
58315822
type: safe
5832-
x-unstable: '**Note**: This endpoint is in public beta.
5833-
5834-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
58355823
/api/v2/logs/events/search:
58365824
post:
58375825
description: 'List endpoint returns logs that match a log search query.
@@ -5876,9 +5864,6 @@ paths:
58765864
x-codegen-request-body-name: body
58775865
x-undo:
58785866
type: safe
5879-
x-unstable: '**Note**: This endpoint is in public beta.
5880-
5881-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
58825867
/api/v2/permissions:
58835868
get:
58845869
description: Returns a list of all permissions, including name, description,

tests/v1/features/logs_indexes.feature

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,89 +11,78 @@ Feature: Logs Indexes
1111

1212
@generated @skip
1313
Scenario: Create an index returns "Invalid Parameter Error" response
14-
Given operation "CreateLogsIndex" enabled
15-
And new "CreateLogsIndex" request
14+
Given new "CreateLogsIndex" request
1615
And body {}
1716
When the request is sent
1817
Then the response status is 400 Invalid Parameter Error
1918

2019
@generated @skip
2120
Scenario: Create an index returns "OK" response
22-
Given operation "CreateLogsIndex" enabled
23-
And new "CreateLogsIndex" request
21+
Given new "CreateLogsIndex" request
2422
And body {}
2523
When the request is sent
2624
Then the response status is 200 OK
2725

2826
@generated @skip
2927
Scenario: Get all indexes returns "OK" response
30-
Given operation "ListLogIndexes" enabled
31-
And new "ListLogIndexes" request
28+
Given new "ListLogIndexes" request
3229
When the request is sent
3330
Then the response status is 200 OK
3431

3532
@generated @skip
3633
Scenario: Get an index returns "Not Found" response
37-
Given operation "GetLogsIndex" enabled
38-
And new "GetLogsIndex" request
34+
Given new "GetLogsIndex" request
3935
And request contains "name" parameter from "<PATH>"
4036
When the request is sent
4137
Then the response status is 404 Not Found
4238

4339
@generated @skip
4440
Scenario: Get an index returns "OK" response
45-
Given operation "GetLogsIndex" enabled
46-
And new "GetLogsIndex" request
41+
Given new "GetLogsIndex" request
4742
And request contains "name" parameter from "<PATH>"
4843
When the request is sent
4944
Then the response status is 200 OK
5045

5146
@generated @skip
5247
Scenario: Get indexes order returns "OK" response
53-
Given operation "GetLogsIndexOrder" enabled
54-
And new "GetLogsIndexOrder" request
48+
Given new "GetLogsIndexOrder" request
5549
When the request is sent
5650
Then the response status is 200 OK
5751

5852
@generated @skip
5953
Scenario: Update an index returns "Invalid Parameter Error" response
60-
Given operation "UpdateLogsIndex" enabled
61-
And new "UpdateLogsIndex" request
54+
Given new "UpdateLogsIndex" request
6255
And request contains "name" parameter from "<PATH>"
6356
And body {}
6457
When the request is sent
6558
Then the response status is 400 Invalid Parameter Error
6659

6760
@generated @skip
6861
Scenario: Update an index returns "OK" response
69-
Given operation "UpdateLogsIndex" enabled
70-
And new "UpdateLogsIndex" request
62+
Given new "UpdateLogsIndex" request
7163
And request contains "name" parameter from "<PATH>"
7264
And body {}
7365
When the request is sent
7466
Then the response status is 200 OK
7567

7668
@generated @skip
7769
Scenario: Update an index returns "Too Many Requests" response
78-
Given operation "UpdateLogsIndex" enabled
79-
And new "UpdateLogsIndex" request
70+
Given new "UpdateLogsIndex" request
8071
And request contains "name" parameter from "<PATH>"
8172
And body {}
8273
When the request is sent
8374
Then the response status is 429 Too Many Requests
8475

8576
@generated @skip
8677
Scenario: Update indexes order returns "Bad Request" response
87-
Given operation "UpdateLogsIndexOrder" enabled
88-
And new "UpdateLogsIndexOrder" request
78+
Given new "UpdateLogsIndexOrder" request
8979
And body {}
9080
When the request is sent
9181
Then the response status is 400 Bad Request
9282

9383
@generated @skip
9484
Scenario: Update indexes order returns "OK" response
95-
Given operation "UpdateLogsIndexOrder" enabled
96-
And new "UpdateLogsIndexOrder" request
85+
Given new "UpdateLogsIndexOrder" request
9786
And body {}
9887
When the request is sent
9988
Then the response status is 200 OK

tests/v2/features/logs.feature

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ Feature: Logs
3535

3636
@generated @skip
3737
Scenario: Get a list of logs returns "Bad Request" response
38-
Given operation "ListLogsGet" enabled
39-
And new "ListLogsGet" request
38+
Given new "ListLogsGet" request
4039
When the request is sent
4140
Then the response status is 400 Bad Request
4241

@@ -60,16 +59,14 @@ Feature: Logs
6059

6160
@generated @skip
6261
Scenario: Search logs returns "Bad Request" response
63-
Given operation "ListLogs" enabled
64-
And new "ListLogs" request
62+
Given new "ListLogs" request
6563
And body {}
6664
When the request is sent
6765
Then the response status is 400 Bad Request
6866

6967
@generated @skip
7068
Scenario: Search logs returns "OK" response
71-
Given operation "ListLogs" enabled
72-
And new "ListLogs" request
69+
Given new "ListLogs" request
7370
And body {}
7471
When the request is sent
7572
Then the response status is 200 OK

0 commit comments

Comments
 (0)