-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 848af7a9 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Jun 18, 2024
1 parent
c38977b
commit 43c7415
Showing
30 changed files
with
1,064 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
Get a specific Org Config value returns "OK" response | ||
""" | ||
|
||
from datadog_api_client import ApiClient, Configuration | ||
from datadog_api_client.v2.api.organizations_api import OrganizationsApi | ||
|
||
configuration = Configuration() | ||
with ApiClient(configuration) as api_client: | ||
api_instance = OrganizationsApi(api_client) | ||
response = api_instance.get_org_config( | ||
org_config_name="custom_roles", | ||
) | ||
|
||
print(response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
List Org Configs returns "OK" response | ||
""" | ||
|
||
from datadog_api_client import ApiClient, Configuration | ||
from datadog_api_client.v2.api.organizations_api import OrganizationsApi | ||
|
||
configuration = Configuration() | ||
with ApiClient(configuration) as api_client: | ||
api_instance = OrganizationsApi(api_client) | ||
response = api_instance.list_org_configs() | ||
|
||
print(response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
Update a specific Org Config returns "OK" response | ||
""" | ||
|
||
from datadog_api_client import ApiClient, Configuration | ||
from datadog_api_client.v2.api.organizations_api import OrganizationsApi | ||
from datadog_api_client.v2.model.org_config_type import OrgConfigType | ||
from datadog_api_client.v2.model.org_config_write import OrgConfigWrite | ||
from datadog_api_client.v2.model.org_config_write_attributes import OrgConfigWriteAttributes | ||
from datadog_api_client.v2.model.org_config_write_request import OrgConfigWriteRequest | ||
|
||
body = OrgConfigWriteRequest( | ||
data=OrgConfigWrite( | ||
attributes=OrgConfigWriteAttributes( | ||
value="UTC", | ||
), | ||
type=OrgConfigType.ORG_CONFIGS, | ||
), | ||
) | ||
|
||
configuration = Configuration() | ||
with ApiClient(configuration) as api_client: | ||
api_instance = OrganizationsApi(api_client) | ||
response = api_instance.update_org_config(org_config_name="monitor_timezone", body=body) | ||
|
||
print(response) |
Oops, something went wrong.