Skip to content

Commit ad4a270

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Enable auto-merging for keys routes. (#2108)
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 1d21c92 commit ad4a270

17 files changed

+288
-17
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.6.6",
7-
"regenerated": "2024-08-14 22:02:36.053386",
8-
"spec_repo_commit": "5e33062a"
7+
"regenerated": "2024-08-14 22:32:00.966604",
8+
"spec_repo_commit": "07d72513"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-14 22:02:36.070633",
13-
"spec_repo_commit": "5e33062a"
12+
"regenerated": "2024-08-14 22:32:00.983631",
13+
"spec_repo_commit": "07d72513"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,16 @@ components:
673673
APIKeyCreateAttributes:
674674
description: Attributes used to create an API Key.
675675
properties:
676+
category:
677+
description: The APIKeyCreateAttributes category.
678+
type: string
676679
name:
677680
description: Name of the API key.
678681
example: API Key for submitting metrics
679682
type: string
683+
remote_config_read_enabled:
684+
description: The APIKeyCreateAttributes remote_config_read_enabled.
685+
type: boolean
680686
required:
681687
- name
682688
type: object
@@ -722,13 +728,20 @@ components:
722728
description: An object related to an API key.
723729
oneOf:
724730
- $ref: '#/components/schemas/User'
731+
- $ref: '#/components/schemas/LeakedKey'
725732
APIKeyUpdateAttributes:
726733
description: Attributes used to update an API Key.
727734
properties:
735+
category:
736+
description: The APIKeyUpdateAttributes category.
737+
type: string
728738
name:
729739
description: Name of the API key.
730740
example: API Key for submitting metrics
731741
type: string
742+
remote_config_read_enabled:
743+
description: The APIKeyUpdateAttributes remote_config_read_enabled.
744+
type: boolean
732745
required:
733746
- name
734747
type: object
@@ -981,6 +994,7 @@ components:
981994
oneOf:
982995
- $ref: '#/components/schemas/User'
983996
- $ref: '#/components/schemas/Role'
997+
- $ref: '#/components/schemas/LeakedKey'
984998
ApplicationKeyResponseMeta:
985999
description: Additional information related to the application key response.
9861000
properties:
@@ -8461,6 +8475,7 @@ components:
84618475
created_at:
84628476
description: Creation date of the API key.
84638477
example: '2020-11-23T10:00:00.000Z'
8478+
format: date-time
84648479
readOnly: true
84658480
type: string
84668481
key:
@@ -8477,6 +8492,7 @@ components:
84778492
modified_at:
84788493
description: Date the API key was last modified.
84798494
example: '2020-11-23T10:00:00.000Z'
8495+
format: date-time
84808496
readOnly: true
84818497
type: string
84828498
name:
@@ -11140,6 +11156,45 @@ components:
1114011156
description: Jira project key
1114111157
type: string
1114211158
type: object
11159+
LeakedKey:
11160+
description: The definition of LeakedKey object.
11161+
properties:
11162+
attributes:
11163+
$ref: '#/components/schemas/LeakedKeyAttributes'
11164+
id:
11165+
description: The LeakedKey id.
11166+
example: id
11167+
type: string
11168+
type:
11169+
$ref: '#/components/schemas/LeakedKeyType'
11170+
required:
11171+
- attributes
11172+
- id
11173+
- type
11174+
type: object
11175+
LeakedKeyAttributes:
11176+
description: The definition of LeakedKeyAttributes object.
11177+
properties:
11178+
date:
11179+
description: The LeakedKeyAttributes date.
11180+
example: '2017-07-21T17:32:28Z'
11181+
format: date-time
11182+
type: string
11183+
leak_source:
11184+
description: The LeakedKeyAttributes leak_source.
11185+
type: string
11186+
required:
11187+
- date
11188+
type: object
11189+
LeakedKeyType:
11190+
default: leaked_keys
11191+
description: The definition of LeakedKeyType object.
11192+
enum:
11193+
- leaked_keys
11194+
example: leaked_keys
11195+
type: string
11196+
x-enum-varnames:
11197+
- LEAKED_KEYS
1114311198
ListAPIsResponse:
1114411199
description: Response for `ListAPIs`.
1114511200
properties:

docs/datadog_api_client.v2.model.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4652,6 +4652,27 @@ datadog\_api\_client.v2.model.jsonapi\_error\_response module
46524652
:members:
46534653
:show-inheritance:
46544654

4655+
datadog\_api\_client.v2.model.leaked\_key module
4656+
------------------------------------------------
4657+
4658+
.. automodule:: datadog_api_client.v2.model.leaked_key
4659+
:members:
4660+
:show-inheritance:
4661+
4662+
datadog\_api\_client.v2.model.leaked\_key\_attributes module
4663+
------------------------------------------------------------
4664+
4665+
.. automodule:: datadog_api_client.v2.model.leaked_key_attributes
4666+
:members:
4667+
:show-inheritance:
4668+
4669+
datadog\_api\_client.v2.model.leaked\_key\_type module
4670+
------------------------------------------------------
4671+
4672+
.. automodule:: datadog_api_client.v2.model.leaked_key_type
4673+
:members:
4674+
:show-inheritance:
4675+
46554676
datadog\_api\_client.v2.model.list\_apis\_response module
46564677
---------------------------------------------------------
46574678

src/datadog_api_client/v2/model/api_key_create_attributes.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,54 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6+
from typing import Union
67

78
from datadog_api_client.model_utils import (
89
ModelNormal,
910
cached_property,
11+
unset,
12+
UnsetType,
1013
)
1114

1215

1316
class APIKeyCreateAttributes(ModelNormal):
1417
@cached_property
1518
def openapi_types(_):
1619
return {
20+
"category": (str,),
1721
"name": (str,),
22+
"remote_config_read_enabled": (bool,),
1823
}
1924

2025
attribute_map = {
26+
"category": "category",
2127
"name": "name",
28+
"remote_config_read_enabled": "remote_config_read_enabled",
2229
}
2330

24-
def __init__(self_, name: str, **kwargs):
31+
def __init__(
32+
self_,
33+
name: str,
34+
category: Union[str, UnsetType] = unset,
35+
remote_config_read_enabled: Union[bool, UnsetType] = unset,
36+
**kwargs,
37+
):
2538
"""
2639
Attributes used to create an API Key.
2740
41+
:param category: The APIKeyCreateAttributes category.
42+
:type category: str, optional
43+
2844
:param name: Name of the API key.
2945
:type name: str
46+
47+
:param remote_config_read_enabled: The APIKeyCreateAttributes remote_config_read_enabled.
48+
:type remote_config_read_enabled: bool, optional
3049
"""
50+
if category is not unset:
51+
kwargs["category"] = category
52+
if remote_config_read_enabled is not unset:
53+
kwargs["remote_config_read_enabled"] = remote_config_read_enabled
3154
super().__init__(kwargs)
3255

3356
self_.name = name

src/datadog_api_client/v2/model/api_key_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from datadog_api_client.v2.model.full_api_key import FullAPIKey
1818
from datadog_api_client.v2.model.api_key_response_included_item import APIKeyResponseIncludedItem
1919
from datadog_api_client.v2.model.user import User
20+
from datadog_api_client.v2.model.leaked_key import LeakedKey
2021

2122

2223
class APIKeyResponse(ModelNormal):
@@ -38,7 +39,7 @@ def openapi_types(_):
3839
def __init__(
3940
self_,
4041
data: Union[FullAPIKey, UnsetType] = unset,
41-
included: Union[List[Union[APIKeyResponseIncludedItem, User]], UnsetType] = unset,
42+
included: Union[List[Union[APIKeyResponseIncludedItem, User, LeakedKey]], UnsetType] = unset,
4243
**kwargs,
4344
):
4445
"""

src/datadog_api_client/v2/model/api_key_response_included_item.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ def _composed_schemas(_):
3939
# classes don't exist yet because their module has not finished
4040
# loading
4141
from datadog_api_client.v2.model.user import User
42+
from datadog_api_client.v2.model.leaked_key import LeakedKey
4243

4344
return {
4445
"oneOf": [
4546
User,
47+
LeakedKey,
4648
],
4749
}

src/datadog_api_client/v2/model/api_key_update_attributes.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,54 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6+
from typing import Union
67

78
from datadog_api_client.model_utils import (
89
ModelNormal,
910
cached_property,
11+
unset,
12+
UnsetType,
1013
)
1114

1215

1316
class APIKeyUpdateAttributes(ModelNormal):
1417
@cached_property
1518
def openapi_types(_):
1619
return {
20+
"category": (str,),
1721
"name": (str,),
22+
"remote_config_read_enabled": (bool,),
1823
}
1924

2025
attribute_map = {
26+
"category": "category",
2127
"name": "name",
28+
"remote_config_read_enabled": "remote_config_read_enabled",
2229
}
2330

24-
def __init__(self_, name: str, **kwargs):
31+
def __init__(
32+
self_,
33+
name: str,
34+
category: Union[str, UnsetType] = unset,
35+
remote_config_read_enabled: Union[bool, UnsetType] = unset,
36+
**kwargs,
37+
):
2538
"""
2639
Attributes used to update an API Key.
2740
41+
:param category: The APIKeyUpdateAttributes category.
42+
:type category: str, optional
43+
2844
:param name: Name of the API key.
2945
:type name: str
46+
47+
:param remote_config_read_enabled: The APIKeyUpdateAttributes remote_config_read_enabled.
48+
:type remote_config_read_enabled: bool, optional
3049
"""
50+
if category is not unset:
51+
kwargs["category"] = category
52+
if remote_config_read_enabled is not unset:
53+
kwargs["remote_config_read_enabled"] = remote_config_read_enabled
3154
super().__init__(kwargs)
3255

3356
self_.name = name

src/datadog_api_client/v2/model/api_keys_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v2.model.api_key_response_included_item import APIKeyResponseIncludedItem
1919
from datadog_api_client.v2.model.api_keys_response_meta import APIKeysResponseMeta
2020
from datadog_api_client.v2.model.user import User
21+
from datadog_api_client.v2.model.leaked_key import LeakedKey
2122

2223

2324
class APIKeysResponse(ModelNormal):
@@ -42,7 +43,7 @@ def openapi_types(_):
4243
def __init__(
4344
self_,
4445
data: Union[List[PartialAPIKey], UnsetType] = unset,
45-
included: Union[List[Union[APIKeyResponseIncludedItem, User]], UnsetType] = unset,
46+
included: Union[List[Union[APIKeyResponseIncludedItem, User, LeakedKey]], UnsetType] = unset,
4647
meta: Union[APIKeysResponseMeta, UnsetType] = unset,
4748
**kwargs,
4849
):

src/datadog_api_client/v2/model/application_key_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from datadog_api_client.v2.model.application_key_response_included_item import ApplicationKeyResponseIncludedItem
1919
from datadog_api_client.v2.model.user import User
2020
from datadog_api_client.v2.model.role import Role
21+
from datadog_api_client.v2.model.leaked_key import LeakedKey
2122

2223

2324
class ApplicationKeyResponse(ModelNormal):
@@ -41,7 +42,7 @@ def openapi_types(_):
4142
def __init__(
4243
self_,
4344
data: Union[FullApplicationKey, UnsetType] = unset,
44-
included: Union[List[Union[ApplicationKeyResponseIncludedItem, User, Role]], UnsetType] = unset,
45+
included: Union[List[Union[ApplicationKeyResponseIncludedItem, User, Role, LeakedKey]], UnsetType] = unset,
4546
**kwargs,
4647
):
4748
"""

src/datadog_api_client/v2/model/application_key_response_included_item.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ def _composed_schemas(_):
4040
# loading
4141
from datadog_api_client.v2.model.user import User
4242
from datadog_api_client.v2.model.role import Role
43+
from datadog_api_client.v2.model.leaked_key import LeakedKey
4344

4445
return {
4546
"oneOf": [
4647
User,
4748
Role,
49+
LeakedKey,
4850
],
4951
}

0 commit comments

Comments
 (0)