Skip to content

Commit ca313ac

Browse files
authoredJan 25, 2021
[BACKUP] Add CRR functionality for IaaSVM and other CRR commands (Azure#16557)
1 parent 58a247f commit ca313ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+92513
-77737
lines changed
 

‎linter_exclusions.yml

+3
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,9 @@ backup vault backup-properties set:
790790
soft_delete_feature_state:
791791
rule_exclusions:
792792
- option_length_too_long
793+
cross_region_restore_flag:
794+
rule_exclusions:
795+
- option_length_too_long
793796
batch account create:
794797
parameters:
795798
encryption_key_identifier:

‎src/azure-cli/azure/cli/command_modules/backup/_client_factory.py

+29
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,18 @@ def backup_protected_items_cf(cli_ctx, *_):
100100
return _backup_client_factory(cli_ctx).backup_protected_items
101101

102102

103+
def backup_protected_items_crr_cf(cli_ctx, *_):
104+
return _backup_client_factory(cli_ctx).backup_protected_items_crr
105+
106+
103107
def backup_operation_statuses_cf(cli_ctx, *_):
104108
return _backup_client_factory(cli_ctx).backup_operation_statuses
105109

106110

111+
def crr_operation_status_cf(cli_ctx, *_):
112+
return _backup_client_factory(cli_ctx).crr_operation_status
113+
114+
107115
def backups_cf(cli_ctx, *_):
108116
return _backup_client_factory(cli_ctx).backups
109117

@@ -112,6 +120,10 @@ def backup_jobs_cf(cli_ctx, *_):
112120
return _backup_client_factory(cli_ctx).backup_jobs
113121

114122

123+
def backup_crr_jobs_cf(cli_ctx, *_):
124+
return _backup_client_factory(cli_ctx).backup_crr_jobs
125+
126+
115127
def backup_workload_items_cf(cli_ctx, *_):
116128
return _backup_client_factory(cli_ctx).backup_workload_items
117129

@@ -121,6 +133,10 @@ def job_details_cf(cli_ctx, *_):
121133
return _backup_client_factory(cli_ctx).job_details
122134

123135

136+
def backup_crr_job_details_cf(cli_ctx, *_):
137+
return _backup_client_factory(cli_ctx).backup_crr_job_details
138+
139+
124140
def job_cancellations_cf(cli_ctx, *_):
125141
return _backup_client_factory(cli_ctx).job_cancellations
126142

@@ -130,13 +146,26 @@ def recovery_points_cf(cli_ctx, *_):
130146
return _backup_client_factory(cli_ctx).recovery_points
131147

132148

149+
def recovery_points_crr_cf(cli_ctx, *_):
150+
return _backup_client_factory(cli_ctx).recovery_points_crr
151+
152+
133153
def restores_cf(cli_ctx, *_):
134154
return _backup_client_factory(cli_ctx).restores
135155

136156

157+
def cross_region_restore_cf(cli_ctx, *_):
158+
return _backup_client_factory(cli_ctx).cross_region_restore
159+
160+
137161
def item_level_recovery_connections_cf(cli_ctx, *_):
138162
return _backup_client_factory(cli_ctx).item_level_recovery_connections
139163

140164

141165
def backup_resource_vault_config_cf(cli_ctx, *_):
142166
return _backup_client_factory(cli_ctx).backup_resource_vault_configs
167+
168+
169+
# Azure Active Directory Client Factories
170+
def aad_properties_cf(cli_ctx, *_):
171+
return _backup_client_factory(cli_ctx).aad_properties

0 commit comments

Comments
 (0)