Skip to content

Commit b025467

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3e8c95b of spec repo
1 parent d03353f commit b025467

25 files changed

Lines changed: 127 additions & 140 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,9 +1140,9 @@ components:
11401140
schema:
11411141
type: string
11421142
PersonalAccessTokenID:
1143-
description: The UUID of the personal access token.
1143+
description: The ID of the personal access token.
11441144
in: path
1145-
name: pat_uuid
1145+
name: pat_id
11461146
required: true
11471147
schema:
11481148
example: "00000000-0000-1234-0000-000000000000"
@@ -29288,11 +29288,6 @@ components:
2928829288
FullPersonalAccessTokenAttributes:
2928929289
description: Attributes of a full personal access token, including the token key.
2929029290
properties:
29291-
alias:
29292-
description: The alias (short identifier) of the personal access token.
29293-
example: "2H9MCNMBM8FQjQ16YucXkX"
29294-
readOnly: true
29295-
type: string
2929629291
created_at:
2929729292
description: Creation date of the personal access token.
2929829293
example: "2024-01-01T00:00:00+00:00"
@@ -53523,11 +53518,6 @@ components:
5352353518
PersonalAccessTokenAttributes:
5352453519
description: Attributes of a personal access token.
5352553520
properties:
53526-
alias:
53527-
description: The alias (short identifier) of the personal access token.
53528-
example: "2H9MCNMBM8FQjQ16YucXkX"
53529-
readOnly: true
53530-
type: string
5353153521
created_at:
5353253522
description: Creation date of the personal access token.
5353353523
example: "2024-01-01T00:00:00+00:00"
@@ -78073,6 +78063,10 @@ components:
7807378063
description: Title of the user.
7807478064
nullable: true
7807578065
type: string
78066+
uuid:
78067+
description: UUID of the user.
78068+
readOnly: true
78069+
type: string
7807678070
verified:
7807778071
description: Whether the user is verified.
7807878072
type: boolean
@@ -109765,7 +109759,7 @@ paths:
109765109759
operator: OR
109766109760
permissions:
109767109761
- user_app_keys
109768-
/api/v2/personal_access_tokens/{pat_uuid}:
109762+
/api/v2/personal_access_tokens/{pat_id}:
109769109763
delete:
109770109764
description: Revoke a specific personal access token.
109771109765
operationId: RevokePersonalAccessToken
@@ -121344,7 +121338,7 @@ paths:
121344121338
operator: OR
121345121339
permissions:
121346121340
- service_account_write
121347-
/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}:
121341+
/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}:
121348121342
delete:
121349121343
description: Revoke a specific access token for a service account.
121350121344
operationId: RevokeServiceAccountAccessToken

examples/v2/key-management/GetPersonalAccessToken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
with ApiClient(configuration) as api_client:
1414
api_instance = KeyManagementApi(api_client)
1515
response = api_instance.get_personal_access_token(
16-
pat_uuid=PERSONAL_ACCESS_TOKEN_DATA_ID,
16+
pat_id=PERSONAL_ACCESS_TOKEN_DATA_ID,
1717
)
1818

1919
print(response)

examples/v2/key-management/RevokePersonalAccessToken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
with ApiClient(configuration) as api_client:
1414
api_instance = KeyManagementApi(api_client)
1515
api_instance.revoke_personal_access_token(
16-
pat_uuid=PERSONAL_ACCESS_TOKEN_DATA_ID,
16+
pat_id=PERSONAL_ACCESS_TOKEN_DATA_ID,
1717
)

examples/v2/key-management/UpdatePersonalAccessToken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
configuration = Configuration()
2727
with ApiClient(configuration) as api_client:
2828
api_instance = KeyManagementApi(api_client)
29-
response = api_instance.update_personal_access_token(pat_uuid=PERSONAL_ACCESS_TOKEN_DATA_ID, body=body)
29+
response = api_instance.update_personal_access_token(pat_id=PERSONAL_ACCESS_TOKEN_DATA_ID, body=body)
3030

