Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[devcenter] Update data plane API to v2024-10-01-preview #8379

Merged
merged 95 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
3012045
Update project env type parameters
am-lim Dec 19, 2023
8f9ea26
Merge pull request #14 from am-lim/amlim/updateProjectEnvType
am-lim Dec 19, 2023
2657a39
Fix environment def example and update style
am-lim Dec 19, 2023
2e955c4
Merge pull request #15 from am-lim/amlim/fixEnvDefExample
am-lim Dec 19, 2023
bbf79c2
Fix show logs
am-lim Apr 19, 2024
1d4aa9e
Fix spacing
am-lim Apr 19, 2024
d2afbcf
Fix style error
am-lim Apr 19, 2024
be1a1b5
Merge pull request #16 from am-lim/amlim/fixShowLogs
am-lim Apr 19, 2024
2bc6573
Merge remote-tracking branch 'upstream/main'
am-lim Apr 19, 2024
db58d22
Fix integraion tests
am-lim Apr 19, 2024
11f206f
Merge pull request #17 from am-lim/amlim/fixIntTests
am-lim Apr 19, 2024
222d7ac
Fix gallery test
am-lim Apr 19, 2024
95e01ac
Merge pull request #18 from am-lim/amlim/fixGalleryTest
am-lim Apr 19, 2024
ad59c76
Fix gallery test
am-lim Apr 19, 2024
31b36cc
Merge pull request #19 from am-lim/amlim/fixGalleryTest2
am-lim Apr 19, 2024
237eb12
Fix gallery compute
am-lim Apr 19, 2024
e4d95b0
Merge pull request #20 from am-lim/amlim/fixGalleryCompute
am-lim Apr 19, 2024
1167cbd
Update
am-lim Apr 20, 2024
bf7fb4a
Merge pull request #21 from am-lim/amlim/updateGallery
am-lim Apr 20, 2024
0e1c30e
Merge branch 'Azure:main' into main
am-lim Apr 26, 2024
ea77789
Update control plane
am-lim May 12, 2024
a9ffa43
Update tests and vendored sdk for data plane API
am-lim May 12, 2024
8642978
Updates
am-lim May 13, 2024
f7a59cd
Update tests
am-lim May 13, 2024
5ca4b5c
Merge pull request #22 from am-lim/amlim/UpdateTo2024-05-01-preview
am-lim May 14, 2024
dce3afd
Update version
am-lim May 14, 2024
2fe50d2
Merge pull request #23 from am-lim/amlim/updateVersion
am-lim May 14, 2024
d87e385
Update tests
am-lim May 14, 2024
e89d54a
Merge pull request #24 from am-lim/amlim/updateTests2023-05-01
am-lim May 14, 2024
3e3e69c
Merge branch 'Azure:main' into main
am-lim May 20, 2024
e6cdce0
Merge branch 'Azure:main' into main
am-lim May 22, 2024
e0f79d0
Update log command to support escape characters
am-lim May 23, 2024
9fccf46
Merge pull request #25 from am-lim/amlim-updateLogCommand
am-lim May 23, 2024
3bab5a0
Merge branch 'Azure:main' into main
am-lim Nov 5, 2024
250b8f2
Update control plane to 2024-10-01-preview
am-lim Nov 8, 2024
9b68183
Changes for force delete only
ericaguthan Nov 8, 2024
0e045b3
update api version
ericaguthan Nov 9, 2024
be19dd0
remove preview flag
ericaguthan Nov 9, 2024
d898389
Fix linter errors
am-lim Nov 9, 2024
1194c74
Update control plane tests
am-lim Nov 10, 2024
2b3f8e6
Update tests
am-lim Nov 10, 2024
5e3012b
Update commands
am-lim Nov 10, 2024
ca996f6
Add project policy test
am-lim Nov 10, 2024
5e8092a
Update
am-lim Nov 10, 2024
5ccaace
add missing override
ericaguthan Nov 10, 2024
5ec20c5
Update response
am-lim Nov 11, 2024
56ee3d7
Add tests
am-lim Nov 11, 2024
64d66c9
Fix image name regex
am-lim Nov 11, 2024
71e3072
Merge pull request #27 from am-lim/ericaguthan/onlyforce
am-lim Nov 11, 2024
bbed7d9
Merge pull request #28 from am-lim/amlim/controlPlane2024-10-01-preview
am-lim Nov 11, 2024
50d49b1
Update version for Ignite
am-lim Nov 11, 2024
7faf778
Merge pull request #29 from am-lim/amlim/updateVersionIgnite
am-lim Nov 11, 2024
65b10d4
Update data plane tests
am-lim Nov 11, 2024
b7c5b20
Merge pull request #30 from am-lim/amlim/updateDpTests
am-lim Nov 11, 2024
a9947df
Update control plane tests
am-lim Nov 11, 2024
9823b11
Merge pull request #31 from am-lim/amlim/updateControlPlaneTests2024-…
am-lim Nov 11, 2024
2d99be9
Fix control plane tests
am-lim Nov 11, 2024
61c829e
Merge pull request #32 from am-lim/amlim/fixCpTests2
am-lim Nov 11, 2024
c8be9fd
Fix nsg
am-lim Nov 11, 2024
bc2b892
Merge pull request #33 from am-lim/amlim/fixNsg
am-lim Nov 11, 2024
c7282f2
Update params
am-lim Nov 12, 2024
550c84a
Merge pull request #34 from am-lim/amlim/updateParams
am-lim Nov 12, 2024
d695eda
Update release version
am-lim Nov 12, 2024
cc48f7b
Merge pull request #35 from am-lim/amlim/updateReleaseVersion
am-lim Nov 12, 2024
674f47c
Update data plane 2024-10-01-preview
am-lim Nov 18, 2024
475bcb4
Remove old dp code
am-lim Nov 18, 2024
17e23df
Merge branch 'Azure:main' into main
am-lim Dec 12, 2024
2819c2d
Merge remote-tracking branch 'origin/main' into amlim/dp-2024-10-01-p…
am-lim Dec 12, 2024
9b9bfca
Add devbox list
am-lim Dec 13, 2024
e9ad328
Add project,pool,schedule
am-lim Dec 14, 2024
1a76944
Add devbox
am-lim Dec 14, 2024
ac38db0
Fix post, add snapshots
am-lim Dec 14, 2024
8790f57
Fix post LRO
am-lim Dec 14, 2024
63a6a5c
Add environments
am-lim Dec 14, 2024
36b01f0
Add additional cmds
am-lim Dec 15, 2024
685f1fe
Fix help
am-lim Dec 15, 2024
6a6dc00
Fix params
am-lim Dec 15, 2024
a361061
Fix customization task validate
am-lim Dec 15, 2024
b4c96b6
Linter and style fixes
am-lim Dec 16, 2024
2860851
Update version
am-lim Dec 16, 2024
5f94d59
Update version2
am-lim Dec 16, 2024
0f9ebbf
Merge pull request #36 from am-lim/amlim/dp-2024-10-01-preview
am-lim Dec 16, 2024
389b9c7
Update dp tests
am-lim Dec 17, 2024
ca6ac41
Add dev box tests
am-lim Dec 17, 2024
244bc21
Add repair test
am-lim Dec 17, 2024
4e9bdc2
Add snapshot test
am-lim Dec 17, 2024
ec7c558
Add customization task test
am-lim Dec 18, 2024
22f6a83
Add customization group test
am-lim Dec 18, 2024
9d5361e
Add environment test
am-lim Dec 19, 2024
684f8be
Update tests
am-lim Dec 19, 2024
c1cd7b4
Merge pull request #37 from am-lim/amlim/dpTests2024-10-01-preview
am-lim Dec 19, 2024
6387287
Update help
am-lim Jan 2, 2025
b166711
Merge pull request #38 from am-lim/amlim/helpUpdates
am-lim Jan 2, 2025
62082d0
Fix tests
am-lim Jan 2, 2025
0bca901
Merge pull request #39 from am-lim/amlim/helpUpdates
am-lim Jan 2, 2025
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
4 changes: 4 additions & 0 deletions src/devcenter/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Release History
===============
6.2.0
++++++
* Update data plane API to v2024-10-01-preview

