Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Datadog] Release new CLI with stable api version #3192

Merged
merged 3 commits into from
Mar 31, 2021
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
25 changes: 2 additions & 23 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,41 +290,20 @@ datadog monitor create:
datadog_organization_properties:
rule_exclusions:
- option_length_too_long
marketplace_subscription_status:
rule_exclusions:
- option_length_too_long
datadog tag-rule create:
parameters:
log_rules_filtering_tags:
rule_exclusions:
- option_length_too_long
log_rules_send_aad_logs:
rule_exclusions:
- option_length_too_long
log_rules_send_resource_logs:
rule_exclusions:
- option_length_too_long
log_rules_send_subscription_logs:
rule_exclusions:
- option_length_too_long
metric_rules_filtering_tags:
send_subscription_logs:
rule_exclusions:
- option_length_too_long
datadog tag-rule update:
parameters:
log_rules_filtering_tags:
rule_exclusions:
- option_length_too_long
log_rules_send_aad_logs:
rule_exclusions:
- option_length_too_long
log_rules_send_resource_logs:
rule_exclusions:
- option_length_too_long
log_rules_send_subscription_logs:
rule_exclusions:
- option_length_too_long
metric_rules_filtering_tags:
send_subscription_logs:
rule_exclusions:
- option_length_too_long
datafactory factory configure-factory-repo:
Expand Down
32 changes: 6 additions & 26 deletions src/datadog/azext_datadog/generated/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,22 @@

def cf_datadog_cl(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from ..vendored_sdks.datadog import MicrosoftDatadogClient
from azext_datadog.vendored_sdks.datadog import MicrosoftDatadogClient
return get_mgmt_service_client(cli_ctx,
MicrosoftDatadogClient)


def cf_api_key(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).api_key


def cf_host(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).host


def cf_linked_resource(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).linked_resource


def cf_monitored_resource(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).monitored_resource
def cf_marketplace_agreement(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).marketplace_agreements


def cf_monitor(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).monitor


def cf_refresh_set_password(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).refresh_set_password
return cf_datadog_cl(cli_ctx).monitors


def cf_tag_rule(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).tag_rule
return cf_datadog_cl(cli_ctx).tag_rules


def cf_single_sign_on_configuration(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).single_sign_on_configuration


def cf_marketplace_agreement(cli_ctx, *_):
return cf_datadog_cl(cli_ctx).marketplace_agreements
return cf_datadog_cl(cli_ctx).single_sign_on_configurations
Loading