From f679c5284bd97cc84ca46ecbc8c172671288b728 Mon Sep 17 00:00:00 2001 From: John Keech Date: Tue, 30 Jun 2020 20:44:29 -0700 Subject: [PATCH] [Codespaces] Add 60 minute auto-suspend timeout (#1932) --- src/codespaces/HISTORY.rst | 4 ++++ src/codespaces/azext_codespaces/_params.py | 4 ++-- src/codespaces/azext_codespaces/version.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/codespaces/HISTORY.rst b/src/codespaces/HISTORY.rst index 6b34fd2ed1b..57839604942 100644 --- a/src/codespaces/HISTORY.rst +++ b/src/codespaces/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +0.2.1 +++++++ +* Added 60 minute auto-suspend timeout option + 0.2.0 ++++++ * Update to latest resource provider API version, 2020-05-26. diff --git a/src/codespaces/azext_codespaces/_params.py b/src/codespaces/azext_codespaces/_params.py index 2f8c9ee6922..9841d518ff1 100644 --- a/src/codespaces/azext_codespaces/_params.py +++ b/src/codespaces/azext_codespaces/_params.py @@ -22,7 +22,7 @@ def load_arguments(self, _): validator=validate_codespace_name_or_id) c.argument('sku_name', options_list=['--instance-type'], help='Instance Type') c.argument('autoshutdown_delay', options_list=['--suspend-after'], - arg_type=get_enum_type(['5', '30', '120']), + arg_type=get_enum_type(['5', '30', '60', '120']), help="Automatically suspend the inactive Codespace after this many minutes.") with self.argument_context('codespace plan') as c: @@ -30,7 +30,7 @@ def load_arguments(self, _): c.argument('subnet_id', arg_group="Network", options_list=['--subnet'], help="Resource ID of an existing subnet. If specified, all Codespaces in this plan will be created in this subnet. The subnet must be in the same region as the plan.") c.argument('default_autoshutdown_delay', arg_group="Plan Default", options_list=['--default-suspend-after'], - arg_type=get_enum_type(['5', '30', '120']), + arg_type=get_enum_type(['5', '30', '60', '120']), help="Default minutes Codespaces in this plan should suspend after.") c.argument('default_sku_name', arg_group="Plan Default", options_list=['--default-instance-type'], help="Default Instance Type for Codespaces in this plan.") diff --git a/src/codespaces/azext_codespaces/version.py b/src/codespaces/azext_codespaces/version.py index 7f76f4a5955..a6d11f9fd55 100644 --- a/src/codespaces/azext_codespaces/version.py +++ b/src/codespaces/azext_codespaces/version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -VERSION = '0.2.0' +VERSION = '0.2.1'