Skip to content

Commit

Permalink
[Codespaces] Add 60 minute auto-suspend timeout (Azure#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeech committed Jul 1, 2020
1 parent 29e8b33 commit f679c52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/codespaces/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/codespaces/azext_codespaces/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ 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:
c.argument('plan_name', options_list=['--name', '-n'], help="Name of the Codespace plan", id_part='name')
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.")

Expand Down
2 changes: 1 addition & 1 deletion src/codespaces/azext_codespaces/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit f679c52

Please sign in to comment.