Skip to content

Commit

Permalink
Remove duplicated tests (#1725)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 17, 2023
1 parent 3c1a725 commit 0f5b476
Show file tree
Hide file tree
Showing 65 changed files with 228 additions and 511 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-16 19:14:55.749551",
"spec_repo_commit": "4f580adf"
"regenerated": "2023-10-17 14:49:44.071476",
"spec_repo_commit": "a9d493f5"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-16 19:14:55.767443",
"spec_repo_commit": "4f580adf"
"regenerated": "2023-10-17 14:49:44.215389",
"spec_repo_commit": "a9d493f5"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29128,7 +29128,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/UserResponse'
description: OK for get user
description: OK
'403':
content:
application/json:
Expand Down
6 changes: 5 additions & 1 deletion examples/v2/confluent-cloud/DeleteConfluentAccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
Delete Confluent account returns "OK" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.confluent_cloud_api import ConfluentCloudApi

# there is a valid "confluent_account" in the system
CONFLUENT_ACCOUNT_DATA_ID = environ["CONFLUENT_ACCOUNT_DATA_ID"]

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = ConfluentCloudApi(api_client)
api_instance.delete_confluent_account(
account_id="account_id",
account_id=CONFLUENT_ACCOUNT_DATA_ID,
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
Delete resource from Confluent account returns "OK" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.confluent_cloud_api import ConfluentCloudApi

# there is a valid "confluent_account" in the system
CONFLUENT_ACCOUNT_DATA_ID = environ["CONFLUENT_ACCOUNT_DATA_ID"]

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = ConfluentCloudApi(api_client)
api_instance.delete_confluent_account(
account_id=CONFLUENT_ACCOUNT_DATA_ID,
api_instance.delete_confluent_resource(
account_id="account_id",
resource_id="resource_id",
)
2 changes: 1 addition & 1 deletion examples/v2/downtimes/ListMonitorDowntimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
with ApiClient(configuration) as api_client:
api_instance = DowntimesApi(api_client)
response = api_instance.list_monitor_downtimes(
monitor_id=9223372036854775807,
monitor_id=35534610,
)

print(response)
15 changes: 0 additions & 15 deletions examples/v2/downtimes/ListMonitorDowntimes_128979780.py

This file was deleted.

9 changes: 2 additions & 7 deletions examples/v2/key-management/CreateCurrentUserApplicationKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@

body = ApplicationKeyCreateRequest(
data=ApplicationKeyCreateData(
type=ApplicationKeysType.APPLICATION_KEYS,
attributes=ApplicationKeyCreateAttributes(
name="Application Key for managing dashboards",
scopes=[
"dashboards_read",
"dashboards_write",
"dashboards_public_share",
],
name="Example-Key-Management",
),
type=ApplicationKeysType.APPLICATION_KEYS,
),
)

Expand Down

This file was deleted.

6 changes: 5 additions & 1 deletion examples/v2/key-management/DeleteApplicationKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
Delete an application key returns "No Content" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.key_management_api import KeyManagementApi

# there is a valid "application_key" in the system
APPLICATION_KEY_DATA_ID = environ["APPLICATION_KEY_DATA_ID"]

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = KeyManagementApi(api_client)
api_instance.delete_application_key(
app_key_id="app_key_id",
app_key_id=APPLICATION_KEY_DATA_ID,
)
17 changes: 0 additions & 17 deletions examples/v2/key-management/DeleteApplicationKey_771691550.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
Delete an application key owned by current user returns "No Content" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.key_management_api import KeyManagementApi

# there is a valid "application_key" in the system
APPLICATION_KEY_DATA_ID = environ["APPLICATION_KEY_DATA_ID"]

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = KeyManagementApi(api_client)
api_instance.delete_current_user_application_key(
app_key_id="app_key_id",
app_key_id=APPLICATION_KEY_DATA_ID,
)

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions examples/v2/key-management/ListApplicationKeys_2237010090.py

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.py

This file was deleted.

4 changes: 3 additions & 1 deletion examples/v2/synthetics/SetOnDemandConcurrencyCap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
from datadog_api_client.v2.api.synthetics_api import SyntheticsApi
from datadog_api_client.v2.model.on_demand_concurrency_cap_attributes import OnDemandConcurrencyCapAttributes

body = OnDemandConcurrencyCapAttributes()
body = OnDemandConcurrencyCapAttributes(
on_demand_concurrency_cap=20.0,
)

configuration = Configuration()
with ApiClient(configuration) as api_client:
Expand Down
18 changes: 0 additions & 18 deletions examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
Get hourly usage for application security returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.usage_metering_api import UsageMeteringApi
from datetime import datetime
from dateutil.tz import tzutc

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_usage_application_security_monitoring(
start_hr=datetime(2021, 11, 11, 11, 11, 11, 111000, tzinfo=tzutc()),
start_hr=(datetime.now() + relativedelta(days=-5)),
end_hr=(datetime.now() + relativedelta(days=-3)),
)

print(response)

This file was deleted.

7 changes: 4 additions & 3 deletions examples/v2/usage-metering/GetUsageLambdaTracedInvocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
Get hourly usage for lambda traced invocations returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.usage_metering_api import UsageMeteringApi
from datetime import datetime
from dateutil.tz import tzutc

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_usage_lambda_traced_invocations(
start_hr=datetime(2021, 11, 11, 11, 11, 11, 111000, tzinfo=tzutc()),
start_hr=(datetime.now() + relativedelta(days=-5)),
end_hr=(datetime.now() + relativedelta(days=-3)),
)

print(response)

This file was deleted.

Loading

0 comments on commit 0f5b476

Please sign in to comment.