6.1.0
++++++
* Update control plane API to v2024-10-01-preview
Expand Down
4 changes: 1 addition & 3 deletions src/devcenter/azext_devcenter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
class DevCenterCommandsLoader(AzCommandsLoader):
def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_devcenter._client_factory import cf_devcenter_cl

devcenter_custom = CliCommandType(
operations_tmpl="azext_devcenter.custom#{}", client_factory=cf_devcenter_cl
operations_tmpl="azext_devcenter.custom#{}"
)
parent = super(DevCenterCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=devcenter_custom)
Expand All @@ -44,7 +43,6 @@ def load_command_table(self, args):

def load_arguments(self, command):
from azext_devcenter._params import load_arguments

load_arguments(self, command)


Expand Down
61 changes: 0 additions & 61 deletions src/devcenter/azext_devcenter/_client_factory.py

This file was deleted.

169 changes: 161 additions & 8 deletions src/devcenter/azext_devcenter/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,38 @@
--name "DevProject"
"""

helps[
"devcenter dev project list-abilities"
] = """
type: command
short-summary: "List the signed-in user's permitted abilities in a project."
examples:
- name: List using dev center
text: |-
az devcenter dev project list-abilities --dev-center-name "ContosoDevCenter" --user-id "00000000-0000-0000-0000-000000000000" \
--name "DevProject"
- name: List using endpoint
text: |-
az devcenter dev project list-abilities --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --user-id "00000000-0000-0000-0000-000000000000" \
--name "DevProject"
"""

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

helps[
"devcenter dev pool"
] = """
Expand Down Expand Up @@ -182,13 +214,14 @@
- name: Get using dev center
text: |-
az devcenter dev dev-box show --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: Get using endpoint
text: |-
az devcenter dev dev-box show --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 create"
] = """
Expand All @@ -214,7 +247,7 @@
- name: Delete using dev center
text: |-
az devcenter dev dev-box delete --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: Delete using endpoint
text: |-
az devcenter dev dev-box delete --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
Expand Down Expand Up @@ -246,7 +279,7 @@
- name: Start using dev center
text: |-
az devcenter dev dev-box start --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: Start using endpoint
text: |-
az devcenter dev dev-box start --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
Expand All @@ -262,7 +295,7 @@
- name: Restart using dev center
text: |-
az devcenter dev dev-box restart --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: Restart using endpoint
text: |-
az devcenter dev dev-box restart --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
Expand All @@ -278,7 +311,7 @@
- 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"
--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/" \
Expand All @@ -294,7 +327,7 @@
- name: Stop using dev center
text: |-
az devcenter dev dev-box stop --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: Stop using endpoint
text: |-
az devcenter dev dev-box stop --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
Expand Down Expand Up @@ -423,6 +456,70 @@
"schedule-default" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev dev-box capture-snapshot"
] = """
type: command
short-summary: "Captures a manual snapshot of the dev box."
examples:
- name: Capture snapshot using dev center
text: |-
az devcenter dev dev-box capture-snapshot --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: Capture snapshot using endpoint
text: |-
az devcenter dev dev-box capture-snapshot --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 restore-snapshot"
] = """
type: command
short-summary: "Restores a dev box to a specified snapshot."
examples:
- name: Restore snapshot using dev center
text: |-
az devcenter dev dev-box restore-snapshot --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --snapshot-id "CPC_f5dbdfab-fa0e-4831-8d13-25359aa5e680"
- name: Restore snapshot using endpoint
text: |-
az devcenter dev dev-box restore-snapshot --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --snapshot-id "CPC_f5dbdfab-fa0e-4831-8d13-25359aa5e680"
"""

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

