-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[IoT] DPS track 2 update, access-policy deprecation, and linked-hub parameter changes #20682
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3c7fef3
DPS track 2 updates
c-ryan-k b735ba2
Merge branch 'azure-dev' into dps_track_2
c-ryan-k 88af242
Merge branch 'Azure:dev' into dps_track_2
c-ryan-k 3465e0f
Dps track 2 core changes (#3)
vilit1 3ea825d
Merge branch 'azure-dev' into dps_track_2
c-ryan-k 1fe66ff
Added key filter on DPS tests and re-recorded
c-ryan-k 0e892e1
Linter and param fixes
c-ryan-k f3e1093
Fixed up extra key in tests
c-ryan-k b013593
Use more specific CLI error types
c-ryan-k 44f8e57
Merge branch 'azure-dev' into dps_track_2_changes
c-ryan-k 06936e0
Added comments to sharedaccesskey processor regex
c-ryan-k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,13 +59,17 @@ def load_command_table(self, _): # pylint: disable=too-many-statements | |
| g.generic_update_command('update', getter_name='iot_dps_get', setter_name='iot_dps_update', | ||
| command_type=update_custom_util) | ||
|
|
||
| # iot dps access-policy commands | ||
| with self.command_group('iot dps access-policy', client_factory=iot_service_provisioning_factory) as g: | ||
| g.custom_command('list', 'iot_dps_access_policy_list') | ||
| g.custom_show_command('show', 'iot_dps_access_policy_get') | ||
| g.custom_command('create', 'iot_dps_access_policy_create', supports_no_wait=True) | ||
| g.custom_command('update', 'iot_dps_access_policy_update', supports_no_wait=True) | ||
| g.custom_command('delete', 'iot_dps_access_policy_delete', supports_no_wait=True) | ||
| # iot dps access-policy commands (Deprecated) | ||
| with self.command_group('iot dps access-policy', | ||
| client_factory=iot_service_provisioning_factory, | ||
| deprecate_info=self.deprecate(redirect='iot dps policy', | ||
| expiration='2.35.0') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The expiration causes lots of failures in CI after Azure CLI is updated to 2.35.0: |
||
| ) as g: | ||
| g.custom_command('list', 'iot_dps_policy_list') | ||
| g.custom_show_command('show', 'iot_dps_policy_get') | ||
| g.custom_command('create', 'iot_dps_policy_create', supports_no_wait=True) | ||
| g.custom_command('update', 'iot_dps_policy_update', supports_no_wait=True) | ||
| g.custom_command('delete', 'iot_dps_policy_delete', supports_no_wait=True) | ||
zhoxing-ms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # iot dps linked-hub commands | ||
| with self.command_group('iot dps linked-hub', client_factory=iot_service_provisioning_factory) as g: | ||
|
|
@@ -85,6 +89,14 @@ def load_command_table(self, _): # pylint: disable=too-many-statements | |
| g.custom_command('verify', 'iot_dps_certificate_verify') | ||
| g.custom_command('update', 'iot_dps_certificate_update') | ||
|
|
||
| # iot dps policy commands | ||
| with self.command_group('iot dps policy', client_factory=iot_service_provisioning_factory) as g: | ||
| g.custom_command('list', 'iot_dps_policy_list') | ||
| g.custom_show_command('show', 'iot_dps_policy_get') | ||
| g.custom_command('create', 'iot_dps_policy_create', supports_no_wait=True) | ||
| g.custom_command('update', 'iot_dps_policy_update', supports_no_wait=True) | ||
| g.custom_command('delete', 'iot_dps_policy_delete', supports_no_wait=True) | ||
zhoxing-ms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # iot hub certificate commands | ||
| with self.command_group('iot hub certificate', client_factory=iot_hub_service_factory) as g: | ||
| g.custom_command('list', 'iot_hub_certificate_list') | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.