Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
264 changes: 54 additions & 210 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22817,13 +22817,6 @@ datadog\_api\_client.v2.model.org\_group\_policy\_data module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.org\_group\_policy\_enforcement\_tier module
--------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.org_group_policy_enforcement_tier
:members:
:show-inheritance:

datadog\_api\_client.v2.model.org\_group\_policy\_list\_response module
-----------------------------------------------------------------------

Expand Down Expand Up @@ -22929,13 +22922,6 @@ datadog\_api\_client.v2.model.org\_group\_policy\_override\_update\_request modu
:members:
:show-inheritance:

datadog\_api\_client.v2.model.org\_group\_policy\_policy\_type module
---------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.org_group_policy_policy_type
:members:
:show-inheritance:

datadog\_api\_client.v2.model.org\_group\_policy\_relationship\_to\_one module
------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion examples/v2/key-management/GetPersonalAccessToken.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
with ApiClient(configuration) as api_client:
api_instance = KeyManagementApi(api_client)
response = api_instance.get_personal_access_token(
pat_id=PERSONAL_ACCESS_TOKEN_DATA_ID,
pat_uuid=PERSONAL_ACCESS_TOKEN_DATA_ID,
)

print(response)
2 changes: 1 addition & 1 deletion examples/v2/key-management/RevokePersonalAccessToken.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
with ApiClient(configuration) as api_client:
api_instance = KeyManagementApi(api_client)
api_instance.revoke_personal_access_token(
pat_id=PERSONAL_ACCESS_TOKEN_DATA_ID,
pat_uuid=PERSONAL_ACCESS_TOKEN_DATA_ID,
)
2 changes: 1 addition & 1 deletion examples/v2/key-management/UpdatePersonalAccessToken.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = KeyManagementApi(api_client)
response = api_instance.update_personal_access_token(pat_id=PERSONAL_ACCESS_TOKEN_DATA_ID, body=body)
response = api_instance.update_personal_access_token(pat_uuid=PERSONAL_ACCESS_TOKEN_DATA_ID, body=body)

