Skip to content

Commit 758a812

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit fc003cf of spec repo (#218)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 3b673e0 commit 758a812

File tree

13 files changed

+525
-81
lines changed

13 files changed

+525
-81
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-01-11 08:50:27.839609",
8-
"spec_repo_commit": "d085f50"
7+
"regenerated": "2021-01-11 14:01:57.868139",
8+
"spec_repo_commit": "fc003cf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2021-01-11 08:50:38.384202",
13-
"spec_repo_commit": "d085f50"
12+
"regenerated": "2021-01-11 14:02:10.187584",
13+
"spec_repo_commit": "fc003cf"
1414
}
1515
}
1616
}

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ datadog_api_client/v2/model/api_key_update_attributes.py
3030
datadog_api_client/v2/model/api_key_update_data.py
3131
datadog_api_client/v2/model/api_key_update_request.py
3232
datadog_api_client/v2/model/api_keys_response.py
33+
datadog_api_client/v2/model/api_keys_sort.py
3334
datadog_api_client/v2/model/api_keys_type.py
3435
datadog_api_client/v2/model/application_key_create_attributes.py
3536
datadog_api_client/v2/model/application_key_create_data.py
@@ -40,6 +41,7 @@ datadog_api_client/v2/model/application_key_response_included_item.py
4041
datadog_api_client/v2/model/application_key_update_attributes.py
4142
datadog_api_client/v2/model/application_key_update_data.py
4243
datadog_api_client/v2/model/application_key_update_request.py
44+
datadog_api_client/v2/model/application_keys_sort.py
4345
datadog_api_client/v2/model/application_keys_type.py
4446
datadog_api_client/v2/model/creator.py
4547
datadog_api_client/v2/model/dashboard_list_add_items_request.py
@@ -304,6 +306,7 @@ docs/APIKeyUpdateAttributes.md
304306
docs/APIKeyUpdateData.md
305307
docs/APIKeyUpdateRequest.md
306308
docs/APIKeysResponse.md
309+
docs/APIKeysSort.md
307310
docs/APIKeysType.md
308311
docs/ApplicationKeyCreateAttributes.md
309312
docs/ApplicationKeyCreateData.md
@@ -314,6 +317,7 @@ docs/ApplicationKeyResponseIncludedItem.md
314317
docs/ApplicationKeyUpdateAttributes.md
315318
docs/ApplicationKeyUpdateData.md
316319
docs/ApplicationKeyUpdateRequest.md
320+
docs/ApplicationKeysSort.md
317321
docs/ApplicationKeysType.md
318322
docs/Creator.md
319323
docs/DashboardListAddItemsRequest.md
@@ -587,6 +591,7 @@ test/test_api_key_update_attributes.py
587591
test/test_api_key_update_data.py
588592
test/test_api_key_update_request.py
589593
test/test_api_keys_response.py
594+
test/test_api_keys_sort.py
590595
test/test_api_keys_type.py
591596
test/test_application_key_create_attributes.py
592597
test/test_application_key_create_data.py
@@ -597,6 +602,7 @@ test/test_application_key_response_included_item.py
597602
test/test_application_key_update_attributes.py
598603
test/test_application_key_update_data.py
599604
test/test_application_key_update_request.py
605+
test/test_application_keys_sort.py
600606
test/test_application_keys_type.py
601607
test/test_creator.py
602608
test/test_dashboard_list_add_items_request.py

