Skip to content

Commit b8c5cc9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 9777e49 of spec repo (#502)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 1a1f298 commit b8c5cc9

File tree

8 files changed

+517
-286
lines changed

8 files changed

+517
-286
lines changed

.apigentools-info

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"info_version": "2",
44
"spec_versions": {
55
"v1": {
6-
"apigentools_version": "1.4.1.dev8",
7-
"regenerated": "2021-07-05 09:40:16.099125",
8-
"spec_repo_commit": "3dc8157"
6+
"apigentools_version": "1.4.1.dev11",
7+
"regenerated": "2021-07-05 14:09:21.990215",
8+
"spec_repo_commit": "9777e49"
99
},
1010
"v2": {
11-
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-07-05 09:40:40.074245",
13-
"spec_repo_commit": "3dc8157"
11+
"apigentools_version": "1.4.1.dev11",
12+
"regenerated": "2021-07-05 14:09:44.616992",
13+
"spec_repo_commit": "9777e49"
1414
}
1515
}
1616
}

docs/v2/KeyManagementApi.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Method | HTTP request | Description
1010
[**delete_application_key**](KeyManagementApi.md#delete_application_key) | **DELETE** /api/v2/application_keys/{app_key_id} | Delete an application key
1111
[**delete_current_user_application_key**](KeyManagementApi.md#delete_current_user_application_key) | **DELETE** /api/v2/current_user/application_keys/{app_key_id} | Delete an application key owned by current user
1212
[**get_api_key**](KeyManagementApi.md#get_api_key) | **GET** /api/v2/api_keys/{api_key_id} | Get API key
13+
[**get_application_key**](KeyManagementApi.md#get_application_key) | **GET** /api/v2/application_keys/{app_key_id} | Get an application key
1314
[**get_current_user_application_key**](KeyManagementApi.md#get_current_user_application_key) | **GET** /api/v2/current_user/application_keys/{app_key_id} | Get one application key owned by current user
1415
[**list_api_keys**](KeyManagementApi.md#list_api_keys) | **GET** /api/v2/api_keys | Get all API keys
1516
[**list_application_keys**](KeyManagementApi.md#list_application_keys) | **GET** /api/v2/application_keys | Get all application keys
@@ -425,6 +426,82 @@ Name | Type | Description | Notes
425426

426427
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
427428

429+
# **get_application_key**
430+
> ApplicationKeyResponse get_application_key(app_key_id)
431+
432+
Get an application key for your org.
433+
434+
### Example
435+
436+
* Api Key Authentication (apiKeyAuth):
437+
* Api Key Authentication (appKeyAuth):
438+
```python
439+
import os
440+
from dateutil.parser import parse as dateutil_parser
441+
from datadog_api_client.v2 import ApiClient, ApiException, Configuration
442+
from datadog_api_client.v2.api import key_management_api
443+
from datadog_api_client.v2.models import *
444+
from pprint import pprint
445+
# See configuration.py for a list of all supported configuration parameters.
446+
configuration = Configuration()
447+
448+
# Enter a context with an instance of the API client
449+
with ApiClient(configuration) as api_client:
450+
# Create an instance of the API class
451+
api_instance = key_management_api.KeyManagementApi(api_client)
452+
app_key_id = "app_key_id_example" # str | The ID of the application key.
453+
include = "owned_by" # str | Resource path for related resources to include in the response. Only `owned_by` is supported. (optional)
454+
455+
# example passing only required values which don't have defaults set
456+
try:
457+
# Get an application key
458+
api_response = api_instance.get_application_key(app_key_id)
459+
pprint(api_response)
460+
except ApiException as e:
461+
print("Exception when calling KeyManagementApi->get_application_key: %s\n" % e)
462+
463+
# example passing only required values which don't have defaults set
464+
# and optional values
465+
try:
466+
# Get an application key
467+
api_response = api_instance.get_application_key(app_key_id, include=include)
468+
pprint(api_response)
469+
except ApiException as e:
470+
print("Exception when calling KeyManagementApi->get_application_key: %s\n" % e)
471+
```
472+
473+
474+
### Parameters
475+
476+
Name | Type | Description | Notes
477+
------------- | ------------- | ------------- | -------------
478+
**app_key_id** | **str**| The ID of the application key. |
479+
**include** | **str**| Resource path for related resources to include in the response. Only &#x60;owned_by&#x60; is supported. | [optional]
480+
481+
### Return type
482+
483+
[**ApplicationKeyResponse**](ApplicationKeyResponse.md)
484+
485+
### Authorization
486+
487+
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
488+
489+
### HTTP request headers
490+
491+
- **Content-Type**: Not defined
492+
- **Accept**: application/json
493+
494+
495+
### HTTP response details
496+
| Status code | Description | Response headers |
497+
|-------------|-------------|------------------|
498+
**200** | OK | - |
499+
**400** | Bad Request | - |
500+
**403** | Forbidden | - |
501+
**404** | Not Found | - |
502+
503+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
504+
428505
# **get_current_user_application_key**
429506
> ApplicationKeyResponse get_current_user_application_key(app_key_id)
430507

docs/v2/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Class | Method | HTTP request | Description
116116
*KeyManagementApi* | [**delete_application_key**](KeyManagementApi.md#delete_application_key) | **DELETE** /api/v2/application_keys/{app_key_id} | Delete an application key
117117
*KeyManagementApi* | [**delete_current_user_application_key**](KeyManagementApi.md#delete_current_user_application_key) | **DELETE** /api/v2/current_user/application_keys/{app_key_id} | Delete an application key owned by current user
118118
*KeyManagementApi* | [**get_api_key**](KeyManagementApi.md#get_api_key) | **GET** /api/v2/api_keys/{api_key_id} | Get API key
119+
*KeyManagementApi* | [**get_application_key**](KeyManagementApi.md#get_application_key) | **GET** /api/v2/application_keys/{app_key_id} | Get an application key
119120
*KeyManagementApi* | [**get_current_user_application_key**](KeyManagementApi.md#get_current_user_application_key) | **GET** /api/v2/current_user/application_keys/{app_key_id} | Get one application key owned by current user
120121
*KeyManagementApi* | [**list_api_keys**](KeyManagementApi.md#list_api_keys) | **GET** /api/v2/api_keys | Get all API keys
121122
*KeyManagementApi* | [**list_application_keys**](KeyManagementApi.md#list_application_keys) | **GET** /api/v2/application_keys | Get all application keys

0 commit comments

Comments
 (0)