print(response)
2 changes: 1 addition & 1 deletion examples/v2/org-groups/BulkUpdateOrgGroupMemberships.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
attributes=OrgGroupMembershipBulkUpdateAttributes(
orgs=[
GlobalOrgIdentifier(
org_site="us1",
org_site="datadoghq.com",
org_uuid=UUID("c3d4e5f6-a7b8-9012-cdef-012345678901"),
),
],
Expand Down
4 changes: 0 additions & 4 deletions examples/v2/org-groups/CreateOrgGroupPolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from datadog_api_client.v2.model.org_group_policy_create_data import OrgGroupPolicyCreateData
from datadog_api_client.v2.model.org_group_policy_create_relationships import OrgGroupPolicyCreateRelationships
from datadog_api_client.v2.model.org_group_policy_create_request import OrgGroupPolicyCreateRequest
from datadog_api_client.v2.model.org_group_policy_enforcement_tier import OrgGroupPolicyEnforcementTier
from datadog_api_client.v2.model.org_group_policy_policy_type import OrgGroupPolicyPolicyType
from datadog_api_client.v2.model.org_group_policy_type import OrgGroupPolicyType
from datadog_api_client.v2.model.org_group_relationship_to_one import OrgGroupRelationshipToOne
from datadog_api_client.v2.model.org_group_relationship_to_one_data import OrgGroupRelationshipToOneData
Expand All @@ -20,9 +18,7 @@
data=OrgGroupPolicyCreateData(
attributes=OrgGroupPolicyCreateAttributes(
content=dict([("value", "UTC")]),
enforcement_tier=OrgGroupPolicyEnforcementTier.DEFAULT,
policy_name="monitor_timezone",
policy_type=OrgGroupPolicyPolicyType.ORG_CONFIG,
),
relationships=OrgGroupPolicyCreateRelationships(
org_group=OrgGroupRelationshipToOne(
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/org-groups/CreateOrgGroupPolicyOverride.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
body = OrgGroupPolicyOverrideCreateRequest(
data=OrgGroupPolicyOverrideCreateData(
attributes=OrgGroupPolicyOverrideCreateAttributes(
org_site="us1",
org_site="datadoghq.com",
org_uuid=UUID("c3d4e5f6-a7b8-9012-cdef-012345678901"),
),
relationships=OrgGroupPolicyOverrideCreateRelationships(
Expand Down
17 changes: 0 additions & 17 deletions examples/v2/org-groups/GetOrgGroupPolicy.py

This file was deleted.

17 changes: 0 additions & 17 deletions examples/v2/org-groups/GetOrgGroupPolicyOverride.py

This file was deleted.

2 changes: 0 additions & 2 deletions examples/v2/org-groups/UpdateOrgGroupPolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.org_groups_api import OrgGroupsApi
from datadog_api_client.v2.model.org_group_policy_enforcement_tier import OrgGroupPolicyEnforcementTier
from datadog_api_client.v2.model.org_group_policy_type import OrgGroupPolicyType
from datadog_api_client.v2.model.org_group_policy_update_attributes import OrgGroupPolicyUpdateAttributes
from datadog_api_client.v2.model.org_group_policy_update_data import OrgGroupPolicyUpdateData
Expand All @@ -15,7 +14,6 @@
data=OrgGroupPolicyUpdateData(
attributes=OrgGroupPolicyUpdateAttributes(
content=dict([("value", "UTC")]),
enforcement_tier=OrgGroupPolicyEnforcementTier.DEFAULT,
),
id=UUID("1a2b3c4d-5e6f-7890-abcd-ef0123456789"),
type=OrgGroupPolicyType.ORG_GROUP_POLICIES,
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/org-groups/UpdateOrgGroupPolicyOverride.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
body = OrgGroupPolicyOverrideUpdateRequest(
data=OrgGroupPolicyOverrideUpdateData(
attributes=OrgGroupPolicyOverrideUpdateAttributes(
org_site="us1",
org_site="datadoghq.com",
org_uuid=UUID("c3d4e5f6-a7b8-9012-cdef-012345678901"),
),
id=UUID("9f8e7d6c-5b4a-3210-fedc-ba0987654321"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
api_instance = ServiceAccountsApi(api_client)
response = api_instance.get_service_account_access_token(
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID,
pat_id=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
pat_uuid=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
)

print(response)
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
api_instance = ServiceAccountsApi(api_client)
api_instance.revoke_service_account_access_token(
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID,
pat_id=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
pat_uuid=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID,
)
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
with ApiClient(configuration) as api_client:
api_instance = ServiceAccountsApi(api_client)
response = api_instance.update_service_account_access_token(
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID, pat_id=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, body=body
service_account_id=SERVICE_ACCOUNT_USER_DATA_ID, pat_uuid=SERVICE_ACCOUNT_ACCESS_TOKEN_DATA_ID, body=body
)

print(response)
2 changes: 0 additions & 2 deletions src/datadog_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,6 @@ def __init__(
"v2.delete_org_group_policy_override": False,
"v2.get_org_group": False,
"v2.get_org_group_membership": False,
"v2.get_org_group_policy": False,
"v2.get_org_group_policy_override": False,
"v2.list_org_group_memberships": False,
"v2.list_org_group_policies": False,
"v2.list_org_group_policy_configs": False,
Expand Down
42 changes: 21 additions & 21 deletions src/datadog_api_client/v2/api/key_management_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,16 +257,16 @@ def __init__(self, api_client=None):
settings={
"response_type": (PersonalAccessTokenResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/personal_access_tokens/{pat_id}",
"endpoint_path": "/api/v2/personal_access_tokens/{pat_uuid}",
"operation_id": "get_personal_access_token",
"http_method": "GET",
"version": "v2",
},
params_map={
"pat_id": {
"pat_uuid": {
"required": True,
"openapi_types": (str,),
"attribute": "pat_id",
"attribute": "pat_uuid",
"location": "path",
},
},
Expand Down Expand Up @@ -499,16 +499,16 @@ def __init__(self, api_client=None):
settings={
"response_type": None,
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/personal_access_tokens/{pat_id}",
"endpoint_path": "/api/v2/personal_access_tokens/{pat_uuid}",
"operation_id": "revoke_personal_access_token",
"http_method": "DELETE",
"version": "v2",
},
params_map={
"pat_id": {
"pat_uuid": {
"required": True,
"openapi_types": (str,),
"attribute": "pat_id",
"attribute": "pat_uuid",
"location": "path",
},
},
Expand Down Expand Up @@ -600,16 +600,16 @@ def __init__(self, api_client=None):
settings={
"response_type": (PersonalAccessTokenResponse,),
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/personal_access_tokens/{pat_id}",
"endpoint_path": "/api/v2/personal_access_tokens/{pat_uuid}",
"operation_id": "update_personal_access_token",
"http_method": "PATCH",
"version": "v2",
},
params_map={
"pat_id": {
"pat_uuid": {
"required": True,
"openapi_types": (str,),
"attribute": "pat_id",
"attribute": "pat_uuid",
"location": "path",
},
"body": {
Expand Down Expand Up @@ -789,18 +789,18 @@ def get_current_user_application_key(

def get_personal_access_token(
self,
pat_id: str,
pat_uuid: str,
) -> PersonalAccessTokenResponse:
"""Get a personal access token.

Get a specific personal access token by its UUID.

:param pat_id: The ID of the personal access token.
:type pat_id: str
:param pat_uuid: The UUID of the personal access token.
:type pat_uuid: str
:rtype: PersonalAccessTokenResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["pat_id"] = pat_id
kwargs["pat_uuid"] = pat_uuid

return self._get_personal_access_token_endpoint.call_with_http_info(**kwargs)

Expand Down Expand Up @@ -1046,18 +1046,18 @@ def list_personal_access_tokens(

def revoke_personal_access_token(
self,
pat_id: str,
pat_uuid: str,
) -> None:
"""Revoke a personal access token.

Revoke a specific personal access token.

:param pat_id: The ID of the personal access token.
:type pat_id: str
:param pat_uuid: The UUID of the personal access token.
:type pat_uuid: str
:rtype: None
"""
kwargs: Dict[str, Any] = {}
kwargs["pat_id"] = pat_id
kwargs["pat_uuid"] = pat_uuid

return self._revoke_personal_access_token_endpoint.call_with_http_info(**kwargs)

Expand Down Expand Up @@ -1127,20 +1127,20 @@ def update_current_user_application_key(

def update_personal_access_token(
self,
pat_id: str,
pat_uuid: str,
body: PersonalAccessTokenUpdateRequest,
) -> PersonalAccessTokenResponse:
"""Update a personal access token.

Update a specific personal access token.

:param pat_id: The ID of the personal access token.
:type pat_id: str
:param pat_uuid: The UUID of the personal access token.
:type pat_uuid: str
:type body: PersonalAccessTokenUpdateRequest
:rtype: PersonalAccessTokenResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["pat_id"] = pat_id
kwargs["pat_uuid"] = pat_uuid

kwargs["body"] = body

Expand Down
Loading
Loading