Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions src/devcenter/azext_devcenter/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ def cf_dev_boxes_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).dev_boxes


def cf_dev_box_operations_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).dev_box_operations
def cf_project_operations_dp(cli_ctx, dev_center, *_):
return cf_devcenter_dataplane(cli_ctx, dev_center).projects


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


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

# Control plane

Expand Down
158 changes: 158 additions & 0 deletions src/devcenter/azext_devcenter/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,3 +650,161 @@
az devcenter dev environment-definition show --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--project-name "DevProject" --catalog-name "myCatalog" --definition-name "foo"
"""

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

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

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

helps[
"devcenter dev environment show-action"
] = """
type: command
short-summary: "Retrieve a specific environment action."
examples:
- name: Get using dev center
text: |-
az devcenter dev environment show-action --dev-center-name "ContosoDevCenter" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --action-name \
"myEnv-Delete"
examples:
- name: Get using endpoint
text: |-
az devcenter dev environment show-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --action-name "myEnv-Delete"
"""

helps[
"devcenter dev environment list-action"
] = """
type: command
short-summary: "List specific environment actions."
examples:
- name: List using dev center
text: |-
az devcenter dev environment list-action --dev-center-name "ContosoDevCenter" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
examples:
- name: List using endpoint
text: |-
az devcenter dev environment list-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev environment delay-action"
] = """
type: command
short-summary: "Delay an environment action."
examples:
- name: Delay using dev center
text: |-
az devcenter dev environment delay-action --dev-center-name "ContosoDevCenter" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --action-name \
"myEnv-Delete" --delay-time "04:30"
examples:
- name: Delay using endpoint
text: |-
az devcenter dev environment delay-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --action-name "myEnv-Delete" --delay-time "04:30"
"""

helps[
"devcenter dev environment skip-action"
] = """
type: command
short-summary: "Skip a specific environment action."
examples:
- name: Skip using dev center
text: |-
az devcenter dev environment skip-action --dev-center-name "ContosoDevCenter" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --action-name \
"myEnv-Delete"
examples:
- name: Skip using endpoint
text: |-
az devcenter dev environment skip-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --action-name "myEnv-Delete"
"""

helps[
"devcenter dev environment show-outputs"
] = """
type: command
short-summary: "Gets outputs from the environment."
examples:
- name: Get using dev center
text: |-
az devcenter dev environment show-outputs --dev-center-name "ContosoDevCenter" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
examples:
- name: Get using endpoint
text: |-
az devcenter dev environment show-outputs --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" \
--name "mydevenv" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
"""

helps[
"devcenter dev environment update-expiration-date"
] = """
type: command
short-summary: "Update the environment expiration"
examples:
- 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"
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"
"""
Loading