docs/v2/APIKeysSort.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# APIKeysSort
2+
3+
Sorting options
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Sorting options | defaults to "name", must be one of ["created_at", "-created_at", "last4", "-last4", "modified_at", "-modified_at", "name", "-name", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/ApplicationKeysSort.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ApplicationKeysSort
2+
3+
Sorting options
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**value** | **str** | Sorting options | defaults to "name", must be one of ["created_at", "-created_at", "last4", "-last4", "name", "-name", ]
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/KeyManagementApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
676676
api_instance = key_management_api.KeyManagementApi(api_client)
677677
page_size = 10 # int | Size for a given page. (optional) if omitted the server will use the default value of 10
678678
page_number = 0 # int | Specific page number to return. (optional) if omitted the server will use the default value of 0
679-
sort = "name" # str | API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (optional) if omitted the server will use the default value of "name"
679+
sort = APIKeysSort("name") # APIKeysSort | API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (optional)
680680
filter = "filter_example" # str | Filter API keys by the specified string. (optional)
681681
filter_created_at_start = "2020-11-24T18:46:21+00:00" # str | Only include API keys created on or after the specified date. (optional)
682682
filter_created_at_end = "2020-11-24T18:46:21+00:00" # str | Only include API keys created on or before the specified date. (optional)
@@ -700,7 +700,7 @@ Name | Type | Description | Notes
700700
------------- | ------------- | ------------- | -------------
701701
**page_size** | **int**| Size for a given page. | [optional] if omitted the server will use the default value of 10
702702
**page_number** | **int**| Specific page number to return. | [optional] if omitted the server will use the default value of 0
703-
**sort** | **str**| API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. | [optional] if omitted the server will use the default value of "name"
703+
**sort** | **APIKeysSort**| API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. | [optional]
704704
**filter** | **str**| Filter API keys by the specified string. | [optional]
705705
**filter_created_at_start** | **str**| Only include API keys created on or after the specified date. | [optional]
706706
**filter_created_at_end** | **str**| Only include API keys created on or before the specified date. | [optional]
@@ -777,7 +777,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
777777
api_instance = key_management_api.KeyManagementApi(api_client)
778778
page_size = 10 # int | Size for a given page. (optional) if omitted the server will use the default value of 10
779779
page_number = 0 # int | Specific page number to return. (optional) if omitted the server will use the default value of 0
780-
sort = "name" # str | Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (optional) if omitted the server will use the default value of "name"
780+
sort = ApplicationKeysSort("name") # ApplicationKeysSort | Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (optional)
781781
filter = "filter_example" # str | Filter application keys by the specified string. (optional)
782782
filter_created_at_start = "2020-11-24T18:46:21+00:00" # str | Only include application keys created on or after the specified date. (optional)
783783
filter_created_at_end = "2020-11-24T18:46:21+00:00" # str | Only include application keys created on or before the specified date. (optional)
@@ -798,7 +798,7 @@ Name | Type | Description | Notes
798798
------------- | ------------- | ------------- | -------------
799799
**page_size** | **int**| Size for a given page. | [optional] if omitted the server will use the default value of 10
800800
**page_number** | **int**| Specific page number to return. | [optional] if omitted the server will use the default value of 0
801-
**sort** | **str**| Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. | [optional] if omitted the server will use the default value of "name"
801+
**sort** | **ApplicationKeysSort**| Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. | [optional]
802802
**filter** | **str**| Filter application keys by the specified string. | [optional]
803803
**filter_created_at_start** | **str**| Only include application keys created on or after the specified date. | [optional]
804804
**filter_created_at_end** | **str**| Only include application keys created on or before the specified date. | [optional]
@@ -873,7 +873,7 @@ with datadog_api_client.v2.ApiClient(configuration) as api_client:
873873
api_instance = key_management_api.KeyManagementApi(api_client)
874874
page_size = 10 # int | Size for a given page. (optional) if omitted the server will use the default value of 10
875875
page_number = 0 # int | Specific page number to return. (optional) if omitted the server will use the default value of 0
876-
sort = "name" # str | Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (optional) if omitted the server will use the default value of "name"
876+
sort = ApplicationKeysSort("name") # ApplicationKeysSort | Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. (optional)
877877
filter = "filter_example" # str | Filter application keys by the specified string. (optional)
878878
filter_created_at_start = "2020-11-24T18:46:21+00:00" # str | Only include application keys created on or after the specified date. (optional)
879879
filter_created_at_end = "2020-11-24T18:46:21+00:00" # str | Only include application keys created on or before the specified date. (optional)
@@ -894,7 +894,7 @@ Name | Type | Description | Notes
894894
------------- | ------------- | ------------- | -------------
895895
**page_size** | **int**| Size for a given page. | [optional] if omitted the server will use the default value of 10
896896
**page_number** | **int**| Specific page number to return. | [optional] if omitted the server will use the default value of 0
897-
**sort** | **str**| Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. | [optional] if omitted the server will use the default value of "name"
897+
**sort** | **ApplicationKeysSort**| Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign. | [optional]
898898
**filter** | **str**| Filter application keys by the specified string. | [optional]
899899
**filter_created_at_start** | **str**| Only include application keys created on or after the specified date. | [optional]
900900
**filter_created_at_end** | **str**| Only include application keys created on or before the specified date. | [optional]

docs/v2/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
205205
- [APIKeyUpdateData](APIKeyUpdateData.md)
206206
- [APIKeyUpdateRequest](APIKeyUpdateRequest.md)
207207
- [APIKeysResponse](APIKeysResponse.md)
208+
- [APIKeysSort](APIKeysSort.md)
208209
- [APIKeysType](APIKeysType.md)
209210
- [ApplicationKeyCreateAttributes](ApplicationKeyCreateAttributes.md)
210211
- [ApplicationKeyCreateData](ApplicationKeyCreateData.md)
@@ -215,6 +216,7 @@ Class | Method | HTTP request | Description
215216
- [ApplicationKeyUpdateAttributes](ApplicationKeyUpdateAttributes.md)
216217
- [ApplicationKeyUpdateData](ApplicationKeyUpdateData.md)
217218
- [ApplicationKeyUpdateRequest](ApplicationKeyUpdateRequest.md)
219+
- [ApplicationKeysSort](ApplicationKeysSort.md)
218220
- [ApplicationKeysType](ApplicationKeysType.md)
219221
- [Creator](Creator.md)
220222
- [DashboardListAddItemsRequest](DashboardListAddItemsRequest.md)

src/datadog_api_client/v2/api/key_management_api.py

Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
from datadog_api_client.v2.model.api_key_response import APIKeyResponse
2222
from datadog_api_client.v2.model.api_key_update_request import APIKeyUpdateRequest
2323
from datadog_api_client.v2.model.api_keys_response import APIKeysResponse
24+
from datadog_api_client.v2.model.api_keys_sort import APIKeysSort
2425
from datadog_api_client.v2.model.application_key_create_request import ApplicationKeyCreateRequest
2526
from datadog_api_client.v2.model.application_key_response import ApplicationKeyResponse
2627
from datadog_api_client.v2.model.application_key_update_request import ApplicationKeyUpdateRequest
28+
from datadog_api_client.v2.model.application_keys_sort import ApplicationKeysSort
2729
from datadog_api_client.v2.model.list_application_keys_response import ListApplicationKeysResponse
2830

2931

@@ -904,7 +906,7 @@ def __list_api_keys(
904906
Keyword Args:
905907
page_size (int): Size for a given page.. [optional] if omitted the server will use the default value of 10
906908
page_number (int): Specific page number to return.. [optional] if omitted the server will use the default value of 0
907-
sort (str): API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.. [optional] if omitted the server will use the default value of "name"
909+
sort (APIKeysSort): API key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.. [optional]
908910
filter (str): Filter API keys by the specified string.. [optional]
909911
filter_created_at_start (str): Only include API keys created on or after the specified date.. [optional]
910912
filter_created_at_end (str): Only include API keys created on or before the specified date.. [optional]
@@ -985,7 +987,6 @@ def __list_api_keys(
985987
'nullable': [
986988
],
987989
'enum': [
988-
'sort',
989990
],
990991
'validation': [
991992
]
@@ -994,25 +995,14 @@ def __list_api_keys(
994995
'validations': {
995996
},
996997
'allowed_values': {
997-
('sort',): {
998-
999-
"CREATED_AT": "created_at",
1000-
"-CREATED_AT": "-created_at",
1001-
"LAST4": "last4",
1002-
"-LAST4": "-last4",
1003-
"MODIFIED_AT": "modified_at",
1004-
"-MODIFIED_AT": "-modified_at",
1005-
"NAME": "name",
1006-
"-NAME": "-name"
1007-
},
1008998
},
1009999
'openapi_types': {
10101000
'page_size':
10111001
(int,),
10121002
'page_number':
10131003
(int,),
10141004
'sort':
1015-
(str,),
1005+
(APIKeysSort,),
10161006
'filter':
10171007
(str,),
10181008
'filter_created_at_start':
@@ -1078,7 +1068,7 @@ def __list_application_keys(
10781068
Keyword Args:
10791069
page_size (int): Size for a given page.. [optional] if omitted the server will use the default value of 10
10801070
page_number (int): Specific page number to return.. [optional] if omitted the server will use the default value of 0
1081-
sort (str): Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.. [optional] if omitted the server will use the default value of "name"
1071+
sort (ApplicationKeysSort): Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.. [optional]
10821072
filter (str): Filter application keys by the specified string.. [optional]
10831073
filter_created_at_start (str): Only include application keys created on or after the specified date.. [optional]
10841074
filter_created_at_end (str): Only include application keys created on or before the specified date.. [optional]
@@ -1153,7 +1143,6 @@ def __list_application_keys(
11531143
'nullable': [
11541144
],
11551145
'enum': [
1156-
'sort',
11571146
],
11581147
'validation': [
11591148
]
@@ -1162,23 +1151,14 @@ def __list_application_keys(
11621151
'validations': {
11631152
},
11641153
'allowed_values': {
1165-
('sort',): {
1166-
1167-
"CREATED_AT": "created_at",
1168-
"-CREATED_AT": "-created_at",
1169-
"LAST4": "last4",
1170-
"-LAST4": "-last4",
1171-
"NAME": "name",
1172-
"-NAME": "-name"
1173-
},
11741154
},
11751155
'openapi_types': {
11761156
'page_size':
11771157
(int,),
11781158
'page_number':
11791159
(int,),
11801160
'sort':
1181-
(str,),
1161+
(ApplicationKeysSort,),
11821162
'filter':
11831163
(str,),
11841164
'filter_created_at_start':
@@ -1232,7 +1212,7 @@ def __list_current_user_application_keys(
12321212
Keyword Args:
12331213
page_size (int): Size for a given page.. [optional] if omitted the server will use the default value of 10
12341214
page_number (int): Specific page number to return.. [optional] if omitted the server will use the default value of 0
1235-
sort (str): Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.. [optional] if omitted the server will use the default value of "name"
1215+
sort (ApplicationKeysSort): Application key attribute used to sort results. Sort order is ascending by default. In order to specify a descending sort, prefix the attribute with a minus sign.. [optional]
12361216
filter (str): Filter application keys by the specified string.. [optional]
12371217
filter_created_at_start (str): Only include application keys created on or after the specified date.. [optional]
12381218
filter_created_at_end (str): Only include application keys created on or before the specified date.. [optional]
@@ -1307,7 +1287,6 @@ def __list_current_user_application_keys(
13071287
'nullable': [
13081288
],
13091289
'enum': [
1310-
'sort',
13111290
],
13121291
'validation': [
13131292
]
@@ -1316,23 +1295,14 @@ def __list_current_user_application_keys(
13161295
'validations': {
13171296
},
13181297
'allowed_values': {
1319-
('sort',): {
1320-
1321-
"CREATED_AT": "created_at",
1322-
"-CREATED_AT": "-created_at",
1323-
"LAST4": "last4",
1324-
"-LAST4": "-last4",
1325-
"NAME": "name",
1326-
"-NAME": "-name"
1327-
},
13281298
},
13291299
'openapi_types': {
13301300
'page_size':
13311301
(int,),
13321302
'page_number':
13331303
(int,),
13341304
'sort':
1335-
(str,),
1305+
(ApplicationKeysSort,),
13361306
'filter':
13371307
(str,),
13381308
'filter_created_at_start':

0 commit comments

Comments
 (0)