Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
429 commits
Select commit Hold shift + click to select a range
3a122e3
Merge pull request #41 from tbyfield/amlim/improveUpdateCmds
am-lim Jan 30, 2023
30c21dc
Delay Schedule Customization
meenakshidas1996 Jan 31, 2023
2815077
Merge branch 'main' into meena/delay
meenakshidas1996 Jan 31, 2023
f6315e7
Whl file and style changes
meenakshidas1996 Jan 31, 2023
f2b3f70
Add validation
meenakshidas1996 Feb 1, 2023
394de47
pr comments
meenakshidas1996 Feb 1, 2023
05a2082
Merge pull request #42 from tbyfield/meena/delay
meenakshidas1996 Feb 1, 2023
15851f8
add proj pool and schedule tests
am-lim Feb 1, 2023
3e286a8
Merge remote-tracking branch 'origin/main' into amlim/addProjPoolDpTests
am-lim Feb 1, 2023
cda61d1
add whl file
am-lim Feb 1, 2023
a38c412
uncomment out record only
am-lim Feb 1, 2023
eedfe0d
Merge pull request #43 from tbyfield/amlim/addProjPoolDpTests
am-lim Feb 2, 2023
a6a641d
Add catalog and env type tests
am-lim Feb 4, 2023
231d13e
Merge pull request #44 from tbyfield/amlim/catalogEnvTypeTests
am-lim Feb 4, 2023
db40d51
Update to make clear dummy val
am-lim Feb 6, 2023
0cf8164
Update to make clear dummy ref
am-lim Feb 6, 2023
5cc4299
Add whl file
am-lim Feb 6, 2023
fca8f5a
Merge pull request #45 from tbyfield/amlim/updateRef
am-lim Feb 6, 2023
83194a4
Update to tests, fix dp polling
am-lim Feb 7, 2023
8a3ece0
add dev box test, fix ymls
am-lim Feb 7, 2023
b4fd770
add environment test
am-lim Feb 7, 2023
9a22e12
fix style
am-lim Feb 7, 2023
4430b10
generate whl file
am-lim Feb 7, 2023
470dd78
update yml
am-lim Feb 8, 2023
f6fe2a6
Merge pull request #46 from tbyfield/amlim/updatesToTests
am-lim Feb 8, 2023
166751a
Update README
am-lim Feb 8, 2023
3540edd
Update readme
am-lim Feb 8, 2023
c87328d
correct mispelling
am-lim Feb 8, 2023
5ccd592
Merge pull request #47 from tbyfield/amlim/updateReadme
am-lim Feb 8, 2023
6dd2db5
Fix wording of readme
am-lim Feb 8, 2023
f16ca53
Merge pull request #48 from tbyfield/amlim/updateReadme
am-lim Feb 8, 2023
121dbdc
Update name of extension
am-lim Feb 8, 2023
541ee94
Merge pull request #49 from tbyfield/amlim/updateReadmeName
am-lim Feb 8, 2023
32bf25c
Merge branch 'Azure:main' into main
am-lim Feb 8, 2023
ed1b2f3
Remove fidalgo extension
am-lim Feb 8, 2023
4a16f14
Merge pull request #50 from tbyfield/amlim/removeFidalgoExtension
am-lim Feb 8, 2023
e97e711
Fix PR build errors
am-lim Feb 8, 2023
e1cdaf7
Merge pull request #51 from tbyfield/amlim/fixBuildErrors
am-lim Feb 8, 2023
88e23d8
Fix pool operation and gallery tests
am-lim Feb 8, 2023
c9c298b
Merge pull request #52 from tbyfield/amlim/fixTests
am-lim Feb 8, 2023
313d066
Remove usage command
am-lim Feb 9, 2023
83d7813
Generate new whl file
am-lim Feb 9, 2023
83a7756
Merge pull request #53 from tbyfield/amlim/removeUsageCommand
am-lim Feb 9, 2023
8e41f0e
Fix aio operations
am-lim Feb 14, 2023
4927acb
Fix aio operations
am-lim Feb 14, 2023
fc51a9a
Merge pull request #55 from tbyfield/amlim/fixAioOperations
am-lim Feb 14, 2023
4d0f63e
Reorganize code
am-lim Feb 15, 2023
f8d73d4
Merge remote-tracking branch 'origin/main' into amlim/reorganizeCode
am-lim Feb 15, 2023
49ca295
Generate whl file
am-lim Feb 15, 2023
2148d8e
Merge pull request #56 from tbyfield/amlim/reorganizeCode
am-lim Feb 15, 2023
aab9df7
Update to aaz
am-lim Feb 17, 2023
9b200ad
fix identity
am-lim Feb 17, 2023
af45668
run tests
am-lim Feb 17, 2023
c9afdf2
proj env type test
am-lim Feb 17, 2023
a37decc
Merge remote-tracking branch 'origin/main' into amlim/updateToAaz
am-lim Feb 17, 2023
43ea6bf
fix tests
am-lim Feb 17, 2023
fa8c6de
update parameters for pool
am-lim Feb 21, 2023
305317b
Update 2023-1-1 dataplane API
am-lim Feb 23, 2023
993a702
Update CLI client code
am-lim Feb 24, 2023
9bae0d1
clean up old control plane
am-lim Feb 24, 2023
13fa1d5
add pool logic
am-lim Feb 24, 2023
16fd20c
add customizations
am-lim Feb 28, 2023
e323fc7
update tests
am-lim Mar 1, 2023
1dc91b4
fix gallery test
am-lim Mar 1, 2023
ef37869
update tests
am-lim Mar 1, 2023
fb8f5b8
fix tests
am-lim Mar 1, 2023
2c09c25
comment out control plane
am-lim Mar 1, 2023
a0ddd3e
uncomment tests
am-lim Mar 1, 2023
f764b7c
style and linter fixes
am-lim Mar 1, 2023
0f92966
guid
am-lim Mar 1, 2023
d2f9c6e
update tests
am-lim Mar 1, 2023
42010a5
Merge pull request #57 from tbyfield/amlim/updateToAaz
am-lim Mar 1, 2023
2cdcd04
Delete scheduled tasks
am-lim Mar 1, 2023
421602c
Merge remote-tracking branch 'origin/main' into amlim/updatesToEnv
am-lim Mar 1, 2023
eae3fab
Merge pull request #59 from tbyfield/amlim/updatesToEnv
am-lim Mar 1, 2023
9ca5e34
Clean up extension
am-lim Mar 1, 2023
2df7417
Merge remote-tracking branch 'origin/main' into amlim/smallFixes
am-lim Mar 1, 2023
dc80e29
Merge pull request #60 from tbyfield/amlim/smallFixes
am-lim Mar 1, 2023
5bc37db
Update managed identity api version
am-lim Mar 1, 2023
9f566ea
Merge pull request #61 from tbyfield/amlim/updateIdentityVersion
am-lim Mar 1, 2023
7add861
Merge branch 'Azure:main' into main
am-lim Mar 1, 2023
58d182f
Merge remote-tracking branch 'origin/main' into amlim/update2023-1-1d…
am-lim Mar 2, 2023
bdf15be
add artifacts API
am-lim Mar 2, 2023
f840e91
add artifacts API
am-lim Mar 2, 2023
bc40df9
test updates
am-lim Mar 5, 2023
f9b4cc0
Update aaz
am-lim Mar 6, 2023
5599156
Update aaz
am-lim Mar 6, 2023
c87144b
Merge AAZ calls
am-lim Mar 6, 2023
97a6ae7
remove top
am-lim Mar 6, 2023
3474700
Merge pull request #62 from tbyfield/amlim/mergeCalls
am-lim Mar 6, 2023
d9c439f
Remove top from aaz
am-lim Mar 6, 2023
44e3356
Merge remote-tracking branch 'origin/main' into amlim/removeTopAAZ
am-lim Mar 6, 2023
6cfcaa6
Merge pull request #63 from tbyfield/amlim/removeTopAAZ
am-lim Mar 6, 2023
6cb416b
Remove unused args using aaz dev tools
am-lim Mar 6, 2023
39ba780
Merge remote-tracking branch 'origin/main' into amlim/removeUnusedArgs
am-lim Mar 6, 2023
ea2aa7c
Merge pull request #64 from tbyfield/amlim/removeUnusedArgs
am-lim Mar 6, 2023
cc08f60
Merge remote-tracking branch 'origin/main'
am-lim Mar 8, 2023
6dfafda
Merge pull request #58 from tbyfield/amlim/update2023-1-1dataplane
am-lim Mar 8, 2023
c7223a9
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions
am-lim Mar 8, 2023
6c91e9a
undo changes
am-lim Mar 8, 2023
fb62989
Merge pull request #65 from tbyfield/amlim/mergeWithUpStream
am-lim Mar 8, 2023
5e91286
Control plane 2023-1-1
am-lim Mar 10, 2023
1ed8e9d
fix show and wait
am-lim Mar 10, 2023
ea5f638
update image version and schedule
am-lim Mar 10, 2023
9f44fc4
fix ordering of imports
am-lim Mar 10, 2023
a32cf41
Fix location description
am-lim Mar 10, 2023
d62a66e
Add pool health check customization, fix desc
am-lim Mar 10, 2023
1749b97
add 200 for catalog sync
am-lim Mar 10, 2023
e83e0df
add extra line
am-lim Mar 10, 2023
71359ed
fix style
am-lim Mar 11, 2023
94598ba
Merge pull request #66 from tbyfield/amlim/controlPlane2023-1-1
am-lim Mar 11, 2023
a6d2190
Add update environment command
am-lim Apr 11, 2023
a72a4f8
Merge pull request #67 from tbyfield/amlim/updateEnvironmentCommand
am-lim Apr 11, 2023
b17d833
Delay actions customization
am-lim Apr 11, 2023
e8260d1
Delay actions customization
am-lim Apr 11, 2023
92b6ab6
correct comparison
am-lim Apr 11, 2023
1a6ad8d
Style fixes
am-lim Apr 11, 2023
c4c8e19
Merge pull request #68 from tbyfield/amlim/delayActionsCustomization
am-lim Apr 11, 2023
8865551
Update control plane tests for 2023-01-01-preview
am-lim Apr 13, 2023
b7e0933
Merge pull request #69 from tbyfield/amlim/updateControlPlaneTests
am-lim Apr 13, 2023
7479782
Update data plane tests 2023-01-01-preview
am-lim Apr 14, 2023
fa91e4a
Merge pull request #70 from tbyfield/amlim/updateDataplaneTests
am-lim Apr 14, 2023
cc15f19
Merge remote-tracking branch 'upstream/main'
am-lim Apr 14, 2023
ca9afb4
Merge pull request #71 from tbyfield/amlim/mergeWithUpstream
am-lim Apr 14, 2023
3eb6184
Add 2023-01-01-preview whl file
am-lim Apr 14, 2023
4ad9dfc
Merge pull request #72 from tbyfield/amlim/addWhlFile
am-lim Apr 14, 2023
14c30b7
Merge branch 'Azure:main' into main
am-lim Apr 20, 2023
2283be7
Update dataplane to 2023-04-01 API
am-lim Apr 21, 2023
7eea26e
Fix style errors
am-lim Apr 21, 2023
b63108d
Merge pull request #73 from tbyfield/amlim/updateDataPlane2023-04-01
am-lim Apr 21, 2023
980481d
Update api version
am-lim Apr 25, 2023
29d0b68
Merge pull request #74 from tbyfield/amlim/updateControlPlane2023-04-01
am-lim Apr 25, 2023
e7cb326
Merge branch 'Azure:main' into main
am-lim Apr 25, 2023
5344e8c
Update examples, add usage API
am-lim Apr 26, 2023
8005e24
update dev box definition wait
am-lim Apr 26, 2023
604b551
Merge pull request #75 from tbyfield/amlim/updateControlPlane2023-04-01
am-lim Apr 26, 2023
9f16c6f
Fix list attached network description
am-lim Apr 26, 2023
375ea21
Merge pull request #76 from tbyfield/amlim/fixAttachedNetworkDesc
am-lim Apr 26, 2023
4b2a230
Fix history file
am-lim Apr 26, 2023
ef958a8
Merge pull request #77 from tbyfield/amlim/fixHistoryFormatting
am-lim Apr 26, 2023
78e991a
Update read me to point to correct CLI reference
am-lim Apr 26, 2023
ca2f76c
Merge pull request #78 from tbyfield/amlim/fixReadMe
am-lim Apr 26, 2023
3c2f390
Update help, required params, examples
am-lim Apr 27, 2023
3616505
fix examples
am-lim Apr 27, 2023
a79770a
fix linter issue
am-lim Apr 27, 2023
6f19970
Merge pull request #79 from tbyfield/amlim/improvementsReview
am-lim Apr 27, 2023
080cb6c
Merge branch 'Azure:main' into main
am-lim Apr 27, 2023
835107a
Add endpoint option to data plane cmds
am-lim Apr 27, 2023
c314657
Merge pull request #80 from tbyfield/amlim/addEndpoint
am-lim Apr 27, 2023
564b982
Fix endpoint regex, update to dev box list
am-lim Apr 28, 2023
600b7cc
Merge pull request #81 from tbyfield/amlim/fixEndpointRegex
am-lim Apr 28, 2023
6f655ef
dev center and project tests
am-lim May 3, 2023
fa9e49c
network connection test
am-lim May 3, 2023
f5b18eb
dev box definition test
am-lim May 3, 2023
515ba51
gallery test
am-lim May 3, 2023
a900927
attached network test
am-lim May 3, 2023
a092d05
env type tests
am-lim May 3, 2023
49c7018
pool test
am-lim May 3, 2023
184b524
update tests
am-lim May 4, 2023
2d7c4f8
Merge pull request #82 from tbyfield/amlim/cplaneTests2023-04-01
am-lim May 4, 2023
9657b2d
Merge branch 'Azure:main' into main
am-lim May 4, 2023
52152c0
Merge pull request #83 from tbyfield/amlim/cplaneTests2023-04-01
am-lim May 4, 2023
b0d3ffe
Add usage test
am-lim May 4, 2023
353e10f
updates
am-lim May 4, 2023
63f1d52
Merge pull request #84 from tbyfield/amlim/addUsageTest
am-lim May 4, 2023
ec01dd1
Update data plane tests for API v2023-04-01
am-lim May 5, 2023
eddb06b
fix bugs
am-lim May 8, 2023
293fc17
Merge branch 'Azure:main' into main
am-lim May 10, 2023
dc515a6
catalog tests and improvements to code
am-lim May 11, 2023
9338a25
update pool tests without idle
am-lim May 12, 2023
7ed5cbc
update tests
am-lim May 12, 2023
b8c331b
update last tests
am-lim May 12, 2023
61feea4
Style fixes
am-lim May 12, 2023
ea8575a
Merge pull request #85 from tbyfield/amlim/updateDTests2023-04-01
am-lim May 12, 2023
aabe101
Remove pool run health check
am-lim May 12, 2023
2cd60a4
Merge pull request #86 from tbyfield/amlim/removePoolHealthCheck
am-lim May 12, 2023
ddea149
Add 04-01 whl file
am-lim May 15, 2023
7cf99e0
Merge pull request #87 from tbyfield/amlim/add04-01Version
am-lim May 15, 2023
1ddc616
Improve endpoint error message
am-lim May 15, 2023
097dd0c
Merge pull request #88 from tbyfield/amlim/improveErrorMEssage
am-lim May 15, 2023
4d5bd91
Further improve error message string
am-lim May 15, 2023
2ec10d6
improved wording
am-lim May 15, 2023
f7ec560
Merge pull request #89 from tbyfield/amlim/improveErrorMEssage
am-lim May 15, 2023
5b856be
Fix example name
am-lim May 18, 2023
d71c511
FIx dev box list bug
am-lim May 18, 2023
0f0c797
Add whl file
am-lim May 18, 2023
c4006e0
Merge pull request #90 from tbyfield/amlim/addRestartFixString
am-lim May 18, 2023
55246b4
Merge branch 'Azure:main' into main
am-lim May 18, 2023
fc8f4d5
GA updates
am-lim May 18, 2023
84f5fd0
Pr comments
am-lim May 18, 2023
4b02d59
Merge pull request #91 from tbyfield/amlim/PrComments
am-lim May 18, 2023
bd09852
Add breaking changes to HISTORY.rst
am-lim May 19, 2023
2a6f407
Merge pull request #92 from tbyfield/amlim/updateBreakingChange
am-lim May 19, 2023
5c92667
update for restart test
am-lim May 20, 2023
908bb33
Merge branch 'Azure:main' into main
am-lim May 23, 2023
17f71e2
Fix env create error string, update dp help
am-lim Jun 6, 2023
4c3d36f
Merge pull request #93 from tbyfield/amlim/fixEnvCreateErrorString
am-lim Jun 6, 2023
21a2ce7
Merge branch 'Azure:main' into main
am-lim Jun 7, 2023
6ef905f
Add allowPartialScopes to ARG
am-lim Jun 24, 2023
1566d97
Merge branch 'main' of https://github.com/tbyfield/azure-cli-extensio…
am-lim Jun 24, 2023
f243c86
Update allowPartialScopes to True for ARG query
am-lim Jun 24, 2023
7d9109a
undo deletion
am-lim Jun 24, 2023
deab18e
Merge pull request #94 from tbyfield/amlim/updateARG
am-lim Jun 24, 2023
04f3c02
Merge remote-tracking branch 'upstream/main' into amlim/mergeWithAzur…
am-lim Jun 24, 2023
e50e669
fix merge
am-lim Jun 24, 2023
926117e
Merge pull request #95 from tbyfield/amlim/mergeWithAzureMain
am-lim Jun 24, 2023
29678e5
Fix style
am-lim Jun 29, 2023
4641710
Merge pull request #96 from tbyfield/amlim/styleFix
am-lim Jun 29, 2023
c0031f8
Update dev box definition parameter
am-lim Aug 7, 2023
8ad0997
Merge pull request #97 from tbyfield/amlim/updateParamDevBoxDef
am-lim Aug 7, 2023
ab642ad
Merge remote-tracking branch 'upstream/main' into amlim/fixConflictsW…
am-lim Aug 7, 2023
fc7c90a
Merge pull request #98 from tbyfield/amlim/fixConflictsWithUpstream
am-lim Aug 7, 2023
59f21ca
Update version to 2.0.0
am-lim Aug 8, 2023
29641ec
Merge pull request #99 from tbyfield/amlim/updateVersion
am-lim Aug 8, 2023
c2a3d02
Update data plane to 2023-07
am-lim Aug 10, 2023
022505f
remove unused import
am-lim Aug 10, 2023
7489370
move auth to utils
am-lim Aug 10, 2023
2c2dc8d
fix LRO, dev box create
am-lim Aug 11, 2023
6639fcd
Update data plane
am-lim Aug 17, 2023
bf05c00
Merge pull request #100 from tbyfield/amlim/updateDataPlane2023-07-01…
am-lim Aug 17, 2023
e8aefba
update to 06-01-preview
am-lim Aug 22, 2023
774c417
Updates
am-lim Aug 23, 2023
3f03a68
update wait
am-lim Aug 23, 2023
242dbff
Merge pull request #101 from tbyfield/amlim/updateControlPlanev2023-0…
am-lim Aug 23, 2023
7d06f88
Update control plane tests 06-01-preview
am-lim Aug 30, 2023
2091294
Merge pull request #102 from tbyfield/amlim/updateCpTests06-01-preview
am-lim Aug 30, 2023
7fe6e9e
Update control plane logic
am-lim Aug 31, 2023
102cfa0
update data plane tests
am-lim Sep 7, 2023
d5b2f89
comment out help
am-lim Sep 7, 2023
c2167b0
Merge pull request #103 from tbyfield/amlim/updateDpTests07-01-preview
am-lim Sep 7, 2023
8ec1549
Update to version 3.0.0
am-lim Sep 14, 2023
12ca40f
Merge pull request #104 from tbyfield/amlim/updateVersion3
am-lim Sep 14, 2023
c4658c3
Merge with upstream
am-lim Sep 14, 2023
edcfd0a
Merge pull request #105 from tbyfield/amlim/mergeWithUpstream3
am-lim Sep 14, 2023
1a1920f
Merge with upstream
am-lim Sep 14, 2023
7f833ef
remove period
am-lim Sep 14, 2023
fa84e06
Merge pull request #106 from tbyfield/amlim/mergeWithUpstreamv3
am-lim Sep 14, 2023
7af4866
Merge branch 'main' into main
am-lim Sep 14, 2023
a27d4e5
Update tests
am-lim Sep 14, 2023
b51d36a
Merge pull request #107 from tbyfield/amlim/fixNetworkTests
am-lim Sep 14, 2023
6e17c74
revert network fix
am-lim Sep 15, 2023
8c6672e
Merge pull request #108 from tbyfield/amlim/revertTestChange
am-lim Sep 15, 2023
7fb65b5
Fix pool test
am-lim Sep 15, 2023
5a78b70
Merge pull request #109 from tbyfield/amlim/fixPoolTest
am-lim Sep 15, 2023
0d5683c
Fix pool tests
am-lim Sep 15, 2023
1d99dc4
Merge pull request #110 from tbyfield/amlim/fixPoolTest2
am-lim Sep 15, 2023
9611a3b
Fix subnet
am-lim Sep 15, 2023
78191f2
Merge pull request #111 from tbyfield/amlim/fixSubnet
am-lim Sep 15, 2023
4d61f01
Fix subnet create for tests
am-lim Sep 15, 2023
997550d
Merge pull request #112 from tbyfield/amlim/fixSubnetVersion
am-lim Sep 15, 2023
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
6 changes: 6 additions & 0 deletions src/devcenter/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Release History
===============
3.0.0
++++++
* Update control plane API to v2023-06-01-preview
* Update data plane API to v2023-07-01-preview

