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

[Compute] Add disk-encryption-set command group #11411

Merged
merged 27 commits into from
Dec 11, 2019
Merged

[Compute] Add disk-encryption-set command group #11411

merged 27 commits into from
Dec 11, 2019

Conversation

qwordy
Copy link
Member

@qwordy qwordy commented Nov 27, 2019

Issue #10948

Added disk-encryption-set create, disk-encryption-set show, disk-encryption-set list, disk-encryption-set delete, disk-encryption-set update
Added --encryption-type and --disk-encryption-set to disk create
Added --os-disk-encryption-set and --data-disk-encryption-sets to vm create
Added --os-disk-encryption-set and --data-disk-encryption-sets to vmss create


This checklist is used to make sure that common guidelines for a pull request are followed.

  • The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

  • I adhere to the Command Guidelines.

# region disk encryption set
with self.argument_context('disk-encryption-set create') as c:
c.argument('disk_encryption_set_name', name_arg_type, help='Name of disk encryption set.')
c.argument('key_url', help='URL pointing to a key or secret in KeyVault.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the key_url same with Swagger property name? it's confusing with help message.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the name --key or --active-key is better than --key-url.

@@ -100,6 +100,21 @@
crafted: true
"""

helps['disk-encryption-set'] = """
type: group
short-summary: Disk Encryption Set resource.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramankumarlive, could you help give a summary of disk encryption set?

@@ -172,6 +173,11 @@ def load_command_table(self, _):
client_factory=cf_log_analytics_data_plane,
)

compute_disk_encryption_set_sdk = CliCommandType(
operations_tmpl='azure.mgmt.compute.operations#DiskEncryptionSetsOperations.{}',
client_factory=cf_disk_encryption_set
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, I'm curious about the api-version of this command type. Sometimes you need to set operation_group for the commandType in VM, sometimes you don't. Is there any guideline for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

operation_group - Only used by the azure-cli-vm module to specify which resource API to target. No

@qwordy qwordy merged commit 4c19a96 into Azure:dev Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants