Skip to content
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
11 changes: 0 additions & 11 deletions src/devcenter/azext_devcenter/manual/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1330,17 +1330,6 @@
short-summary: Manage schedule with devcenter
"""

helps[
"devcenter admin schedule list"
] = """
type: command
short-summary: "Lists schedules for a pool."
examples:
- name: Schedules_ListByPool
text: |-
az devcenter admin schedule list --pool-name "DevPool" --project-name "TestProject" --resource-group "rg1"
"""

helps[
"devcenter admin schedule show"
] = """
Expand Down
192 changes: 15 additions & 177 deletions src/devcenter/azext_devcenter/manual/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ def load_arguments(self, _):
required=True,
help="The DevCenter to operate on.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter dev project show") as c:
c.argument(
Expand All @@ -63,12 +57,6 @@ def load_arguments(self, _):
required=True,
help="The DevCenter to operate on.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"project_name",
options_list=[
Expand Down Expand Up @@ -116,12 +104,6 @@ def load_arguments(self, _):
required=True,
help="The DevCenter to operate on.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"project_name",
options_list=[
Expand Down Expand Up @@ -184,12 +166,6 @@ def load_arguments(self, _):
type=str,
help="An OData $filter clause to apply to the " "operation.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"project_name",
options_list=[
Expand Down Expand Up @@ -409,12 +385,6 @@ def load_arguments(self, _):
required=True,
help="The DevCenter to operate on.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"project_name",
options_list=["--project-name", "--project"],
Expand Down Expand Up @@ -584,12 +554,6 @@ def load_arguments(self, _):
required=True,
help="The DevCenter to operate on.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"project_name",
options_list=["--project-name", "--project"],
Expand Down Expand Up @@ -766,12 +730,6 @@ def load_arguments(self, _):
type=str,
help="The DevCenter Project upon which to execute operations.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter dev catalog-item show") as c:
c.argument(
Expand All @@ -787,12 +745,6 @@ def load_arguments(self, _):
type=str,
help="The DevCenter Project upon which to execute operations.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"catalog_item_id", type=str, help="The unique id of the catalog item."
)
Expand All @@ -811,12 +763,6 @@ def load_arguments(self, _):
type=str,
help="The DevCenter Project upon which to execute operations.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"catalog_item_id", type=str, help="The unique id of the catalog item."
)
Expand All @@ -836,12 +782,6 @@ def load_arguments(self, _):
required=True,
help="The DevCenter Project upon which to execute operations.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"catalog_item_id", type=str, help="The unique id of the catalog item."
)
Expand All @@ -861,22 +801,10 @@ def load_arguments(self, _):
type=str,
help="The DevCenter Project upon which to execute operations.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

# control plane
with self.argument_context("devcenter admin devcenter list") as c:
c.argument("resource_group_name", resource_group_name_type)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin devcenter show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -990,12 +918,6 @@ def load_arguments(self, _):

with self.argument_context("devcenter admin project list") as c:
c.argument("resource_group_name", resource_group_name_type)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin project show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -1082,12 +1004,6 @@ def load_arguments(self, _):
type=str,
help="The name of the project.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"dev_center_name",
options_list=["--dev-center-name", "--dev-center", "-d"],
Expand Down Expand Up @@ -1206,12 +1122,6 @@ def load_arguments(self, _):
type=str,
help="The name of the project.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)
c.argument(
"dev_center_name",
options_list=["--dev-center-name", "--dev-center", "-d"],
Expand Down Expand Up @@ -1316,12 +1226,6 @@ def load_arguments(self, _):
type=str,
help="The name of the project.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context(
"devcenter admin project-allowed-environment-type show"
Expand Down Expand Up @@ -1349,12 +1253,6 @@ def load_arguments(self, _):
type=str,
help="The name of the project.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin project-environment-type show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -1529,12 +1427,6 @@ def load_arguments(self, _):
type=str,
help="The name of the devcenter.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin gallery show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -1640,12 +1532,6 @@ def load_arguments(self, _):
help="The name of the devcenter.",
)
c.argument("gallery_name", type=str, help="The name of the gallery.")
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin image show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -1717,12 +1603,6 @@ def load_arguments(self, _):
type=str,
help="The name of the devcenter.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin catalog show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -1866,12 +1746,6 @@ def load_arguments(self, _):
type=str,
help="The name of the project.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context(
"devcenter admin devbox-definition show",
Expand Down Expand Up @@ -2024,14 +1898,6 @@ def load_arguments(self, _):
id_part="child_name_1",
)

with self.argument_context("devcenter admin sku list") as c:
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin pool list") as c:
c.argument("resource_group_name", resource_group_name_type)
c.argument(
Expand All @@ -2040,12 +1906,6 @@ def load_arguments(self, _):
type=str,
help="The name of the project.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin pool show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -2190,27 +2050,6 @@ def load_arguments(self, _):
id_part="child_name_1",
)

with self.argument_context("devcenter admin schedule list") as c:
c.argument("resource_group_name", resource_group_name_type)
c.argument(
"project_name",
options_list=["--project-name", "--project"],
type=str,
help="The name of the project.",
)
c.argument(
"pool_name",
options_list=["--pool-name", "--pool"],
type=str,
help="Name of the pool.",
)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin schedule show") as c:
c.argument("resource_group_name", resource_group_name_type)
c.argument(
Expand Down Expand Up @@ -2350,12 +2189,6 @@ def load_arguments(self, _):

with self.argument_context("devcenter admin network-connection list") as c:
c.argument("resource_group_name", resource_group_name_type)
c.argument(
"top",
type=int,
help="The maximum number of resources to return from the operation. Example: "
"'$top=10'.",
)

with self.argument_context("devcenter admin network-connection show") as c:
c.argument("resource_group_name", resource_group_name_type)
Expand Down Expand Up @@ -2501,13 +2334,18 @@ def load_arguments(self, _):
help="Name of the Network Connection that can be applied to a Pool.",
id_part="name",
)
with self.argument_context('devcenter admin network-connection list-health-detail') as c:
c.argument('resource_group_name', resource_group_name_type)
c.argument('top', type=int, help='The maximum number of resources to return from the operation. Example: '
'\'$top=10\'.')
c.argument('network_connection_name', options_list=['--name', '-n', '--network-connection-name'], type=str,
help='Name of the Network Connection that can be applied to a Pool.')

with self.argument_context('devcenter admin operation-statuses show') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name')
c.argument('operation_id', type=str, help='The ID of an ongoing async operation', id_part='child_name_1')
with self.argument_context("devcenter admin network-connection list-health-detail") as c:
c.argument("resource_group_name", resource_group_name_type)
c.argument(
"network_connection_name",
options_list=["--name", "-n", "--network-connection-name"],
type=str,
help="Name of the Network Connection that can be applied to a Pool.")

with self.argument_context("devcenter admin operation-statuses show") as c:
c.argument("location", arg_type=get_location_type(self.cli_ctx), id_part="name")
c.argument(
"operation_id",
type=str,
help="The ID of an ongoing async operation",
id_part="child_name_1")
1 change: 0 additions & 1 deletion src/devcenter/azext_devcenter/manual/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ def load_command_table(self, _):
with self.command_group(
"devcenter admin schedule", devcenter_schedule, client_factory=cf_schedule
) as g:
g.custom_command("list", "devcenter_schedule_list")
g.custom_show_command("show", "devcenter_schedule_show")
g.custom_command("create", "devcenter_schedule_create", supports_no_wait=True)
g.custom_command("update", "devcenter_schedule_update", supports_no_wait=True)
Expand Down
Loading