Skip to content

Commit

Permalink
replace with auto-generated parameter: --tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiquanJiang-ms committed Jul 9, 2024
1 parent 8c02c50 commit b1d1f78
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 681 deletions.
6 changes: 3 additions & 3 deletions src/acat/azext_acat/aaz/latest/acat/report/_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
min_length=1,
),
)
_args_schema.report_creator_tenant_id = AAZStrArg(
options=["--report-creator-tenant-id"],
_args_schema.tenant = AAZStrArg(
options=["--tenant"],
help="The tenant id of the report creator.",
fmt=AAZStrArgFormat(
min_length=1,
Expand Down Expand Up @@ -157,7 +157,7 @@ def query_parameters(self):
"offerGuid", self.ctx.args.offer_guid,
),
**self.serialize_query_param(
"reportCreatorTenantId", self.ctx.args.report_creator_tenant_id,
"reportCreatorTenantId", self.ctx.args.tenant,
),
**self.serialize_query_param(
"api-version", "2024-06-27",
Expand Down
6 changes: 3 additions & 3 deletions src/acat/azext_acat/aaz/latest/acat/report/snapshot/_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
min_length=1,
),
)
_args_schema.report_creator_tenant_id = AAZStrArg(
options=["--report-creator-tenant-id"],
_args_schema.tenant = AAZStrArg(
options=["--tenant"],
help="The tenant id of the report creator.",
fmt=AAZStrArgFormat(
min_length=1,
Expand Down Expand Up @@ -176,7 +176,7 @@ def query_parameters(self):
"offerGuid", self.ctx.args.offer_guid,
),
**self.serialize_query_param(
"reportCreatorTenantId", self.ctx.args.report_creator_tenant_id,
"reportCreatorTenantId", self.ctx.args.tenant,
),
**self.serialize_query_param(
"api-version", "2024-06-27",
Expand Down
Loading

0 comments on commit b1d1f78

Please sign in to comment.