Skip to content

Commit

Permalink
refactor command group: acat report
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiquanJiang-ms committed Jul 5, 2024
1 parent ba15890 commit a618bd8
Show file tree
Hide file tree
Showing 11 changed files with 194 additions and 366 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"app-compliance-automation",
)
class __CMDGroup(AAZCommandGroup):
"""ACAT command group
""" Manage App Compliance Automation Tool reports.
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "location"},
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200]:
Expand All @@ -91,7 +91,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "location"},
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"app-compliance-automation report",
)
class __CMDGroup(AAZCommandGroup):
"""manage ACAT reports
""" Manage App Compliance Automation Tool reports.
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
from .__cmd_group import *
from ._create import *
from ._delete import *
from ._fix import *
from ._list import *
from ._show import *
from ._update import *
from ._verify import *
from ._wait import *
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ def _build_arguments_schema(cls, *args, **kwargs):
help="The information of 'bring your own storage' binding to the report",
)
_args_schema.time_zone = AAZStrArg(
options=["--time-zone"],
options=["--time-zone-hidden"],
arg_group="Properties",
help="Report collection trigger time's time zone, the available list can be obtained by executing \"Get-TimeZone -ListAvailable\" in PowerShell. An example of valid timezone id is \"Pacific Standard Time\".",
required=True,
)
_args_schema.trigger_time = AAZDateTimeArg(
options=["--trigger-time"],
options=["--trigger-time-hidden"],
arg_group="Properties",
help="Report collection trigger time.",
required=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [204]:
Expand All @@ -87,7 +87,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_204,
self.on_error,
lro_options={"final-state-via": "location"},
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200, 201]:
Expand All @@ -96,7 +96,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200_201,
self.on_error,
lro_options={"final-state-via": "location"},
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"app-compliance-automation report update",
)
class Update(AAZCommand):
"""Update an exiting AppComplianceAutomation report.
"""Update a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
"""

_aaz_info = {
Expand Down Expand Up @@ -155,7 +155,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "location"},
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)
if session.http_response.status_code in [200]:
Expand All @@ -164,7 +164,7 @@ def __call__(self, *args, **kwargs):
session,
self.on_200,
self.on_error,
lro_options={"final-state-via": "location"},
lro_options={"final-state-via": "azure-async-operation"},
path_format_arguments=self.url_parameters,
)

Expand Down
Loading

0 comments on commit a618bd8

Please sign in to comment.