=======
2.0.0
++++++
* Update dev-box-definition to devbox-definition parameter
Expand Down
54 changes: 14 additions & 40 deletions src/devcenter/azext_devcenter/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,68 +14,42 @@


def cf_devcenter_dataplane(cli_ctx, endpoint=None, dev_center=None, project_name=None):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core._profile import Profile
from azext_devcenter.vendored_sdks.devcenter_dataplane import (
DevCenterDataplaneClient,
DevCenterClient,
)

validate_endpoint(endpoint, dev_center)

if endpoint is None and dev_center is not None:
project = get_project_data(cli_ctx, dev_center, project_name)

# We need to set the project name even if we don't need this information
# since initializing DevCenterDataplaneClient requires this param
if project_name is None:
project_name = project["name"]
endpoint = project["devCenterUri"]

if project_name is None:
project_name = "placeholder" # see comment above

cli_ctx.cloud.endpoints.active_directory_resource_id = "https://devcenter.azure.com"

return get_mgmt_service_client(
cli_ctx,
DevCenterDataplaneClient,
subscription_bound=False,
base_url_bound=False,
endpoint=endpoint,
project_name=project_name,
)
profile = Profile(cli_ctx=cli_ctx)

credential = profile.get_login_credentials(resource="https://devcenter.azure.com")

