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

{depth coverage, not merge} pull request of compute #27

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
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
167 changes: 167 additions & 0 deletions readme.az.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
## AZ

These settings apply only when `--az` is specified on the command line.

``` yaml $(az) && $(cloudservice)
tag: package-2020-10-01-preview-only
az:
extensions: cloud-service
namespace: azure.mgmt.compute
package-name: azure-mgmt-compute
az-output-folder: $(azure-cli-extension-folder)/src/cloudservice
python-sdk-output-folder: $(az-output-folder)/azext_cloudservice/vendored_sdks/cloudservice
cli:
cli-directive:
- where:
group: "*"
op: "*"
hidden: true
- where:
group: "CloudServiceRoleInstances"
op: "*"
hidden: false
- where:
group: "CloudServiceRoles"
op: "*"
hidden: false
- where:
group: "CloudServices"
op: "*"
hidden: false
- where:
group: "CloudServicesUpdateDomain"
op: "*"
hidden: false
directive:
- where:
group: cloud-service cloud-service-role-instance
set:
group: cloud-service role-instance
- where:
group: cloud-service cloud-service-role
set:
group: cloud-service role
- where:
group: cloud-service cloud-service-update-domain
set:
group: cloud-service update-domain
```

``` yaml $(az) && $(target-mode) == "core"
tag: package-2020-12-01-only
az:
extensions: vm
namespace: azure.mgmt.compute
package-name: azure-mgmt-compute
az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/vm
python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/vm"
extension-mode: stable
compatible-level: track2
cli:
cli-directive:
- where:
group: "*"
op: "*"
hidden: true
- where:
group: "SshPublicKeys"
op: "*"
hidden: false
- where:
group: "SshPublicKeys"
op: "GenerateKeyPair"
hidden: true
- where:
group: "*"
op: "*"
param: vmName
alias: name
directive:
- where:
group: vm ssh-public-key
set:
group: sshkey
```


### -----start of auto generated cli-directive----- ###
``` yaml $(az) && $(target-mode) == "core"
cli:
cli-directive:
- where:
group: 'RestorePointCollections'
op: ListAll|List|Delete|Get|CreateOrUpdate
apiVersion: '2021-03-01'
hidden: false
- where:
group: 'DiskAccesses'
op: ListPrivateEndpointConnections|DeleteAPrivateEndpointConnection
apiVersion: '2020-09-30'
hidden: false
- where:
group: 'DiskAccesses'
op: GetPrivateLinkResources
apiVersion: '2020-05-01'
hidden: false
- where:
group: 'RestorePoints'
op: Get
apiVersion: '2021-03-01'
hidden: false
- where:
group: 'DiskRestorePoint'
op: Get
apiVersion: '2020-12-01'
hidden: false
- where:
group: 'VirtualMachines'
op: Reimage
apiVersion: '2018-06-01'
hidden: false
- where:
group: 'VirtualMachineScaleSets'
op: ConvertToSinglePlacementGroup
apiVersion: '2020-12-01'
hidden: false
- where:
group: 'VirtualMachineScaleSets'
op: ForceRecoveryServiceFabricPlatformUpdateDomainWalk|ReimageAll
apiVersion: '2018-10-01'
hidden: false
- where:
group: 'VirtualMachineScaleSets'
op: Redeploy
apiVersion: '2019-12-01'
hidden: false
- where:
group: 'VirtualMachineScaleSetVMExtensions'
op: List|Get|CreateOrUpdate
apiVersion: '2019-07-01'
hidden: false
- where:
group: 'VirtualMachineScaleSetVMs'
op: Redeploy
apiVersion: '2019-03-01'
hidden: false
- where:
group: 'VirtualMachineScaleSetVMs'
op: ReimageAll
apiVersion: '2018-04-01'
hidden: false
- where:
group: 'VirtualMachineScaleSetVMs'
op: RetrieveBootDiagnosticsData
apiVersion: '2020-06-01'
hidden: false
- where:
group: 'VirtualMachineScaleSetVMRunCommands'
op: List
apiVersion: '2020-12-01'
hidden: false
- where:
group: 'ContainerServices'
op: CreateOrUpdate
apiVersion: '2016-09-30'
hidden: false
```
### -----end of auto generated cli-directive----- ###
11 changes: 11 additions & 0 deletions src/azure-cli/azure/cli/command_modules/vm/_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
# Generation mode: Incremental
# --------------------------------------------------------------------------

# pylint: disable=unused-wildcard-import,wildcard-import
from .generated.action import * # noqa: F403
try:
from .manual.action import * # noqa: F403
except ImportError as e:
if e.name.endswith('manual.action'):
pass
else:
raise e


import json

from knack.util import CLIError
Expand Down
9 changes: 9 additions & 0 deletions src/azure-cli/azure/cli/command_modules/vm/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
#
# Generation mode: Incremental
# --------------------------------------------------------------------------
from .generated._help import helps # pylint: disable=reimported
try:
from .manual._help import helps # pylint: disable=reimported
except ImportError as e:
if e.name.endswith('manual._help'):
pass
else:
raise e

from knack.help_files import helps # pylint: disable=unused-import

try:
Expand Down
Binary file modified src/azure-cli/azure/cli/command_modules/vm/gen.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,39 @@ def cf_vm_cl(cli_ctx, *_):

def cf_ssh_public_key(cli_ctx, *_):
return cf_vm_cl(cli_ctx).ssh_public_keys


def cf_virtual_machine(cli_ctx, *_):
return cf_vm_cl(cli_ctx).virtual_machines


def cf_virtual_machine_scale_set(cli_ctx, *_):
return cf_vm_cl(cli_ctx).virtual_machine_scale_sets


def cf_restore_point_collection(cli_ctx, *_):
return cf_vm_cl(cli_ctx).restore_point_collections


def cf_restore_point(cli_ctx, *_):
return cf_vm_cl(cli_ctx).restore_points


def cf_virtual_machine_scale_set_vm_extension(cli_ctx, *_):
return cf_vm_cl(cli_ctx).virtual_machine_scale_set_vm_extensions


def cf_virtual_machine_scale_set_vms(cli_ctx, *_):
return cf_vm_cl(cli_ctx).virtual_machine_scale_set_vms


def cf_virtual_machine_scale_set_vm_run_command(cli_ctx, *_):
return cf_vm_cl(cli_ctx).virtual_machine_scale_set_vm_run_commands


def cf_disk_access(cli_ctx, *_):
return cf_vm_cl(cli_ctx).disk_accesses


def cf_disk_restore_point(cli_ctx, *_):
return cf_vm_cl(cli_ctx).disk_restore_point
Loading