3131
print(response)

examples/v2/service-accounts/GetServiceAccountAccessToken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
api_instance = ServiceAccountsApi(api_client)
1818
response = api_instance.get_service_account_access_token(
1919
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID,
20-
pat_uuid=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
20+
pat_id=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
2121
)
2222

2323
print(response)

examples/v2/service-accounts/RevokeServiceAccountAccessToken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
api_instance = ServiceAccountsApi(api_client)
1818
api_instance.revoke_service_account_access_token(
1919
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID,
20-
pat_uuid=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
20+
pat_id=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
2121
)

examples/v2/service-accounts/UpdateServiceAccountAccessToken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
with ApiClient(configuration) as api_client:
3232
api_instance = ServiceAccountsApi(api_client)
3333
response = api_instance.update_service_account_access_token(
34-
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID, pat_uuid=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, body=body
34+
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID, pat_id=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, body=body
3535
)
3636

3737
print(response)

src/datadog_api_client/v2/api/key_management_api.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,16 @@ def __init__(self, api_client=None):
257257
settings={
258258
"response_type": (PersonalAccessTokenResponse,),
259259
"auth": ["apiKeyAuth", "appKeyAuth"],
260-
"endpoint_path": "/api/v2/personal_access_tokens/{pat_uuid}",
260+
"endpoint_path": "/api/v2/personal_access_tokens/{pat_id}",
261261
"operation_id": "get_personal_access_token",
262262
"http_method": "GET",
263263
"version": "v2",
264264
},
265265
params_map={
266-
"pat_uuid": {
266+
"pat_id": {
267267
"required": True,
268268
"openapi_types": (str,),
269-
"attribute": "pat_uuid",
269+
"attribute": "pat_id",
270270
"location": "path",
271271
},
272272
},
@@ -499,16 +499,16 @@ def __init__(self, api_client=None):
499499
settings={
500500
"response_type": None,
501501
"auth": ["apiKeyAuth", "appKeyAuth"],
502-
"endpoint_path": "/api/v2/personal_access_tokens/{pat_uuid}",
502+
"endpoint_path": "/api/v2/personal_access_tokens/{pat_id}",
503503
"operation_id": "revoke_personal_access_token",
504504
"http_method": "DELETE",
505505
"version": "v2",
506506
},
507507
params_map={
508-
"pat_uuid": {
508+
"pat_id": {
509509
"required": True,
510510
"openapi_types": (str,),
511-
"attribute": "pat_uuid",
511+
"attribute": "pat_id",
512512
"location": "path",
513513
},
514514
},
@@ -600,16 +600,16 @@ def __init__(self, api_client=None):
600600
settings={
601601
"response_type": (PersonalAccessTokenResponse,),
602602
"auth": ["apiKeyAuth", "appKeyAuth"],
603-
"endpoint_path": "/api/v2/personal_access_tokens/{pat_uuid}",
603+
"endpoint_path": "/api/v2/personal_access_tokens/{pat_id}",
604604
"operation_id": "update_personal_access_token",
605605
"http_method": "PATCH",
606606
"version": "v2",
607607
},
608608
params_map={
609-
"pat_uuid": {
609+
"pat_id": {
610610
"required": True,
611611
"openapi_types": (str,),
612-
"attribute": "pat_uuid",
612+
"attribute": "pat_id",
613613
"location": "path",
614614
},
615615
"body": {
@@ -789,18 +789,18 @@ def get_current_user_application_key(
789789

790790
def get_personal_access_token(
791791
self,
792-
pat_uuid: str,
792+
pat_id: str,
793793
) -> PersonalAccessTokenResponse:
794794
"""Get a personal access token.
795795
796796
Get a specific personal access token by its UUID.
797797
798-
:param pat_uuid: The UUID of the personal access token.
799-
:type pat_uuid: str
798+
:param pat_id: The ID of the personal access token.
799+
:type pat_id: str
800800
:rtype: PersonalAccessTokenResponse
801801
"""
802802
kwargs: Dict[str, Any] = {}
803-
kwargs["pat_uuid"] = pat_uuid
803+
kwargs["pat_id"] = pat_id
804804

805805
return self._get_personal_access_token_endpoint.call_with_http_info(**kwargs)
806806

@@ -1046,18 +1046,18 @@ def list_personal_access_tokens(
10461046

10471047
def revoke_personal_access_token(
10481048
self,
1049-
pat_uuid: str,
1049+
pat_id: str,
10501050
) -> None:
10511051
"""Revoke a personal access token.
10521052
10531053
Revoke a specific personal access token.
10541054
1055-
:param pat_uuid: The UUID of the personal access token.
1056-
:type pat_uuid: str
1055+
:param pat_id: The ID of the personal access token.
1056+
:type pat_id: str
10571057
:rtype: None
10581058
"""
10591059
kwargs: Dict[str, Any] = {}
1060-
kwargs["pat_uuid"] = pat_uuid
1060+
kwargs["pat_id"] = pat_id
10611061

10621062
return self._revoke_personal_access_token_endpoint.call_with_http_info(**kwargs)
10631063

@@ -1127,20 +1127,20 @@ def update_current_user_application_key(
11271127

11281128
def update_personal_access_token(
11291129
self,
1130-
pat_uuid: str,
1130+
pat_id: str,
11311131
body: PersonalAccessTokenUpdateRequest,
11321132
) -> PersonalAccessTokenResponse:
11331133
"""Update a personal access token.
11341134
11351135
Update a specific personal access token.
11361136
1137-
:param pat_uuid: The UUID of the personal access token.
1138-
:type pat_uuid: str
1137+
:param pat_id: The ID of the personal access token.
1138+
:type pat_id: str
11391139
:type body: PersonalAccessTokenUpdateRequest
11401140
:rtype: PersonalAccessTokenResponse
11411141
"""
11421142
kwargs: Dict[str, Any] = {}
1143-
kwargs["pat_uuid"] = pat_uuid
1143+
kwargs["pat_id"] = pat_id
11441144

11451145
kwargs["body"] = body
11461146

src/datadog_api_client/v2/api/service_accounts_api.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __init__(self, api_client=None):
144144
settings={
145145
"response_type": (PersonalAccessTokenResponse,),
146146
"auth": ["apiKeyAuth", "appKeyAuth"],
147-
"endpoint_path": "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}",
147+
"endpoint_path": "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}",
148148
"operation_id": "get_service_account_access_token",
149149
"http_method": "GET",
150150
"version": "v2",
@@ -156,10 +156,10 @@ def __init__(self, api_client=None):
156156
"attribute": "service_account_id",
157157
"location": "path",
158158
},
159-
"pat_uuid": {
159+
"pat_id": {
160160
"required": True,
161161
"openapi_types": (str,),
162-
"attribute": "pat_uuid",
162+
"attribute": "pat_id",
163163
"location": "path",
164164
},
165165
},
@@ -298,7 +298,7 @@ def __init__(self, api_client=None):
298298
settings={
299299
"response_type": None,
300300
"auth": ["apiKeyAuth", "appKeyAuth"],
301-
"endpoint_path": "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}",
301+
"endpoint_path": "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}",
302302
"operation_id": "revoke_service_account_access_token",
303303
"http_method": "DELETE",
304304
"version": "v2",
@@ -310,10 +310,10 @@ def __init__(self, api_client=None):
310310
"attribute": "service_account_id",
311311
"location": "path",
312312
},
313-
"pat_uuid": {
313+
"pat_id": {
314314
"required": True,
315315
"openapi_types": (str,),
316-
"attribute": "pat_uuid",
316+
"attribute": "pat_id",
317317
"location": "path",
318318
},
319319
},
@@ -327,7 +327,7 @@ def __init__(self, api_client=None):
327327
settings={
328328
"response_type": (PersonalAccessTokenResponse,),
329329
"auth": ["apiKeyAuth", "appKeyAuth"],
330-
"endpoint_path": "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_uuid}",
330+
"endpoint_path": "/api/v2/service_accounts/{service_account_id}/access_tokens/{pat_id}",
331331
"operation_id": "update_service_account_access_token",
332332
"http_method": "PATCH",
333333
"version": "v2",
@@ -339,10 +339,10 @@ def __init__(self, api_client=None):
339339
"attribute": "service_account_id",
340340
"location": "path",
341341
},
342-
"pat_uuid": {
342+
"pat_id": {
343343
"required": True,
344344
"openapi_types": (str,),
345-
"attribute": "pat_uuid",
345+
"attribute": "pat_id",
346346
"location": "path",
347347
},
348348
"body": {
@@ -470,22 +470,22 @@ def delete_service_account_application_key(
470470
def get_service_account_access_token(
471471
self,
472472
service_account_id: str,
473-
pat_uuid: str,
473+
pat_id: str,
474474
) -> PersonalAccessTokenResponse:
475475
"""Get an access token for a service account.
476476
477477
Get a specific access token for a service account by its UUID.
478478
479479
:param service_account_id: The ID of the service account.
480480
:type service_account_id: str
481-
:param pat_uuid: The UUID of the personal access token.
482-
:type pat_uuid: str
481+
:param pat_id: The ID of the personal access token.
482+
:type pat_id: str
483483
:rtype: PersonalAccessTokenResponse
484484
"""
485485
kwargs: Dict[str, Any] = {}
486486
kwargs["service_account_id"] = service_account_id
487487

488-
kwargs["pat_uuid"] = pat_uuid
488+
kwargs["pat_id"] = pat_id
489489

490490
return self._get_service_account_access_token_endpoint.call_with_http_info(**kwargs)
491491

@@ -614,29 +614,29 @@ def list_service_account_application_keys(
614614
def revoke_service_account_access_token(
615615
self,
616616
service_account_id: str,
617-
pat_uuid: str,
617+
pat_id: str,
618618
) -> None:
619619
"""Revoke an access token for a service account.
620620
621621
Revoke a specific access token for a service account.
622622
623623
:param service_account_id: The ID of the service account.
624624
:type service_account_id: str
625-
:param pat_uuid: The UUID of the personal access token.
626-
:type pat_uuid: str
625+
:param pat_id: The ID of the personal access token.
626+
:type pat_id: str
627627
:rtype: None
628628
"""
629629
kwargs: Dict[str, Any] = {}
630630
kwargs["service_account_id"] = service_account_id
631631

632-
kwargs["pat_uuid"] = pat_uuid
632+
kwargs["pat_id"] = pat_id
633633

634634
return self._revoke_service_account_access_token_endpoint.call_with_http_info(**kwargs)
635635

636636
def update_service_account_access_token(
637637
self,
638638
service_account_id: str,
639-
pat_uuid: str,
639+
pat_id: str,
640640
body: PersonalAccessTokenUpdateRequest,
641641
) -> PersonalAccessTokenResponse:
642642
"""Update an access token for a service account.
@@ -645,15 +645,15 @@ def update_service_account_access_token(
645645
646646
:param service_account_id: The ID of the service account.
647647
:type service_account_id: str
648-
:param pat_uuid: The UUID of the personal access token.
649-
:type pat_uuid: str
648+
:param pat_id: The ID of the personal access token.
649+
:type pat_id: str
650650
:type body: PersonalAccessTokenUpdateRequest
651651
:rtype: PersonalAccessTokenResponse
652652
"""
653653
kwargs: Dict[str, Any] = {}
654654
kwargs["service_account_id"] = service_account_id
655655

656-
kwargs["pat_uuid"] = pat_uuid
656+
kwargs["pat_id"] = pat_id
657657

658658
kwargs["body"] = body
659659

0 commit comments

Comments
 (0)