helps[
"devcenter dev dev-box list-snapshot"
] = """
type: command
short-summary: "List snapshots for a dev box"
examples:
- name: List snapshots using dev center
text: |-
az devcenter dev dev-box list-snapshot --name "MyDevBox" --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
- name: List snapshots using endpoint
text: |-
az devcenter dev dev-box list-snapshot --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 environment"
] = """
Expand Down Expand Up @@ -471,6 +568,7 @@
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
"""


helps[
"devcenter dev environment create"
] = """
Expand Down Expand Up @@ -603,6 +701,61 @@
--project-name "DevProject"
"""

helps[
"devcenter dev environment-type show"
] = """
type: command
short-summary: "Get an environment type configured for a project."
examples:
- name: Get using dev center
text: |-
az devcenter dev environment-type show --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --environment-type-name "foo"
- name: Get using endpoint
text: |-
az devcenter dev environment-type show --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --environment-type-name "foo"
"""

helps[
"devcenter dev environment-type list-abilities"
] = """
type: command
short-summary: "List the signed-in user's permitted abilities in an environment type."
examples:
- name: List using dev center
text: |-
az devcenter dev environment-type list-abilities --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --environment-type-name "foo" --user-id "00000000-0000-0000-0000-000000000000"
- name: List using endpoint
text: |-
az devcenter dev environment-type list-abilities --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --environment-type-name "foo" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev image-build"
] = """
type: group
short-summary: Manage image builds.
"""

helps[
"devcenter dev image-build show-log"
] = """
type: command
short-summary: "Get the log for an imaging build task."
examples:
- name: Get using dev center
text: |-
az devcenter dev image-build show-log --dev-center-name "ContosoDevCenter" \
--project-name "DevProject" --image-build-log-id "f5dbdfab-fa0e-4831-8d13-25359aa5e680"
- name: Get using endpoint
text: |-
az devcenter dev image-build show-log --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --image-build-log-id "f5dbdfab-fa0e-4831-8d13-25359aa5e680"
"""

helps[
"devcenter dev environment-definition"
] = """
Expand Down Expand Up @@ -801,12 +954,12 @@
- name: Get using dev center
text: |-
az devcenter dev environment update-expiration-date --dev-center-name "ContosoDevCenter" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --expiration "2025-11-30T22:35:00+00:00"
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --expiration "2026-11-30T22:35:00+00:00"
examples:
- name: Get using endpoint
text: |-
az devcenter dev environment update-expiration-date --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --expiration "2025-11-30T22:35:00+00:00"
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --expiration "2026-11-30T22:35:00+00:00"

"""

Expand Down
Loading
Loading