def cf_project_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).project
return DevCenterClient(endpoint, credential[0])


def cf_pool_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).pool
def cf_dev_center_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).dev_center


def cf_schedule_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).schedule
def cf_dev_boxes_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).dev_boxes


def cf_dev_box_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).dev_box
def cf_dev_box_operations_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).dev_box_operations


def cf_environment_dp(cli_ctx, dev_center, *_):
def cf_environments_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).environments


def cf_catalog_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).catalogs


def cf_environment_definition_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).environment_definitions


def cf_environment_type_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).environment_type

def cf_environment_operations_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).environment_operations

# Control plane

Expand Down
74 changes: 74 additions & 0 deletions src/devcenter/azext_devcenter/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,30 @@
short-summary: Manage schedules.
"""

helps[
"devcenter dev schedule list"
] = """
type: command
short-summary: "List schedules."
examples:
- name: List schedules by project using dev center
text: |-
az devcenter dev schedule list --dev-center-name "ContosoDevCenter" \
--project-name "DevProject"
- name: List schedules by project using endpoint
text: |-
az devcenter dev schedule list --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject"
- name: List schedules by pool using dev center
text: |-
az devcenter dev schedule list --dev-center-name "ContosoDevCenter" \
--pool-name "DevPool" --project-name "DevProject"
- name: List schedules by pool using endpoint
text: |-
az devcenter dev schedule list --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--pool-name "DevPool" --project-name "DevProject"
"""

helps[
"devcenter dev schedule show"
] = """
Expand Down Expand Up @@ -245,6 +269,22 @@
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev dev-box repair"
] = """
type: command
short-summary: "Attempts automated repair steps to resolve common problems on a Dev Box. The dev box may restart during this operation."
examples:
- name: Repair using dev center
text: |-
az devcenter dev dev-box repair --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: Repair using endpoint
text: |-
az devcenter dev dev-box repair --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev dev-box stop"
] = """
Expand Down Expand Up @@ -313,6 +353,40 @@
--user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev dev-box list-operation"
] = """
type: command
short-summary: "Lists operations on the dev box which have occurred within the past 90 days."
examples:
- name: List operations using dev center
text: |-
az devcenter dev dev-box list-operation --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
- name: List operations using endpoint
text: |-
az devcenter dev dev-box list-operation --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev dev-box show-operation"
] = """
type: command
short-summary: "Get an operation on a dev box."
examples:
- name: Get operation using dev center
text: |-
az devcenter dev dev-box show-operation --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --name "myDevBox" --operation-id \
"f5dbdfab-fa0e-4831-8d13-25359aa5e680" --user-id "00000000-0000-0000-0000-000000000000"
- name: Get operation using endpoint
text: |-
az devcenter dev dev-box show-operation --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --name "myDevBox" --operation-id \
"f5dbdfab-fa0e-4831-8d13-25359aa5e680" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev dev-box show-action"
] = """
Expand Down
Loading