diff --git a/src/devcenter/azext_devcenter/manual/_help.py b/src/devcenter/azext_devcenter/manual/_help.py index e9d690dc97e..cb8268752b4 100644 --- a/src/devcenter/azext_devcenter/manual/_help.py +++ b/src/devcenter/azext_devcenter/manual/_help.py @@ -1439,8 +1439,7 @@ - name: Schedules_CreateDailyShutdownPoolSchedule text: |- az devcenter admin schedule create --state "Enabled" --time "17:30" --time-zone "America/Los_Angeles" \ ---pool-name "DevPool" --project-name "DevProject" --resource-group "rg1" --frequency Daily \ ---schedule-type StopDevBox +--pool-name "DevPool" --project-name "DevProject" --resource-group "rg1" """ helps[ diff --git a/src/devcenter/azext_devcenter/manual/_params.py b/src/devcenter/azext_devcenter/manual/_params.py index e3069e7b2f7..9bbb3604977 100644 --- a/src/devcenter/azext_devcenter/manual/_params.py +++ b/src/devcenter/azext_devcenter/manual/_params.py @@ -2285,18 +2285,6 @@ def load_arguments(self, _): type=str, help="Name of the pool.", ) - c.argument( - "schedule_type", - required=True, - arg_type=get_enum_type(["StopDevBox"]), - help="The type of schedule.", - ) - c.argument( - "frequency", - required=True, - arg_type=get_enum_type(["Daily"]), - help="The frequency the schedule will execute.", - ) c.argument( "time", required=True, @@ -2331,16 +2319,6 @@ def load_arguments(self, _): help="Name of the pool.", id_part="child_name_1", ) - c.argument( - "schedule_type", - arg_type=get_enum_type(["StopDevBox"]), - help="The type of schedule.", - ) - c.argument( - "frequency", - arg_type=get_enum_type(["Daily"]), - help="The frequency the schedule will execute.", - ) c.argument( "time", type=str, diff --git a/src/devcenter/azext_devcenter/manual/custom.py b/src/devcenter/azext_devcenter/manual/custom.py index c7f1da72a68..13c5a549ef8 100644 --- a/src/devcenter/azext_devcenter/manual/custom.py +++ b/src/devcenter/azext_devcenter/manual/custom.py @@ -227,16 +227,14 @@ def devcenter_schedule_create( resource_group_name, project_name, pool_name, - schedule_type, - frequency, time=None, time_zone=None, state=None, no_wait=False, ): body = {} - body["type_properties_type"] = schedule_type # "StopDevBox" - body["frequency"] = frequency # "Daily" + body["type_properties_type"] = "StopDevBox" + body["frequency"] = "Daily" if time is not None: body["time"] = time if time_zone is not None: @@ -259,18 +257,14 @@ def devcenter_schedule_update( resource_group_name, project_name, pool_name, - schedule_type=None, - frequency=None, time=None, time_zone=None, state=None, no_wait=False, ): body = {} - if schedule_type is not None: - body["type_properties_type"] = schedule_type # "StopDevBox" - if frequency is not None: - body["frequency"] = frequency # "Daily" + body["type_properties_type"] = "StopDevBox" + body["frequency"] = "Daily" if time is not None: body["time"] = time if time_zone is not None: diff --git a/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl b/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl index 15706989bcb..52f81febbe9 100644 Binary files a/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl and b/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl differ