diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/CHANGELOG.md b/sdk/dataprotection/azure-mgmt-dataprotection/CHANGELOG.md index 5e8ff9c48cc5..6b40f461d1d5 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/CHANGELOG.md +++ b/sdk/dataprotection/azure-mgmt-dataprotection/CHANGELOG.md @@ -1,5 +1,18 @@ # Release History +## 2.2.0 (2026-09-04) + +### Features Added + + - Model `BackupVault` added property `cost_management_settings` + - Model `DeletedBackupVault` added property `cost_management_settings` + - Model `PatchBackupVaultInput` added property `cost_management_settings` + - Added model `CostManagementSettings` + - Added model `GenericBackupDatasourceParameters` + - Added model `GenericRestoreDatasourceCriteria` + - Added enum `GranularityLevel` + - Added model `ResourceListSelectionCriteria` + ## 2.1.0 (2026-07-29) ### Features Added diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/_metadata.json b/sdk/dataprotection/azure-mgmt-dataprotection/_metadata.json index e30b535e9460..8fe7f623e470 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/_metadata.json +++ b/sdk/dataprotection/azure-mgmt-dataprotection/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2026-03-01", + "apiVersion": "2026-06-01", "apiVersions": { - "Microsoft.DataProtection": "2026-03-01" + "Microsoft.DataProtection": "2026-06-01" }, - "commit": "801a60cdad2669e8f824fedfbabbfe7f7093b940", + "commit": "4f774bdae44fac19491a1caa4ec91760d9bf9b1b", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/dataprotection/resource-manager/Microsoft.DataProtection/DataProtection", - "emitterVersion": "0.63.3", - "httpClientPythonVersion": "^0.34.2" + "emitterVersion": "0.63.5", + "httpClientPythonVersion": "^0.36.0" } \ No newline at end of file diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/api.md b/sdk/dataprotection/azure-mgmt-dataprotection/api.md index 0e6c526b46ec..9d44a320441b 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/api.md +++ b/sdk/dataprotection/azure-mgmt-dataprotection/api.md @@ -221,6 +221,7 @@ namespace azure.mgmt.dataprotection.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async + @api_version_validation(method_added_on='2026-06-01', params_added_on={'2026-06-01': ['api_version', 'subscription_id', 'resource_group_name', 'vault_name', 'backup_instance_name']}, api_versions_list=['2026-06-01']) async def begin_resume_protection( self, resource_group_name: str, @@ -944,7 +945,7 @@ namespace azure.mgmt.dataprotection.aio.operations ) -> None: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01']) + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01', '2026-04-01-preview', '2026-06-01']) async def get( self, location: str, @@ -953,7 +954,7 @@ namespace azure.mgmt.dataprotection.aio.operations ) -> DeletedBackupVaultResource: ... @distributed_trace - @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01']) + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01', '2026-04-01-preview', '2026-06-01']) def list_by_location( self, location: str, @@ -2304,6 +2305,7 @@ namespace azure.mgmt.dataprotection.models class azure.mgmt.dataprotection.models.BackupVault(_Model): bcdr_security_level: Optional[Union[str, BCDRSecurityLevel]] + cost_management_settings: Optional[CostManagementSettings] feature_settings: Optional[FeatureSettings] is_vault_protected_by_resource_guard: Optional[bool] monitoring_settings: Optional[MonitoringSettings] @@ -2320,6 +2322,7 @@ namespace azure.mgmt.dataprotection.models def __init__( self, *, + cost_management_settings: Optional[CostManagementSettings] = ..., feature_settings: Optional[FeatureSettings] = ..., monitoring_settings: Optional[MonitoringSettings] = ..., replicated_regions: Optional[list[str]] = ..., @@ -2615,6 +2618,20 @@ namespace azure.mgmt.dataprotection.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.dataprotection.models.CostManagementSettings(_Model): + granularity_level: Optional[Union[str, GranularityLevel]] + + @overload + def __init__( + self, + *, + granularity_level: Optional[Union[str, GranularityLevel]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.dataprotection.models.CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): APPLICATION = "Application" KEY = "Key" @@ -2958,6 +2975,7 @@ namespace azure.mgmt.dataprotection.models class azure.mgmt.dataprotection.models.DeletedBackupVault(_Model): bcdr_security_level: Optional[Union[str, BCDRSecurityLevel]] + cost_management_settings: Optional[CostManagementSettings] feature_settings: Optional[FeatureSettings] is_vault_protected_by_resource_guard: Optional[bool] monitoring_settings: Optional[MonitoringSettings] @@ -2978,6 +2996,7 @@ namespace azure.mgmt.dataprotection.models def __init__( self, *, + cost_management_settings: Optional[CostManagementSettings] = ..., feature_settings: Optional[FeatureSettings] = ..., monitoring_settings: Optional[MonitoringSettings] = ..., replicated_regions: Optional[list[str]] = ..., @@ -3256,6 +3275,42 @@ namespace azure.mgmt.dataprotection.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.dataprotection.models.GenericBackupDatasourceParameters(BackupDatasourceParameters, discriminator='GenericBackupDatasourceParameters'): + object_type: Literal["GenericBackupDatasourceParameters"] + resource_selectors: list[str] + + @overload + def __init__( + self, + *, + resource_selectors: list[str] + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.dataprotection.models.GenericRestoreDatasourceCriteria(ItemLevelRestoreCriteria, discriminator='GenericRestoreDatasourceCriteria'): + object_type: Literal["GenericRestoreDatasourceCriteria"] + resource_selectors: ResourceListSelectionCriteria + + @overload + def __init__( + self, + *, + resource_selectors: ResourceListSelectionCriteria + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.dataprotection.models.GranularityLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + PROTECTED_ITEM_LEVEL = "ProtectedItemLevel" + PROTECTED_ITEM_WITH_PARENT_TAG = "ProtectedItemWithParentTag" + VAULT_LEVEL = "VaultLevel" + + class azure.mgmt.dataprotection.models.IdentityDetails(_Model): use_system_assigned_identity: Optional[bool] user_assigned_identity_arm_url: Optional[str] @@ -3703,6 +3758,7 @@ namespace azure.mgmt.dataprotection.models class azure.mgmt.dataprotection.models.PatchBackupVaultInput(_Model): + cost_management_settings: Optional[CostManagementSettings] feature_settings: Optional[FeatureSettings] monitoring_settings: Optional[MonitoringSettings] resource_guard_operation_requests: Optional[list[str]] @@ -3712,6 +3768,7 @@ namespace azure.mgmt.dataprotection.models def __init__( self, *, + cost_management_settings: Optional[CostManagementSettings] = ..., feature_settings: Optional[FeatureSettings] = ..., monitoring_settings: Optional[MonitoringSettings] = ..., resource_guard_operation_requests: Optional[list[str]] = ..., @@ -4005,6 +4062,24 @@ namespace azure.mgmt.dataprotection.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.dataprotection.models.ResourceListSelectionCriteria(_Model): + object_type: str + resource_identifiers: list[str] + resource_name_overrides: Optional[dict[str, str]] + + @overload + def __init__( + self, + *, + object_type: str, + resource_identifiers: list[str], + resource_name_overrides: Optional[dict[str, str]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.dataprotection.models.ResourceMoveDetails(_Model): completion_time_utc: Optional[str] operation_id: Optional[str] @@ -4823,6 +4898,7 @@ namespace azure.mgmt.dataprotection.operations ) -> LROPoller[None]: ... @distributed_trace + @api_version_validation(method_added_on='2026-06-01', params_added_on={'2026-06-01': ['api_version', 'subscription_id', 'resource_group_name', 'vault_name', 'backup_instance_name']}, api_versions_list=['2026-06-01']) def begin_resume_protection( self, resource_group_name: str, @@ -5546,7 +5622,7 @@ namespace azure.mgmt.dataprotection.operations ) -> None: ... @distributed_trace - @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01']) + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01', '2026-04-01-preview', '2026-06-01']) def get( self, location: str, @@ -5555,7 +5631,7 @@ namespace azure.mgmt.dataprotection.operations ) -> DeletedBackupVaultResource: ... @distributed_trace - @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01']) + @api_version_validation(method_added_on='2025-09-01', params_added_on={'2025-09-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-09-01', '2026-03-01', '2026-04-01-preview', '2026-06-01']) def list_by_location( self, location: str, @@ -6223,68 +6299,68 @@ namespace azure.mgmt.dataprotection.types key "duration": Required[str] key "objectType": Required[Literal["AbsoluteDeleteOption"]] duration: str - object_type: Literal[AbsoluteDeleteOption] + objectType: Literal[AbsoluteDeleteOption] class azure.mgmt.dataprotection.types.AdHocBackupRuleOptions(TypedDict, total=False): key "ruleName": Required[str] key "triggerOption": Required[AdhocBackupTriggerOption] - rule_name: str - trigger_option: AdhocBackupTriggerOption + ruleName: str + triggerOption: AdhocBackupTriggerOption class azure.mgmt.dataprotection.types.AdhocBackupTriggerOption(TypedDict, total=False): key "retentionTagOverride": str - retention_tag_override: str + retentionTagOverride: str class azure.mgmt.dataprotection.types.AdhocBasedTaggingCriteria(TypedDict, total=False): key "tagInfo": ForwardRef('RetentionTag', module='types') - tag_info: RetentionTag + tagInfo: RetentionTag class azure.mgmt.dataprotection.types.AdhocBasedTriggerContext(TypedDict, total=False): key "objectType": Required[Literal["AdhocBasedTriggerContext"]] key "taggingCriteria": Required[AdhocBasedTaggingCriteria] - object_type: Literal[AdhocBasedTriggerContext] - tagging_criteria: AdhocBasedTaggingCriteria + objectType: Literal[AdhocBasedTriggerContext] + taggingCriteria: AdhocBasedTaggingCriteria class azure.mgmt.dataprotection.types.AdlsBlobBackupDatasourceParameters(TypedDict, total=False): key "containersList": Required[list[str]] key "objectType": Required[Literal["AdlsBlobBackupDatasourceParameters"]] - containers_list: list[str] - object_type: Literal[AdlsBlobBackupDatasourceParameters] + containersList: list[str] + objectType: Literal[AdlsBlobBackupDatasourceParameters] class azure.mgmt.dataprotection.types.AdlsBlobBackupDatasourceParametersForAutoProtection(TypedDict, total=False): key "autoProtectionSettings": Required[BlobBackupRuleBasedAutoProtectionSettings] key "objectType": Required[Literal["AdlsBlobBackupDatasourceParametersForAutoProtection"]] - auto_protection_settings: BlobBackupRuleBasedAutoProtectionSettings - object_type: Literal[AdlsBlobBackupDatasourceParametersForAutoProtection] + autoProtectionSettings: BlobBackupRuleBasedAutoProtectionSettings + objectType: Literal[AdlsBlobBackupDatasourceParametersForAutoProtection] class azure.mgmt.dataprotection.types.AuthCredentials(TypedDict, total=False): key "objectType": Required[Literal["SecretStoreBasedAuthCredentials"]] key "secretStoreResource": ForwardRef('SecretStoreResource', module='types') - object_type: Literal[SecretStoreBasedAuthCredentials] - secret_store_resource: SecretStoreResource + objectType: Literal[SecretStoreBasedAuthCredentials] + secretStoreResource: SecretStoreResource class azure.mgmt.dataprotection.types.AzureBackupFindRestorableTimeRangesRequest(TypedDict, total=False): key "endTime": str key "sourceDataStoreType": Required[Union[str, RestoreSourceDataStoreType]] key "startTime": str - end_time: str - source_data_store_type: Union[str, RestoreSourceDataStoreType] - start_time: str + endTime: str + sourceDataStoreType: Union[str, RestoreSourceDataStoreType] + startTime: str class azure.mgmt.dataprotection.types.AzureBackupParams(TypedDict, total=False): key "backupType": Required[str] key "objectType": Required[Literal["AzureBackupParams"]] - backup_type: str - object_type: Literal[AzureBackupParams] + backupType: str + objectType: Literal[AzureBackupParams] class azure.mgmt.dataprotection.types.AzureBackupRecoveryPointBasedRestoreRequest(TypedDict, total=False): @@ -6296,16 +6372,15 @@ namespace azure.mgmt.dataprotection.types key "restoreTargetInfo": Required[RestoreTargetInfoBase] key "sourceDataStoreType": Required[Union[str, SourceDataStoreType]] key "sourceResourceId": str - identity_details: IdentityDetails - object_type: Literal[AzureBackupRestoreWithRehydrationRequest] - recovery_point_id: str - rehydration_priority: Union[str, RehydrationPriority] - rehydration_retention_duration: str + identityDetails: IdentityDetails + objectType: Literal[AzureBackupRestoreWithRehydrationRequest] + recoveryPointId: str + rehydrationPriority: Union[str, RehydrationPriority] + rehydrationRetentionDuration: str resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - restore_target_info: RestoreTargetInfoBase - source_data_store_type: Union[str, SourceDataStoreType] - source_resource_id: str + restoreTargetInfo: RestoreTargetInfoBase + sourceDataStoreType: Union[str, SourceDataStoreType] + sourceResourceId: str class azure.mgmt.dataprotection.types.AzureBackupRecoveryTimeBasedRestoreRequest(TypedDict, total=False): @@ -6315,23 +6390,22 @@ namespace azure.mgmt.dataprotection.types key "restoreTargetInfo": Required[RestoreTargetInfoBase] key "sourceDataStoreType": Required[Union[str, SourceDataStoreType]] key "sourceResourceId": str - identity_details: IdentityDetails - object_type: Literal[AzureBackupRecoveryTimeBasedRestoreRequest] - recovery_point_time: str + identityDetails: IdentityDetails + objectType: Literal[AzureBackupRecoveryTimeBasedRestoreRequest] + recoveryPointTime: str resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - restore_target_info: RestoreTargetInfoBase - source_data_store_type: Union[str, SourceDataStoreType] - source_resource_id: str + restoreTargetInfo: RestoreTargetInfoBase + sourceDataStoreType: Union[str, SourceDataStoreType] + sourceResourceId: str class azure.mgmt.dataprotection.types.AzureBackupRehydrationRequest(TypedDict, total=False): key "recoveryPointId": Required[str] key "rehydrationPriority": Union[str, RehydrationPriority] key "rehydrationRetentionDuration": Required[str] - recovery_point_id: str - rehydration_priority: Union[str, RehydrationPriority] - rehydration_retention_duration: str + recoveryPointId: str + rehydrationPriority: Union[str, RehydrationPriority] + rehydrationRetentionDuration: str class azure.mgmt.dataprotection.types.AzureBackupRestoreWithRehydrationRequest(TypedDict, total=False): @@ -6343,16 +6417,15 @@ namespace azure.mgmt.dataprotection.types key "restoreTargetInfo": Required[RestoreTargetInfoBase] key "sourceDataStoreType": Required[Union[str, SourceDataStoreType]] key "sourceResourceId": str - identity_details: IdentityDetails - object_type: Literal[AzureBackupRestoreWithRehydrationRequest] - recovery_point_id: str - rehydration_priority: Union[str, RehydrationPriority] - rehydration_retention_duration: str + identityDetails: IdentityDetails + objectType: Literal[AzureBackupRestoreWithRehydrationRequest] + recoveryPointId: str + rehydrationPriority: Union[str, RehydrationPriority] + rehydrationRetentionDuration: str resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - restore_target_info: RestoreTargetInfoBase - source_data_store_type: Union[str, SourceDataStoreType] - source_resource_id: str + restoreTargetInfo: RestoreTargetInfoBase + sourceDataStoreType: Union[str, SourceDataStoreType] + sourceResourceId: str class azure.mgmt.dataprotection.types.AzureBackupRule(TypedDict, total=False): @@ -6361,25 +6434,25 @@ namespace azure.mgmt.dataprotection.types key "name": Required[str] key "objectType": Required[Literal["AzureBackupRule"]] key "trigger": Required[TriggerContext] - backup_parameters: BackupParameters - data_store: DataStoreInfoBase + backupParameters: BackupParameters + dataStore: DataStoreInfoBase name: str - object_type: Literal[AzureBackupRule] + objectType: Literal[AzureBackupRule] trigger: TriggerContext class azure.mgmt.dataprotection.types.AzureMonitorAlertSettings(TypedDict, total=False): key "alertsForAllJobFailures": Union[str, AlertsState] - alerts_for_all_job_failures: Union[str, AlertsState] + alertsForAllJobFailures: Union[str, AlertsState] class azure.mgmt.dataprotection.types.AzureOperationalStoreParameters(TypedDict, total=False): key "dataStoreType": Required[Union[str, DataStoreTypes]] key "objectType": Required[Literal["AzureOperationalStoreParameters"]] key "resourceGroupId": str - data_store_type: Union[str, DataStoreTypes] - object_type: Literal[AzureOperationalStoreParameters] - resource_group_id: str + dataStoreType: Union[str, DataStoreTypes] + objectType: Literal[AzureOperationalStoreParameters] + resourceGroupId: str class azure.mgmt.dataprotection.types.AzureRetentionRule(TypedDict, total=False): @@ -6387,27 +6460,21 @@ namespace azure.mgmt.dataprotection.types key "lifecycles": Required[list[SourceLifeCycle]] key "name": Required[str] key "objectType": Required[Literal["AzureRetentionRule"]] - is_default: bool + isDefault: bool lifecycles: list[SourceLifeCycle] name: str - object_type: Literal[AzureRetentionRule] + objectType: Literal[AzureRetentionRule] class azure.mgmt.dataprotection.types.BackupCriteria(TypedDict, total=False): key "objectType": Required[Literal["ScheduleBasedBackupCriteria"]] absoluteCriteria: list[Union[str, AbsoluteMarker]] - absolute_criteria: list[Union[str, AbsoluteMarker]] daysOfMonth: list[Day] daysOfTheWeek: list[Union[str, DayOfWeek]] - days_of_month: list[Day] - days_of_the_week: list[Union[str, DayOfWeek]] monthsOfYear: list[Union[str, Month]] - months_of_year: list[Union[str, Month]] - object_type: Literal[ScheduleBasedBackupCriteria] + objectType: Literal[ScheduleBasedBackupCriteria] scheduleTimes: list[str] - schedule_times: list[str] weeksOfTheMonth: list[Union[str, WeekNumber]] - weeks_of_the_month: list[Union[str, WeekNumber]] class azure.mgmt.dataprotection.types.BackupInstance(TypedDict, total=False): @@ -6423,20 +6490,19 @@ namespace azure.mgmt.dataprotection.types key "protectionStatus": ForwardRef('ProtectionStatusDetails', module='types') key "provisioningState": str key "validationType": Union[str, ValidationType] - current_protection_state: Union[str, CurrentProtectionState] - data_source_info: Datasource - data_source_set_info: DatasourceSet - datasource_auth_credentials: AuthCredentials - friendly_name: str - identity_details: IdentityDetails - object_type: str - policy_info: PolicyInfo - protection_error_details: UserFacingError - protection_status: ProtectionStatusDetails - provisioning_state: str + currentProtectionState: Union[str, CurrentProtectionState] + dataSourceInfo: Datasource + dataSourceSetInfo: DatasourceSet + datasourceAuthCredentials: AuthCredentials + friendlyName: str + identityDetails: IdentityDetails + objectType: str + policyInfo: PolicyInfo + protectionErrorDetails: UserFacingError + protectionStatus: ProtectionStatusDetails + provisioningState: str resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - validation_type: Union[str, ValidationType] + validationType: Union[str, ValidationType] class azure.mgmt.dataprotection.types.BackupInstanceResource(ProxyResource): @@ -6448,7 +6514,7 @@ namespace azure.mgmt.dataprotection.types id: str name: str properties: BackupInstance - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -6456,28 +6522,29 @@ namespace azure.mgmt.dataprotection.types class azure.mgmt.dataprotection.types.BackupParameters(TypedDict, total=False): key "backupType": Required[str] key "objectType": Required[Literal["AzureBackupParams"]] - backup_type: str - object_type: Literal[AzureBackupParams] + backupType: str + objectType: Literal[AzureBackupParams] class azure.mgmt.dataprotection.types.BackupPolicy(TypedDict, total=False): key "datasourceTypes": Required[list[str]] key "objectType": Required[Literal["BackupPolicy"]] key "policyRules": Required[list[BasePolicyRule]] - datasource_types: list[str] - object_type: Literal[BackupPolicy] - policy_rules: list[BasePolicyRule] + datasourceTypes: list[str] + objectType: Literal[BackupPolicy] + policyRules: list[BasePolicyRule] class azure.mgmt.dataprotection.types.BackupSchedule(TypedDict, total=False): key "repeatingTimeIntervals": Required[list[str]] key "timeZone": str - repeating_time_intervals: list[str] - time_zone: str + repeatingTimeIntervals: list[str] + timeZone: str class azure.mgmt.dataprotection.types.BackupVault(TypedDict, total=False): key "bcdrSecurityLevel": Union[str, BCDRSecurityLevel] + key "costManagementSettings": ForwardRef('CostManagementSettings', module='types') key "featureSettings": ForwardRef('FeatureSettings', module='types') key "isVaultProtectedByResourceGuard": bool key "monitoringSettings": ForwardRef('MonitoringSettings', module='types') @@ -6486,21 +6553,19 @@ namespace azure.mgmt.dataprotection.types key "resourceMoveState": Union[str, ResourceMoveState] key "secureScore": Union[str, SecureScoreLevel] key "securitySettings": ForwardRef('SecuritySettings', module='types') - bcdr_security_level: Union[str, BCDRSecurityLevel] - feature_settings: FeatureSettings - is_vault_protected_by_resource_guard: bool - monitoring_settings: MonitoringSettings - provisioning_state: Union[str, ProvisioningState] + bcdrSecurityLevel: Union[str, BCDRSecurityLevel] + costManagementSettings: CostManagementSettings + featureSettings: FeatureSettings + isVaultProtectedByResourceGuard: bool + monitoringSettings: MonitoringSettings + provisioningState: Union[str, ProvisioningState] replicatedRegions: list[str] - replicated_regions: list[str] resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - resource_move_details: ResourceMoveDetails - resource_move_state: Union[str, ResourceMoveState] - secure_score: Union[str, SecureScoreLevel] - security_settings: SecuritySettings + resourceMoveDetails: ResourceMoveDetails + resourceMoveState: Union[str, ResourceMoveState] + secureScore: Union[str, SecureScoreLevel] + securitySettings: SecuritySettings storageSettings: list[StorageSetting] - storage_settings: list[StorageSetting] class azure.mgmt.dataprotection.types.BackupVaultResource(TrackedResource): @@ -6512,13 +6577,13 @@ namespace azure.mgmt.dataprotection.types key "properties": Required[BackupVault] key "systemData": ForwardRef('SystemData', module='types') key "type": str - e_tag: str + eTag: str id: str identity: DppIdentityDetails location: str name: str properties: BackupVault - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -6527,9 +6592,9 @@ namespace azure.mgmt.dataprotection.types key "datasourceTypes": Required[list[str]] key "objectType": Required[Literal["BackupPolicy"]] key "policyRules": Required[list[BasePolicyRule]] - datasource_types: list[str] - object_type: Literal[BackupPolicy] - policy_rules: list[BasePolicyRule] + datasourceTypes: list[str] + objectType: Literal[BackupPolicy] + policyRules: list[BasePolicyRule] class azure.mgmt.dataprotection.types.BaseBackupPolicyResource(ProxyResource): @@ -6541,13 +6606,13 @@ namespace azure.mgmt.dataprotection.types id: str name: str properties: BaseBackupPolicy - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.dataprotection.types.BaseResourceProperties(TypedDict, total=False): key "objectType": Required[Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES]] - object_type: Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES] + objectType: Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES] class azure.mgmt.dataprotection.types.BlobBackupAutoProtectionRule(TypedDict, total=False): @@ -6556,7 +6621,7 @@ namespace azure.mgmt.dataprotection.types key "pattern": Required[str] key "type": Required[Union[str, BlobBackupPatternType]] mode: Union[str, BlobBackupRuleMode] - object_type: str + objectType: str pattern: str type: Union[str, BlobBackupPatternType] @@ -6565,29 +6630,29 @@ namespace azure.mgmt.dataprotection.types key "enabled": Required[bool] key "objectType": Required[Literal["BlobBackupRuleBasedAutoProtectionSettings"]] enabled: bool - object_type: Literal[BlobBackupRuleBasedAutoProtectionSettings] + objectType: Literal[BlobBackupRuleBasedAutoProtectionSettings] rules: list[BlobBackupAutoProtectionRule] class azure.mgmt.dataprotection.types.BlobBackupDatasourceParameters(TypedDict, total=False): key "containersList": Required[list[str]] key "objectType": Required[Literal["AdlsBlobBackupDatasourceParameters"]] - containers_list: list[str] - object_type: Literal[AdlsBlobBackupDatasourceParameters] + containersList: list[str] + objectType: Literal[AdlsBlobBackupDatasourceParameters] class azure.mgmt.dataprotection.types.BlobBackupDatasourceParametersForAutoProtection(TypedDict, total=False): key "autoProtectionSettings": Required[BlobBackupRuleBasedAutoProtectionSettings] key "objectType": Required[Literal["BlobBackupDatasourceParametersForAutoProtection"]] - auto_protection_settings: BlobBackupRuleBasedAutoProtectionSettings - object_type: Literal[BlobBackupDatasourceParametersForAutoProtection] + autoProtectionSettings: BlobBackupRuleBasedAutoProtectionSettings + objectType: Literal[BlobBackupDatasourceParametersForAutoProtection] class azure.mgmt.dataprotection.types.BlobBackupRuleBasedAutoProtectionSettings(TypedDict, total=False): key "enabled": Required[bool] key "objectType": Required[Literal["BlobBackupRuleBasedAutoProtectionSettings"]] enabled: bool - object_type: Literal[BlobBackupRuleBasedAutoProtectionSettings] + objectType: Literal[BlobBackupRuleBasedAutoProtectionSettings] rules: list[BlobBackupAutoProtectionRule] @@ -6601,48 +6666,53 @@ namespace azure.mgmt.dataprotection.types class azure.mgmt.dataprotection.types.CmkKekIdentity(TypedDict, total=False): key "identityId": str key "identityType": Union[str, IdentityType] - identity_id: str - identity_type: Union[str, IdentityType] + identityId: str + identityType: Union[str, IdentityType] class azure.mgmt.dataprotection.types.CmkKeyVaultProperties(TypedDict, total=False): key "keyUri": str - key_uri: str + keyUri: str class azure.mgmt.dataprotection.types.CopyOnExpiryOption(TypedDict, total=False): key "objectType": Required[Literal["CopyOnExpiryOption"]] - object_type: Literal[CopyOnExpiryOption] + objectType: Literal[CopyOnExpiryOption] + + + class azure.mgmt.dataprotection.types.CostManagementSettings(TypedDict, total=False): + key "granularityLevel": Union[str, GranularityLevel] + granularityLevel: Union[str, GranularityLevel] class azure.mgmt.dataprotection.types.CrossRegionRestoreDetails(TypedDict, total=False): key "sourceBackupInstanceId": Required[str] key "sourceRegion": Required[str] - source_backup_instance_id: str - source_region: str + sourceBackupInstanceId: str + sourceRegion: str class azure.mgmt.dataprotection.types.CrossRegionRestoreJobRequest(TypedDict, total=False): key "jobId": Required[str] key "sourceBackupVaultId": Required[str] key "sourceRegion": Required[str] - job_id: str - source_backup_vault_id: str - source_region: str + jobId: str + sourceBackupVaultId: str + sourceRegion: str class azure.mgmt.dataprotection.types.CrossRegionRestoreJobsRequest(TypedDict, total=False): key "sourceBackupVaultId": Required[str] key "sourceRegion": Required[str] - source_backup_vault_id: str - source_region: str + sourceBackupVaultId: str + sourceRegion: str class azure.mgmt.dataprotection.types.CrossRegionRestoreRequestObject(TypedDict, total=False): key "crossRegionRestoreDetails": Required[CrossRegionRestoreDetails] key "restoreRequestObject": Required[AzureBackupRestoreRequest] - cross_region_restore_details: CrossRegionRestoreDetails - restore_request_object: AzureBackupRestoreRequest + crossRegionRestoreDetails: CrossRegionRestoreDetails + restoreRequestObject: AzureBackupRestoreRequest class azure.mgmt.dataprotection.types.CrossRegionRestoreSettings(TypedDict, total=False): @@ -6659,23 +6729,23 @@ namespace azure.mgmt.dataprotection.types key "duration": str key "objectType": Required[Literal["CustomCopyOption"]] duration: str - object_type: Literal[CustomCopyOption] + objectType: Literal[CustomCopyOption] class azure.mgmt.dataprotection.types.DataStoreInfoBase(TypedDict, total=False): key "dataStoreType": Required[Union[str, DataStoreTypes]] key "objectType": Required[str] - data_store_type: Union[str, DataStoreTypes] - object_type: str + dataStoreType: Union[str, DataStoreTypes] + objectType: str class azure.mgmt.dataprotection.types.DataStoreParameters(TypedDict, total=False): key "dataStoreType": Required[Union[str, DataStoreTypes]] key "objectType": Required[Literal["AzureOperationalStoreParameters"]] key "resourceGroupId": str - data_store_type: Union[str, DataStoreTypes] - object_type: Literal[AzureOperationalStoreParameters] - resource_group_id: str + dataStoreType: Union[str, DataStoreTypes] + objectType: Literal[AzureOperationalStoreParameters] + resourceGroupId: str class azure.mgmt.dataprotection.types.Datasource(TypedDict, total=False): @@ -6687,14 +6757,14 @@ namespace azure.mgmt.dataprotection.types key "resourceProperties": ForwardRef('BaseResourceProperties', module='types') key "resourceType": str key "resourceUri": str - datasource_type: str - object_type: str - resource_id: str - resource_location: str - resource_name: str - resource_properties: BaseResourceProperties - resource_type: str - resource_uri: str + datasourceType: str + objectType: str + resourceID: str + resourceLocation: str + resourceName: str + resourceProperties: BaseResourceProperties + resourceType: str + resourceUri: str class azure.mgmt.dataprotection.types.DatasourceSet(TypedDict, total=False): @@ -6706,44 +6776,43 @@ namespace azure.mgmt.dataprotection.types key "resourceProperties": ForwardRef('BaseResourceProperties', module='types') key "resourceType": str key "resourceUri": str - datasource_type: str - object_type: str - resource_id: str - resource_location: str - resource_name: str - resource_properties: BaseResourceProperties - resource_type: str - resource_uri: str + datasourceType: str + objectType: str + resourceID: str + resourceLocation: str + resourceName: str + resourceProperties: BaseResourceProperties + resourceType: str + resourceUri: str class azure.mgmt.dataprotection.types.Day(TypedDict, total=False): key "date": int key "isLast": bool date: int - is_last: bool + isLast: bool class azure.mgmt.dataprotection.types.DefaultResourceProperties(TypedDict, total=False): key "objectType": Required[Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES]] - object_type: Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES] + objectType: Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES] class azure.mgmt.dataprotection.types.DeleteOption(TypedDict, total=False): key "duration": Required[str] key "objectType": Required[Literal["AbsoluteDeleteOption"]] duration: str - object_type: Literal[AbsoluteDeleteOption] + objectType: Literal[AbsoluteDeleteOption] class azure.mgmt.dataprotection.types.DppIdentityDetails(TypedDict, total=False): key "principalId": str key "tenantId": str key "type": str - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: str userAssignedIdentities: dict[str, UserAssignedIdentity] - user_assigned_identities: dict[str, UserAssignedIdentity] class azure.mgmt.dataprotection.types.EncryptionSettings(TypedDict, total=False): @@ -6751,54 +6820,68 @@ namespace azure.mgmt.dataprotection.types key "kekIdentity": ForwardRef('CmkKekIdentity', module='types') key "keyVaultProperties": ForwardRef('CmkKeyVaultProperties', module='types') key "state": Union[str, EncryptionState] - infrastructure_encryption: Union[str, InfrastructureEncryptionState] - kek_identity: CmkKekIdentity - key_vault_properties: CmkKeyVaultProperties + infrastructureEncryption: Union[str, InfrastructureEncryptionState] + kekIdentity: CmkKekIdentity + keyVaultProperties: CmkKeyVaultProperties state: Union[str, EncryptionState] class azure.mgmt.dataprotection.types.FeatureSettings(TypedDict, total=False): key "crossRegionRestoreSettings": ForwardRef('CrossRegionRestoreSettings', module='types') key "crossSubscriptionRestoreSettings": ForwardRef('CrossSubscriptionRestoreSettings', module='types') - cross_region_restore_settings: CrossRegionRestoreSettings - cross_subscription_restore_settings: CrossSubscriptionRestoreSettings + crossRegionRestoreSettings: CrossRegionRestoreSettings + crossSubscriptionRestoreSettings: CrossSubscriptionRestoreSettings class azure.mgmt.dataprotection.types.FeatureValidationRequest(TypedDict, total=False): key "featureName": str key "featureType": Union[str, FeatureType] key "objectType": Required[Literal["FeatureValidationRequest"]] - feature_name: str - feature_type: Union[str, FeatureType] - object_type: Literal[FeatureValidationRequest] + featureName: str + featureType: Union[str, FeatureType] + objectType: Literal[FeatureValidationRequest] class azure.mgmt.dataprotection.types.FeatureValidationRequestBase(TypedDict, total=False): key "featureName": str key "featureType": Union[str, FeatureType] key "objectType": Required[Literal["FeatureValidationRequest"]] - feature_name: str - feature_type: Union[str, FeatureType] - object_type: Literal[FeatureValidationRequest] + featureName: str + featureType: Union[str, FeatureType] + objectType: Literal[FeatureValidationRequest] class azure.mgmt.dataprotection.types.FetchSecondaryRPsRequestParameters(TypedDict, total=False): key "sourceBackupInstanceId": str key "sourceRegion": str - source_backup_instance_id: str - source_region: str + sourceBackupInstanceId: str + sourceRegion: str + + + class azure.mgmt.dataprotection.types.GenericBackupDatasourceParameters(TypedDict, total=False): + key "objectType": Required[Literal["GenericBackupDatasourceParameters"]] + key "resourceSelectors": Required[list[str]] + objectType: Literal[GenericBackupDatasourceParameters] + resourceSelectors: list[str] + + + class azure.mgmt.dataprotection.types.GenericRestoreDatasourceCriteria(TypedDict, total=False): + key "objectType": Required[Literal["GenericRestoreDatasourceCriteria"]] + key "resourceSelectors": Required[ResourceListSelectionCriteria] + objectType: Literal[GenericRestoreDatasourceCriteria] + resourceSelectors: ResourceListSelectionCriteria class azure.mgmt.dataprotection.types.IdentityDetails(TypedDict, total=False): key "useSystemAssignedIdentity": bool key "userAssignedIdentityArmUrl": str - use_system_assigned_identity: bool - user_assigned_identity_arm_url: str + useSystemAssignedIdentity: bool + userAssignedIdentityArmUrl: str class azure.mgmt.dataprotection.types.ImmediateCopyOption(TypedDict, total=False): key "objectType": Required[Literal["ImmediateCopyOption"]] - object_type: Literal[ImmediateCopyOption] + objectType: Literal[ImmediateCopyOption] class azure.mgmt.dataprotection.types.ImmutabilitySettings(TypedDict, total=False): @@ -6810,9 +6893,8 @@ namespace azure.mgmt.dataprotection.types key "code": str key "embeddedInnerError": ForwardRef('InnerError', module='types') additionalInfo: dict[str, str] - additional_info: dict[str, str] code: str - embedded_inner_error: InnerError + embeddedInnerError: InnerError class azure.mgmt.dataprotection.types.ItemLevelRestoreTargetInfo(TypedDict, total=False): @@ -6823,13 +6905,13 @@ namespace azure.mgmt.dataprotection.types key "recoveryOption": Required[Union[str, RecoveryOption]] key "restoreCriteria": Required[list[ItemLevelRestoreCriteria]] key "restoreLocation": str - datasource_auth_credentials: AuthCredentials - datasource_info: Datasource - datasource_set_info: DatasourceSet - object_type: Literal[ItemLevelRestoreTargetInfo] - recovery_option: Union[str, RecoveryOption] - restore_criteria: list[ItemLevelRestoreCriteria] - restore_location: str + datasourceAuthCredentials: AuthCredentials + datasourceInfo: Datasource + datasourceSetInfo: DatasourceSet + objectType: Literal[ItemLevelRestoreTargetInfo] + recoveryOption: Union[str, RecoveryOption] + restoreCriteria: list[ItemLevelRestoreCriteria] + restoreLocation: str class azure.mgmt.dataprotection.types.ItemPathBasedRestoreCriteria(TypedDict, total=False): @@ -6837,12 +6919,11 @@ namespace azure.mgmt.dataprotection.types key "itemPath": Required[str] key "objectType": Required[Literal["ItemPathBasedRestoreCriteria"]] key "renameTo": str - is_path_relative_to_backup_item: bool - item_path: str - object_type: Literal[ItemPathBasedRestoreCriteria] - rename_to: str + isPathRelativeToBackupItem: bool + itemPath: str + objectType: Literal[ItemPathBasedRestoreCriteria] + renameTo: str subItemPathPrefix: list[str] - sub_item_path_prefix: list[str] class azure.mgmt.dataprotection.types.KubernetesClusterBackupDatasourceParameters(TypedDict, total=False): @@ -6850,22 +6931,15 @@ namespace azure.mgmt.dataprotection.types key "objectType": Required[Literal["KubernetesClusterBackupDatasourceParameters"]] key "snapshotVolumes": Required[bool] backupHookReferences: list[NamespacedNameResource] - backup_hook_references: list[NamespacedNameResource] excludedNamespaces: list[str] excludedResourceTypes: list[str] - excluded_namespaces: list[str] - excluded_resource_types: list[str] - include_cluster_scope_resources: bool + includeClusterScopeResources: bool includedNamespaces: list[str] includedResourceTypes: list[str] includedVolumeTypes: list[Union[str, AKSVolumeTypes]] - included_namespaces: list[str] - included_resource_types: list[str] - included_volume_types: list[Union[str, AKSVolumeTypes]] labelSelectors: list[str] - label_selectors: list[str] - object_type: Literal[KubernetesClusterBackupDatasourceParameters] - snapshot_volumes: bool + objectType: Literal[KubernetesClusterBackupDatasourceParameters] + snapshotVolumes: bool class azure.mgmt.dataprotection.types.KubernetesClusterRestoreCriteria(TypedDict, total=False): @@ -6874,25 +6948,18 @@ namespace azure.mgmt.dataprotection.types key "objectType": Required[Literal["KubernetesClusterRestoreCriteria"]] key "persistentVolumeRestoreMode": Union[str, PersistentVolumeRestoreMode] key "resourceModifierReference": ForwardRef('NamespacedNameResource', module='types') - conflict_policy: Union[str, ExistingResourcePolicy] + conflictPolicy: Union[str, ExistingResourcePolicy] excludedNamespaces: list[str] excludedResourceTypes: list[str] - excluded_namespaces: list[str] - excluded_resource_types: list[str] - include_cluster_scope_resources: bool + includeClusterScopeResources: bool includedNamespaces: list[str] includedResourceTypes: list[str] - included_namespaces: list[str] - included_resource_types: list[str] labelSelectors: list[str] - label_selectors: list[str] namespaceMappings: dict[str, str] - namespace_mappings: dict[str, str] - object_type: Literal[KubernetesClusterRestoreCriteria] - persistent_volume_restore_mode: Union[str, PersistentVolumeRestoreMode] - resource_modifier_reference: NamespacedNameResource + objectType: Literal[KubernetesClusterRestoreCriteria] + persistentVolumeRestoreMode: Union[str, PersistentVolumeRestoreMode] + resourceModifierReference: NamespacedNameResource restoreHookReferences: list[NamespacedNameResource] - restore_hook_references: list[NamespacedNameResource] class azure.mgmt.dataprotection.types.KubernetesClusterVaultTierRestoreCriteria(TypedDict, total=False): @@ -6903,27 +6970,20 @@ namespace azure.mgmt.dataprotection.types key "resourceModifierReference": ForwardRef('NamespacedNameResource', module='types') key "stagingResourceGroupId": str key "stagingStorageAccountId": str - conflict_policy: Union[str, ExistingResourcePolicy] + conflictPolicy: Union[str, ExistingResourcePolicy] excludedNamespaces: list[str] excludedResourceTypes: list[str] - excluded_namespaces: list[str] - excluded_resource_types: list[str] - include_cluster_scope_resources: bool + includeClusterScopeResources: bool includedNamespaces: list[str] includedResourceTypes: list[str] - included_namespaces: list[str] - included_resource_types: list[str] labelSelectors: list[str] - label_selectors: list[str] namespaceMappings: dict[str, str] - namespace_mappings: dict[str, str] - object_type: Literal[KubernetesClusterVaultTierRestoreCriteria] - persistent_volume_restore_mode: Union[str, PersistentVolumeRestoreMode] - resource_modifier_reference: NamespacedNameResource + objectType: Literal[KubernetesClusterVaultTierRestoreCriteria] + persistentVolumeRestoreMode: Union[str, PersistentVolumeRestoreMode] + resourceModifierReference: NamespacedNameResource restoreHookReferences: list[NamespacedNameResource] - restore_hook_references: list[NamespacedNameResource] - staging_resource_group_id: str - staging_storage_account_id: str + stagingResourceGroupId: str + stagingStorageAccountId: str class azure.mgmt.dataprotection.types.KubernetesPVRestoreCriteria(TypedDict, total=False): @@ -6931,22 +6991,22 @@ namespace azure.mgmt.dataprotection.types key "objectType": Required[Literal["KubernetesPVRestoreCriteria"]] key "storageClassName": str name: str - object_type: Literal[KubernetesPVRestoreCriteria] - storage_class_name: str + objectType: Literal[KubernetesPVRestoreCriteria] + storageClassName: str class azure.mgmt.dataprotection.types.KubernetesStorageClassRestoreCriteria(TypedDict, total=False): key "objectType": Required[Literal["KubernetesStorageClassRestoreCriteria"]] key "provisioner": str key "selectedStorageClassName": str - object_type: Literal[KubernetesStorageClassRestoreCriteria] + objectType: Literal[KubernetesStorageClassRestoreCriteria] provisioner: str - selected_storage_class_name: str + selectedStorageClassName: str class azure.mgmt.dataprotection.types.MonitoringSettings(TypedDict, total=False): key "azureMonitorAlertSettings": ForwardRef('AzureMonitorAlertSettings', module='types') - azure_monitor_alert_settings: AzureMonitorAlertSettings + azureMonitorAlertSettings: AzureMonitorAlertSettings class azure.mgmt.dataprotection.types.NamespacedNameResource(TypedDict, total=False): @@ -6957,14 +7017,15 @@ namespace azure.mgmt.dataprotection.types class azure.mgmt.dataprotection.types.PatchBackupVaultInput(TypedDict, total=False): + key "costManagementSettings": ForwardRef('CostManagementSettings', module='types') key "featureSettings": ForwardRef('FeatureSettings', module='types') key "monitoringSettings": ForwardRef('MonitoringSettings', module='types') key "securitySettings": ForwardRef('SecuritySettings', module='types') - feature_settings: FeatureSettings - monitoring_settings: MonitoringSettings + costManagementSettings: CostManagementSettings + featureSettings: FeatureSettings + monitoringSettings: MonitoringSettings resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - security_settings: SecuritySettings + securitySettings: SecuritySettings class azure.mgmt.dataprotection.types.PatchResourceGuardInput(TypedDict, total=False): @@ -6983,22 +7044,20 @@ namespace azure.mgmt.dataprotection.types key "policyId": Required[str] key "policyParameters": ForwardRef('PolicyParameters', module='types') key "policyVersion": str - policy_id: str - policy_parameters: PolicyParameters - policy_version: str + policyId: str + policyParameters: PolicyParameters + policyVersion: str class azure.mgmt.dataprotection.types.PolicyParameters(TypedDict, total=False): backupDatasourceParametersList: list[BackupDatasourceParameters] - backup_datasource_parameters_list: list[BackupDatasourceParameters] dataStoreParametersList: list[DataStoreParameters] - data_store_parameters_list: list[DataStoreParameters] class azure.mgmt.dataprotection.types.ProtectionStatusDetails(TypedDict, total=False): key "errorDetails": ForwardRef('UserFacingError', module='types') key "status": Union[str, Status] - error_details: UserFacingError + errorDetails: UserFacingError status: Union[str, Status] @@ -7009,7 +7068,7 @@ namespace azure.mgmt.dataprotection.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -7017,9 +7076,9 @@ namespace azure.mgmt.dataprotection.types key "maxMatchingValue": str key "minMatchingValue": str key "objectType": Required[Literal["RangeBasedItemLevelRestoreCriteria"]] - max_matching_value: str - min_matching_value: str - object_type: Literal[RangeBasedItemLevelRestoreCriteria] + maxMatchingValue: str + minMatchingValue: str + objectType: Literal[RangeBasedItemLevelRestoreCriteria] class azure.mgmt.dataprotection.types.Resource(TypedDict, total=False): @@ -7029,7 +7088,7 @@ namespace azure.mgmt.dataprotection.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -7037,27 +7096,25 @@ namespace azure.mgmt.dataprotection.types key "allowAutoApprovals": bool key "description": str key "provisioningState": Union[str, ProvisioningState] - allow_auto_approvals: bool + allowAutoApprovals: bool description: str - provisioning_state: Union[str, ProvisioningState] + provisioningState: Union[str, ProvisioningState] resourceGuardOperations: list[ResourceGuardOperation] - resource_guard_operations: list[ResourceGuardOperation] vaultCriticalOperationExclusionList: list[str] - vault_critical_operation_exclusion_list: list[str] class azure.mgmt.dataprotection.types.ResourceGuardOperation(TypedDict, total=False): key "requestResourceType": str key "vaultCriticalOperation": str - request_resource_type: str - vault_critical_operation: str + requestResourceType: str + vaultCriticalOperation: str class azure.mgmt.dataprotection.types.ResourceGuardOperationDetail(TypedDict, total=False): key "defaultResourceRequest": str key "vaultCriticalOperation": str - default_resource_request: str - vault_critical_operation: str + defaultResourceRequest: str + vaultCriticalOperation: str class azure.mgmt.dataprotection.types.ResourceGuardProxyBase(TypedDict, total=False): @@ -7065,10 +7122,9 @@ namespace azure.mgmt.dataprotection.types key "lastUpdatedTime": str key "resourceGuardResourceId": str description: str - last_updated_time: str + lastUpdatedTime: str resourceGuardOperationDetails: list[ResourceGuardOperationDetail] - resource_guard_operation_details: list[ResourceGuardOperationDetail] - resource_guard_resource_id: str + resourceGuardResourceId: str class azure.mgmt.dataprotection.types.ResourceGuardProxyBaseResource(ProxyResource): @@ -7080,7 +7136,7 @@ namespace azure.mgmt.dataprotection.types id: str name: str properties: ResourceGuardProxyBase - system_data: SystemData + systemData: SystemData type: str @@ -7092,27 +7148,35 @@ namespace azure.mgmt.dataprotection.types key "properties": ForwardRef('ResourceGuard', module='types') key "systemData": ForwardRef('SystemData', module='types') key "type": str - e_tag: str + eTag: str id: str location: str name: str properties: ResourceGuard - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str + class azure.mgmt.dataprotection.types.ResourceListSelectionCriteria(TypedDict, total=False): + key "objectType": Required[str] + key "resourceIdentifiers": Required[list[str]] + objectType: str + resourceIdentifiers: list[str] + resourceNameOverrides: dict[str, str] + + class azure.mgmt.dataprotection.types.ResourceMoveDetails(TypedDict, total=False): key "completionTimeUtc": str key "operationId": str key "sourceResourcePath": str key "startTimeUtc": str key "targetResourcePath": str - completion_time_utc: str - operation_id: str - source_resource_path: str - start_time_utc: str - target_resource_path: str + completionTimeUtc: str + operationId: str + sourceResourcePath: str + startTimeUtc: str + targetResourcePath: str class azure.mgmt.dataprotection.types.ResourcePropertiesObjectType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -7124,10 +7188,10 @@ namespace azure.mgmt.dataprotection.types key "recoveryOption": Required[Union[str, RecoveryOption]] key "restoreLocation": str key "targetDetails": Required[TargetDetails] - object_type: Literal[RestoreFilesTargetInfo] - recovery_option: Union[str, RecoveryOption] - restore_location: str - target_details: TargetDetails + objectType: Literal[RestoreFilesTargetInfo] + recoveryOption: Union[str, RecoveryOption] + restoreLocation: str + targetDetails: TargetDetails class azure.mgmt.dataprotection.types.RestoreTargetInfo(TypedDict, total=False): @@ -7137,61 +7201,55 @@ namespace azure.mgmt.dataprotection.types key "objectType": Required[Literal["RestoreTargetInfo"]] key "recoveryOption": Required[Union[str, RecoveryOption]] key "restoreLocation": str - datasource_auth_credentials: AuthCredentials - datasource_info: Datasource - datasource_set_info: DatasourceSet - object_type: Literal[RestoreTargetInfo] - recovery_option: Union[str, RecoveryOption] - restore_location: str + datasourceAuthCredentials: AuthCredentials + datasourceInfo: Datasource + datasourceSetInfo: DatasourceSet + objectType: Literal[RestoreTargetInfo] + recoveryOption: Union[str, RecoveryOption] + restoreLocation: str class azure.mgmt.dataprotection.types.RetentionTag(TypedDict, total=False): key "eTag": str key "id": str key "tagName": Required[str] - e_tag: str + eTag: str id: str - tag_name: str + tagName: str class azure.mgmt.dataprotection.types.ScheduleBasedBackupCriteria(TypedDict, total=False): key "objectType": Required[Literal["ScheduleBasedBackupCriteria"]] absoluteCriteria: list[Union[str, AbsoluteMarker]] - absolute_criteria: list[Union[str, AbsoluteMarker]] daysOfMonth: list[Day] daysOfTheWeek: list[Union[str, DayOfWeek]] - days_of_month: list[Day] - days_of_the_week: list[Union[str, DayOfWeek]] monthsOfYear: list[Union[str, Month]] - months_of_year: list[Union[str, Month]] - object_type: Literal[ScheduleBasedBackupCriteria] + objectType: Literal[ScheduleBasedBackupCriteria] scheduleTimes: list[str] - schedule_times: list[str] weeksOfTheMonth: list[Union[str, WeekNumber]] - weeks_of_the_month: list[Union[str, WeekNumber]] class azure.mgmt.dataprotection.types.ScheduleBasedTriggerContext(TypedDict, total=False): key "objectType": Required[Literal["ScheduleBasedTriggerContext"]] key "schedule": Required[BackupSchedule] key "taggingCriteria": Required[list[TaggingCriteria]] - object_type: Literal[ScheduleBasedTriggerContext] + objectType: Literal[ScheduleBasedTriggerContext] schedule: BackupSchedule - tagging_criteria: list[TaggingCriteria] + taggingCriteria: list[TaggingCriteria] class azure.mgmt.dataprotection.types.SecretStoreBasedAuthCredentials(TypedDict, total=False): key "objectType": Required[Literal["SecretStoreBasedAuthCredentials"]] key "secretStoreResource": ForwardRef('SecretStoreResource', module='types') - object_type: Literal[SecretStoreBasedAuthCredentials] - secret_store_resource: SecretStoreResource + objectType: Literal[SecretStoreBasedAuthCredentials] + secretStoreResource: SecretStoreResource class azure.mgmt.dataprotection.types.SecretStoreResource(TypedDict, total=False): key "secretStoreType": Required[Union[str, SecretStoreType]] key "uri": str key "value": str - secret_store_type: Union[str, SecretStoreType] + secretStoreType: Union[str, SecretStoreType] uri: str value: str @@ -7200,47 +7258,44 @@ namespace azure.mgmt.dataprotection.types key "encryptionSettings": ForwardRef('EncryptionSettings', module='types') key "immutabilitySettings": ForwardRef('ImmutabilitySettings', module='types') key "softDeleteSettings": ForwardRef('SoftDeleteSettings', module='types') - encryption_settings: EncryptionSettings - immutability_settings: ImmutabilitySettings - soft_delete_settings: SoftDeleteSettings + encryptionSettings: EncryptionSettings + immutabilitySettings: ImmutabilitySettings + softDeleteSettings: SoftDeleteSettings class azure.mgmt.dataprotection.types.SoftDeleteSettings(TypedDict, total=False): key "retentionDurationInDays": float key "state": Union[str, SoftDeleteState] - retention_duration_in_days: float + retentionDurationInDays: float state: Union[str, SoftDeleteState] class azure.mgmt.dataprotection.types.SourceLifeCycle(TypedDict, total=False): key "deleteAfter": Required[DeleteOption] key "sourceDataStore": Required[DataStoreInfoBase] - delete_after: DeleteOption - source_data_store: DataStoreInfoBase + deleteAfter: DeleteOption + sourceDataStore: DataStoreInfoBase targetDataStoreCopySettings: list[TargetCopySetting] - target_data_store_copy_settings: list[TargetCopySetting] class azure.mgmt.dataprotection.types.StopProtectionRequest(TypedDict, total=False): resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] class azure.mgmt.dataprotection.types.StorageSetting(TypedDict, total=False): key "datastoreType": Union[str, StorageSettingStoreTypes] key "type": Union[str, StorageSettingTypes] - datastore_type: Union[str, StorageSettingStoreTypes] + datastoreType: Union[str, StorageSettingStoreTypes] type: Union[str, StorageSettingTypes] class azure.mgmt.dataprotection.types.SuspendBackupRequest(TypedDict, total=False): resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] class azure.mgmt.dataprotection.types.SyncBackupInstanceRequest(TypedDict, total=False): key "syncType": Union[str, SyncType] - sync_type: Union[str, SyncType] + syncType: Union[str, SyncType] class azure.mgmt.dataprotection.types.SystemData(TypedDict, total=False): @@ -7250,12 +7305,12 @@ namespace azure.mgmt.dataprotection.types key "lastModifiedAt": str key "lastModifiedBy": str key "lastModifiedByType": Union[str, CreatedByType] - created_at: str - created_by: str - created_by_type: Union[str, CreatedByType] - last_modified_at: str - last_modified_by: str - last_modified_by_type: Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] class azure.mgmt.dataprotection.types.TaggingCriteria(TypedDict, total=False): @@ -7263,16 +7318,16 @@ namespace azure.mgmt.dataprotection.types key "tagInfo": Required[RetentionTag] key "taggingPriority": Required[int] criteria: list[BackupCriteria] - is_default: bool - tag_info: RetentionTag - tagging_priority: int + isDefault: bool + tagInfo: RetentionTag + taggingPriority: int class azure.mgmt.dataprotection.types.TargetCopySetting(TypedDict, total=False): key "copyAfter": Required[CopyOption] key "dataStore": Required[DataStoreInfoBase] - copy_after: CopyOption - data_store: DataStoreInfoBase + copyAfter: CopyOption + dataStore: DataStoreInfoBase class azure.mgmt.dataprotection.types.TargetDetails(TypedDict, total=False): @@ -7280,9 +7335,9 @@ namespace azure.mgmt.dataprotection.types key "restoreTargetLocationType": Required[Union[str, RestoreTargetLocationType]] key "targetResourceArmId": str key "url": Required[str] - file_prefix: str - restore_target_location_type: Union[str, RestoreTargetLocationType] - target_resource_arm_id: str + filePrefix: str + restoreTargetLocationType: Union[str, RestoreTargetLocationType] + targetResourceArmId: str url: str @@ -7295,28 +7350,27 @@ namespace azure.mgmt.dataprotection.types id: str location: str name: str - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str class azure.mgmt.dataprotection.types.TriggerBackupRequest(TypedDict, total=False): key "backupRuleOptions": Required[AdHocBackupRuleOptions] - backup_rule_options: AdHocBackupRuleOptions + backupRuleOptions: AdHocBackupRuleOptions class azure.mgmt.dataprotection.types.UnlockDeleteRequest(TypedDict, total=False): key "resourceToBeDeleted": str resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - resource_to_be_deleted: str + resourceToBeDeleted: str class azure.mgmt.dataprotection.types.UserAssignedIdentity(TypedDict, total=False): key "clientId": str key "principalId": str - client_id: str - principal_id: str + clientId: str + principalId: str class azure.mgmt.dataprotection.types.UserFacingError(TypedDict, total=False): @@ -7328,36 +7382,35 @@ namespace azure.mgmt.dataprotection.types key "target": str code: str details: list[UserFacingError] - inner_error: InnerError - is_retryable: bool - is_user_error: bool + innerError: InnerError + isRetryable: bool + isUserError: bool message: str properties: dict[str, str] recommendedAction: list[str] - recommended_action: list[str] target: str class azure.mgmt.dataprotection.types.ValidateCrossRegionRestoreRequestObject(TypedDict, total=False): key "crossRegionRestoreDetails": Required[CrossRegionRestoreDetails] key "restoreRequestObject": Required[AzureBackupRestoreRequest] - cross_region_restore_details: CrossRegionRestoreDetails - restore_request_object: AzureBackupRestoreRequest + crossRegionRestoreDetails: CrossRegionRestoreDetails + restoreRequestObject: AzureBackupRestoreRequest class azure.mgmt.dataprotection.types.ValidateForBackupRequest(TypedDict, total=False): key "backupInstance": Required[BackupInstance] - backup_instance: BackupInstance + backupInstance: BackupInstance class azure.mgmt.dataprotection.types.ValidateForModifyBackupRequest(TypedDict, total=False): key "backupInstance": Required[BackupInstance] - backup_instance: BackupInstance + backupInstance: BackupInstance class azure.mgmt.dataprotection.types.ValidateRestoreRequestObject(TypedDict, total=False): key "restoreRequestObject": Required[AzureBackupRestoreRequest] - restore_request_object: AzureBackupRestoreRequest + restoreRequestObject: AzureBackupRestoreRequest ``` \ No newline at end of file diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/api.metadata.yml b/sdk/dataprotection/azure-mgmt-dataprotection/api.metadata.yml index 5566ae6e172e..e13f30792db8 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/api.metadata.yml +++ b/sdk/dataprotection/azure-mgmt-dataprotection/api.metadata.yml @@ -1,3 +1,4 @@ -apiMdSha256: 0b3f8bf10ad7f032033798d7a814bcdea1171fc2b78bf2117b5b8f82543ab92b -parserVersion: 0.3.30 -pythonVersion: 3.13.14 +apiMdSha256: 5bab7527180d3e53b525a8462270a0538523fac79f0e9fba5edcc3958b8257f6 +packageVersion: 2.2.0 +parserVersion: 0.3.31 +pythonVersion: 3.13.15 diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/apiview-properties.json b/sdk/dataprotection/azure-mgmt-dataprotection/apiview-properties.json index 31da862d09c2..8bc6b65041fa 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/apiview-properties.json +++ b/sdk/dataprotection/azure-mgmt-dataprotection/apiview-properties.json @@ -59,6 +59,7 @@ "azure.mgmt.dataprotection.models.CmkKeyVaultProperties": "Microsoft.DataProtection.CmkKeyVaultProperties", "azure.mgmt.dataprotection.models.CopyOption": "Microsoft.DataProtection.CopyOption", "azure.mgmt.dataprotection.models.CopyOnExpiryOption": "Microsoft.DataProtection.CopyOnExpiryOption", + "azure.mgmt.dataprotection.models.CostManagementSettings": "Microsoft.DataProtection.CostManagementSettings", "azure.mgmt.dataprotection.models.CrossRegionRestoreDetails": "Microsoft.DataProtection.CrossRegionRestoreDetails", "azure.mgmt.dataprotection.models.CrossRegionRestoreJobRequest": "Microsoft.DataProtection.CrossRegionRestoreJobRequest", "azure.mgmt.dataprotection.models.CrossRegionRestoreJobsRequest": "Microsoft.DataProtection.CrossRegionRestoreJobsRequest", @@ -92,11 +93,13 @@ "azure.mgmt.dataprotection.models.FeatureValidationResponseBase": "Microsoft.DataProtection.FeatureValidationResponseBase", "azure.mgmt.dataprotection.models.FeatureValidationResponse": "Microsoft.DataProtection.FeatureValidationResponse", "azure.mgmt.dataprotection.models.FetchSecondaryRPsRequestParameters": "Microsoft.DataProtection.FetchSecondaryRPsRequestParameters", + "azure.mgmt.dataprotection.models.GenericBackupDatasourceParameters": "Microsoft.DataProtection.GenericBackupDatasourceParameters", + "azure.mgmt.dataprotection.models.ItemLevelRestoreCriteria": "Microsoft.DataProtection.ItemLevelRestoreCriteria", + "azure.mgmt.dataprotection.models.GenericRestoreDatasourceCriteria": "Microsoft.DataProtection.GenericRestoreDatasourceCriteria", "azure.mgmt.dataprotection.models.IdentityDetails": "Microsoft.DataProtection.IdentityDetails", "azure.mgmt.dataprotection.models.ImmediateCopyOption": "Microsoft.DataProtection.ImmediateCopyOption", "azure.mgmt.dataprotection.models.ImmutabilitySettings": "Microsoft.DataProtection.ImmutabilitySettings", "azure.mgmt.dataprotection.models.InnerError": "Microsoft.DataProtection.InnerError", - "azure.mgmt.dataprotection.models.ItemLevelRestoreCriteria": "Microsoft.DataProtection.ItemLevelRestoreCriteria", "azure.mgmt.dataprotection.models.RestoreTargetInfoBase": "Microsoft.DataProtection.RestoreTargetInfoBase", "azure.mgmt.dataprotection.models.ItemLevelRestoreTargetInfo": "Microsoft.DataProtection.ItemLevelRestoreTargetInfo", "azure.mgmt.dataprotection.models.ItemPathBasedRestoreCriteria": "Microsoft.DataProtection.ItemPathBasedRestoreCriteria", @@ -129,6 +132,7 @@ "azure.mgmt.dataprotection.models.ResourceGuardProxyBase": "Microsoft.DataProtection.ResourceGuardProxyBase", "azure.mgmt.dataprotection.models.ResourceGuardProxyBaseResource": "Microsoft.DataProtection.ResourceGuardProxyBaseResource", "azure.mgmt.dataprotection.models.ResourceGuardResource": "Microsoft.DataProtection.ResourceGuardResource", + "azure.mgmt.dataprotection.models.ResourceListSelectionCriteria": "Microsoft.DataProtection.ResourceListSelectionCriteria", "azure.mgmt.dataprotection.models.ResourceMoveDetails": "Microsoft.DataProtection.ResourceMoveDetails", "azure.mgmt.dataprotection.models.RestorableTimeRange": "Microsoft.DataProtection.RestorableTimeRange", "azure.mgmt.dataprotection.models.RestoreFilesTargetInfo": "Microsoft.DataProtection.RestoreFilesTargetInfo", @@ -181,6 +185,7 @@ "azure.mgmt.dataprotection.models.SourceDataStoreType": "Microsoft.DataProtection.SourceDataStoreType", "azure.mgmt.dataprotection.models.SyncType": "Microsoft.DataProtection.SyncType", "azure.mgmt.dataprotection.models.AlertsState": "Microsoft.DataProtection.AlertsState", + "azure.mgmt.dataprotection.models.GranularityLevel": "Microsoft.DataProtection.GranularityLevel", "azure.mgmt.dataprotection.models.ProvisioningState": "Microsoft.DataProtection.ProvisioningState", "azure.mgmt.dataprotection.models.ResourceMoveState": "Microsoft.DataProtection.ResourceMoveState", "azure.mgmt.dataprotection.models.SoftDeleteState": "Microsoft.DataProtection.SoftDeleteState", @@ -354,5 +359,5 @@ "azure.mgmt.dataprotection.operations.BackupInstancesExtensionRoutingOperations.list": "Microsoft.DataProtection.BackupInstancesExtensionRoutingOperationGroup.list", "azure.mgmt.dataprotection.aio.operations.BackupInstancesExtensionRoutingOperations.list": "Microsoft.DataProtection.BackupInstancesExtensionRoutingOperationGroup.list" }, - "CrossLanguageVersion": "6dd052749fec" + "CrossLanguageVersion": "cb99eef1dbd7" } \ No newline at end of file diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_client.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_client.py index 94472f4adfb5..df933c2a65ff 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_client.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -55,7 +56,7 @@ from azure.core.credentials import TokenCredential -class DataProtectionMgmtClient: # pylint: disable=too-many-instance-attributes +class DataProtectionMgmtClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Open API 2.0 Specs for Azure Data Protection service. :ivar data_protection_operations: DataProtectionOperationsOperations operations @@ -128,7 +129,7 @@ class DataProtectionMgmtClient: # pylint: disable=too-many-instance-attributes :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_configuration.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_configuration.py index 9f6f3a5446c9..9b1ea43c8cd6 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_configuration.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials import TokenCredential -class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes +class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for DataProtectionMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instanc :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-03-01") + api_version: str = kwargs.pop("api_version", "2026-06-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_patch.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_patch.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/model_base.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/model_base.py index 0f2c5bdfe70f..35d5fc024978 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/model_base.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/model_base.py @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/serialization.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/serialization.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_version.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_version.py index ccb75164d3bc..8abefc77cabd 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_version.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "2.1.0" +VERSION = "2.2.0" diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_client.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_client.py index ca3e1ad46243..36a0b86daf78 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_client.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_client.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -55,7 +56,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class DataProtectionMgmtClient: # pylint: disable=too-many-instance-attributes +class DataProtectionMgmtClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Open API 2.0 Specs for Azure Data Protection service. :ivar data_protection_operations: DataProtectionOperationsOperations operations @@ -128,7 +129,7 @@ class DataProtectionMgmtClient: # pylint: disable=too-many-instance-attributes :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_configuration.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_configuration.py index 033e368f25ce..84cc41db87a0 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_configuration.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes +class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for DataProtectionMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instanc :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2026-03-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-06-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2026-03-01") + api_version: str = kwargs.pop("api_version", "2026-06-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_patch.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_patch.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_operations.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_operations.py index b44ec8419a78..e3a151f0ccb4 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_operations.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_operations.py @@ -121,7 +121,7 @@ List = list -class DataProtectionOperationsOperations: +class DataProtectionOperationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -231,7 +231,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class BackupInstancesOperations: # pylint: disable=too-many-public-methods +class BackupInstancesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -2307,6 +2307,19 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-06-01", + params_added_on={ + "2026-06-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vault_name", + "backup_instance_name", + ] + }, + api_versions_list=["2026-06-01"], + ) async def _resume_protection_initial( self, resource_group_name: str, vault_name: str, backup_instance_name: str, **kwargs: Any ) -> AsyncIterator[bytes]: @@ -2372,6 +2385,19 @@ async def _resume_protection_initial( return deserialized # type: ignore @distributed_trace_async + @api_version_validation( + method_added_on="2026-06-01", + params_added_on={ + "2026-06-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vault_name", + "backup_instance_name", + ] + }, + api_versions_list=["2026-06-01"], + ) async def begin_resume_protection( self, resource_group_name: str, vault_name: str, backup_instance_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: @@ -3957,7 +3983,7 @@ def get_long_running_output(pipeline_response): ) -class BackupVaultOperationResultsOperations: +class BackupVaultOperationResultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4060,7 +4086,7 @@ async def get( return deserialized # type: ignore -class DeletedBackupVaultsOperations: +class DeletedBackupVaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4081,7 +4107,7 @@ def __init__(self, *args, **kwargs) -> None: @api_version_validation( method_added_on="2025-09-01", params_added_on={"2025-09-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "accept"]}, - api_versions_list=["2025-09-01", "2026-03-01"], + api_versions_list=["2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) async def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _models.DeletedBackupVaultResource: """Gets a deleted backup vault. @@ -4156,7 +4182,7 @@ async def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _m @api_version_validation( method_added_on="2025-09-01", params_added_on={"2025-09-01": ["api_version", "subscription_id", "location", "accept"]}, - api_versions_list=["2025-09-01", "2026-03-01"], + api_versions_list=["2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) def list_by_location(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.DeletedBackupVaultResource"]: """Lists deleted backup vaults by location. @@ -4255,7 +4281,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class ResourceGuardsOperations: +class ResourceGuardsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6022,7 +6048,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class BackupVaultsOperations: +class BackupVaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6111,7 +6137,7 @@ async def get(self, resource_group_name: str, vault_name: str, **kwargs: Any) -> @api_version_validation( params_added_on={"2025-09-01": ["x_ms_deleted_vault_id"]}, - api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01"], + api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) async def _create_or_update_initial( self, @@ -6304,7 +6330,7 @@ async def begin_create_or_update( @distributed_trace_async @api_version_validation( params_added_on={"2025-09-01": ["x_ms_deleted_vault_id"]}, - api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01"], + api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) async def begin_create_or_update( self, @@ -7146,7 +7172,7 @@ async def check_name_availability( return deserialized # type: ignore -class OperationStatusBackupVaultContextOperations: # pylint: disable=name-too-long +class OperationStatusBackupVaultContextOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -7239,7 +7265,7 @@ async def get( return deserialized # type: ignore -class ExportJobsOperations: +class ExportJobsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7372,7 +7398,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ExportJobsOperationResultOperations: +class ExportJobsOperationResultOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7469,7 +7495,7 @@ async def get( return deserialized # type: ignore -class BackupPoliciesOperations: +class BackupPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7914,7 +7940,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class RestorableTimeRangesOperations: +class RestorableTimeRangesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8124,7 +8150,7 @@ async def find( return deserialized # type: ignore -class RecoveryPointsOperations: +class RecoveryPointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8345,7 +8371,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class JobsOperations: +class JobsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8542,7 +8568,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DeletedBackupInstancesOperations: +class DeletedBackupInstancesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8863,7 +8889,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DppResourceGuardProxyOperations: +class DppResourceGuardProxyOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9509,7 +9535,7 @@ async def unlock_delete( return deserialized # type: ignore -class OperationResultOperations: +class OperationResultOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9609,7 +9635,7 @@ async def get(self, operation_id: str, location: str, **kwargs: Any) -> Optional return deserialized # type: ignore -class OperationStatusOperations: +class OperationStatusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9698,7 +9724,7 @@ async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models. return deserialized # type: ignore -class OperationStatusResourceGroupContextOperations: # pylint: disable=name-too-long +class OperationStatusResourceGroupContextOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -9788,7 +9814,7 @@ async def get(self, resource_group_name: str, operation_id: str, **kwargs: Any) return deserialized # type: ignore -class DataProtectionOperations: +class DataProtectionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9967,7 +9993,7 @@ async def check_feature_support( return deserialized # type: ignore -class FetchSecondaryRecoveryPointsOperations: +class FetchSecondaryRecoveryPointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10222,7 +10248,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class FetchCrossRegionRestoreJobOperations: +class FetchCrossRegionRestoreJobOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10411,7 +10437,7 @@ async def get( return deserialized # type: ignore -class FetchCrossRegionRestoreJobsOperations: +class FetchCrossRegionRestoreJobsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10647,7 +10673,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class BackupInstancesExtensionRoutingOperations: # pylint: disable=name-too-long +class BackupInstancesExtensionRoutingOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_patch.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_patch.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/aio/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/__init__.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/__init__.py index f9f30edc4fc2..c710595f9f7d 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/__init__.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/__init__.py @@ -65,6 +65,7 @@ CmkKeyVaultProperties, CopyOnExpiryOption, CopyOption, + CostManagementSettings, CrossRegionRestoreDetails, CrossRegionRestoreJobRequest, CrossRegionRestoreJobsRequest, @@ -101,6 +102,8 @@ FeatureValidationResponse, FeatureValidationResponseBase, FetchSecondaryRPsRequestParameters, + GenericBackupDatasourceParameters, + GenericRestoreDatasourceCriteria, IdentityDetails, ImmediateCopyOption, ImmutabilitySettings, @@ -139,6 +142,7 @@ ResourceGuardProxyBase, ResourceGuardProxyBaseResource, ResourceGuardResource, + ResourceListSelectionCriteria, ResourceMoveDetails, RestorableTimeRange, RestoreFilesTargetInfo, @@ -194,6 +198,7 @@ ExistingResourcePolicy, FeatureSupportStatus, FeatureType, + GranularityLevel, IdentityType, ImmutabilityState, InfrastructureEncryptionState, @@ -276,6 +281,7 @@ "CmkKeyVaultProperties", "CopyOnExpiryOption", "CopyOption", + "CostManagementSettings", "CrossRegionRestoreDetails", "CrossRegionRestoreJobRequest", "CrossRegionRestoreJobsRequest", @@ -312,6 +318,8 @@ "FeatureValidationResponse", "FeatureValidationResponseBase", "FetchSecondaryRPsRequestParameters", + "GenericBackupDatasourceParameters", + "GenericRestoreDatasourceCriteria", "IdentityDetails", "ImmediateCopyOption", "ImmutabilitySettings", @@ -350,6 +358,7 @@ "ResourceGuardProxyBase", "ResourceGuardProxyBaseResource", "ResourceGuardResource", + "ResourceListSelectionCriteria", "ResourceMoveDetails", "RestorableTimeRange", "RestoreFilesTargetInfo", @@ -402,6 +411,7 @@ "ExistingResourcePolicy", "FeatureSupportStatus", "FeatureType", + "GranularityLevel", "IdentityType", "ImmutabilityState", "InfrastructureEncryptionState", diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_enums.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_enums.py index 5d66b55a62ba..13af94da42b7 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_enums.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_enums.py @@ -223,6 +223,17 @@ class FeatureType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """DATA_SOURCE_TYPE.""" +class GranularityLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of GranularityLevel.""" + + VAULT_LEVEL = "VaultLevel" + """VAULT_LEVEL.""" + PROTECTED_ITEM_LEVEL = "ProtectedItemLevel" + """PROTECTED_ITEM_LEVEL.""" + PROTECTED_ITEM_WITH_PARENT_TAG = "ProtectedItemWithParentTag" + """PROTECTED_ITEM_WITH_PARENT_TAG.""" + + class IdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The identity type. 'SystemAssigned' and 'UserAssigned' are mutually exclusive. 'SystemAssigned' will use implicitly created managed identity. diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_models.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_models.py index 761dcb302318..503f502e72e4 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_models.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_models.py @@ -18,7 +18,7 @@ from .. import models as _models -class DeleteOption(_Model): +class DeleteOption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Delete Option. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -56,7 +56,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AbsoluteDeleteOption(DeleteOption, discriminator="AbsoluteDeleteOption"): +class AbsoluteDeleteOption( + DeleteOption, discriminator="AbsoluteDeleteOption" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Delete option with duration. :ivar duration: Duration of deletion after given timespan. Required. @@ -89,7 +91,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AbsoluteDeleteOption" # type: ignore -class AdHocBackupRuleOptions(_Model): +class AdHocBackupRuleOptions(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Adhoc backup rules. :ivar rule_name: Required. @@ -124,7 +126,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdhocBackupTriggerOption(_Model): +class AdhocBackupTriggerOption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Adhoc backup trigger option. :ivar retention_tag_override: @@ -153,7 +155,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdhocBasedTaggingCriteria(_Model): +class AdhocBasedTaggingCriteria(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Adhoc backup tagging criteria. :ivar tag_info: Retention tag information. @@ -183,7 +185,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TriggerContext(_Model): +class TriggerContext(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Trigger context. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -216,7 +218,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AdhocBasedTriggerContext(TriggerContext, discriminator="AdhocBasedTriggerContext"): +class AdhocBasedTriggerContext( + TriggerContext, discriminator="AdhocBasedTriggerContext" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Adhoc trigger context. :ivar tagging_criteria: Tagging Criteria containing retention tag for adhoc backup. Required. @@ -253,13 +257,13 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AdhocBasedTriggerContext" # type: ignore -class BackupDatasourceParameters(_Model): +class BackupDatasourceParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for Backup Datasource. You probably want to use the sub-classes and not this class directly. Known sub-classes are: AdlsBlobBackupDatasourceParameters, AdlsBlobBackupDatasourceParametersForAutoProtection, BlobBackupDatasourceParameters, BlobBackupDatasourceParametersForAutoProtection, - KubernetesClusterBackupDatasourceParameters + GenericBackupDatasourceParameters, KubernetesClusterBackupDatasourceParameters :ivar object_type: Type of the specific object - used for deserializing. Required. Default value is None. @@ -288,7 +292,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BlobBackupDatasourceParameters(BackupDatasourceParameters, discriminator="BlobBackupDatasourceParameters"): +class BlobBackupDatasourceParameters( + BackupDatasourceParameters, discriminator="BlobBackupDatasourceParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters to be used during configuration of backup of blobs. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -332,7 +338,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class AdlsBlobBackupDatasourceParameters( BlobBackupDatasourceParameters, discriminator="AdlsBlobBackupDatasourceParameters" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters to be used during configuration of backup of azure data lake storage account blobs. :ivar containers_list: List of containers to be backed up during configuration of backup of @@ -368,7 +374,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class AdlsBlobBackupDatasourceParametersForAutoProtection( BackupDatasourceParameters, discriminator="AdlsBlobBackupDatasourceParametersForAutoProtection" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Parameters to be used during configuration of backup of azure data lake storage account blobs using AutoProtection settings. @@ -407,7 +413,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AdlsBlobBackupDatasourceParametersForAutoProtection" # type: ignore -class AuthCredentials(_Model): +class AuthCredentials(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Base class for different types of authentication credentials. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -440,7 +446,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureBackupRecoveryPoint(_Model): +class AzureBackupRecoveryPoint(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure backup recoveryPoint. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -472,7 +478,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureBackupDiscreteRecoveryPoint(AzureBackupRecoveryPoint, discriminator="AzureBackupDiscreteRecoveryPoint"): +class AzureBackupDiscreteRecoveryPoint( + AzureBackupRecoveryPoint, discriminator="AzureBackupDiscreteRecoveryPoint" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure backup discrete RecoveryPoint. :ivar friendly_name: @@ -571,7 +579,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureBackupDiscreteRecoveryPoint" # type: ignore -class AzureBackupFindRestorableTimeRangesRequest(_Model): # pylint: disable=name-too-long +class AzureBackupFindRestorableTimeRangesRequest( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """List Restore Ranges Request. :ivar source_data_store_type: Gets or sets the type of the source data store. Required. Known @@ -614,7 +624,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureBackupFindRestorableTimeRangesResponse(_Model): # pylint: disable=name-too-long +class AzureBackupFindRestorableTimeRangesResponse( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """List Restore Ranges Response. :ivar restorable_time_ranges: Returns the Restore Ranges available on the Backup Instance. @@ -674,7 +686,9 @@ class DppResource(_Model): """Metadata pertaining to creation and last modification of the resource.""" -class AzureBackupFindRestorableTimeRangesResponseResource(DppResource): # pylint: disable=name-too-long +class AzureBackupFindRestorableTimeRangesResponseResource( + DppResource +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """List Restore Ranges Response. :ivar id: Resource Id represents the complete path to the resource. @@ -714,7 +728,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureBackupJob(_Model): +class AzureBackupJob(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """AzureBackup Job Class. :ivar activity_id: Job Activity Id. Required. @@ -960,7 +974,7 @@ class ProxyResource(Resource): """ -class AzureBackupJobResource(ProxyResource): +class AzureBackupJobResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """AzureBackup Job Resource Class. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1001,7 +1015,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BackupParameters(_Model): +class BackupParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BackupParameters base. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1034,7 +1048,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureBackupParams(BackupParameters, discriminator="AzureBackupParams"): +class AzureBackupParams( + BackupParameters, discriminator="AzureBackupParams" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure backup parameters. :ivar backup_type: BackupType ; Full/Incremental etc. Required. @@ -1069,7 +1085,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureBackupParams" # type: ignore -class AzureBackupRestoreRequest(_Model): +class AzureBackupRestoreRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure backup restore request. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1145,7 +1161,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class AzureBackupRecoveryPointBasedRestoreRequest( AzureBackupRestoreRequest, discriminator="AzureBackupRecoveryPointBasedRestoreRequest" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Azure backup recoveryPoint based restore request. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1203,7 +1219,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureBackupRecoveryPointBasedRestoreRequest" # type: ignore -class AzureBackupRecoveryPointResource(ProxyResource): +class AzureBackupRecoveryPointResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure backup recoveryPoint resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1246,7 +1262,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class AzureBackupRecoveryTimeBasedRestoreRequest( AzureBackupRestoreRequest, discriminator="AzureBackupRecoveryTimeBasedRestoreRequest" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """AzureBackup RecoveryPointTime Based Restore Request. :ivar restore_target_info: Gets or sets the restore target information. Required. @@ -1301,7 +1317,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureBackupRecoveryTimeBasedRestoreRequest" # type: ignore -class AzureBackupRehydrationRequest(_Model): +class AzureBackupRehydrationRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure Backup Rehydrate Request. :ivar recovery_point_id: Id of the recovery point to be recovered. Required. @@ -1350,7 +1366,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class AzureBackupRestoreWithRehydrationRequest( AzureBackupRecoveryPointBasedRestoreRequest, discriminator="AzureBackupRestoreWithRehydrationRequest" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """AzureBackup Restore with Rehydration Request. :ivar restore_target_info: Gets or sets the restore target information. Required. @@ -1417,7 +1433,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureBackupRestoreWithRehydrationRequest" # type: ignore -class BasePolicyRule(_Model): +class BasePolicyRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BasePolicy Rule. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1454,7 +1470,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureBackupRule(BasePolicyRule, discriminator="AzureBackupRule"): +class AzureBackupRule( + BasePolicyRule, discriminator="AzureBackupRule" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure backup rule. :ivar name: Required. @@ -1504,7 +1522,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureBackupRule" # type: ignore -class AzureMonitorAlertSettings(_Model): +class AzureMonitorAlertSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Settings for Azure Monitor based alerts. :ivar alerts_for_all_job_failures: Known values are: "Enabled" and "Disabled". @@ -1534,7 +1552,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataStoreParameters(_Model): +class DataStoreParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for DataStore. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1576,7 +1594,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AzureOperationalStoreParameters(DataStoreParameters, discriminator="AzureOperationalStoreParameters"): +class AzureOperationalStoreParameters( + DataStoreParameters, discriminator="AzureOperationalStoreParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for Operational-Tier DataStore. :ivar data_store_type: type of datastore; Operational/Vault/Archive. Required. Known values @@ -1617,7 +1637,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureOperationalStoreParameters" # type: ignore -class AzureRetentionRule(BasePolicyRule, discriminator="AzureRetentionRule"): +class AzureRetentionRule( + BasePolicyRule, discriminator="AzureRetentionRule" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Azure retention rule. :ivar name: Required. @@ -1659,7 +1681,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "AzureRetentionRule" # type: ignore -class BackupCriteria(_Model): +class BackupCriteria(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BackupCriteria base class. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1692,7 +1714,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BackupInstance(_Model): +class BackupInstance(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Backup Instance. :ivar friendly_name: Gets or sets the Backup Instance friendly name. @@ -1816,7 +1838,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BackupInstanceResource(ProxyResource): +class BackupInstanceResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """BackupInstance Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1862,7 +1884,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BaseBackupPolicy(_Model): +class BaseBackupPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """BackupPolicy base. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1901,7 +1923,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BackupPolicy(BaseBackupPolicy, discriminator="BackupPolicy"): +class BackupPolicy( + BaseBackupPolicy, discriminator="BackupPolicy" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Rule based backup policy. :ivar datasource_types: Type of datasource for the backup management. Required. @@ -1941,7 +1965,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "BackupPolicy" # type: ignore -class BackupSchedule(_Model): +class BackupSchedule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Schedule for backup. :ivar repeating_time_intervals: Repeating time intervals that define the backup schedule. Each @@ -2033,11 +2057,13 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BackupVault(_Model): +class BackupVault(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Backup Vault. :ivar monitoring_settings: Monitoring Settings. :vartype monitoring_settings: ~azure.mgmt.dataprotection.models.MonitoringSettings + :ivar cost_management_settings: Cost Management Settings of the vault. + :vartype cost_management_settings: ~azure.mgmt.dataprotection.models.CostManagementSettings :ivar provisioning_state: Provisioning state of the BackupVault resource. Known values are: "Failed", "Provisioning", "Succeeded", "Unknown", and "Updating". :vartype provisioning_state: str or ~azure.mgmt.dataprotection.models.ProvisioningState @@ -2072,6 +2098,10 @@ class BackupVault(_Model): name="monitoringSettings", visibility=["read", "create", "update", "delete", "query"] ) """Monitoring Settings.""" + cost_management_settings: Optional["_models.CostManagementSettings"] = rest_field( + name="costManagementSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Cost Management Settings of the vault.""" provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -2125,6 +2155,7 @@ def __init__( self, *, monitoring_settings: Optional["_models.MonitoringSettings"] = None, + cost_management_settings: Optional["_models.CostManagementSettings"] = None, security_settings: Optional["_models.SecuritySettings"] = None, storage_settings: Optional[list["_models.StorageSetting"]] = None, feature_settings: Optional["_models.FeatureSettings"] = None, @@ -2143,7 +2174,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResource(Resource): +class TrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2187,7 +2218,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BackupVaultResource(TrackedResource): +class BackupVaultResource(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Backup Vault Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2244,7 +2275,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BaseBackupPolicyResource(ProxyResource): +class BaseBackupPolicyResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """BaseBackupPolicy resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2285,7 +2316,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BaseResourceProperties(_Model): +class BaseResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties which are specific to datasource/datasourceSets. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -2318,7 +2349,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BlobBackupAutoProtectionRule(_Model): +class BlobBackupAutoProtectionRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Indicates a Blob Backup Auto Protection Rule. :ivar object_type: Type of the specific object - used for deserializing. Required. @@ -2367,7 +2398,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BlobBackupAutoProtectionSettings(_Model): +class BlobBackupAutoProtectionSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The settings for Blob Backup Auto Protection. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -2407,7 +2438,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class BlobBackupDatasourceParametersForAutoProtection( BackupDatasourceParameters, discriminator="BlobBackupDatasourceParametersForAutoProtection" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Paramters to be used during configuration of backup of blobs using AutoProtection settings. :ivar auto_protection_settings: AutoProtection settings. Required. @@ -2447,7 +2478,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class BlobBackupRuleBasedAutoProtectionSettings( BlobBackupAutoProtectionSettings, discriminator="BlobBackupRuleBasedAutoProtectionSettings" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Parameters to be used for Blob Backup Rule Based Auto Protection settings. :ivar enabled: Flag to enable whether auto protection. Required. @@ -2489,7 +2520,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "BlobBackupRuleBasedAutoProtectionSettings" # type: ignore -class CheckNameAvailabilityRequest(_Model): +class CheckNameAvailabilityRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CheckNameAvailability Request. :ivar name: Resource name for which availability needs to be checked. @@ -2522,7 +2553,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CheckNameAvailabilityResult(_Model): +class CheckNameAvailabilityResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CheckNameAvailability Result. :ivar message: Gets or sets the message. @@ -2562,7 +2593,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CloudError(_Model): +class CloudError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """An error response from Azure Backup. :ivar error: The resource management error response. @@ -2590,7 +2621,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CmkKekIdentity(_Model): +class CmkKekIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The details of the managed identity used for CMK. :ivar identity_type: The identity type. 'SystemAssigned' and 'UserAssigned' are mutually @@ -2633,7 +2664,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CmkKeyVaultProperties(_Model): +class CmkKeyVaultProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the Key Vault which hosts CMK. :ivar key_uri: The key uri of the Customer Managed Key. @@ -2661,7 +2692,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CopyOption(_Model): +class CopyOption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Options to copy. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -2723,7 +2754,39 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "CopyOnExpiryOption" # type: ignore -class CrossRegionRestoreDetails(_Model): +class CostManagementSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Cost Management Settings of the vault. + + :ivar granularity_level: Settings for granularity level. Known values are: "VaultLevel", + "ProtectedItemLevel", and "ProtectedItemWithParentTag". + :vartype granularity_level: str or ~azure.mgmt.dataprotection.models.GranularityLevel + """ + + granularity_level: Optional[Union[str, "_models.GranularityLevel"]] = rest_field( + name="granularityLevel", visibility=["read", "create", "update", "delete", "query"] + ) + """Settings for granularity level. Known values are: \"VaultLevel\", \"ProtectedItemLevel\", and + \"ProtectedItemWithParentTag\".""" + + @overload + def __init__( + self, + *, + granularity_level: Optional[Union[str, "_models.GranularityLevel"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CrossRegionRestoreDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cross Region Restore details. :ivar source_region: Required. @@ -2758,7 +2821,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CrossRegionRestoreJobRequest(_Model): +class CrossRegionRestoreJobRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of CRR Job to be fetched. :ivar source_region: Required. @@ -2798,7 +2861,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CrossRegionRestoreJobsRequest(_Model): +class CrossRegionRestoreJobsRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of Backup Vault for which CRR Jobs are to be fetched. :ivar source_region: Required. @@ -2833,7 +2896,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CrossRegionRestoreRequestObject(_Model): +class CrossRegionRestoreRequestObject(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cross Region Restore Request Object. :ivar restore_request_object: Gets or sets the restore request object. Required. @@ -2871,7 +2934,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CrossRegionRestoreSettings(_Model): +class CrossRegionRestoreSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CrossRegionRestoreSettings. :ivar state: CrossRegionRestore state. Known values are: "Disabled" and "Enabled". @@ -2901,7 +2964,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CrossSubscriptionRestoreSettings(_Model): +class CrossSubscriptionRestoreSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CrossSubscriptionRestore Settings. :ivar state: CrossSubscriptionRestore state. Known values are: "Disabled", @@ -2933,7 +2996,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CustomCopyOption(CopyOption, discriminator="CustomCopyOption"): +class CustomCopyOption( + CopyOption, discriminator="CustomCopyOption" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Duration based custom options to copy. :ivar duration: Data copied after given timespan. @@ -2968,7 +3033,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "CustomCopyOption" # type: ignore -class Datasource(_Model): +class Datasource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Datasource to be backed up. :ivar datasource_type: DatasourceType of the resource. @@ -3047,7 +3112,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DatasourceSet(_Model): +class DatasourceSet(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DatasourceSet details of datasource to be backed up. :ivar datasource_type: DatasourceType of the resource. @@ -3126,7 +3191,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataStoreInfoBase(_Model): +class DataStoreInfoBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DataStoreInfo base. :ivar data_store_type: type of datastore; Operational/Vault/Archive. Required. Known values @@ -3164,7 +3229,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Day(_Model): +class Day(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Day of the week. :ivar date: Date of the month. @@ -3225,7 +3290,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES # type: ignore -class DeletedBackupInstance(BackupInstance): +class DeletedBackupInstance(BackupInstance): # pylint: disable=docstring-keyword-should-match-keyword-only """Deleted Backup Instance. :ivar friendly_name: Gets or sets the Backup Instance friendly name. @@ -3298,7 +3363,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeletedBackupInstanceResource(ProxyResource): +class DeletedBackupInstanceResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Deleted Backup Instance. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3339,11 +3404,13 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeletedBackupVault(_Model): +class DeletedBackupVault(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Deleted Backup Vault - uses composition with BackupVault and additional deletion metadata. :ivar monitoring_settings: Monitoring Settings. :vartype monitoring_settings: ~azure.mgmt.dataprotection.models.MonitoringSettings + :ivar cost_management_settings: Cost Management Settings of the vault. + :vartype cost_management_settings: ~azure.mgmt.dataprotection.models.CostManagementSettings :ivar provisioning_state: Provisioning state of the BackupVault resource. Known values are: "Failed", "Provisioning", "Succeeded", "Unknown", and "Updating". :vartype provisioning_state: str or ~azure.mgmt.dataprotection.models.ProvisioningState @@ -3387,6 +3454,10 @@ class DeletedBackupVault(_Model): name="monitoringSettings", visibility=["read", "create", "update", "delete", "query"] ) """Monitoring Settings.""" + cost_management_settings: Optional["_models.CostManagementSettings"] = rest_field( + name="costManagementSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Cost Management Settings of the vault.""" provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( name="provisioningState", visibility=["read"] ) @@ -3450,6 +3521,7 @@ def __init__( self, *, monitoring_settings: Optional["_models.MonitoringSettings"] = None, + cost_management_settings: Optional["_models.CostManagementSettings"] = None, security_settings: Optional["_models.SecuritySettings"] = None, storage_settings: Optional[list["_models.StorageSetting"]] = None, feature_settings: Optional["_models.FeatureSettings"] = None, @@ -3468,7 +3540,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeletedBackupVaultResource(ProxyResource): +class DeletedBackupVaultResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Deleted Backup Vault Resource (available from version 2025-09-01). :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3549,7 +3621,7 @@ class DppBaseResource(ProxyResource): """ -class DppIdentityDetails(_Model): +class DppIdentityDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity details. :ivar principal_id: The object ID of the service principal object for the managed identity that @@ -3599,7 +3671,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DppResourceList(_Model): +class DppResourceList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ListResource. :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page @@ -3628,7 +3700,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DppTrackedResourceList(_Model): +class DppTrackedResourceList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DppTrackedResourceList. :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page @@ -3657,7 +3729,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class EncryptionSettings(_Model): +class EncryptionSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Customer Managed Key details of the resource. :ivar state: Encryption state of the Backup Vault. Known values are: "Enabled", "Disabled", and @@ -3785,7 +3857,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -3836,7 +3908,7 @@ class ExportJobsResult(_Model): """SAS key to access the ExcelFile blob.""" -class FeatureSettings(_Model): +class FeatureSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class containing feature settings of vault. :ivar cross_subscription_restore_settings: CrossSubscriptionRestore Settings. @@ -3874,7 +3946,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FeatureValidationRequestBase(_Model): +class FeatureValidationRequestBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Base class for Backup Feature support. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -3907,7 +3979,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FeatureValidationRequest(FeatureValidationRequestBase, discriminator="FeatureValidationRequest"): +class FeatureValidationRequest( + FeatureValidationRequestBase, discriminator="FeatureValidationRequest" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Base class for feature object. :ivar feature_type: backup support feature type. Known values are: "Invalid" and @@ -3952,7 +4026,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "FeatureValidationRequest" # type: ignore -class FeatureValidationResponseBase(_Model): +class FeatureValidationResponseBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Base class for Backup Feature support. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -3985,7 +4059,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FeatureValidationResponse(FeatureValidationResponseBase, discriminator="FeatureValidationResponse"): +class FeatureValidationResponse( + FeatureValidationResponseBase, discriminator="FeatureValidationResponse" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Feature Validation Response. :ivar feature_type: backup support feature type. Known values are: "Invalid" and @@ -4030,7 +4106,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "FeatureValidationResponse" # type: ignore -class FetchSecondaryRPsRequestParameters(_Model): +class FetchSecondaryRPsRequestParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about BI whose secondary RecoveryPoints are requested Source region and BI ARM path. @@ -4068,7 +4144,122 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IdentityDetails(_Model): +class GenericBackupDatasourceParameters( + BackupDatasourceParameters, discriminator="GenericBackupDatasourceParameters" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Generic parameters to be used during configuration of backup. + + :ivar resource_selectors: List of resource selectors to be backed up during configuration of + backup. Required. + :vartype resource_selectors: list[str] + :ivar object_type: Type of the specific object - used for deserializing. Required. Default + value is "GenericBackupDatasourceParameters". + :vartype object_type: str + """ + + resource_selectors: list[str] = rest_field( + name="resourceSelectors", visibility=["read", "create", "update", "delete", "query"] + ) + """List of resource selectors to be backed up during configuration of backup. Required.""" + object_type: Literal["GenericBackupDatasourceParameters"] = rest_discriminator(name="objectType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the specific object - used for deserializing. Required. Default value is + \"GenericBackupDatasourceParameters\".""" + + @overload + def __init__( + self, + *, + resource_selectors: list[str], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.object_type = "GenericBackupDatasourceParameters" # type: ignore + + +class ItemLevelRestoreCriteria(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Class to contain criteria for item level restore. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + GenericRestoreDatasourceCriteria, ItemPathBasedRestoreCriteria, + KubernetesClusterRestoreCriteria, KubernetesClusterVaultTierRestoreCriteria, + KubernetesPVRestoreCriteria, KubernetesStorageClassRestoreCriteria, + RangeBasedItemLevelRestoreCriteria + + :ivar object_type: Type of the specific object - used for deserializing. Required. Default + value is None. + :vartype object_type: str + """ + + __mapping__: dict[str, _Model] = {} + object_type: str = rest_discriminator(name="objectType", visibility=["read", "create", "update", "delete", "query"]) + """Type of the specific object - used for deserializing. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + object_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GenericRestoreDatasourceCriteria( + ItemLevelRestoreCriteria, discriminator="GenericRestoreDatasourceCriteria" +): # pylint: disable=docstring-keyword-should-match-keyword-only + """Generic criteria to be used during restore. + + :ivar resource_selectors: List of resource identifiers that need to be restored. Required. + :vartype resource_selectors: ~azure.mgmt.dataprotection.models.ResourceListSelectionCriteria + :ivar object_type: Type of the specific object - used for deserializing. Required. Default + value is "GenericRestoreDatasourceCriteria". + :vartype object_type: str + """ + + resource_selectors: "_models.ResourceListSelectionCriteria" = rest_field( + name="resourceSelectors", visibility=["read", "create", "update", "delete", "query"] + ) + """List of resource identifiers that need to be restored. Required.""" + object_type: Literal["GenericRestoreDatasourceCriteria"] = rest_discriminator(name="objectType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of the specific object - used for deserializing. Required. Default value is + \"GenericRestoreDatasourceCriteria\".""" + + @overload + def __init__( + self, + *, + resource_selectors: "_models.ResourceListSelectionCriteria", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.object_type = "GenericRestoreDatasourceCriteria" # type: ignore + + +class IdentityDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """IdentityDetails. :ivar use_system_assigned_identity: Specifies if the BI is protected by System Identity. @@ -4134,7 +4325,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "ImmediateCopyOption" # type: ignore -class ImmutabilitySettings(_Model): +class ImmutabilitySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Immutability Settings at vault level. :ivar state: Immutability state. Known values are: "Disabled", "Unlocked", and "Locked". @@ -4164,7 +4355,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InnerError(_Model): +class InnerError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Inner Error. :ivar additional_info: Any Key value pairs that can be provided to the client for additional @@ -4207,42 +4398,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ItemLevelRestoreCriteria(_Model): - """Class to contain criteria for item level restore. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ItemPathBasedRestoreCriteria, KubernetesClusterRestoreCriteria, - KubernetesClusterVaultTierRestoreCriteria, KubernetesPVRestoreCriteria, - KubernetesStorageClassRestoreCriteria, RangeBasedItemLevelRestoreCriteria - - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is None. - :vartype object_type: str - """ - - __mapping__: dict[str, _Model] = {} - object_type: str = rest_discriminator(name="objectType", visibility=["read", "create", "update", "delete", "query"]) - """Type of the specific object - used for deserializing. Required. Default value is None.""" - - @overload - def __init__( - self, - *, - object_type: str, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, **kwargs) - - -class RestoreTargetInfoBase(_Model): +class RestoreTargetInfoBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Base class common to RestoreTargetInfo and RestoreFilesTargetInfo. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -4290,7 +4446,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ItemLevelRestoreTargetInfo(RestoreTargetInfoBase, discriminator="ItemLevelRestoreTargetInfo"): +class ItemLevelRestoreTargetInfo( + RestoreTargetInfoBase, discriminator="ItemLevelRestoreTargetInfo" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Restore target info for Item level restore operation. :ivar recovery_option: Recovery Option. Required. "FailIfExists" @@ -4355,7 +4513,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "ItemLevelRestoreTargetInfo" # type: ignore -class ItemPathBasedRestoreCriteria(ItemLevelRestoreCriteria, discriminator="ItemPathBasedRestoreCriteria"): +class ItemPathBasedRestoreCriteria( + ItemLevelRestoreCriteria, discriminator="ItemPathBasedRestoreCriteria" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Prefix criteria to be used to during restore. :ivar item_path: The path of the item to be restored. It could be the full path of the item or @@ -4416,7 +4576,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "ItemPathBasedRestoreCriteria" # type: ignore -class JobExtendedInfo(_Model): +class JobExtendedInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Extended Information about the job. :ivar additional_details: Job's Additional Details. @@ -4480,7 +4640,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class JobSubTask(_Model): +class JobSubTask(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of Job's Sub Task. :ivar additional_details: Additional details of Sub Tasks. @@ -4531,7 +4691,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class KubernetesClusterBackupDatasourceParameters( BackupDatasourceParameters, discriminator="KubernetesClusterBackupDatasourceParameters" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Parameters for Kubernetes Cluster Backup Datasource. :ivar snapshot_volumes: Gets or sets the volume snapshot property. This property if enabled @@ -4642,7 +4802,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "KubernetesClusterBackupDatasourceParameters" # type: ignore -class KubernetesClusterRestoreCriteria(ItemLevelRestoreCriteria, discriminator="KubernetesClusterRestoreCriteria"): +class KubernetesClusterRestoreCriteria( + ItemLevelRestoreCriteria, discriminator="KubernetesClusterRestoreCriteria" +): # pylint: disable=docstring-keyword-should-match-keyword-only """kubernetes Cluster Backup target info for restore operation. :ivar include_cluster_scope_resources: Gets or sets the include cluster resources property. @@ -4777,7 +4939,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class KubernetesClusterVaultTierRestoreCriteria( ItemLevelRestoreCriteria, discriminator="KubernetesClusterVaultTierRestoreCriteria" -): # pylint: disable=name-too-long +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """kubernetes Cluster Backup target info for restore operation from vault. :ivar include_cluster_scope_resources: Gets or sets the include cluster resources property. @@ -4929,7 +5091,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "KubernetesClusterVaultTierRestoreCriteria" # type: ignore -class KubernetesPVRestoreCriteria(ItemLevelRestoreCriteria, discriminator="KubernetesPVRestoreCriteria"): +class KubernetesPVRestoreCriteria( + ItemLevelRestoreCriteria, discriminator="KubernetesPVRestoreCriteria" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Item Level kubernetes persistent volume target info for restore operation. :ivar name: Selected persistent volume claim name. @@ -4973,7 +5137,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class KubernetesStorageClassRestoreCriteria( ItemLevelRestoreCriteria, discriminator="KubernetesStorageClassRestoreCriteria" -): +): # pylint: disable=docstring-keyword-should-match-keyword-only """Item Level kubernetes storage class target info for restore operation. :ivar selected_storage_class_name: Selected storage class name. @@ -5015,7 +5179,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "KubernetesStorageClassRestoreCriteria" # type: ignore -class MonitoringSettings(_Model): +class MonitoringSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Monitoring Settings. :ivar azure_monitor_alert_settings: Settings for Azure Monitor based alerts. @@ -5046,7 +5210,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NamespacedNameResource(_Model): +class NamespacedNameResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class to refer resources which contains namespace and name. :ivar name: Name of the resource. @@ -5079,7 +5243,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Operation(_Model): +class Operation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """REST API Operation. :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: @@ -5167,7 +5331,7 @@ class OperationDisplay(_Model): views.""" -class OperationExtendedInfo(_Model): +class OperationExtendedInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Operation Extended Info. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -5201,7 +5365,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationJobExtendedInfo(OperationExtendedInfo, discriminator="OperationJobExtendedInfo"): +class OperationJobExtendedInfo( + OperationExtendedInfo, discriminator="OperationJobExtendedInfo" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Operation Job Extended Info. :ivar job_id: Name or Arm Id of the job created for this operation. @@ -5236,7 +5402,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "OperationJobExtendedInfo" # type: ignore -class OperationResource(_Model): +class OperationResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Operation Resource. :ivar end_time: End time of the operation. @@ -5305,7 +5471,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PatchBackupVaultInput(_Model): +class PatchBackupVaultInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Backup Vault Contract for Patch Backup Vault API. :ivar monitoring_settings: Monitoring Settings. @@ -5314,6 +5480,8 @@ class PatchBackupVaultInput(_Model): :vartype security_settings: ~azure.mgmt.dataprotection.models.SecuritySettings :ivar feature_settings: Feature Settings. :vartype feature_settings: ~azure.mgmt.dataprotection.models.FeatureSettings + :ivar cost_management_settings: Cost Management Settings of the vault. + :vartype cost_management_settings: ~azure.mgmt.dataprotection.models.CostManagementSettings :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will be performed. :vartype resource_guard_operation_requests: list[str] @@ -5331,6 +5499,10 @@ class PatchBackupVaultInput(_Model): name="featureSettings", visibility=["read", "create", "update", "delete", "query"] ) """Feature Settings.""" + cost_management_settings: Optional["_models.CostManagementSettings"] = rest_field( + name="costManagementSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Cost Management Settings of the vault.""" resource_guard_operation_requests: Optional[list[str]] = rest_field( name="resourceGuardOperationRequests", visibility=["read", "create", "update", "delete", "query"] ) @@ -5343,6 +5515,7 @@ def __init__( monitoring_settings: Optional["_models.MonitoringSettings"] = None, security_settings: Optional["_models.SecuritySettings"] = None, feature_settings: Optional["_models.FeatureSettings"] = None, + cost_management_settings: Optional["_models.CostManagementSettings"] = None, resource_guard_operation_requests: Optional[list[str]] = None, ) -> None: ... @@ -5357,7 +5530,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PatchResourceGuardInput(_Model): +class PatchResourceGuardInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Patch Request content for Microsoft.DataProtection Resource Guard resources. :ivar tags: Resource Guard tags. @@ -5385,7 +5558,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PatchResourceRequestInput(_Model): +class PatchResourceRequestInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Patch Request content for Microsoft.DataProtection resources. :ivar identity: Input Managed Identity Details. @@ -5427,7 +5600,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PolicyInfo(_Model): +class PolicyInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Policy Info in backupInstance. :ivar policy_id: Required. @@ -5465,7 +5638,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PolicyParameters(_Model): +class PolicyParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters in Policy. :ivar data_store_parameters_list: Gets or sets the DataStore Parameters. @@ -5504,7 +5677,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProtectionStatusDetails(_Model): +class ProtectionStatusDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Protection status details. :ivar error_details: Specifies the protection status error of the resource. @@ -5545,7 +5718,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RangeBasedItemLevelRestoreCriteria(ItemLevelRestoreCriteria, discriminator="RangeBasedItemLevelRestoreCriteria"): +class RangeBasedItemLevelRestoreCriteria( + ItemLevelRestoreCriteria, discriminator="RangeBasedItemLevelRestoreCriteria" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Item Level target info for restore operation. :ivar min_matching_value: minimum value for range prefix match. @@ -5589,7 +5764,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "RangeBasedItemLevelRestoreCriteria" # type: ignore -class RecoveryPointDataStoreDetails(_Model): +class RecoveryPointDataStoreDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RecoveryPoint datastore details. :ivar creation_time: @@ -5680,7 +5855,7 @@ class ResourceDeletionInfo(_Model): """Delete activity ID for troubleshooting the deletion of the tracked resource.""" -class ResourceGuard(_Model): +class ResourceGuard(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceGuard. :ivar provisioning_state: Provisioning state of the BackupVault resource. Known values are: @@ -5750,7 +5925,7 @@ class ResourceGuardOperation(_Model): """Type of resource request.""" -class ResourceGuardOperationDetail(_Model): +class ResourceGuardOperationDetail(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """VaultCritical Operation protected by a resource guard. :ivar vault_critical_operation: @@ -5785,7 +5960,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceGuardProxyBase(_Model): +class ResourceGuardProxyBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceGuardProxyBase object, used in ResourceGuardProxyBaseResource. :ivar resource_guard_resource_id: @@ -5831,7 +6006,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceGuardProxyBaseResource(ProxyResource): +class ResourceGuardProxyBaseResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs. @@ -5873,7 +6048,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceGuardResource(TrackedResource): +class ResourceGuardResource(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Concrete tracked resource types can be created by aliasing this type using a specific property type. @@ -5926,7 +6101,52 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceMoveDetails(_Model): +class ResourceListSelectionCriteria(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Specifies the list of resources to be restored. + + :ivar object_type: Type of the specific object - used for deserializing. Required. + :vartype object_type: str + :ivar resource_identifiers: List of resource identifiers to restore from. Required. + :vartype resource_identifiers: list[str] + :ivar resource_name_overrides: This is a map of source resource names to target resources names + to restore into. Any source name not included in the map will be restored with a default naming + format. + :vartype resource_name_overrides: dict[str, str] + """ + + object_type: str = rest_field(name="objectType", visibility=["read", "create", "update", "delete", "query"]) + """Type of the specific object - used for deserializing. Required.""" + resource_identifiers: list[str] = rest_field( + name="resourceIdentifiers", visibility=["read", "create", "update", "delete", "query"] + ) + """List of resource identifiers to restore from. Required.""" + resource_name_overrides: Optional[dict[str, str]] = rest_field( + name="resourceNameOverrides", visibility=["read", "create", "update", "delete", "query"] + ) + """This is a map of source resource names to target resources names to restore into. Any source + name not included in the map will be restored with a default naming format.""" + + @overload + def __init__( + self, + *, + object_type: str, + resource_identifiers: list[str], + resource_name_overrides: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ResourceMoveDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ResourceMoveDetails will be returned in response to GetResource call from ARM. :ivar operation_id: CorrelationId of latest ResourceMove operation attempted. @@ -5987,7 +6207,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestorableTimeRange(_Model): +class RestorableTimeRange(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RestorableTimeRange. :ivar start_time: Start time for the available restore range. Required. @@ -6026,7 +6246,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestoreFilesTargetInfo(RestoreTargetInfoBase, discriminator="RestoreFilesTargetInfo"): +class RestoreFilesTargetInfo( + RestoreTargetInfoBase, discriminator="RestoreFilesTargetInfo" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Class encapsulating restore as files target parameters. :ivar recovery_option: Recovery Option. Required. "FailIfExists" @@ -6070,7 +6292,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "RestoreFilesTargetInfo" # type: ignore -class RestoreJobRecoveryPointDetails(_Model): +class RestoreJobRecoveryPointDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RestoreJobRecoveryPointDetails. :ivar recovery_point_id: @@ -6105,7 +6327,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestoreTargetInfo(RestoreTargetInfoBase, discriminator="RestoreTargetInfo"): +class RestoreTargetInfo( + RestoreTargetInfoBase, discriminator="RestoreTargetInfo" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Class encapsulating restore target parameters. :ivar recovery_option: Recovery Option. Required. "FailIfExists" @@ -6163,7 +6387,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "RestoreTargetInfo" # type: ignore -class RetentionTag(_Model): +class RetentionTag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Retention tag. :ivar e_tag: Retention Tag version. @@ -6199,7 +6423,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ScheduleBasedBackupCriteria(BackupCriteria, discriminator="ScheduleBasedBackupCriteria"): +class ScheduleBasedBackupCriteria( + BackupCriteria, discriminator="ScheduleBasedBackupCriteria" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Schedule based backup criteria. :ivar absolute_criteria: it contains absolute values like "AllBackup" / "FirstOfDay" / @@ -6273,7 +6499,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "ScheduleBasedBackupCriteria" # type: ignore -class ScheduleBasedTriggerContext(TriggerContext, discriminator="ScheduleBasedTriggerContext"): +class ScheduleBasedTriggerContext( + TriggerContext, discriminator="ScheduleBasedTriggerContext" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Schedule based trigger context. :ivar schedule: Schedule for this backup. Required. @@ -6315,7 +6543,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "ScheduleBasedTriggerContext" # type: ignore -class SecretStoreBasedAuthCredentials(AuthCredentials, discriminator="SecretStoreBasedAuthCredentials"): +class SecretStoreBasedAuthCredentials( + AuthCredentials, discriminator="SecretStoreBasedAuthCredentials" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Secret store based authentication credentials. :ivar secret_store_resource: Secret store resource. @@ -6352,7 +6582,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.object_type = "SecretStoreBasedAuthCredentials" # type: ignore -class SecretStoreResource(_Model): +class SecretStoreResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class representing a secret store resource. :ivar uri: Uri to get to the resource. @@ -6394,7 +6624,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SecuritySettings(_Model): +class SecuritySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class containing security settings of vault. :ivar soft_delete_settings: Soft delete related settings. @@ -6438,7 +6668,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SoftDeleteSettings(_Model): +class SoftDeleteSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Soft delete related settings. :ivar state: State of soft delete. Known values are: "Off", "On", and "AlwaysOn". @@ -6475,7 +6705,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SourceLifeCycle(_Model): +class SourceLifeCycle(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Source LifeCycle. :ivar delete_after: Delete Option. Required. @@ -6519,7 +6749,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StopProtectionRequest(_Model): +class StopProtectionRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body of Stop protection when MUA is Enabled. :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will @@ -6550,7 +6780,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSetting(_Model): +class StorageSetting(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Storage setting. :ivar datastore_type: Gets or sets the type of the datastore. Known values are: "ArchiveStore", @@ -6591,7 +6821,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SupportedFeature(_Model): +class SupportedFeature(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Elements class for feature request. :ivar feature_name: support feature type. @@ -6637,7 +6867,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SuspendBackupRequest(_Model): +class SuspendBackupRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body of Suspend backup when MUA is Enabled. :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will @@ -6668,7 +6898,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SyncBackupInstanceRequest(_Model): +class SyncBackupInstanceRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Sync BackupInstance Request. :ivar sync_type: Field indicating sync type e.g. to sync only in case of failure or in all @@ -6700,7 +6930,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -6767,7 +6997,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TaggingCriteria(_Model): +class TaggingCriteria(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Tagging criteria. :ivar criteria: Criteria which decides whether the tag can be applied to a triggered backup. @@ -6816,7 +7046,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TargetCopySetting(_Model): +class TargetCopySetting(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Target copy settings. :ivar copy_after: It can be CustomCopyOption or ImmediateCopyOption. Required. @@ -6853,7 +7083,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TargetDetails(_Model): +class TargetDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class encapsulating target details, used where the destination is not a datasource. :ivar file_prefix: Restore operation may create multiple files inside location pointed by Url @@ -6915,7 +7145,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TriggerBackupRequest(_Model): +class TriggerBackupRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Trigger backup request. :ivar backup_rule_options: Name for the Rule of the Policy which needs to be applied for this @@ -6946,7 +7176,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UnlockDeleteRequest(_Model): +class UnlockDeleteRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body of unlock delete API. :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will @@ -6983,7 +7213,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UnlockDeleteResponse(_Model): +class UnlockDeleteResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Response of Unlock Delete API. :ivar unlock_delete_expiry_time: This is the time when unlock delete privileges will get @@ -7029,7 +7259,7 @@ class UserAssignedIdentity(_Model): """The client ID of the assigned identity.""" -class UserFacingError(_Model): +class UserFacingError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error object used by layers that have access to localized content, and propagate that to user. :ivar code: Unique code for this error. @@ -7106,7 +7336,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserFacingWarningDetail(_Model): +class UserFacingWarningDetail(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Warning object used by layers that have access to localized content, and propagate that to user. @@ -7142,7 +7372,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ValidateCrossRegionRestoreRequestObject(_Model): +class ValidateCrossRegionRestoreRequestObject(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Cross Region Restore Request Object. :ivar restore_request_object: Gets or sets the restore request object. Required. @@ -7180,7 +7410,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ValidateForBackupRequest(_Model): +class ValidateForBackupRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Validate for backup request. :ivar backup_instance: Backup Instance. Required. @@ -7210,7 +7440,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ValidateForModifyBackupRequest(_Model): +class ValidateForModifyBackupRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Validate for modify backup request. :ivar backup_instance: Backup Instance. Required. @@ -7240,7 +7470,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ValidateRestoreRequestObject(_Model): +class ValidateRestoreRequestObject(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Validate restore request object. :ivar restore_request_object: Gets or sets the restore request object. Required. diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_patch.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_patch.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/models/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_operations.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_operations.py index 91b1809692be..aa4640710147 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_operations.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_operations.py @@ -50,7 +50,7 @@ def build_data_protection_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -76,7 +76,7 @@ def build_backup_instances_get_backup_instance_operation_result_request( # pyli _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -106,7 +106,7 @@ def build_backup_instances_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -135,7 +135,7 @@ def build_backup_instances_validate_for_backup_request( # pylint: disable=name- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -165,7 +165,7 @@ def build_backup_instances_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -201,7 +201,7 @@ def build_backup_instances_create_or_update_request( # pylint: disable=name-too _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -242,7 +242,7 @@ def build_backup_instances_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" path_format_arguments = { @@ -273,7 +273,7 @@ def build_backup_instances_adhoc_backup_request( # pylint: disable=name-too-lon _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -305,7 +305,7 @@ def build_backup_instances_validate_for_modify_backup_request( # pylint: disabl _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateForModifyBackup" path_format_arguments = { @@ -334,7 +334,7 @@ def build_backup_instances_trigger_rehydrate_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/rehydrate" path_format_arguments = { @@ -369,7 +369,7 @@ def build_backup_instances_trigger_restore_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -403,7 +403,7 @@ def build_backup_instances_resume_backups_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups" path_format_arguments = { @@ -426,7 +426,7 @@ def build_backup_instances_resume_protection_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection" path_format_arguments = { @@ -457,7 +457,7 @@ def build_backup_instances_stop_protection_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection" path_format_arguments = { @@ -496,7 +496,7 @@ def build_backup_instances_suspend_backups_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups" path_format_arguments = { @@ -529,7 +529,7 @@ def build_backup_instances_sync_backup_instance_request( # pylint: disable=name _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync" path_format_arguments = { @@ -558,7 +558,7 @@ def build_backup_instances_validate_for_restore_request( # pylint: disable=name _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -590,7 +590,7 @@ def build_backup_instances_trigger_cross_region_restore_request( # pylint: disa _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -621,7 +621,7 @@ def build_backup_instances_validate_cross_region_restore_request( # pylint: dis _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -651,7 +651,7 @@ def build_backup_vault_operation_results_get_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -680,7 +680,7 @@ def build_deleted_backup_vaults_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -708,7 +708,7 @@ def build_deleted_backup_vaults_list_by_location_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -735,7 +735,7 @@ def build_resource_guards_get_default_delete_resource_guard_proxy_requests_objec _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -764,7 +764,7 @@ def build_resource_guards_get_delete_resource_guard_proxy_requests_objects_reque _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -792,7 +792,7 @@ def build_resource_guards_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -821,7 +821,7 @@ def build_resource_guards_put_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -852,7 +852,7 @@ def build_resource_guards_patch_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -881,7 +881,7 @@ def build_resource_guards_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" path_format_arguments = { @@ -904,7 +904,7 @@ def build_resource_guards_get_resources_in_resource_group_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -931,7 +931,7 @@ def build_resource_guards_get_resources_in_subscription_request( # pylint: disa _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -957,7 +957,7 @@ def build_resource_guards_get_default_disable_soft_delete_requests_object_reques _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -986,7 +986,7 @@ def build_resource_guards_get_disable_soft_delete_requests_objects_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1014,7 +1014,7 @@ def build_resource_guards_get_default_update_protected_item_requests_object_requ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1043,7 +1043,7 @@ def build_resource_guards_get_update_protected_item_requests_objects_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1071,7 +1071,7 @@ def build_resource_guards_get_default_update_protection_policy_requests_object_r _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1100,7 +1100,7 @@ def build_resource_guards_get_update_protection_policy_requests_objects_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1128,7 +1128,7 @@ def build_resource_guards_get_default_delete_protected_item_requests_object_requ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1157,7 +1157,7 @@ def build_resource_guards_get_delete_protected_item_requests_objects_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1185,7 +1185,7 @@ def build_resource_guards_get_default_backup_security_pin_requests_object_reques _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1214,7 +1214,7 @@ def build_resource_guards_get_backup_security_pin_requests_objects_request( # p _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1242,7 +1242,7 @@ def build_backup_vaults_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1277,7 +1277,7 @@ def build_backup_vaults_create_or_update_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1319,7 +1319,7 @@ def build_backup_vaults_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1352,7 +1352,7 @@ def build_backup_vaults_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" path_format_arguments = { @@ -1375,7 +1375,7 @@ def build_backup_vaults_get_in_subscription_request( # pylint: disable=name-too _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1401,7 +1401,7 @@ def build_backup_vaults_get_in_resource_group_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1429,7 +1429,7 @@ def build_backup_vaults_check_name_availability_request( # pylint: disable=name _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1459,7 +1459,7 @@ def build_operation_status_backup_vault_context_get_request( # pylint: disable= _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1487,7 +1487,7 @@ def build_export_jobs_trigger_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs" path_format_arguments = { @@ -1510,7 +1510,7 @@ def build_export_jobs_operation_result_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1539,7 +1539,7 @@ def build_backup_policies_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1569,7 +1569,7 @@ def build_backup_policies_create_or_update_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1599,7 +1599,7 @@ def build_backup_policies_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}" path_format_arguments = { @@ -1623,7 +1623,7 @@ def build_backup_policies_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1652,7 +1652,7 @@ def build_restorable_time_ranges_find_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1688,7 +1688,7 @@ def build_recovery_points_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1725,7 +1725,7 @@ def build_recovery_points_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1758,7 +1758,7 @@ def build_jobs_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1787,7 +1787,7 @@ def build_jobs_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1815,7 +1815,7 @@ def build_deleted_backup_instances_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1844,7 +1844,7 @@ def build_deleted_backup_instances_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1871,7 +1871,7 @@ def build_deleted_backup_instances_undelete_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete" path_format_arguments = { @@ -1895,7 +1895,7 @@ def build_dpp_resource_guard_proxy_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1925,7 +1925,7 @@ def build_dpp_resource_guard_proxy_create_or_update_request( # pylint: disable= _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1955,7 +1955,7 @@ def build_dpp_resource_guard_proxy_delete_request( # pylint: disable=name-too-l ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}" path_format_arguments = { @@ -1979,7 +1979,7 @@ def build_dpp_resource_guard_proxy_list_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2014,7 +2014,7 @@ def build_dpp_resource_guard_proxy_unlock_delete_request( # pylint: disable=nam _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2049,7 +2049,7 @@ def build_operation_result_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2077,7 +2077,7 @@ def build_operation_status_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2105,7 +2105,7 @@ def build_operation_status_resource_group_context_get_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2134,7 +2134,7 @@ def build_data_protection_check_feature_support_request( # pylint: disable=name _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2170,7 +2170,7 @@ def build_fetch_secondary_recovery_points_list_request( # pylint: disable=name- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2205,7 +2205,7 @@ def build_fetch_cross_region_restore_job_get_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2236,7 +2236,7 @@ def build_fetch_cross_region_restore_jobs_list_request( # pylint: disable=name- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2268,7 +2268,7 @@ def build_backup_instances_extension_routing_list_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -2288,7 +2288,7 @@ def build_backup_instances_extension_routing_list_request( # pylint: disable=na return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class DataProtectionOperationsOperations: +class DataProtectionOperationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2398,7 +2398,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class BackupInstancesOperations: # pylint: disable=too-many-public-methods +class BackupInstancesOperations: # pylint: disable=docstring-missing-param,too-many-public-methods """ .. warning:: **DO NOT** instantiate this class directly. @@ -4469,6 +4469,19 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- ) return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + @api_version_validation( + method_added_on="2026-06-01", + params_added_on={ + "2026-06-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vault_name", + "backup_instance_name", + ] + }, + api_versions_list=["2026-06-01"], + ) def _resume_protection_initial( self, resource_group_name: str, vault_name: str, backup_instance_name: str, **kwargs: Any ) -> Iterator[bytes]: @@ -4534,6 +4547,19 @@ def _resume_protection_initial( return deserialized # type: ignore @distributed_trace + @api_version_validation( + method_added_on="2026-06-01", + params_added_on={ + "2026-06-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "vault_name", + "backup_instance_name", + ] + }, + api_versions_list=["2026-06-01"], + ) def begin_resume_protection( self, resource_group_name: str, vault_name: str, backup_instance_name: str, **kwargs: Any ) -> LROPoller[None]: @@ -6119,7 +6145,7 @@ def get_long_running_output(pipeline_response): ) -class BackupVaultOperationResultsOperations: +class BackupVaultOperationResultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6222,7 +6248,7 @@ def get( return deserialized # type: ignore -class DeletedBackupVaultsOperations: +class DeletedBackupVaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6243,7 +6269,7 @@ def __init__(self, *args, **kwargs) -> None: @api_version_validation( method_added_on="2025-09-01", params_added_on={"2025-09-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "accept"]}, - api_versions_list=["2025-09-01", "2026-03-01"], + api_versions_list=["2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _models.DeletedBackupVaultResource: """Gets a deleted backup vault. @@ -6318,7 +6344,7 @@ def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _models. @api_version_validation( method_added_on="2025-09-01", params_added_on={"2025-09-01": ["api_version", "subscription_id", "location", "accept"]}, - api_versions_list=["2025-09-01", "2026-03-01"], + api_versions_list=["2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) def list_by_location(self, location: str, **kwargs: Any) -> ItemPaged["_models.DeletedBackupVaultResource"]: """Lists deleted backup vaults by location. @@ -6417,7 +6443,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class ResourceGuardsOperations: +class ResourceGuardsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8176,7 +8202,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class BackupVaultsOperations: +class BackupVaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8265,7 +8291,7 @@ def get(self, resource_group_name: str, vault_name: str, **kwargs: Any) -> _mode @api_version_validation( params_added_on={"2025-09-01": ["x_ms_deleted_vault_id"]}, - api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01"], + api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) def _create_or_update_initial( self, @@ -8455,7 +8481,7 @@ def begin_create_or_update( @distributed_trace @api_version_validation( params_added_on={"2025-09-01": ["x_ms_deleted_vault_id"]}, - api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01"], + api_versions_list=["2025-07-01", "2025-09-01", "2026-03-01", "2026-04-01-preview", "2026-06-01"], ) def begin_create_or_update( self, @@ -9290,7 +9316,7 @@ def check_name_availability( return deserialized # type: ignore -class OperationStatusBackupVaultContextOperations: # pylint: disable=name-too-long +class OperationStatusBackupVaultContextOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -9383,7 +9409,7 @@ def get( return deserialized # type: ignore -class ExportJobsOperations: +class ExportJobsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9516,7 +9542,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class ExportJobsOperationResultOperations: +class ExportJobsOperationResultOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -9613,7 +9639,7 @@ def get( return deserialized # type: ignore -class BackupPoliciesOperations: +class BackupPoliciesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10060,7 +10086,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class RestorableTimeRangesOperations: +class RestorableTimeRangesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10270,7 +10296,7 @@ def find( return deserialized # type: ignore -class RecoveryPointsOperations: +class RecoveryPointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10491,7 +10517,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class JobsOperations: +class JobsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -10687,7 +10713,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DeletedBackupInstancesOperations: +class DeletedBackupInstancesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11008,7 +11034,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DppResourceGuardProxyOperations: +class DppResourceGuardProxyOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11654,7 +11680,7 @@ def unlock_delete( return deserialized # type: ignore -class OperationResultOperations: +class OperationResultOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11754,7 +11780,7 @@ def get(self, operation_id: str, location: str, **kwargs: Any) -> Optional[_mode return deserialized # type: ignore -class OperationStatusOperations: +class OperationStatusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -11843,7 +11869,7 @@ def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.Operat return deserialized # type: ignore -class OperationStatusResourceGroupContextOperations: # pylint: disable=name-too-long +class OperationStatusResourceGroupContextOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -11933,7 +11959,7 @@ def get(self, resource_group_name: str, operation_id: str, **kwargs: Any) -> _mo return deserialized # type: ignore -class DataProtectionOperations: +class DataProtectionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12112,7 +12138,7 @@ def check_feature_support( return deserialized # type: ignore -class FetchSecondaryRecoveryPointsOperations: +class FetchSecondaryRecoveryPointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12367,7 +12393,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class FetchCrossRegionRestoreJobOperations: +class FetchCrossRegionRestoreJobOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12556,7 +12582,7 @@ def get( return deserialized # type: ignore -class FetchCrossRegionRestoreJobsOperations: +class FetchCrossRegionRestoreJobsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -12788,7 +12814,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class BackupInstancesExtensionRoutingOperations: # pylint: disable=name-too-long +class BackupInstancesExtensionRoutingOperations: # pylint: disable=docstring-missing-param,name-too-long """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_patch.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_patch.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/types.py b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/types.py index ee36914075ea..b50153492b2b 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/types.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/types.py @@ -29,6 +29,7 @@ EncryptionState, ExistingResourcePolicy, FeatureType, + GranularityLevel, IdentityType, ImmutabilityState, InfrastructureEncryptionState, @@ -58,9 +59,9 @@ class AbsoluteDeleteOption(TypedDict, total=False): :ivar duration: Duration of deletion after given timespan. Required. :vartype duration: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "AbsoluteDeleteOption". - :vartype object_type: Literal["AbsoluteDeleteOption"] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "AbsoluteDeleteOption". + :vartype objectType: Literal["AbsoluteDeleteOption"] """ duration: Required[str] @@ -73,10 +74,10 @@ class AbsoluteDeleteOption(TypedDict, total=False): class AdHocBackupRuleOptions(TypedDict, total=False): """Adhoc backup rules. - :ivar rule_name: Required. - :vartype rule_name: str - :ivar trigger_option: Adhoc backup trigger option. Required. - :vartype trigger_option: "AdhocBackupTriggerOption" + :ivar ruleName: Required. + :vartype ruleName: str + :ivar triggerOption: Adhoc backup trigger option. Required. + :vartype triggerOption: "AdhocBackupTriggerOption" """ ruleName: Required[str] @@ -88,8 +89,8 @@ class AdHocBackupRuleOptions(TypedDict, total=False): class AdhocBackupTriggerOption(TypedDict, total=False): """Adhoc backup trigger option. - :ivar retention_tag_override: - :vartype retention_tag_override: str + :ivar retentionTagOverride: + :vartype retentionTagOverride: str """ retentionTagOverride: str @@ -98,8 +99,8 @@ class AdhocBackupTriggerOption(TypedDict, total=False): class AdhocBasedTaggingCriteria(TypedDict, total=False): """Adhoc backup tagging criteria. - :ivar tag_info: Retention tag information. - :vartype tag_info: "RetentionTag" + :ivar tagInfo: Retention tag information. + :vartype tagInfo: "RetentionTag" """ tagInfo: "RetentionTag" @@ -109,11 +110,11 @@ class AdhocBasedTaggingCriteria(TypedDict, total=False): class AdhocBasedTriggerContext(TypedDict, total=False): """Adhoc trigger context. - :ivar tagging_criteria: Tagging Criteria containing retention tag for adhoc backup. Required. - :vartype tagging_criteria: "AdhocBasedTaggingCriteria" - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "AdhocBasedTriggerContext". - :vartype object_type: Literal["AdhocBasedTriggerContext"] + :ivar taggingCriteria: Tagging Criteria containing retention tag for adhoc backup. Required. + :vartype taggingCriteria: "AdhocBasedTaggingCriteria" + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "AdhocBasedTriggerContext". + :vartype objectType: Literal["AdhocBasedTriggerContext"] """ taggingCriteria: Required["AdhocBasedTaggingCriteria"] @@ -126,12 +127,12 @@ class AdhocBasedTriggerContext(TypedDict, total=False): class AdlsBlobBackupDatasourceParameters(TypedDict, total=False): """Parameters to be used during configuration of backup of azure data lake storage account blobs. - :ivar containers_list: List of containers to be backed up during configuration of backup of + :ivar containersList: List of containers to be backed up during configuration of backup of blobs. Required. - :vartype containers_list: list[str] - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "AdlsBlobBackupDatasourceParameters". - :vartype object_type: Literal["AdlsBlobBackupDatasourceParameters"] + :vartype containersList: list[str] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "AdlsBlobBackupDatasourceParameters". + :vartype objectType: Literal["AdlsBlobBackupDatasourceParameters"] """ containersList: Required[list[str]] @@ -145,11 +146,11 @@ class AdlsBlobBackupDatasourceParametersForAutoProtection(TypedDict, total=False """Parameters to be used during configuration of backup of azure data lake storage account blobs using AutoProtection settings. - :ivar auto_protection_settings: AutoProtection settings. Required. - :vartype auto_protection_settings: "BlobBackupRuleBasedAutoProtectionSettings" - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "AdlsBlobBackupDatasourceParametersForAutoProtection". - :vartype object_type: Literal["AdlsBlobBackupDatasourceParametersForAutoProtection"] + :ivar autoProtectionSettings: AutoProtection settings. Required. + :vartype autoProtectionSettings: "BlobBackupRuleBasedAutoProtectionSettings" + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "AdlsBlobBackupDatasourceParametersForAutoProtection". + :vartype objectType: Literal["AdlsBlobBackupDatasourceParametersForAutoProtection"] """ autoProtectionSettings: Required["BlobBackupRuleBasedAutoProtectionSettings"] @@ -162,13 +163,13 @@ class AdlsBlobBackupDatasourceParametersForAutoProtection(TypedDict, total=False class AzureBackupFindRestorableTimeRangesRequest(TypedDict, total=False): # pylint: disable=name-too-long """List Restore Ranges Request. - :ivar source_data_store_type: Gets or sets the type of the source data store. Required. Known + :ivar sourceDataStoreType: Gets or sets the type of the source data store. Required. Known values are: "OperationalStore", "VaultStore", and "ArchiveStore". - :vartype source_data_store_type: Union[str, "RestoreSourceDataStoreType"] - :ivar start_time: Start time for the List Restore Ranges request. ISO 8601 format. - :vartype start_time: str - :ivar end_time: End time for the List Restore Ranges request. ISO 8601 format. - :vartype end_time: str + :vartype sourceDataStoreType: Union[str, "RestoreSourceDataStoreType"] + :ivar startTime: Start time for the List Restore Ranges request. ISO 8601 format. + :vartype startTime: str + :ivar endTime: End time for the List Restore Ranges request. ISO 8601 format. + :vartype endTime: str """ sourceDataStoreType: Required[Union[str, "RestoreSourceDataStoreType"]] @@ -191,9 +192,9 @@ class Resource(TypedDict, total=False): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ id: str @@ -219,20 +220,20 @@ class ProxyResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ class AzureBackupParams(TypedDict, total=False): """Azure backup parameters. - :ivar backup_type: BackupType ; Full/Incremental etc. Required. - :vartype backup_type: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "AzureBackupParams". - :vartype object_type: Literal["AzureBackupParams"] + :ivar backupType: BackupType ; Full/Incremental etc. Required. + :vartype backupType: str + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "AzureBackupParams". + :vartype objectType: Literal["AzureBackupParams"] """ backupType: Required[str] @@ -245,25 +246,25 @@ class AzureBackupParams(TypedDict, total=False): class AzureBackupRecoveryTimeBasedRestoreRequest(TypedDict, total=False): # pylint: disable=name-too-long """AzureBackup RecoveryPointTime Based Restore Request. - :ivar restore_target_info: Gets or sets the restore target information. Required. - :vartype restore_target_info: "RestoreTargetInfoBase" - :ivar source_data_store_type: Gets or sets the type of the source data store. Required. Known + :ivar restoreTargetInfo: Gets or sets the restore target information. Required. + :vartype restoreTargetInfo: "RestoreTargetInfoBase" + :ivar sourceDataStoreType: Gets or sets the type of the source data store. Required. Known values are: "ArchiveStore", "SnapshotStore", "OperationalStore", and "VaultStore". - :vartype source_data_store_type: Union[str, "SourceDataStoreType"] - :ivar source_resource_id: Fully qualified Azure Resource Manager ID of the datasource which is + :vartype sourceDataStoreType: Union[str, "SourceDataStoreType"] + :ivar sourceResourceId: Fully qualified Azure Resource Manager ID of the datasource which is being recovered. - :vartype source_resource_id: str - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] - :ivar identity_details: Contains information of the Identity Details for the BI. If it is null, + :vartype sourceResourceId: str + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] + :ivar identityDetails: Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned. - :vartype identity_details: "IdentityDetails" - :ivar recovery_point_time: The recovery time in ISO 8601 format example - + :vartype identityDetails: "IdentityDetails" + :ivar recoveryPointTime: The recovery time in ISO 8601 format example - 2020-08-14T17:30:00.0000000Z. Required. - :vartype recovery_point_time: str - :ivar object_type: Required. Default value is "AzureBackupRecoveryTimeBasedRestoreRequest". - :vartype object_type: Literal["AzureBackupRecoveryTimeBasedRestoreRequest"] + :vartype recoveryPointTime: str + :ivar objectType: Required. Default value is "AzureBackupRecoveryTimeBasedRestoreRequest". + :vartype objectType: Literal["AzureBackupRecoveryTimeBasedRestoreRequest"] """ restoreTargetInfo: Required["RestoreTargetInfoBase"] @@ -287,14 +288,13 @@ class AzureBackupRecoveryTimeBasedRestoreRequest(TypedDict, total=False): # pyl class AzureBackupRehydrationRequest(TypedDict, total=False): """Azure Backup Rehydrate Request. - :ivar recovery_point_id: Id of the recovery point to be recovered. Required. - :vartype recovery_point_id: str - :ivar rehydration_priority: Priority to be used for rehydration. Values High or Standard. Known + :ivar recoveryPointId: Id of the recovery point to be recovered. Required. + :vartype recoveryPointId: str + :ivar rehydrationPriority: Priority to be used for rehydration. Values High or Standard. Known values are: "Invalid", "High", and "Standard". - :vartype rehydration_priority: Union[str, "RehydrationPriority"] - :ivar rehydration_retention_duration: Retention duration in ISO 8601 format i.e P10D . - Required. - :vartype rehydration_retention_duration: str + :vartype rehydrationPriority: Union[str, "RehydrationPriority"] + :ivar rehydrationRetentionDuration: Retention duration in ISO 8601 format i.e P10D . Required. + :vartype rehydrationRetentionDuration: str """ recoveryPointId: Required[str] @@ -309,30 +309,29 @@ class AzureBackupRehydrationRequest(TypedDict, total=False): class AzureBackupRestoreWithRehydrationRequest(TypedDict, total=False): """AzureBackup Restore with Rehydration Request. - :ivar restore_target_info: Gets or sets the restore target information. Required. - :vartype restore_target_info: "RestoreTargetInfoBase" - :ivar source_data_store_type: Gets or sets the type of the source data store. Required. Known + :ivar restoreTargetInfo: Gets or sets the restore target information. Required. + :vartype restoreTargetInfo: "RestoreTargetInfoBase" + :ivar sourceDataStoreType: Gets or sets the type of the source data store. Required. Known values are: "ArchiveStore", "SnapshotStore", "OperationalStore", and "VaultStore". - :vartype source_data_store_type: Union[str, "SourceDataStoreType"] - :ivar source_resource_id: Fully qualified Azure Resource Manager ID of the datasource which is + :vartype sourceDataStoreType: Union[str, "SourceDataStoreType"] + :ivar sourceResourceId: Fully qualified Azure Resource Manager ID of the datasource which is being recovered. - :vartype source_resource_id: str - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] - :ivar identity_details: Contains information of the Identity Details for the BI. If it is null, + :vartype sourceResourceId: str + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] + :ivar identityDetails: Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned. - :vartype identity_details: "IdentityDetails" - :ivar recovery_point_id: Required. - :vartype recovery_point_id: str - :ivar rehydration_priority: Priority to be used for rehydration. Values High or Standard. + :vartype identityDetails: "IdentityDetails" + :ivar recoveryPointId: Required. + :vartype recoveryPointId: str + :ivar rehydrationPriority: Priority to be used for rehydration. Values High or Standard. Required. Known values are: "Invalid", "High", and "Standard". - :vartype rehydration_priority: Union[str, "RehydrationPriority"] - :ivar rehydration_retention_duration: Retention duration in ISO 8601 format i.e P10D . - Required. - :vartype rehydration_retention_duration: str - :ivar object_type: Required. Default value is "AzureBackupRestoreWithRehydrationRequest". - :vartype object_type: Literal["AzureBackupRestoreWithRehydrationRequest"] + :vartype rehydrationPriority: Union[str, "RehydrationPriority"] + :ivar rehydrationRetentionDuration: Retention duration in ISO 8601 format i.e P10D . Required. + :vartype rehydrationRetentionDuration: str + :ivar objectType: Required. Default value is "AzureBackupRestoreWithRehydrationRequest". + :vartype objectType: Literal["AzureBackupRestoreWithRehydrationRequest"] """ restoreTargetInfo: Required["RestoreTargetInfoBase"] @@ -363,14 +362,14 @@ class AzureBackupRule(TypedDict, total=False): :ivar name: Required. :vartype name: str - :ivar backup_parameters: BackupParameters base. - :vartype backup_parameters: "BackupParameters" - :ivar data_store: DataStoreInfo base. Required. - :vartype data_store: "DataStoreInfoBase" + :ivar backupParameters: BackupParameters base. + :vartype backupParameters: "BackupParameters" + :ivar dataStore: DataStoreInfo base. Required. + :vartype dataStore: "DataStoreInfoBase" :ivar trigger: Trigger context. Required. :vartype trigger: "TriggerContext" - :ivar object_type: Required. Default value is "AzureBackupRule". - :vartype object_type: Literal["AzureBackupRule"] + :ivar objectType: Required. Default value is "AzureBackupRule". + :vartype objectType: Literal["AzureBackupRule"] """ name: Required[str] @@ -388,8 +387,8 @@ class AzureBackupRule(TypedDict, total=False): class AzureMonitorAlertSettings(TypedDict, total=False): """Settings for Azure Monitor based alerts. - :ivar alerts_for_all_job_failures: Known values are: "Enabled" and "Disabled". - :vartype alerts_for_all_job_failures: Union[str, "AlertsState"] + :ivar alertsForAllJobFailures: Known values are: "Enabled" and "Disabled". + :vartype alertsForAllJobFailures: Union[str, "AlertsState"] """ alertsForAllJobFailures: Union[str, "AlertsState"] @@ -399,14 +398,14 @@ class AzureMonitorAlertSettings(TypedDict, total=False): class AzureOperationalStoreParameters(TypedDict, total=False): """Parameters for Operational-Tier DataStore. - :ivar data_store_type: type of datastore; Operational/Vault/Archive. Required. Known values - are: "OperationalStore", "VaultStore", and "ArchiveStore". - :vartype data_store_type: Union[str, "DataStoreTypes"] - :ivar resource_group_id: Gets or sets the Snapshot Resource Group Uri. - :vartype resource_group_id: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "AzureOperationalStoreParameters". - :vartype object_type: Literal["AzureOperationalStoreParameters"] + :ivar dataStoreType: type of datastore; Operational/Vault/Archive. Required. Known values are: + "OperationalStore", "VaultStore", and "ArchiveStore". + :vartype dataStoreType: Union[str, "DataStoreTypes"] + :ivar resourceGroupId: Gets or sets the Snapshot Resource Group Uri. + :vartype resourceGroupId: str + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "AzureOperationalStoreParameters". + :vartype objectType: Literal["AzureOperationalStoreParameters"] """ dataStoreType: Required[Union[str, "DataStoreTypes"]] @@ -424,12 +423,12 @@ class AzureRetentionRule(TypedDict, total=False): :ivar name: Required. :vartype name: str - :ivar is_default: - :vartype is_default: bool + :ivar isDefault: + :vartype isDefault: bool :ivar lifecycles: Required. :vartype lifecycles: list["SourceLifeCycle"] - :ivar object_type: Required. Default value is "AzureRetentionRule". - :vartype object_type: Literal["AzureRetentionRule"] + :ivar objectType: Required. Default value is "AzureRetentionRule". + :vartype objectType: Literal["AzureRetentionRule"] """ name: Required[str] @@ -444,42 +443,41 @@ class AzureRetentionRule(TypedDict, total=False): class BackupInstance(TypedDict, total=False): """Backup Instance. - :ivar friendly_name: Gets or sets the Backup Instance friendly name. - :vartype friendly_name: str - :ivar data_source_info: Gets or sets the data source information. Required. - :vartype data_source_info: "Datasource" - :ivar data_source_set_info: Gets or sets the data source set information. - :vartype data_source_set_info: "DatasourceSet" - :ivar policy_info: Gets or sets the policy information. Required. - :vartype policy_info: "PolicyInfo" - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] - :ivar protection_status: Specifies the protection status of the resource. - :vartype protection_status: "ProtectionStatusDetails" - :ivar current_protection_state: Specifies the current protection state of the resource. Known + :ivar friendlyName: Gets or sets the Backup Instance friendly name. + :vartype friendlyName: str + :ivar dataSourceInfo: Gets or sets the data source information. Required. + :vartype dataSourceInfo: "Datasource" + :ivar dataSourceSetInfo: Gets or sets the data source set information. + :vartype dataSourceSetInfo: "DatasourceSet" + :ivar policyInfo: Gets or sets the policy information. Required. + :vartype policyInfo: "PolicyInfo" + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] + :ivar protectionStatus: Specifies the protection status of the resource. + :vartype protectionStatus: "ProtectionStatusDetails" + :ivar currentProtectionState: Specifies the current protection state of the resource. Known values are: "Invalid", "NotProtected", "ConfiguringProtection", "ProtectionConfigured", "BackupSchedulesSuspended", "RetentionSchedulesSuspended", "ProtectionStopped", "ProtectionError", "ConfiguringProtectionFailed", "SoftDeleting", "SoftDeleted", and "UpdatingProtection". - :vartype current_protection_state: Union[str, "CurrentProtectionState"] - :ivar protection_error_details: Specifies the protection error of the resource. - :vartype protection_error_details: "UserFacingError" - :ivar provisioning_state: Specifies the provisioning state of the resource i.e. + :vartype currentProtectionState: Union[str, "CurrentProtectionState"] + :ivar protectionErrorDetails: Specifies the protection error of the resource. + :vartype protectionErrorDetails: "UserFacingError" + :ivar provisioningState: Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed. - :vartype provisioning_state: str - :ivar datasource_auth_credentials: Credentials to use to authenticate with data source - provider. - :vartype datasource_auth_credentials: "AuthCredentials" - :ivar validation_type: Specifies the type of validation. In case of DeepValidation, all + :vartype provisioningState: str + :ivar datasourceAuthCredentials: Credentials to use to authenticate with data source provider. + :vartype datasourceAuthCredentials: "AuthCredentials" + :ivar validationType: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. Known values are: "ShallowValidation" and "DeepValidation". - :vartype validation_type: Union[str, "ValidationType"] - :ivar identity_details: Contains information of the Identity Details for the BI. If it is null, + :vartype validationType: Union[str, "ValidationType"] + :ivar identityDetails: Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned. - :vartype identity_details: "IdentityDetails" - :ivar object_type: Required. - :vartype object_type: str + :vartype identityDetails: "IdentityDetails" + :ivar objectType: Required. + :vartype objectType: str """ friendlyName: str @@ -528,9 +526,9 @@ class BackupInstanceResource(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: BackupInstanceResource properties. :vartype properties: "BackupInstance" :ivar tags: Proxy Resource tags. @@ -546,13 +544,13 @@ class BackupInstanceResource(ProxyResource): class BackupPolicy(TypedDict, total=False): """Rule based backup policy. - :ivar datasource_types: Type of datasource for the backup management. Required. - :vartype datasource_types: list[str] - :ivar policy_rules: Policy rule dictionary that contains rules for each backuptype i.e + :ivar datasourceTypes: Type of datasource for the backup management. Required. + :vartype datasourceTypes: list[str] + :ivar policyRules: Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc. Required. - :vartype policy_rules: list["BasePolicyRule"] - :ivar object_type: Required. Default value is "BackupPolicy". - :vartype object_type: Literal["BackupPolicy"] + :vartype policyRules: list["BasePolicyRule"] + :ivar objectType: Required. Default value is "BackupPolicy". + :vartype objectType: Literal["BackupPolicy"] """ datasourceTypes: Required[list[str]] @@ -567,7 +565,7 @@ class BackupPolicy(TypedDict, total=False): class BackupSchedule(TypedDict, total=False): """Schedule for backup. - :ivar repeating_time_intervals: Repeating time intervals that define the backup schedule. Each + :ivar repeatingTimeIntervals: Repeating time intervals that define the backup schedule. Each value must follow the format: ``R/YYYY-MM-DDThh:mm:ss[.fff][Z|(+/-)hh:mm]/Duration`` Only the exact formats listed below are supported. Other ISO 8601 variations are not accepted. Supported time formats: @@ -586,8 +584,8 @@ class BackupSchedule(TypedDict, total=False): * `R/2023-10-15T14:30:00Z/P1W` * `R/2023-10-15T14:30:45.123+05:30/P1D` * `R/2023-10-15T14:30Z/P1D`. Required. - :vartype repeating_time_intervals: list[str] - :ivar time_zone: Time Zone for a schedule. Supported timezone indicators include: + :vartype repeatingTimeIntervals: list[str] + :ivar timeZone: Time Zone for a schedule. Supported timezone indicators include: * 'Z' for UTC * '+00:00' @@ -599,7 +597,7 @@ class BackupSchedule(TypedDict, total=False): * 2023-10-15T14:30:45Z * 2023-10-15T14:30:45.123+05:30 * 2023-10-15T14:30-08:00. - :vartype time_zone: str + :vartype timeZone: str """ repeatingTimeIntervals: Required[list[str]] @@ -639,40 +637,44 @@ class BackupSchedule(TypedDict, total=False): class BackupVault(TypedDict, total=False): """Backup Vault. - :ivar monitoring_settings: Monitoring Settings. - :vartype monitoring_settings: "MonitoringSettings" - :ivar provisioning_state: Provisioning state of the BackupVault resource. Known values are: + :ivar monitoringSettings: Monitoring Settings. + :vartype monitoringSettings: "MonitoringSettings" + :ivar costManagementSettings: Cost Management Settings of the vault. + :vartype costManagementSettings: "CostManagementSettings" + :ivar provisioningState: Provisioning state of the BackupVault resource. Known values are: "Failed", "Provisioning", "Succeeded", "Unknown", and "Updating". - :vartype provisioning_state: Union[str, "ProvisioningState"] - :ivar resource_move_state: Resource move state for backup vault. Known values are: "Unknown", + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar resourceMoveState: Resource move state for backup vault. Known values are: "Unknown", "InProgress", "PrepareFailed", "CommitFailed", "Failed", "PrepareTimedout", "CommitTimedout", "CriticalFailure", "PartialSuccess", and "MoveSucceeded". - :vartype resource_move_state: Union[str, "ResourceMoveState"] - :ivar resource_move_details: Resource move details for backup vault. - :vartype resource_move_details: "ResourceMoveDetails" - :ivar security_settings: Security Settings. - :vartype security_settings: "SecuritySettings" - :ivar storage_settings: Storage Settings. - :vartype storage_settings: list["StorageSetting"] - :ivar is_vault_protected_by_resource_guard: Is vault protected by resource guard. - :vartype is_vault_protected_by_resource_guard: bool - :ivar feature_settings: Feature Settings. - :vartype feature_settings: "FeatureSettings" - :ivar secure_score: Secure Score of Backup Vault. Known values are: "None", "Minimum", + :vartype resourceMoveState: Union[str, "ResourceMoveState"] + :ivar resourceMoveDetails: Resource move details for backup vault. + :vartype resourceMoveDetails: "ResourceMoveDetails" + :ivar securitySettings: Security Settings. + :vartype securitySettings: "SecuritySettings" + :ivar storageSettings: Storage Settings. + :vartype storageSettings: list["StorageSetting"] + :ivar isVaultProtectedByResourceGuard: Is vault protected by resource guard. + :vartype isVaultProtectedByResourceGuard: bool + :ivar featureSettings: Feature Settings. + :vartype featureSettings: "FeatureSettings" + :ivar secureScore: Secure Score of Backup Vault. Known values are: "None", "Minimum", "Adequate", "Maximum", and "NotSupported". - :vartype secure_score: Union[str, "SecureScoreLevel"] - :ivar bcdr_security_level: Security Level of Backup Vault. Known values are: "Poor", "Fair", + :vartype secureScore: Union[str, "SecureScoreLevel"] + :ivar bcdrSecurityLevel: Security Level of Backup Vault. Known values are: "Poor", "Fair", "Good", "Excellent", and "NotSupported". - :vartype bcdr_security_level: Union[str, "BCDRSecurityLevel"] - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] - :ivar replicated_regions: List of replicated regions for Backup Vault. - :vartype replicated_regions: list[str] + :vartype bcdrSecurityLevel: Union[str, "BCDRSecurityLevel"] + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] + :ivar replicatedRegions: List of replicated regions for Backup Vault. + :vartype replicatedRegions: list[str] """ monitoringSettings: "MonitoringSettings" """Monitoring Settings.""" + costManagementSettings: "CostManagementSettings" + """Cost Management Settings of the vault.""" provisioningState: Union[str, "ProvisioningState"] """Provisioning state of the BackupVault resource. Known values are: \"Failed\", \"Provisioning\", \"Succeeded\", \"Unknown\", and \"Updating\".""" @@ -713,9 +715,9 @@ class TrackedResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -739,9 +741,9 @@ class BackupVaultResource(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -750,8 +752,8 @@ class BackupVaultResource(TrackedResource): :vartype properties: "BackupVault" :ivar identity: Input Managed Identity Details. :vartype identity: "DppIdentityDetails" - :ivar e_tag: Optional ETag. - :vartype e_tag: str + :ivar eTag: Optional ETag. + :vartype eTag: str """ properties: Required["BackupVault"] @@ -773,9 +775,9 @@ class BaseBackupPolicyResource(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: BaseBackupPolicyResource properties. :vartype properties: "BaseBackupPolicy" """ @@ -787,8 +789,8 @@ class BaseBackupPolicyResource(ProxyResource): class BlobBackupAutoProtectionRule(TypedDict, total=False): """Indicates a Blob Backup Auto Protection Rule. - :ivar object_type: Type of the specific object - used for deserializing. Required. - :vartype object_type: str + :ivar objectType: Type of the specific object - used for deserializing. Required. + :vartype objectType: str :ivar mode: Exclude removes candidates (after inclusion). Required. "Exclude" :vartype mode: Union[str, "BlobBackupRuleMode"] :ivar type: Pattern type: Prefix, only pattern type supported for now. Required. "Prefix" @@ -812,11 +814,11 @@ class BlobBackupAutoProtectionRule(TypedDict, total=False): class BlobBackupDatasourceParametersForAutoProtection(TypedDict, total=False): # pylint: disable=name-too-long """Paramters to be used during configuration of backup of blobs using AutoProtection settings. - :ivar auto_protection_settings: AutoProtection settings. Required. - :vartype auto_protection_settings: "BlobBackupRuleBasedAutoProtectionSettings" - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "BlobBackupDatasourceParametersForAutoProtection". - :vartype object_type: Literal["BlobBackupDatasourceParametersForAutoProtection"] + :ivar autoProtectionSettings: AutoProtection settings. Required. + :vartype autoProtectionSettings: "BlobBackupRuleBasedAutoProtectionSettings" + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "BlobBackupDatasourceParametersForAutoProtection". + :vartype objectType: Literal["BlobBackupDatasourceParametersForAutoProtection"] """ autoProtectionSettings: Required["BlobBackupRuleBasedAutoProtectionSettings"] @@ -831,8 +833,8 @@ class BlobBackupRuleBasedAutoProtectionSettings(TypedDict, total=False): # pyli :ivar enabled: Flag to enable whether auto protection. Required. :vartype enabled: bool - :ivar object_type: Required. Default value is "BlobBackupRuleBasedAutoProtectionSettings". - :vartype object_type: Literal["BlobBackupRuleBasedAutoProtectionSettings"] + :ivar objectType: Required. Default value is "BlobBackupRuleBasedAutoProtectionSettings". + :vartype objectType: Literal["BlobBackupRuleBasedAutoProtectionSettings"] :ivar rules: Rules are evaluated in the order provided. Inclusion adds candidates; exclusion removes candidates. If no rules are present, all containers are considered eligible when enabled = true. @@ -867,13 +869,13 @@ class CheckNameAvailabilityRequest(TypedDict, total=False): class CmkKekIdentity(TypedDict, total=False): """The details of the managed identity used for CMK. - :ivar identity_type: The identity type. 'SystemAssigned' and 'UserAssigned' are mutually + :ivar identityType: The identity type. 'SystemAssigned' and 'UserAssigned' are mutually exclusive. 'SystemAssigned' will use implicitly created managed identity. Known values are: "SystemAssigned" and "UserAssigned". - :vartype identity_type: Union[str, "IdentityType"] - :ivar identity_id: The managed identity to be used which has access permissions to the Key + :vartype identityType: Union[str, "IdentityType"] + :ivar identityId: The managed identity to be used which has access permissions to the Key Vault. Provide a value here in case identity types: 'UserAssigned' only. - :vartype identity_id: str + :vartype identityId: str """ identityType: Union[str, "IdentityType"] @@ -888,8 +890,8 @@ class CmkKekIdentity(TypedDict, total=False): class CmkKeyVaultProperties(TypedDict, total=False): """The properties of the Key Vault which hosts CMK. - :ivar key_uri: The key uri of the Customer Managed Key. - :vartype key_uri: str + :ivar keyUri: The key uri of the Customer Managed Key. + :vartype keyUri: str """ keyUri: str @@ -899,9 +901,9 @@ class CmkKeyVaultProperties(TypedDict, total=False): class CopyOnExpiryOption(TypedDict, total=False): """Copy on Expiry Option. - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "CopyOnExpiryOption". - :vartype object_type: Literal["CopyOnExpiryOption"] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "CopyOnExpiryOption". + :vartype objectType: Literal["CopyOnExpiryOption"] """ objectType: Required[Literal["CopyOnExpiryOption"]] @@ -909,13 +911,26 @@ class CopyOnExpiryOption(TypedDict, total=False): \"CopyOnExpiryOption\".""" +class CostManagementSettings(TypedDict, total=False): + """Cost Management Settings of the vault. + + :ivar granularityLevel: Settings for granularity level. Known values are: "VaultLevel", + "ProtectedItemLevel", and "ProtectedItemWithParentTag". + :vartype granularityLevel: Union[str, "GranularityLevel"] + """ + + granularityLevel: Union[str, "GranularityLevel"] + """Settings for granularity level. Known values are: \"VaultLevel\", \"ProtectedItemLevel\", and + \"ProtectedItemWithParentTag\".""" + + class CrossRegionRestoreDetails(TypedDict, total=False): """Cross Region Restore details. - :ivar source_region: Required. - :vartype source_region: str - :ivar source_backup_instance_id: Required. - :vartype source_backup_instance_id: str + :ivar sourceRegion: Required. + :vartype sourceRegion: str + :ivar sourceBackupInstanceId: Required. + :vartype sourceBackupInstanceId: str """ sourceRegion: Required[str] @@ -927,12 +942,12 @@ class CrossRegionRestoreDetails(TypedDict, total=False): class CrossRegionRestoreJobRequest(TypedDict, total=False): """Details of CRR Job to be fetched. - :ivar source_region: Required. - :vartype source_region: str - :ivar source_backup_vault_id: Required. - :vartype source_backup_vault_id: str - :ivar job_id: Required. - :vartype job_id: str + :ivar sourceRegion: Required. + :vartype sourceRegion: str + :ivar sourceBackupVaultId: Required. + :vartype sourceBackupVaultId: str + :ivar jobId: Required. + :vartype jobId: str """ sourceRegion: Required[str] @@ -946,10 +961,10 @@ class CrossRegionRestoreJobRequest(TypedDict, total=False): class CrossRegionRestoreJobsRequest(TypedDict, total=False): """Details of Backup Vault for which CRR Jobs are to be fetched. - :ivar source_region: Required. - :vartype source_region: str - :ivar source_backup_vault_id: Required. - :vartype source_backup_vault_id: str + :ivar sourceRegion: Required. + :vartype sourceRegion: str + :ivar sourceBackupVaultId: Required. + :vartype sourceBackupVaultId: str """ sourceRegion: Required[str] @@ -961,10 +976,10 @@ class CrossRegionRestoreJobsRequest(TypedDict, total=False): class CrossRegionRestoreRequestObject(TypedDict, total=False): """Cross Region Restore Request Object. - :ivar restore_request_object: Gets or sets the restore request object. Required. - :vartype restore_request_object: "AzureBackupRestoreRequest" - :ivar cross_region_restore_details: Cross region restore details. Required. - :vartype cross_region_restore_details: "CrossRegionRestoreDetails" + :ivar restoreRequestObject: Gets or sets the restore request object. Required. + :vartype restoreRequestObject: "AzureBackupRestoreRequest" + :ivar crossRegionRestoreDetails: Cross region restore details. Required. + :vartype crossRegionRestoreDetails: "CrossRegionRestoreDetails" """ restoreRequestObject: Required["AzureBackupRestoreRequest"] @@ -1002,9 +1017,9 @@ class CustomCopyOption(TypedDict, total=False): :ivar duration: Data copied after given timespan. :vartype duration: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "CustomCopyOption". - :vartype object_type: Literal["CustomCopyOption"] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "CustomCopyOption". + :vartype objectType: Literal["CustomCopyOption"] """ duration: str @@ -1017,23 +1032,23 @@ class CustomCopyOption(TypedDict, total=False): class Datasource(TypedDict, total=False): """Datasource to be backed up. - :ivar datasource_type: DatasourceType of the resource. - :vartype datasource_type: str - :ivar object_type: Type of Datasource object, used to initialize the right inherited type. - :vartype object_type: str - :ivar resource_id: Full ARM ID of the resource. For azure resources, this is ARM ID. For non + :ivar datasourceType: DatasourceType of the resource. + :vartype datasourceType: str + :ivar objectType: Type of Datasource object, used to initialize the right inherited type. + :vartype objectType: str + :ivar resourceID: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. Required. - :vartype resource_id: str - :ivar resource_location: Location of datasource. - :vartype resource_location: str - :ivar resource_name: Unique identifier of the resource in the context of parent. - :vartype resource_name: str - :ivar resource_type: Resource Type of Datasource. - :vartype resource_type: str - :ivar resource_uri: Uri of the resource. - :vartype resource_uri: str - :ivar resource_properties: Properties specific to data source. - :vartype resource_properties: "BaseResourceProperties" + :vartype resourceID: str + :ivar resourceLocation: Location of datasource. + :vartype resourceLocation: str + :ivar resourceName: Unique identifier of the resource in the context of parent. + :vartype resourceName: str + :ivar resourceType: Resource Type of Datasource. + :vartype resourceType: str + :ivar resourceUri: Uri of the resource. + :vartype resourceUri: str + :ivar resourceProperties: Properties specific to data source. + :vartype resourceProperties: "BaseResourceProperties" """ datasourceType: str @@ -1058,23 +1073,23 @@ class Datasource(TypedDict, total=False): class DatasourceSet(TypedDict, total=False): """DatasourceSet details of datasource to be backed up. - :ivar datasource_type: DatasourceType of the resource. - :vartype datasource_type: str - :ivar object_type: Type of Datasource object, used to initialize the right inherited type. - :vartype object_type: str - :ivar resource_id: Full ARM ID of the resource. For azure resources, this is ARM ID. For non + :ivar datasourceType: DatasourceType of the resource. + :vartype datasourceType: str + :ivar objectType: Type of Datasource object, used to initialize the right inherited type. + :vartype objectType: str + :ivar resourceID: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault. Required. - :vartype resource_id: str - :ivar resource_location: Location of datasource. - :vartype resource_location: str - :ivar resource_name: Unique identifier of the resource in the context of parent. - :vartype resource_name: str - :ivar resource_type: Resource Type of Datasource. - :vartype resource_type: str - :ivar resource_uri: Uri of the resource. - :vartype resource_uri: str - :ivar resource_properties: Properties specific to data source set. - :vartype resource_properties: "BaseResourceProperties" + :vartype resourceID: str + :ivar resourceLocation: Location of datasource. + :vartype resourceLocation: str + :ivar resourceName: Unique identifier of the resource in the context of parent. + :vartype resourceName: str + :ivar resourceType: Resource Type of Datasource. + :vartype resourceType: str + :ivar resourceUri: Uri of the resource. + :vartype resourceUri: str + :ivar resourceProperties: Properties specific to data source set. + :vartype resourceProperties: "BaseResourceProperties" """ datasourceType: str @@ -1099,12 +1114,12 @@ class DatasourceSet(TypedDict, total=False): class DataStoreInfoBase(TypedDict, total=False): """DataStoreInfo base. - :ivar data_store_type: type of datastore; Operational/Vault/Archive. Required. Known values - are: "OperationalStore", "VaultStore", and "ArchiveStore". - :vartype data_store_type: Union[str, "DataStoreTypes"] - :ivar object_type: Type of Datasource object, used to initialize the right inherited type. + :ivar dataStoreType: type of datastore; Operational/Vault/Archive. Required. Known values are: + "OperationalStore", "VaultStore", and "ArchiveStore". + :vartype dataStoreType: Union[str, "DataStoreTypes"] + :ivar objectType: Type of Datasource object, used to initialize the right inherited type. Required. - :vartype object_type: str + :vartype objectType: str """ dataStoreType: Required[Union[str, "DataStoreTypes"]] @@ -1119,8 +1134,8 @@ class Day(TypedDict, total=False): :ivar date: Date of the month. :vartype date: int - :ivar is_last: Whether Date is last date of month. - :vartype is_last: bool + :ivar isLast: Whether Date is last date of month. + :vartype isLast: bool """ date: int @@ -1132,9 +1147,9 @@ class Day(TypedDict, total=False): class DefaultResourceProperties(TypedDict, total=False): """Default source properties. - :ivar object_type: Type of the specific object - used for deserializing. Required. + :ivar objectType: Type of the specific object - used for deserializing. Required. DEFAULT_RESOURCE_PROPERTIES. - :vartype object_type: Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES] + :vartype objectType: Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES] """ objectType: Required[Literal[ResourcePropertiesObjectType.DEFAULT_RESOURCE_PROPERTIES]] @@ -1144,17 +1159,17 @@ class DefaultResourceProperties(TypedDict, total=False): class DppIdentityDetails(TypedDict, total=False): """Identity details. - :ivar principal_id: The object ID of the service principal object for the managed identity that + :ivar principalId: The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource. - :vartype principal_id: str - :ivar tenant_id: A Globally Unique Identifier (GUID) that represents the Azure AD tenant where + :vartype principalId: str + :ivar tenantId: A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. - :vartype tenant_id: str + :vartype tenantId: str :ivar type: The identityType which can be either SystemAssigned, UserAssigned, 'SystemAssigned,UserAssigned' or None. :vartype type: str - :ivar user_assigned_identities: Gets or sets the user assigned identities. - :vartype user_assigned_identities: dict[str, "UserAssignedIdentity"] + :ivar userAssignedIdentities: Gets or sets the user assigned identities. + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentity"] """ principalId: str @@ -1176,13 +1191,13 @@ class EncryptionSettings(TypedDict, total=False): :ivar state: Encryption state of the Backup Vault. Known values are: "Enabled", "Disabled", and "Inconsistent". :vartype state: Union[str, "EncryptionState"] - :ivar key_vault_properties: The properties of the Key Vault which hosts CMK. - :vartype key_vault_properties: "CmkKeyVaultProperties" - :ivar kek_identity: The details of the managed identity used for CMK. - :vartype kek_identity: "CmkKekIdentity" - :ivar infrastructure_encryption: Enabling/Disabling the Double Encryption state. Known values + :ivar keyVaultProperties: The properties of the Key Vault which hosts CMK. + :vartype keyVaultProperties: "CmkKeyVaultProperties" + :ivar kekIdentity: The details of the managed identity used for CMK. + :vartype kekIdentity: "CmkKekIdentity" + :ivar infrastructureEncryption: Enabling/Disabling the Double Encryption state. Known values are: "Enabled" and "Disabled". - :vartype infrastructure_encryption: Union[str, "InfrastructureEncryptionState"] + :vartype infrastructureEncryption: Union[str, "InfrastructureEncryptionState"] """ state: Union[str, "EncryptionState"] @@ -1199,10 +1214,10 @@ class EncryptionSettings(TypedDict, total=False): class FeatureSettings(TypedDict, total=False): """Class containing feature settings of vault. - :ivar cross_subscription_restore_settings: CrossSubscriptionRestore Settings. - :vartype cross_subscription_restore_settings: "CrossSubscriptionRestoreSettings" - :ivar cross_region_restore_settings: - :vartype cross_region_restore_settings: "CrossRegionRestoreSettings" + :ivar crossSubscriptionRestoreSettings: CrossSubscriptionRestore Settings. + :vartype crossSubscriptionRestoreSettings: "CrossSubscriptionRestoreSettings" + :ivar crossRegionRestoreSettings: + :vartype crossRegionRestoreSettings: "CrossRegionRestoreSettings" """ crossSubscriptionRestoreSettings: "CrossSubscriptionRestoreSettings" @@ -1213,14 +1228,14 @@ class FeatureSettings(TypedDict, total=False): class FeatureValidationRequest(TypedDict, total=False): """Base class for feature object. - :ivar feature_type: backup support feature type. Known values are: "Invalid" and + :ivar featureType: backup support feature type. Known values are: "Invalid" and "DataSourceType". - :vartype feature_type: Union[str, "FeatureType"] - :ivar feature_name: backup support feature name. - :vartype feature_name: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "FeatureValidationRequest". - :vartype object_type: Literal["FeatureValidationRequest"] + :vartype featureType: Union[str, "FeatureType"] + :ivar featureName: backup support feature name. + :vartype featureName: str + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "FeatureValidationRequest". + :vartype objectType: Literal["FeatureValidationRequest"] """ featureType: Union[str, "FeatureType"] @@ -1236,10 +1251,10 @@ class FetchSecondaryRPsRequestParameters(TypedDict, total=False): """Information about BI whose secondary RecoveryPoints are requested Source region and BI ARM path. - :ivar source_region: Source region in which BackupInstance is located. - :vartype source_region: str - :ivar source_backup_instance_id: ARM Path of BackupInstance. - :vartype source_backup_instance_id: str + :ivar sourceRegion: Source region in which BackupInstance is located. + :vartype sourceRegion: str + :ivar sourceBackupInstanceId: ARM Path of BackupInstance. + :vartype sourceBackupInstanceId: str """ sourceRegion: str @@ -1248,13 +1263,48 @@ class FetchSecondaryRPsRequestParameters(TypedDict, total=False): """ARM Path of BackupInstance.""" +class GenericBackupDatasourceParameters(TypedDict, total=False): + """Generic parameters to be used during configuration of backup. + + :ivar resourceSelectors: List of resource selectors to be backed up during configuration of + backup. Required. + :vartype resourceSelectors: list[str] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "GenericBackupDatasourceParameters". + :vartype objectType: Literal["GenericBackupDatasourceParameters"] + """ + + resourceSelectors: Required[list[str]] + """List of resource selectors to be backed up during configuration of backup. Required.""" + objectType: Required[Literal["GenericBackupDatasourceParameters"]] + """Type of the specific object - used for deserializing. Required. Default value is + \"GenericBackupDatasourceParameters\".""" + + +class GenericRestoreDatasourceCriteria(TypedDict, total=False): + """Generic criteria to be used during restore. + + :ivar resourceSelectors: List of resource identifiers that need to be restored. Required. + :vartype resourceSelectors: "ResourceListSelectionCriteria" + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "GenericRestoreDatasourceCriteria". + :vartype objectType: Literal["GenericRestoreDatasourceCriteria"] + """ + + resourceSelectors: Required["ResourceListSelectionCriteria"] + """List of resource identifiers that need to be restored. Required.""" + objectType: Required[Literal["GenericRestoreDatasourceCriteria"]] + """Type of the specific object - used for deserializing. Required. Default value is + \"GenericRestoreDatasourceCriteria\".""" + + class IdentityDetails(TypedDict, total=False): """IdentityDetails. - :ivar use_system_assigned_identity: Specifies if the BI is protected by System Identity. - :vartype use_system_assigned_identity: bool - :ivar user_assigned_identity_arm_url: ARM URL for User Assigned Identity. - :vartype user_assigned_identity_arm_url: str + :ivar useSystemAssignedIdentity: Specifies if the BI is protected by System Identity. + :vartype useSystemAssignedIdentity: bool + :ivar userAssignedIdentityArmUrl: ARM URL for User Assigned Identity. + :vartype userAssignedIdentityArmUrl: str """ useSystemAssignedIdentity: bool @@ -1266,9 +1316,9 @@ class IdentityDetails(TypedDict, total=False): class ImmediateCopyOption(TypedDict, total=False): """Immediate copy Option. - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "ImmediateCopyOption". - :vartype object_type: Literal["ImmediateCopyOption"] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "ImmediateCopyOption". + :vartype objectType: Literal["ImmediateCopyOption"] """ objectType: Required[Literal["ImmediateCopyOption"]] @@ -1290,13 +1340,13 @@ class ImmutabilitySettings(TypedDict, total=False): class InnerError(TypedDict, total=False): """Inner Error. - :ivar additional_info: Any Key value pairs that can be provided to the client for additional + :ivar additionalInfo: Any Key value pairs that can be provided to the client for additional verbose information. - :vartype additional_info: dict[str, str] + :vartype additionalInfo: dict[str, str] :ivar code: Unique code for this error. :vartype code: str - :ivar embedded_inner_error: Child Inner Error, to allow Nesting. - :vartype embedded_inner_error: "InnerError" + :ivar embeddedInnerError: Child Inner Error, to allow Nesting. + :vartype embeddedInnerError: "InnerError" """ additionalInfo: dict[str, str] @@ -1310,22 +1360,21 @@ class InnerError(TypedDict, total=False): class ItemLevelRestoreTargetInfo(TypedDict, total=False): """Restore target info for Item level restore operation. - :ivar recovery_option: Recovery Option. Required. "FailIfExists" - :vartype recovery_option: Union[str, "RecoveryOption"] - :ivar restore_location: Target Restore region. - :vartype restore_location: str - :ivar restore_criteria: Restore Criteria. Required. - :vartype restore_criteria: list["ItemLevelRestoreCriteria"] - :ivar datasource_info: Information of target DS. Required. - :vartype datasource_info: "Datasource" - :ivar datasource_set_info: Information of target DS Set. - :vartype datasource_set_info: "DatasourceSet" - :ivar datasource_auth_credentials: Credentials to use to authenticate with data source - provider. - :vartype datasource_auth_credentials: "AuthCredentials" - :ivar object_type: Type of Datasource object, used to initialize the right inherited type. + :ivar recoveryOption: Recovery Option. Required. "FailIfExists" + :vartype recoveryOption: Union[str, "RecoveryOption"] + :ivar restoreLocation: Target Restore region. + :vartype restoreLocation: str + :ivar restoreCriteria: Restore Criteria. Required. + :vartype restoreCriteria: list["ItemLevelRestoreCriteria"] + :ivar datasourceInfo: Information of target DS. Required. + :vartype datasourceInfo: "Datasource" + :ivar datasourceSetInfo: Information of target DS Set. + :vartype datasourceSetInfo: "DatasourceSet" + :ivar datasourceAuthCredentials: Credentials to use to authenticate with data source provider. + :vartype datasourceAuthCredentials: "AuthCredentials" + :ivar objectType: Type of Datasource object, used to initialize the right inherited type. Required. Default value is "ItemLevelRestoreTargetInfo". - :vartype object_type: Literal["ItemLevelRestoreTargetInfo"] + :vartype objectType: Literal["ItemLevelRestoreTargetInfo"] """ recoveryOption: Required[Union[str, "RecoveryOption"]] @@ -1348,21 +1397,21 @@ class ItemLevelRestoreTargetInfo(TypedDict, total=False): class ItemPathBasedRestoreCriteria(TypedDict, total=False): """Prefix criteria to be used to during restore. - :ivar item_path: The path of the item to be restored. It could be the full path of the item or + :ivar itemPath: The path of the item to be restored. It could be the full path of the item or the path relative to the backup item. Required. - :vartype item_path: str - :ivar is_path_relative_to_backup_item: Flag to specify if the path is relative to backup item - or full path. Required. - :vartype is_path_relative_to_backup_item: bool - :ivar sub_item_path_prefix: The list of prefix strings to be used as filter criteria during + :vartype itemPath: str + :ivar isPathRelativeToBackupItem: Flag to specify if the path is relative to backup item or + full path. Required. + :vartype isPathRelativeToBackupItem: bool + :ivar subItemPathPrefix: The list of prefix strings to be used as filter criteria during restore. These are relative to the item path specified. - :vartype sub_item_path_prefix: list[str] - :ivar rename_to: Rename the item to be restored. Restore will rename the itemPath to this new + :vartype subItemPathPrefix: list[str] + :ivar renameTo: Rename the item to be restored. Restore will rename the itemPath to this new name if the value is specified otherwise the itemPath will be restored as same name. - :vartype rename_to: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "ItemPathBasedRestoreCriteria". - :vartype object_type: Literal["ItemPathBasedRestoreCriteria"] + :vartype renameTo: str + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "ItemPathBasedRestoreCriteria". + :vartype objectType: Literal["ItemPathBasedRestoreCriteria"] """ itemPath: Required[str] @@ -1384,36 +1433,36 @@ class ItemPathBasedRestoreCriteria(TypedDict, total=False): class KubernetesClusterBackupDatasourceParameters(TypedDict, total=False): # pylint: disable=name-too-long """Parameters for Kubernetes Cluster Backup Datasource. - :ivar snapshot_volumes: Gets or sets the volume snapshot property. This property if enabled - will take volume snapshots during backup. Required. - :vartype snapshot_volumes: bool - :ivar included_volume_types: Gets or sets the include volume types property. This property sets + :ivar snapshotVolumes: Gets or sets the volume snapshot property. This property if enabled will + take volume snapshots during backup. Required. + :vartype snapshotVolumes: bool + :ivar includedVolumeTypes: Gets or sets the include volume types property. This property sets the volume types to be included during backup. - :vartype included_volume_types: list[Union[str, "AKSVolumeTypes"]] - :ivar include_cluster_scope_resources: Gets or sets the include cluster resources property. - This property if enabled will include cluster scope resources during backup. Required. - :vartype include_cluster_scope_resources: bool - :ivar included_namespaces: Gets or sets the include namespaces property. This property sets the + :vartype includedVolumeTypes: list[Union[str, "AKSVolumeTypes"]] + :ivar includeClusterScopeResources: Gets or sets the include cluster resources property. This + property if enabled will include cluster scope resources during backup. Required. + :vartype includeClusterScopeResources: bool + :ivar includedNamespaces: Gets or sets the include namespaces property. This property sets the namespaces to be included during backup. - :vartype included_namespaces: list[str] - :ivar excluded_namespaces: Gets or sets the exclude namespaces property. This property sets the + :vartype includedNamespaces: list[str] + :ivar excludedNamespaces: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during backup. - :vartype excluded_namespaces: list[str] - :ivar included_resource_types: Gets or sets the include resource types property. This property + :vartype excludedNamespaces: list[str] + :ivar includedResourceTypes: Gets or sets the include resource types property. This property sets the resource types to be included during backup. - :vartype included_resource_types: list[str] - :ivar excluded_resource_types: Gets or sets the exclude resource types property. This property + :vartype includedResourceTypes: list[str] + :ivar excludedResourceTypes: Gets or sets the exclude resource types property. This property sets the resource types to be excluded during backup. - :vartype excluded_resource_types: list[str] - :ivar label_selectors: Gets or sets the LabelSelectors property. This property sets the - resource with such label selectors to be included during backup. - :vartype label_selectors: list[str] - :ivar backup_hook_references: Gets or sets the backup hook references. This property sets the + :vartype excludedResourceTypes: list[str] + :ivar labelSelectors: Gets or sets the LabelSelectors property. This property sets the resource + with such label selectors to be included during backup. + :vartype labelSelectors: list[str] + :ivar backupHookReferences: Gets or sets the backup hook references. This property sets the hook reference to be executed during backup. - :vartype backup_hook_references: list["NamespacedNameResource"] - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "KubernetesClusterBackupDatasourceParameters". - :vartype object_type: Literal["KubernetesClusterBackupDatasourceParameters"] + :vartype backupHookReferences: list["NamespacedNameResource"] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "KubernetesClusterBackupDatasourceParameters". + :vartype objectType: Literal["KubernetesClusterBackupDatasourceParameters"] """ snapshotVolumes: Required[bool] @@ -1451,43 +1500,43 @@ class KubernetesClusterBackupDatasourceParameters(TypedDict, total=False): # py class KubernetesClusterRestoreCriteria(TypedDict, total=False): """kubernetes Cluster Backup target info for restore operation. - :ivar include_cluster_scope_resources: Gets or sets the include cluster resources property. - This property if enabled will include cluster scope resources during restore. Required. - :vartype include_cluster_scope_resources: bool - :ivar included_namespaces: Gets or sets the include namespaces property. This property sets the + :ivar includeClusterScopeResources: Gets or sets the include cluster resources property. This + property if enabled will include cluster scope resources during restore. Required. + :vartype includeClusterScopeResources: bool + :ivar includedNamespaces: Gets or sets the include namespaces property. This property sets the namespaces to be included during restore. - :vartype included_namespaces: list[str] - :ivar excluded_namespaces: Gets or sets the exclude namespaces property. This property sets the + :vartype includedNamespaces: list[str] + :ivar excludedNamespaces: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore. - :vartype excluded_namespaces: list[str] - :ivar included_resource_types: Gets or sets the include resource types property. This property + :vartype excludedNamespaces: list[str] + :ivar includedResourceTypes: Gets or sets the include resource types property. This property sets the resource types to be included during restore. - :vartype included_resource_types: list[str] - :ivar excluded_resource_types: Gets or sets the exclude resource types property. This property + :vartype includedResourceTypes: list[str] + :ivar excludedResourceTypes: Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore. - :vartype excluded_resource_types: list[str] - :ivar label_selectors: Gets or sets the LabelSelectors property. This property sets the - resource with such label selectors to be included during restore. - :vartype label_selectors: list[str] - :ivar persistent_volume_restore_mode: Gets or sets the PV (Persistent Volume) Restore Mode + :vartype excludedResourceTypes: list[str] + :ivar labelSelectors: Gets or sets the LabelSelectors property. This property sets the resource + with such label selectors to be included during restore. + :vartype labelSelectors: list[str] + :ivar persistentVolumeRestoreMode: Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored. Known values are: "RestoreWithVolumeData" and "RestoreWithoutVolumeData". - :vartype persistent_volume_restore_mode: Union[str, "PersistentVolumeRestoreMode"] - :ivar conflict_policy: Gets or sets the Conflict Policy property. This property sets policy + :vartype persistentVolumeRestoreMode: Union[str, "PersistentVolumeRestoreMode"] + :ivar conflictPolicy: Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore. Known values are: "Skip" and "Patch". - :vartype conflict_policy: Union[str, "ExistingResourcePolicy"] - :ivar namespace_mappings: Gets or sets the Namespace Mappings property. This property sets if + :vartype conflictPolicy: Union[str, "ExistingResourcePolicy"] + :ivar namespaceMappings: Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore. - :vartype namespace_mappings: dict[str, str] - :ivar restore_hook_references: Gets or sets the restore hook references. This property sets the + :vartype namespaceMappings: dict[str, str] + :ivar restoreHookReferences: Gets or sets the restore hook references. This property sets the hook reference to be executed during restore. - :vartype restore_hook_references: list["NamespacedNameResource"] - :ivar resource_modifier_reference: Gets or sets the resource modifier reference. This property + :vartype restoreHookReferences: list["NamespacedNameResource"] + :ivar resourceModifierReference: Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore. - :vartype resource_modifier_reference: "NamespacedNameResource" - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "KubernetesClusterRestoreCriteria". - :vartype object_type: Literal["KubernetesClusterRestoreCriteria"] + :vartype resourceModifierReference: "NamespacedNameResource" + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "KubernetesClusterRestoreCriteria". + :vartype objectType: Literal["KubernetesClusterRestoreCriteria"] """ includeClusterScopeResources: Required[bool] @@ -1532,50 +1581,49 @@ class KubernetesClusterRestoreCriteria(TypedDict, total=False): class KubernetesClusterVaultTierRestoreCriteria(TypedDict, total=False): # pylint: disable=name-too-long """kubernetes Cluster Backup target info for restore operation from vault. - :ivar include_cluster_scope_resources: Gets or sets the include cluster resources property. - This property if enabled will include cluster scope resources during restore from vault. - Required. - :vartype include_cluster_scope_resources: bool - :ivar included_namespaces: Gets or sets the include namespaces property. This property sets the + :ivar includeClusterScopeResources: Gets or sets the include cluster resources property. This + property if enabled will include cluster scope resources during restore from vault. Required. + :vartype includeClusterScopeResources: bool + :ivar includedNamespaces: Gets or sets the include namespaces property. This property sets the namespaces to be included during restore from vault. - :vartype included_namespaces: list[str] - :ivar excluded_namespaces: Gets or sets the exclude namespaces property. This property sets the + :vartype includedNamespaces: list[str] + :ivar excludedNamespaces: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore from vault. - :vartype excluded_namespaces: list[str] - :ivar included_resource_types: Gets or sets the include resource types property. This property + :vartype excludedNamespaces: list[str] + :ivar includedResourceTypes: Gets or sets the include resource types property. This property sets the resource types to be included during restore from vault. - :vartype included_resource_types: list[str] - :ivar excluded_resource_types: Gets or sets the exclude resource types property. This property + :vartype includedResourceTypes: list[str] + :ivar excludedResourceTypes: Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore from vault. - :vartype excluded_resource_types: list[str] - :ivar label_selectors: Gets or sets the LabelSelectors property. This property sets the - resource with such label selectors to be included during restore from vault. - :vartype label_selectors: list[str] - :ivar persistent_volume_restore_mode: Gets or sets the PV (Persistent Volume) Restore Mode + :vartype excludedResourceTypes: list[str] + :ivar labelSelectors: Gets or sets the LabelSelectors property. This property sets the resource + with such label selectors to be included during restore from vault. + :vartype labelSelectors: list[str] + :ivar persistentVolumeRestoreMode: Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored from vault. Known values are: "RestoreWithVolumeData" and "RestoreWithoutVolumeData". - :vartype persistent_volume_restore_mode: Union[str, "PersistentVolumeRestoreMode"] - :ivar conflict_policy: Gets or sets the Conflict Policy property. This property sets policy + :vartype persistentVolumeRestoreMode: Union[str, "PersistentVolumeRestoreMode"] + :ivar conflictPolicy: Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore from vault. Known values are: "Skip" and "Patch". - :vartype conflict_policy: Union[str, "ExistingResourcePolicy"] - :ivar namespace_mappings: Gets or sets the Namespace Mappings property. This property sets if + :vartype conflictPolicy: Union[str, "ExistingResourcePolicy"] + :ivar namespaceMappings: Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore from vault. - :vartype namespace_mappings: dict[str, str] - :ivar restore_hook_references: Gets or sets the restore hook references. This property sets the + :vartype namespaceMappings: dict[str, str] + :ivar restoreHookReferences: Gets or sets the restore hook references. This property sets the hook reference to be executed during restore from vault. - :vartype restore_hook_references: list["NamespacedNameResource"] - :ivar staging_resource_group_id: Gets or sets the staging RG Id for creating staging disks and + :vartype restoreHookReferences: list["NamespacedNameResource"] + :ivar stagingResourceGroupId: Gets or sets the staging RG Id for creating staging disks and snapshots during restore from vault. - :vartype staging_resource_group_id: str - :ivar staging_storage_account_id: Gets or sets the staging Storage Account Id for creating - backup extension object store data during restore from vault. - :vartype staging_storage_account_id: str - :ivar resource_modifier_reference: Gets or sets the resource modifier reference. This property + :vartype stagingResourceGroupId: str + :ivar stagingStorageAccountId: Gets or sets the staging Storage Account Id for creating backup + extension object store data during restore from vault. + :vartype stagingStorageAccountId: str + :ivar resourceModifierReference: Gets or sets the resource modifier reference. This property sets the reference for resource modifier during restore. - :vartype resource_modifier_reference: "NamespacedNameResource" - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "KubernetesClusterVaultTierRestoreCriteria". - :vartype object_type: Literal["KubernetesClusterVaultTierRestoreCriteria"] + :vartype resourceModifierReference: "NamespacedNameResource" + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "KubernetesClusterVaultTierRestoreCriteria". + :vartype objectType: Literal["KubernetesClusterVaultTierRestoreCriteria"] """ includeClusterScopeResources: Required[bool] @@ -1628,11 +1676,11 @@ class KubernetesPVRestoreCriteria(TypedDict, total=False): :ivar name: Selected persistent volume claim name. :vartype name: str - :ivar storage_class_name: Selected storage class name for restore operation. - :vartype storage_class_name: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "KubernetesPVRestoreCriteria". - :vartype object_type: Literal["KubernetesPVRestoreCriteria"] + :ivar storageClassName: Selected storage class name for restore operation. + :vartype storageClassName: str + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "KubernetesPVRestoreCriteria". + :vartype objectType: Literal["KubernetesPVRestoreCriteria"] """ name: str @@ -1647,13 +1695,13 @@ class KubernetesPVRestoreCriteria(TypedDict, total=False): class KubernetesStorageClassRestoreCriteria(TypedDict, total=False): """Item Level kubernetes storage class target info for restore operation. - :ivar selected_storage_class_name: Selected storage class name. - :vartype selected_storage_class_name: str + :ivar selectedStorageClassName: Selected storage class name. + :vartype selectedStorageClassName: str :ivar provisioner: Provisioner of the storage class. :vartype provisioner: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "KubernetesStorageClassRestoreCriteria". - :vartype object_type: Literal["KubernetesStorageClassRestoreCriteria"] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "KubernetesStorageClassRestoreCriteria". + :vartype objectType: Literal["KubernetesStorageClassRestoreCriteria"] """ selectedStorageClassName: str @@ -1668,8 +1716,8 @@ class KubernetesStorageClassRestoreCriteria(TypedDict, total=False): class MonitoringSettings(TypedDict, total=False): """Monitoring Settings. - :ivar azure_monitor_alert_settings: Settings for Azure Monitor based alerts. - :vartype azure_monitor_alert_settings: "AzureMonitorAlertSettings" + :ivar azureMonitorAlertSettings: Settings for Azure Monitor based alerts. + :vartype azureMonitorAlertSettings: "AzureMonitorAlertSettings" """ azureMonitorAlertSettings: "AzureMonitorAlertSettings" @@ -1694,15 +1742,17 @@ class NamespacedNameResource(TypedDict, total=False): class PatchBackupVaultInput(TypedDict, total=False): """Backup Vault Contract for Patch Backup Vault API. - :ivar monitoring_settings: Monitoring Settings. - :vartype monitoring_settings: "MonitoringSettings" - :ivar security_settings: Security Settings. - :vartype security_settings: "SecuritySettings" - :ivar feature_settings: Feature Settings. - :vartype feature_settings: "FeatureSettings" - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] + :ivar monitoringSettings: Monitoring Settings. + :vartype monitoringSettings: "MonitoringSettings" + :ivar securitySettings: Security Settings. + :vartype securitySettings: "SecuritySettings" + :ivar featureSettings: Feature Settings. + :vartype featureSettings: "FeatureSettings" + :ivar costManagementSettings: Cost Management Settings of the vault. + :vartype costManagementSettings: "CostManagementSettings" + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] """ monitoringSettings: "MonitoringSettings" @@ -1711,6 +1761,8 @@ class PatchBackupVaultInput(TypedDict, total=False): """Security Settings.""" featureSettings: "FeatureSettings" """Feature Settings.""" + costManagementSettings: "CostManagementSettings" + """Cost Management Settings of the vault.""" resourceGuardOperationRequests: list[str] """ResourceGuardOperationRequests on which LAC check will be performed.""" @@ -1748,12 +1800,12 @@ class PatchResourceRequestInput(TypedDict, total=False): class PolicyInfo(TypedDict, total=False): """Policy Info in backupInstance. - :ivar policy_id: Required. - :vartype policy_id: str - :ivar policy_version: - :vartype policy_version: str - :ivar policy_parameters: Policy parameters for the backup instance. - :vartype policy_parameters: "PolicyParameters" + :ivar policyId: Required. + :vartype policyId: str + :ivar policyVersion: + :vartype policyVersion: str + :ivar policyParameters: Policy parameters for the backup instance. + :vartype policyParameters: "PolicyParameters" """ policyId: Required[str] @@ -1766,10 +1818,10 @@ class PolicyInfo(TypedDict, total=False): class PolicyParameters(TypedDict, total=False): """Parameters in Policy. - :ivar data_store_parameters_list: Gets or sets the DataStore Parameters. - :vartype data_store_parameters_list: list["DataStoreParameters"] - :ivar backup_datasource_parameters_list: Gets or sets the Backup Data Source Parameters. - :vartype backup_datasource_parameters_list: list["BackupDatasourceParameters"] + :ivar dataStoreParametersList: Gets or sets the DataStore Parameters. + :vartype dataStoreParametersList: list["DataStoreParameters"] + :ivar backupDatasourceParametersList: Gets or sets the Backup Data Source Parameters. + :vartype backupDatasourceParametersList: list["BackupDatasourceParameters"] """ dataStoreParametersList: list["DataStoreParameters"] @@ -1781,8 +1833,8 @@ class PolicyParameters(TypedDict, total=False): class ProtectionStatusDetails(TypedDict, total=False): """Protection status details. - :ivar error_details: Specifies the protection status error of the resource. - :vartype error_details: "UserFacingError" + :ivar errorDetails: Specifies the protection status error of the resource. + :vartype errorDetails: "UserFacingError" :ivar status: Specifies the protection status of the resource. Known values are: "ConfiguringProtection", "ConfiguringProtectionFailed", "ProtectionConfigured", "ProtectionStopped", "SoftDeleted", and "SoftDeleting". @@ -1800,13 +1852,13 @@ class ProtectionStatusDetails(TypedDict, total=False): class RangeBasedItemLevelRestoreCriteria(TypedDict, total=False): """Item Level target info for restore operation. - :ivar min_matching_value: minimum value for range prefix match. - :vartype min_matching_value: str - :ivar max_matching_value: maximum value for range prefix match. - :vartype max_matching_value: str - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "RangeBasedItemLevelRestoreCriteria". - :vartype object_type: Literal["RangeBasedItemLevelRestoreCriteria"] + :ivar minMatchingValue: minimum value for range prefix match. + :vartype minMatchingValue: str + :ivar maxMatchingValue: maximum value for range prefix match. + :vartype maxMatchingValue: str + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "RangeBasedItemLevelRestoreCriteria". + :vartype objectType: Literal["RangeBasedItemLevelRestoreCriteria"] """ minMatchingValue: str @@ -1821,17 +1873,17 @@ class RangeBasedItemLevelRestoreCriteria(TypedDict, total=False): class ResourceGuard(TypedDict, total=False): """ResourceGuard. - :ivar provisioning_state: Provisioning state of the BackupVault resource. Known values are: + :ivar provisioningState: Provisioning state of the BackupVault resource. Known values are: "Failed", "Provisioning", "Succeeded", "Unknown", and "Updating". - :vartype provisioning_state: Union[str, "ProvisioningState"] - :ivar allow_auto_approvals: This flag indicates whether auto approval is allowed or not. - :vartype allow_auto_approvals: bool - :ivar resource_guard_operations: {readonly} List of operation details those are protected by - the ResourceGuard resource. - :vartype resource_guard_operations: list["ResourceGuardOperation"] - :ivar vault_critical_operation_exclusion_list: List of critical operations which are not - protected by this resourceGuard. - :vartype vault_critical_operation_exclusion_list: list[str] + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar allowAutoApprovals: This flag indicates whether auto approval is allowed or not. + :vartype allowAutoApprovals: bool + :ivar resourceGuardOperations: {readonly} List of operation details those are protected by the + ResourceGuard resource. + :vartype resourceGuardOperations: list["ResourceGuardOperation"] + :ivar vaultCriticalOperationExclusionList: List of critical operations which are not protected + by this resourceGuard. + :vartype vaultCriticalOperationExclusionList: list[str] :ivar description: Description about the pre-req steps to perform all the critical operations. :vartype description: str """ @@ -1852,10 +1904,10 @@ class ResourceGuard(TypedDict, total=False): class ResourceGuardOperation(TypedDict, total=False): """This class contains all the details about a critical operation. - :ivar vault_critical_operation: Name of the critical operation. - :vartype vault_critical_operation: str - :ivar request_resource_type: Type of resource request. - :vartype request_resource_type: str + :ivar vaultCriticalOperation: Name of the critical operation. + :vartype vaultCriticalOperation: str + :ivar requestResourceType: Type of resource request. + :vartype requestResourceType: str """ vaultCriticalOperation: str @@ -1867,10 +1919,10 @@ class ResourceGuardOperation(TypedDict, total=False): class ResourceGuardOperationDetail(TypedDict, total=False): """VaultCritical Operation protected by a resource guard. - :ivar vault_critical_operation: - :vartype vault_critical_operation: str - :ivar default_resource_request: - :vartype default_resource_request: str + :ivar vaultCriticalOperation: + :vartype vaultCriticalOperation: str + :ivar defaultResourceRequest: + :vartype defaultResourceRequest: str """ vaultCriticalOperation: str @@ -1880,12 +1932,12 @@ class ResourceGuardOperationDetail(TypedDict, total=False): class ResourceGuardProxyBase(TypedDict, total=False): """ResourceGuardProxyBase object, used in ResourceGuardProxyBaseResource. - :ivar resource_guard_resource_id: - :vartype resource_guard_resource_id: str - :ivar resource_guard_operation_details: - :vartype resource_guard_operation_details: list["ResourceGuardOperationDetail"] - :ivar last_updated_time: - :vartype last_updated_time: str + :ivar resourceGuardResourceId: + :vartype resourceGuardResourceId: str + :ivar resourceGuardOperationDetails: + :vartype resourceGuardOperationDetails: list["ResourceGuardOperationDetail"] + :ivar lastUpdatedTime: + :vartype lastUpdatedTime: str :ivar description: :vartype description: str """ @@ -1908,9 +1960,9 @@ class ResourceGuardProxyBaseResource(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: ResourceGuardProxyBaseResource properties. :vartype properties: "ResourceGuardProxyBase" """ @@ -1931,17 +1983,17 @@ class ResourceGuardResource(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. :vartype location: str :ivar properties: ResourceGuardResource properties. :vartype properties: "ResourceGuard" - :ivar e_tag: Optional ETag. - :vartype e_tag: str + :ivar eTag: Optional ETag. + :vartype eTag: str """ properties: "ResourceGuard" @@ -1950,22 +2002,44 @@ class ResourceGuardResource(TrackedResource): """Optional ETag.""" +class ResourceListSelectionCriteria(TypedDict, total=False): + """Specifies the list of resources to be restored. + + :ivar objectType: Type of the specific object - used for deserializing. Required. + :vartype objectType: str + :ivar resourceIdentifiers: List of resource identifiers to restore from. Required. + :vartype resourceIdentifiers: list[str] + :ivar resourceNameOverrides: This is a map of source resource names to target resources names + to restore into. Any source name not included in the map will be restored with a default naming + format. + :vartype resourceNameOverrides: dict[str, str] + """ + + objectType: Required[str] + """Type of the specific object - used for deserializing. Required.""" + resourceIdentifiers: Required[list[str]] + """List of resource identifiers to restore from. Required.""" + resourceNameOverrides: dict[str, str] + """This is a map of source resource names to target resources names to restore into. Any source + name not included in the map will be restored with a default naming format.""" + + class ResourceMoveDetails(TypedDict, total=False): """ResourceMoveDetails will be returned in response to GetResource call from ARM. - :ivar operation_id: CorrelationId of latest ResourceMove operation attempted. - :vartype operation_id: str - :ivar start_time_utc: Start time in UTC of latest ResourceMove operation attempted. ISO 8601 + :ivar operationId: CorrelationId of latest ResourceMove operation attempted. + :vartype operationId: str + :ivar startTimeUtc: Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. - :vartype start_time_utc: str - :ivar completion_time_utc: Completion time in UTC of latest ResourceMove operation attempted. - ISO 8601 format. - :vartype completion_time_utc: str - :ivar source_resource_path: ARM resource path of source resource. - :vartype source_resource_path: str - :ivar target_resource_path: ARM resource path of target resource used in latest ResourceMove + :vartype startTimeUtc: str + :ivar completionTimeUtc: Completion time in UTC of latest ResourceMove operation attempted. ISO + 8601 format. + :vartype completionTimeUtc: str + :ivar sourceResourcePath: ARM resource path of source resource. + :vartype sourceResourcePath: str + :ivar targetResourcePath: ARM resource path of target resource used in latest ResourceMove operation. - :vartype target_resource_path: str + :vartype targetResourcePath: str """ operationId: str @@ -1983,16 +2057,16 @@ class ResourceMoveDetails(TypedDict, total=False): class RestoreFilesTargetInfo(TypedDict, total=False): """Class encapsulating restore as files target parameters. - :ivar recovery_option: Recovery Option. Required. "FailIfExists" - :vartype recovery_option: Union[str, "RecoveryOption"] - :ivar restore_location: Target Restore region. - :vartype restore_location: str - :ivar target_details: Destination of RestoreAsFiles operation, when destination is not a + :ivar recoveryOption: Recovery Option. Required. "FailIfExists" + :vartype recoveryOption: Union[str, "RecoveryOption"] + :ivar restoreLocation: Target Restore region. + :vartype restoreLocation: str + :ivar targetDetails: Destination of RestoreAsFiles operation, when destination is not a datasource. Required. - :vartype target_details: "TargetDetails" - :ivar object_type: Type of Datasource object, used to initialize the right inherited type. + :vartype targetDetails: "TargetDetails" + :ivar objectType: Type of Datasource object, used to initialize the right inherited type. Required. Default value is "RestoreFilesTargetInfo". - :vartype object_type: Literal["RestoreFilesTargetInfo"] + :vartype objectType: Literal["RestoreFilesTargetInfo"] """ recoveryOption: Required[Union[str, "RecoveryOption"]] @@ -2009,20 +2083,19 @@ class RestoreFilesTargetInfo(TypedDict, total=False): class RestoreTargetInfo(TypedDict, total=False): """Class encapsulating restore target parameters. - :ivar recovery_option: Recovery Option. Required. "FailIfExists" - :vartype recovery_option: Union[str, "RecoveryOption"] - :ivar restore_location: Target Restore region. - :vartype restore_location: str - :ivar datasource_info: Information of target DS. Required. - :vartype datasource_info: "Datasource" - :ivar datasource_set_info: Information of target DS Set. - :vartype datasource_set_info: "DatasourceSet" - :ivar datasource_auth_credentials: Credentials to use to authenticate with data source - provider. - :vartype datasource_auth_credentials: "AuthCredentials" - :ivar object_type: Type of Datasource object, used to initialize the right inherited type. + :ivar recoveryOption: Recovery Option. Required. "FailIfExists" + :vartype recoveryOption: Union[str, "RecoveryOption"] + :ivar restoreLocation: Target Restore region. + :vartype restoreLocation: str + :ivar datasourceInfo: Information of target DS. Required. + :vartype datasourceInfo: "Datasource" + :ivar datasourceSetInfo: Information of target DS Set. + :vartype datasourceSetInfo: "DatasourceSet" + :ivar datasourceAuthCredentials: Credentials to use to authenticate with data source provider. + :vartype datasourceAuthCredentials: "AuthCredentials" + :ivar objectType: Type of Datasource object, used to initialize the right inherited type. Required. Default value is "RestoreTargetInfo". - :vartype object_type: Literal["RestoreTargetInfo"] + :vartype objectType: Literal["RestoreTargetInfo"] """ recoveryOption: Required[Union[str, "RecoveryOption"]] @@ -2043,12 +2116,12 @@ class RestoreTargetInfo(TypedDict, total=False): class RetentionTag(TypedDict, total=False): """Retention tag. - :ivar e_tag: Retention Tag version. - :vartype e_tag: str + :ivar eTag: Retention Tag version. + :vartype eTag: str :ivar id: Retention Tag version. :vartype id: str - :ivar tag_name: Retention Tag Name to relate it to retention rule. Required. - :vartype tag_name: str + :ivar tagName: Retention Tag Name to relate it to retention rule. Required. + :vartype tagName: str """ eTag: str @@ -2062,22 +2135,22 @@ class RetentionTag(TypedDict, total=False): class ScheduleBasedBackupCriteria(TypedDict, total=False): """Schedule based backup criteria. - :ivar absolute_criteria: it contains absolute values like "AllBackup" / "FirstOfDay" / + :ivar absoluteCriteria: it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum. - :vartype absolute_criteria: list[Union[str, "AbsoluteMarker"]] - :ivar days_of_month: This is day of the month from 1 to 28 other wise last of month. - :vartype days_of_month: list["Day"] - :ivar days_of_the_week: It should be Sunday/Monday/T..../Saturday. - :vartype days_of_the_week: list[Union[str, "DayOfWeek"]] - :ivar months_of_year: It should be January/February/....../December. - :vartype months_of_year: list[Union[str, "Month"]] - :ivar schedule_times: List of schedule times for backup. - :vartype schedule_times: list[str] - :ivar weeks_of_the_month: It should be First/Second/Third/Fourth/Last. - :vartype weeks_of_the_month: list[Union[str, "WeekNumber"]] - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "ScheduleBasedBackupCriteria". - :vartype object_type: Literal["ScheduleBasedBackupCriteria"] + :vartype absoluteCriteria: list[Union[str, "AbsoluteMarker"]] + :ivar daysOfMonth: This is day of the month from 1 to 28 other wise last of month. + :vartype daysOfMonth: list["Day"] + :ivar daysOfTheWeek: It should be Sunday/Monday/T..../Saturday. + :vartype daysOfTheWeek: list[Union[str, "DayOfWeek"]] + :ivar monthsOfYear: It should be January/February/....../December. + :vartype monthsOfYear: list[Union[str, "Month"]] + :ivar scheduleTimes: List of schedule times for backup. + :vartype scheduleTimes: list[str] + :ivar weeksOfTheMonth: It should be First/Second/Third/Fourth/Last. + :vartype weeksOfTheMonth: list[Union[str, "WeekNumber"]] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "ScheduleBasedBackupCriteria". + :vartype objectType: Literal["ScheduleBasedBackupCriteria"] """ absoluteCriteria: list[Union[str, "AbsoluteMarker"]] @@ -2103,11 +2176,11 @@ class ScheduleBasedTriggerContext(TypedDict, total=False): :ivar schedule: Schedule for this backup. Required. :vartype schedule: "BackupSchedule" - :ivar tagging_criteria: List of tags that can be applicable for given schedule. Required. - :vartype tagging_criteria: list["TaggingCriteria"] - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "ScheduleBasedTriggerContext". - :vartype object_type: Literal["ScheduleBasedTriggerContext"] + :ivar taggingCriteria: List of tags that can be applicable for given schedule. Required. + :vartype taggingCriteria: list["TaggingCriteria"] + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "ScheduleBasedTriggerContext". + :vartype objectType: Literal["ScheduleBasedTriggerContext"] """ schedule: Required["BackupSchedule"] @@ -2122,11 +2195,11 @@ class ScheduleBasedTriggerContext(TypedDict, total=False): class SecretStoreBasedAuthCredentials(TypedDict, total=False): """Secret store based authentication credentials. - :ivar secret_store_resource: Secret store resource. - :vartype secret_store_resource: "SecretStoreResource" - :ivar object_type: Type of the specific object - used for deserializing. Required. Default - value is "SecretStoreBasedAuthCredentials". - :vartype object_type: Literal["SecretStoreBasedAuthCredentials"] + :ivar secretStoreResource: Secret store resource. + :vartype secretStoreResource: "SecretStoreResource" + :ivar objectType: Type of the specific object - used for deserializing. Required. Default value + is "SecretStoreBasedAuthCredentials". + :vartype objectType: Literal["SecretStoreBasedAuthCredentials"] """ secretStoreResource: "SecretStoreResource" @@ -2141,9 +2214,9 @@ class SecretStoreResource(TypedDict, total=False): :ivar uri: Uri to get to the resource. :vartype uri: str - :ivar secret_store_type: Gets or sets the type of secret store. Required. Known values are: + :ivar secretStoreType: Gets or sets the type of secret store. Required. Known values are: "Invalid" and "AzureKeyVault". - :vartype secret_store_type: Union[str, "SecretStoreType"] + :vartype secretStoreType: Union[str, "SecretStoreType"] :ivar value: Gets or sets value stored in secret store resource. :vartype value: str """ @@ -2160,12 +2233,12 @@ class SecretStoreResource(TypedDict, total=False): class SecuritySettings(TypedDict, total=False): """Class containing security settings of vault. - :ivar soft_delete_settings: Soft delete related settings. - :vartype soft_delete_settings: "SoftDeleteSettings" - :ivar immutability_settings: Immutability Settings at vault level. - :vartype immutability_settings: "ImmutabilitySettings" - :ivar encryption_settings: Customer Managed Key details of the resource. - :vartype encryption_settings: "EncryptionSettings" + :ivar softDeleteSettings: Soft delete related settings. + :vartype softDeleteSettings: "SoftDeleteSettings" + :ivar immutabilitySettings: Immutability Settings at vault level. + :vartype immutabilitySettings: "ImmutabilitySettings" + :ivar encryptionSettings: Customer Managed Key details of the resource. + :vartype encryptionSettings: "EncryptionSettings" """ softDeleteSettings: "SoftDeleteSettings" @@ -2181,8 +2254,8 @@ class SoftDeleteSettings(TypedDict, total=False): :ivar state: State of soft delete. Known values are: "Off", "On", and "AlwaysOn". :vartype state: Union[str, "SoftDeleteState"] - :ivar retention_duration_in_days: Soft delete retention duration. - :vartype retention_duration_in_days: float + :ivar retentionDurationInDays: Soft delete retention duration. + :vartype retentionDurationInDays: float """ state: Union[str, "SoftDeleteState"] @@ -2194,12 +2267,12 @@ class SoftDeleteSettings(TypedDict, total=False): class SourceLifeCycle(TypedDict, total=False): """Source LifeCycle. - :ivar delete_after: Delete Option. Required. - :vartype delete_after: "DeleteOption" - :ivar source_data_store: DataStoreInfo base. Required. - :vartype source_data_store: "DataStoreInfoBase" - :ivar target_data_store_copy_settings: - :vartype target_data_store_copy_settings: list["TargetCopySetting"] + :ivar deleteAfter: Delete Option. Required. + :vartype deleteAfter: "DeleteOption" + :ivar sourceDataStore: DataStoreInfo base. Required. + :vartype sourceDataStore: "DataStoreInfoBase" + :ivar targetDataStoreCopySettings: + :vartype targetDataStoreCopySettings: list["TargetCopySetting"] """ deleteAfter: Required["DeleteOption"] @@ -2212,9 +2285,9 @@ class SourceLifeCycle(TypedDict, total=False): class StopProtectionRequest(TypedDict, total=False): """Request body of Stop protection when MUA is Enabled. - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] """ resourceGuardOperationRequests: list[str] @@ -2224,9 +2297,9 @@ class StopProtectionRequest(TypedDict, total=False): class StorageSetting(TypedDict, total=False): """Storage setting. - :ivar datastore_type: Gets or sets the type of the datastore. Known values are: "ArchiveStore", + :ivar datastoreType: Gets or sets the type of the datastore. Known values are: "ArchiveStore", "OperationalStore", and "VaultStore". - :vartype datastore_type: Union[str, "StorageSettingStoreTypes"] + :vartype datastoreType: Union[str, "StorageSettingStoreTypes"] :ivar type: Gets or sets the type. Known values are: "GeoRedundant", "LocallyRedundant", and "ZoneRedundant". :vartype type: Union[str, "StorageSettingTypes"] @@ -2243,9 +2316,9 @@ class StorageSetting(TypedDict, total=False): class SuspendBackupRequest(TypedDict, total=False): """Request body of Suspend backup when MUA is Enabled. - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] """ resourceGuardOperationRequests: list[str] @@ -2255,9 +2328,9 @@ class SuspendBackupRequest(TypedDict, total=False): class SyncBackupInstanceRequest(TypedDict, total=False): """Sync BackupInstance Request. - :ivar sync_type: Field indicating sync type e.g. to sync only in case of failure or in all + :ivar syncType: Field indicating sync type e.g. to sync only in case of failure or in all cases. Known values are: "Default" and "ForceResync". - :vartype sync_type: Union[str, "SyncType"] + :vartype syncType: Union[str, "SyncType"] """ syncType: Union[str, "SyncType"] @@ -2268,20 +2341,20 @@ class SyncBackupInstanceRequest(TypedDict, total=False): class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: Union[str, "CreatedByType"] - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: str - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: Union[str, "CreatedByType"] - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: str + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str """ createdBy: str @@ -2305,12 +2378,12 @@ class TaggingCriteria(TypedDict, total=False): :ivar criteria: Criteria which decides whether the tag can be applied to a triggered backup. :vartype criteria: list["BackupCriteria"] - :ivar is_default: Specifies if tag is default. Required. - :vartype is_default: bool - :ivar tagging_priority: Retention Tag priority. Required. - :vartype tagging_priority: int - :ivar tag_info: Retention tag information. Required. - :vartype tag_info: "RetentionTag" + :ivar isDefault: Specifies if tag is default. Required. + :vartype isDefault: bool + :ivar taggingPriority: Retention Tag priority. Required. + :vartype taggingPriority: int + :ivar tagInfo: Retention tag information. Required. + :vartype tagInfo: "RetentionTag" """ criteria: list["BackupCriteria"] @@ -2326,10 +2399,10 @@ class TaggingCriteria(TypedDict, total=False): class TargetCopySetting(TypedDict, total=False): """Target copy settings. - :ivar copy_after: It can be CustomCopyOption or ImmediateCopyOption. Required. - :vartype copy_after: "CopyOption" - :ivar data_store: Info of target datastore. Required. - :vartype data_store: "DataStoreInfoBase" + :ivar copyAfter: It can be CustomCopyOption or ImmediateCopyOption. Required. + :vartype copyAfter: "CopyOption" + :ivar dataStore: Info of target datastore. Required. + :vartype dataStore: "DataStoreInfoBase" """ copyAfter: Required["CopyOption"] @@ -2341,22 +2414,22 @@ class TargetCopySetting(TypedDict, total=False): class TargetDetails(TypedDict, total=False): """Class encapsulating target details, used where the destination is not a datasource. - :ivar file_prefix: Restore operation may create multiple files inside location pointed by Url + :ivar filePrefix: Restore operation may create multiple files inside location pointed by Url Below will be the common prefix for all of them. Required. - :vartype file_prefix: str - :ivar restore_target_location_type: Denotes the target location where the data will be - restored, string value for the enum + :vartype filePrefix: str + :ivar restoreTargetLocationType: Denotes the target location where the data will be restored, + string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}. Required. Known values are: "Invalid", "AzureBlobs", and "AzureFiles". - :vartype restore_target_location_type: Union[str, "RestoreTargetLocationType"] + :vartype restoreTargetLocationType: Union[str, "RestoreTargetLocationType"] :ivar url: Url denoting the restore destination. It can point to container / file share etc. Required. :vartype url: str - :ivar target_resource_arm_id: Full ARM Id denoting the restore destination. It is the ARM Id + :ivar targetResourceArmId: Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share This is optional if the target subscription can be identified with the URL field. If not then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states. - :vartype target_resource_arm_id: str + :vartype targetResourceArmId: str """ filePrefix: Required[str] @@ -2378,9 +2451,9 @@ class TargetDetails(TypedDict, total=False): class TriggerBackupRequest(TypedDict, total=False): """Trigger backup request. - :ivar backup_rule_options: Name for the Rule of the Policy which needs to be applied for this + :ivar backupRuleOptions: Name for the Rule of the Policy which needs to be applied for this backup. Required. - :vartype backup_rule_options: "AdHocBackupRuleOptions" + :vartype backupRuleOptions: "AdHocBackupRuleOptions" """ backupRuleOptions: Required["AdHocBackupRuleOptions"] @@ -2390,11 +2463,11 @@ class TriggerBackupRequest(TypedDict, total=False): class UnlockDeleteRequest(TypedDict, total=False): """Request body of unlock delete API. - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] - :ivar resource_to_be_deleted: - :vartype resource_to_be_deleted: str + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] + :ivar resourceToBeDeleted: + :vartype resourceToBeDeleted: str """ resourceGuardOperationRequests: list[str] @@ -2405,10 +2478,10 @@ class UnlockDeleteRequest(TypedDict, total=False): class UserAssignedIdentity(TypedDict, total=False): """User assigned identity properties. - :ivar principal_id: The principal ID of the assigned identity. - :vartype principal_id: str - :ivar client_id: The client ID of the assigned identity. - :vartype client_id: str + :ivar principalId: The principal ID of the assigned identity. + :vartype principalId: str + :ivar clientId: The client ID of the assigned identity. + :vartype clientId: str """ principalId: str @@ -2424,18 +2497,18 @@ class UserFacingError(TypedDict, total=False): :vartype code: str :ivar details: Additional related Errors. :vartype details: list["UserFacingError"] - :ivar inner_error: Inner Error. - :vartype inner_error: "InnerError" - :ivar is_retryable: Whether the operation will be retryable or not. - :vartype is_retryable: bool - :ivar is_user_error: Whether the operation is due to a user error or service error. - :vartype is_user_error: bool + :ivar innerError: Inner Error. + :vartype innerError: "InnerError" + :ivar isRetryable: Whether the operation will be retryable or not. + :vartype isRetryable: bool + :ivar isUserError: Whether the operation is due to a user error or service error. + :vartype isUserError: bool :ivar properties: Any key value pairs that can be injected inside error object. :vartype properties: dict[str, str] :ivar message: :vartype message: str - :ivar recommended_action: RecommendedAction � localized. - :vartype recommended_action: list[str] + :ivar recommendedAction: RecommendedAction � localized. + :vartype recommendedAction: list[str] :ivar target: Target of the error. :vartype target: str """ @@ -2462,10 +2535,10 @@ class UserFacingError(TypedDict, total=False): class ValidateCrossRegionRestoreRequestObject(TypedDict, total=False): """Cross Region Restore Request Object. - :ivar restore_request_object: Gets or sets the restore request object. Required. - :vartype restore_request_object: "AzureBackupRestoreRequest" - :ivar cross_region_restore_details: Cross region restore details. Required. - :vartype cross_region_restore_details: "CrossRegionRestoreDetails" + :ivar restoreRequestObject: Gets or sets the restore request object. Required. + :vartype restoreRequestObject: "AzureBackupRestoreRequest" + :ivar crossRegionRestoreDetails: Cross region restore details. Required. + :vartype crossRegionRestoreDetails: "CrossRegionRestoreDetails" """ restoreRequestObject: Required["AzureBackupRestoreRequest"] @@ -2477,8 +2550,8 @@ class ValidateCrossRegionRestoreRequestObject(TypedDict, total=False): class ValidateForBackupRequest(TypedDict, total=False): """Validate for backup request. - :ivar backup_instance: Backup Instance. Required. - :vartype backup_instance: "BackupInstance" + :ivar backupInstance: Backup Instance. Required. + :vartype backupInstance: "BackupInstance" """ backupInstance: Required["BackupInstance"] @@ -2488,8 +2561,8 @@ class ValidateForBackupRequest(TypedDict, total=False): class ValidateForModifyBackupRequest(TypedDict, total=False): """Validate for modify backup request. - :ivar backup_instance: Backup Instance. Required. - :vartype backup_instance: "BackupInstance" + :ivar backupInstance: Backup Instance. Required. + :vartype backupInstance: "BackupInstance" """ backupInstance: Required["BackupInstance"] @@ -2499,8 +2572,8 @@ class ValidateForModifyBackupRequest(TypedDict, total=False): class ValidateRestoreRequestObject(TypedDict, total=False): """Validate restore request object. - :ivar restore_request_object: Gets or sets the restore request object. Required. - :vartype restore_request_object: "AzureBackupRestoreRequest" + :ivar restoreRequestObject: Gets or sets the restore request object. Required. + :vartype restoreRequestObject: "AzureBackupRestoreRequest" """ restoreRequestObject: Required["AzureBackupRestoreRequest"] @@ -2515,6 +2588,7 @@ class ValidateRestoreRequestObject(TypedDict, total=False): AdlsBlobBackupDatasourceParametersForAutoProtection, BlobBackupDatasourceParameters, BlobBackupDatasourceParametersForAutoProtection, + GenericBackupDatasourceParameters, KubernetesClusterBackupDatasourceParameters, ] AuthCredentials = Union[SecretStoreBasedAuthCredentials] @@ -2534,6 +2608,7 @@ class ValidateRestoreRequestObject(TypedDict, total=False): CopyOption = Union[CopyOnExpiryOption, CustomCopyOption, ImmediateCopyOption] FeatureValidationRequestBase = Union[FeatureValidationRequest] ItemLevelRestoreCriteria = Union[ + GenericRestoreDatasourceCriteria, ItemPathBasedRestoreCriteria, KubernetesClusterRestoreCriteria, KubernetesClusterVaultTierRestoreCriteria, diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/check_backup_vaults_name_availability.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/check_backup_vaults_name_availability.py index 687c98242bd3..97fb76c32fa5 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/check_backup_vaults_name_availability.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/check_backup_vaults_name_availability.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/CheckBackupVaultsNameAvailability.json +# x-ms-original-file: 2026-06-01/VaultCRUD/CheckBackupVaultsNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/checkfeature_support.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/checkfeature_support.py index ae87f3144373..e6751ef82514 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/checkfeature_support.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/checkfeature_support.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/CheckfeatureSupport.json +# x-ms-original-file: 2026-06-01/CheckfeatureSupport.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/create_or_update_backup_policy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/create_or_update_backup_policy.py index 782466711089..d99350642901 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/create_or_update_backup_policy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/create_or_update_backup_policy.py @@ -93,6 +93,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/PolicyCRUD/CreateOrUpdateBackupPolicy.json +# x-ms-original-file: 2026-06-01/PolicyCRUD/CreateOrUpdateBackupPolicy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_instance.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_instance.py index ed7b1e59e0ac..d34ea340c5d9 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_instance.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_instance.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/DeleteBackupInstance.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/DeleteBackupInstance.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_policy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_policy.py index d93a5368abe8..313618afbfc1 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_policy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_policy.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/PolicyCRUD/DeleteBackupPolicy.json +# x-ms-original-file: 2026-06-01/PolicyCRUD/DeleteBackupPolicy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_vault.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_vault.py index dbd143c02cca..757aaf14f8db 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_vault.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_backup_vault.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/VaultCRUD/DeleteBackupVault.json +# x-ms-original-file: 2026-06-01/VaultCRUD/DeleteBackupVault.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard.py index 1b6d3cd301fc..c08c19afba62 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/DeleteResourceGuard.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/DeleteResourceGuard.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard_proxy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard_proxy.py index bcccf96c898c..9c5ec3a44ed0 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard_proxy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/delete_resource_guard_proxy.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2026-03-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json +# x-ms-original-file: 2026-06-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_get.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_get.py index 68de06f6ef0b..1b872e734c65 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_get.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/DeletedBackupVaults_Get.json +# x-ms-original-file: 2026-06-01/DeletedBackupVaults_Get.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_list_by_location.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_list_by_location.py index 445ffe179ec4..30ccf9effe52 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_list_by_location.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/deleted_backup_vaults_list_by_location.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/DeletedBackupVaults_ListByLocation.json +# x-ms-original-file: 2026-06-01/DeletedBackupVaults_ListByLocation.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_job.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_job.py index 94ec00b81481..3d829ddacc9c 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_job.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_job.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/CrossRegionRestore/FetchCrossRegionRestoreJob.json +# x-ms-original-file: 2026-06-01/CrossRegionRestore/FetchCrossRegionRestoreJob.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_jobs.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_jobs.py index ec61d1ff9f00..a05cf3100490 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_jobs.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_cross_region_restore_jobs.py @@ -43,6 +43,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/CrossRegionRestore/FetchCrossRegionRestoreJobs.json +# x-ms-original-file: 2026-06-01/CrossRegionRestore/FetchCrossRegionRestoreJobs.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_secondary_rps.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_secondary_rps.py index e586a5281712..8f851ad0ef1d 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_secondary_rps.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/fetch_secondary_rps.py @@ -43,6 +43,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/CrossRegionRestore/FetchSecondaryRPs.json +# x-ms-original-file: 2026-06-01/CrossRegionRestore/FetchSecondaryRPs.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/find_restorable_time_ranges.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/find_restorable_time_ranges.py index ef94e987c5f6..2cca159c871b 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/find_restorable_time_ranges.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/find_restorable_time_ranges.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/FindRestorableTimeRanges.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/FindRestorableTimeRanges.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance.py index b0ea2f49ff67..2d1fadba7dbb 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/GetBackupInstance.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/GetBackupInstance.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_auto_protection.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_auto_protection.py index 062bd0928d87..e7eca74f32d7 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_auto_protection.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_auto_protection.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupAutoProtection.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupAutoProtection.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_datasource_parameters.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_datasource_parameters.py index d1ce869f12b9..93a23ca679e2 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_datasource_parameters.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_adlsblob_backup_datasource_parameters.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupDatasourceParameters.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/GetBackupInstance_ADLSBlobBackupDatasourceParameters.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_blob_backup_auto_protection.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_blob_backup_auto_protection.py index 4db4c78d3632..6aabc7575ca3 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_blob_backup_auto_protection.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_blob_backup_auto_protection.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/GetBackupInstance_BlobBackupAutoProtection.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/GetBackupInstance_BlobBackupAutoProtection.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_operation_result.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_operation_result.py index be347b1dcb76..f44c7b10e74a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_operation_result.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_instance_operation_result.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/GetBackupInstanceOperationResult.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/GetBackupInstanceOperationResult.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_policy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_policy.py index 7103e5b51a0c..4e59c7724a0a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_policy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/PolicyCRUD/GetBackupPolicy.json +# x-ms-original-file: 2026-06-01/PolicyCRUD/GetBackupPolicy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault.py index 2bc638759716..af1c7c126414 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/GetBackupVault.json +# x-ms-original-file: 2026-06-01/VaultCRUD/GetBackupVault.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_cmk.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_cmk.py index 3b330213e5a4..d728c1ed4405 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_cmk.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_cmk.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/GetBackupVaultWithCMK.json +# x-ms-original-file: 2026-06-01/VaultCRUD/GetBackupVaultWithCMK.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_cost_management_settings.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_cost_management_settings.py new file mode 100644 index 000000000000..ce20017f24e5 --- /dev/null +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_cost_management_settings.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.dataprotection import DataProtectionMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-dataprotection +# USAGE + python get_backup_vault_with_cost_management_settings.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataProtectionMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.backup_vaults.get( + resource_group_name="SampleResourceGroup", + vault_name="swaggerExample", + ) + print(response) + + +# x-ms-original-file: 2026-06-01/VaultCRUD/GetBackupVaultWithCostManagementSettings.json +if __name__ == "__main__": + main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_msi.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_msi.py index 1e7ff6b0b27b..24988bb22c43 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_msi.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vault_with_msi.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/GetBackupVaultWithMSI.json +# x-ms-original-file: 2026-06-01/VaultCRUD/GetBackupVaultWithMSI.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_resource_group.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_resource_group.py index 8e5af10dddff..b20e1ca044a9 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_resource_group.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/VaultCRUD/GetBackupVaultsInResourceGroup.json +# x-ms-original-file: 2026-06-01/VaultCRUD/GetBackupVaultsInResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_subscription.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_subscription.py index 01b65a7a8e86..9d64f45c29fe 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_subscription.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_backup_vaults_in_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/VaultCRUD/GetBackupVaultsInSubscription.json +# x-ms-original-file: 2026-06-01/VaultCRUD/GetBackupVaultsInSubscription.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_backup_security_pin_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_backup_security_pin_requests.py index 84a5a2c763bc..c6422e5cedd2 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_backup_security_pin_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_backup_security_pin_requests.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_protected_item_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_protected_item_requests.py index 3b14bfe48d11..d23e2852cf3b 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_protected_item_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_protected_item_requests.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_resource_guard_proxy_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_resource_guard_proxy_requests.py index a1f89df7fc79..3a4cacb3b524 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_resource_guard_proxy_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_delete_resource_guard_proxy_requests.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_disable_soft_delete_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_disable_soft_delete_requests.py index 19bf963895f3..a1bec5476736 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_disable_soft_delete_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_disable_soft_delete_requests.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protected_item_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protected_item_requests.py index 766cf7e1ed75..adcc7aa6a9e4 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protected_item_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protected_item_requests.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protection_policy_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protection_policy_requests.py index 142aed864e4a..fa1c9e13b4f2 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protection_policy_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_default_update_protection_policy_requests.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_deleted_backup_instance.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_deleted_backup_instance.py index 518d74b2613e..1d016a382ada 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_deleted_backup_instance.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_deleted_backup_instance.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json +# x-ms-original-file: 2026-06-01/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_export_jobs_operation_result.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_export_jobs_operation_result.py index f5253a9da3b8..f89d1b3d4ca4 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_export_jobs_operation_result.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_export_jobs_operation_result.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/JobCRUD/GetExportJobsOperationResult.json +# x-ms-original-file: 2026-06-01/JobCRUD/GetExportJobsOperationResult.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_job.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_job.py index 6af6f9154d25..c2b9d53cb734 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_job.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_job.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/JobCRUD/GetJob.json +# x-ms-original-file: 2026-06-01/JobCRUD/GetJob.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result.py index bef6de2f0cea..9edcdaffb167 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/GetOperationResult.json +# x-ms-original-file: 2026-06-01/GetOperationResult.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result_patch.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result_patch.py index c09710bb3998..c39dc2854995 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result_patch.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result_patch.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/GetOperationResultPatch.json +# x-ms-original-file: 2026-06-01/VaultCRUD/GetOperationResultPatch.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status.py index 5e9b969ce9ec..0299c5a4c405 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/GetOperationStatus.json +# x-ms-original-file: 2026-06-01/GetOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_rg_context.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_rg_context.py index 9aaa790e9bef..13e62d5ae8fe 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_rg_context.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_rg_context.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/GetOperationStatusRGContext.json +# x-ms-original-file: 2026-06-01/GetOperationStatusRGContext.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_vault_context.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_vault_context.py index e62fd5f76fac..64a7d2443be7 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_vault_context.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_status_vault_context.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/GetOperationStatusVaultContext.json +# x-ms-original-file: 2026-06-01/GetOperationStatusVaultContext.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_recovery_point.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_recovery_point.py index 497758d2a793..76119e94714c 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_recovery_point.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_recovery_point.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/GetRecoveryPoint.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/GetRecoveryPoint.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard.py index dbb8d552f6de..7a3cf638c796 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetResourceGuard.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetResourceGuard.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard_proxy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard_proxy.py index ff54c7144988..c89103e078db 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard_proxy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guard_proxy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json +# x-ms-original-file: 2026-06-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_resource_group.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_resource_group.py index 063c344563f2..aa8b4406c719 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_resource_group.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_subscription.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_subscription.py index 4be6c1fa3218..93b6c6d6ce44 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_subscription.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_resource_guards_in_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/GetResourceGuardsInSubscription.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/GetResourceGuardsInSubscription.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list.py index 0b798ec7ca07..afe78eb68e27 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/Operations/List.json +# x-ms-original-file: 2026-06-01/Operations/List.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances.py index 90ef4c9086b7..46bd97449f00 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ListBackupInstances.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ListBackupInstances.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances_extension_routing.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances_extension_routing.py index 178ecced0869..3ceb5de14d68 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances_extension_routing.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_instances_extension_routing.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_policy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_policy.py index a8031393ac0c..105bf6c5d7a7 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_policy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_policy.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/PolicyCRUD/ListBackupPolicy.json +# x-ms-original-file: 2026-06-01/PolicyCRUD/ListBackupPolicy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_security_pin_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_security_pin_requests.py index 377643f31f75..0cc272d92989 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_security_pin_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_backup_security_pin_requests.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/ListBackupSecurityPINRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/ListBackupSecurityPINRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_protected_item_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_protected_item_requests.py index 18a18ca78ae1..3efffdd0658e 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_protected_item_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_protected_item_requests.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_resource_guard_proxy_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_resource_guard_proxy_requests.py index 851b6992666e..d1c8563c0a3f 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_resource_guard_proxy_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_delete_resource_guard_proxy_requests.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_deleted_backup_instances.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_deleted_backup_instances.py index 8ef7b254754e..3629e9a138f1 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_deleted_backup_instances.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_deleted_backup_instances.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json +# x-ms-original-file: 2026-06-01/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_disable_soft_delete_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_disable_soft_delete_requests.py index 48a562d750cb..098342b75d24 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_disable_soft_delete_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_disable_soft_delete_requests.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_jobs.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_jobs.py index 129b2a2ff029..87c17e43d8ff 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_jobs.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_jobs.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/JobCRUD/ListJobs.json +# x-ms-original-file: 2026-06-01/JobCRUD/ListJobs.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_recovery_points.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_recovery_points.py index 146d670bfbd1..a7fc83b17ad2 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_recovery_points.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_recovery_points.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ListRecoveryPoints.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ListRecoveryPoints.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_resource_guard_proxy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_resource_guard_proxy.py index 78cde87f06dc..258f6277ce80 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_resource_guard_proxy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_resource_guard_proxy.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json +# x-ms-original-file: 2026-06-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protected_item_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protected_item_requests.py index 825f5c7b3625..388d0f6a075a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protected_item_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protected_item_requests.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protection_policy_requests.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protection_policy_requests.py index 24f3741935b2..b1791e8c21d1 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protection_policy_requests.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/list_update_protection_policy_requests.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault.py index 64f171307450..8659eb61c023 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/PatchBackupVault.json +# x-ms-original-file: 2026-06-01/VaultCRUD/PatchBackupVault.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault_with_cmk.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault_with_cmk.py index 7858c93c03b3..899db930098f 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault_with_cmk.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault_with_cmk.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/PatchBackupVaultWithCMK.json +# x-ms-original-file: 2026-06-01/VaultCRUD/PatchBackupVaultWithCMK.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault_with_cost_management_settings.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault_with_cost_management_settings.py new file mode 100644 index 000000000000..14abab5045e4 --- /dev/null +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_backup_vault_with_cost_management_settings.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.dataprotection import DataProtectionMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-dataprotection +# USAGE + python patch_backup_vault_with_cost_management_settings.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataProtectionMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.backup_vaults.begin_update( + resource_group_name="SampleResourceGroup", + vault_name="swaggerExample", + parameters={ + "properties": {"costManagementSettings": {"granularityLevel": "ProtectedItemLevel"}}, + "tags": {"newKey": "newVal"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-06-01/VaultCRUD/PatchBackupVaultWithCostManagementSettings.json +if __name__ == "__main__": + main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_resource_guard.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_resource_guard.py index 5779c8dafa59..46cc076b65b4 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_resource_guard.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/patch_resource_guard.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/PatchResourceGuard.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/PatchResourceGuard.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance.py index d182f26ba236..9e76a81b98f5 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance.py @@ -87,6 +87,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/PutBackupInstance.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/PutBackupInstance.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_auto_protection.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_auto_protection.py index e259ff4690ee..b3ccee8eb36c 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_auto_protection.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_auto_protection.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupAutoProtection.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupAutoProtection.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_datasource_parameters.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_datasource_parameters.py index 46c46a0965e3..285e38b9aeff 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_datasource_parameters.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_adlsblob_backup_datasource_parameters.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupDatasourceParameters.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/PutBackupInstance_ADLSBlobBackupDatasourceParameters.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_blob_backup_auto_protection.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_blob_backup_auto_protection.py index 9046f9d4b13b..026a36eaac17 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_blob_backup_auto_protection.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_blob_backup_auto_protection.py @@ -91,6 +91,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/PutBackupInstance_BlobBackupAutoProtection.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/PutBackupInstance_BlobBackupAutoProtection.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_kubernetes_cluster_backup_datasource_parameters.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_kubernetes_cluster_backup_datasource_parameters.py index 28f192fa9ceb..15648d7b76d2 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_kubernetes_cluster_backup_datasource_parameters.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_kubernetes_cluster_backup_datasource_parameters.py @@ -88,6 +88,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/PutBackupInstance_KubernetesClusterBackupDatasourceParameters.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/PutBackupInstance_KubernetesClusterBackupDatasourceParameters.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_resource_guard_enabled.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_resource_guard_enabled.py index d59d37af12bc..7cbf645ec067 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_resource_guard_enabled.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_resource_guard_enabled.py @@ -86,6 +86,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/PutBackupInstance_ResourceGuardEnabled.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_with_generic_parameters.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_with_generic_parameters.py new file mode 100644 index 000000000000..55c66eee0bbb --- /dev/null +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_instance_with_generic_parameters.py @@ -0,0 +1,85 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.dataprotection import DataProtectionMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-dataprotection +# USAGE + python put_backup_instance_with_generic_parameters.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataProtectionMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.backup_instances.begin_create_or_update( + resource_group_name="ESAN-ECYBVTRG", + vault_name="ESANVault", + backup_instance_name="esan-volgroup-bi", + parameters={ + "properties": { + "dataSourceInfo": { + "datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups", + "objectType": "Datasource", + "resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc/volumeGroups/esan-volgroup", + "resourceLocation": "eastus2euap", + "resourceName": "esan-volgroup-bi", + "resourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups", + "resourceUri": "SampleresourceUri123", + }, + "dataSourceSetInfo": { + "datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups", + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc", + "resourceLocation": "eastus2euap", + "resourceType": "Microsoft.ElasticSan/elasticSans", + }, + "friendlyName": "esan-volgroup-bi", + "objectType": "BackupInstance", + "policyInfo": { + "policyId": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.DataProtection/backupVaults/ESANVault/backupPolicies/BVTPolicy", + "policyParameters": { + "backupDatasourceParametersList": [ + { + "objectType": "GenericBackupDatasourceParameters", + "resourceSelectors": ["vol1", "vol2", "vol3"], + } + ], + "dataStoreParametersList": [ + { + "dataStoreType": "OperationalStore", + "objectType": "AzureOperationalStoreParameters", + "resourceGroupId": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG", + } + ], + }, + }, + }, + "tags": {"key1": "val1"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/PutBackupInstanceWithGenericParameters.json +if __name__ == "__main__": + main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault.py index 4e9d56385017..9cf09cc6638a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/PutBackupVault.json +# x-ms-original-file: 2026-06-01/VaultCRUD/PutBackupVault.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_cmk_settings_resource_guard_enabled.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_cmk_settings_resource_guard_enabled.py index 729b7837c44b..c252de0eab9a 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_cmk_settings_resource_guard_enabled.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_cmk_settings_resource_guard_enabled.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/PutBackupVaultCMKSettings_ResourceGuardEnabled.json +# x-ms-original-file: 2026-06-01/VaultCRUD/PutBackupVaultCMKSettings_ResourceGuardEnabled.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_cmk.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_cmk.py index 69e99a312a71..0e96fae0376c 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_cmk.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_cmk.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/PutBackupVaultWithCMK.json +# x-ms-original-file: 2026-06-01/VaultCRUD/PutBackupVaultWithCMK.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_cost_management_settings.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_cost_management_settings.py new file mode 100644 index 000000000000..0fa71fa24f7a --- /dev/null +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_cost_management_settings.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.dataprotection import DataProtectionMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-dataprotection +# USAGE + python put_backup_vault_with_cost_management_settings.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataProtectionMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.backup_vaults.begin_create_or_update( + resource_group_name="SampleResourceGroup", + vault_name="swaggerExample", + parameters={ + "location": "WestUS", + "properties": { + "costManagementSettings": {"granularityLevel": "ProtectedItemLevel"}, + "featureSettings": {"crossRegionRestoreSettings": {"state": "Enabled"}}, + "monitoringSettings": {"azureMonitorAlertSettings": {"alertsForAllJobFailures": "Enabled"}}, + "securitySettings": {"softDeleteSettings": {"retentionDurationInDays": 14, "state": "Enabled"}}, + "storageSettings": [{"datastoreType": "VaultStore", "type": "LocallyRedundant"}], + }, + "tags": {"key1": "val1"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-06-01/VaultCRUD/PutBackupVaultWithCostManagementSettings.json +if __name__ == "__main__": + main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_msi.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_msi.py index 3b4680d0ed5a..bbed0699de52 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_msi.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_msi.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/VaultCRUD/PutBackupVaultWithMSI.json +# x-ms-original-file: 2026-06-01/VaultCRUD/PutBackupVaultWithMSI.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_undelete.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_undelete.py index 0f3af6fc5767..c375b582ff5f 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_undelete.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_backup_vault_with_undelete.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/PutBackupVaultWithUndelete.json +# x-ms-original-file: 2026-06-01/PutBackupVaultWithUndelete.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard.py index d462df04b7aa..fecde6e8592b 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardCRUD/PutResourceGuard.json +# x-ms-original-file: 2026-06-01/ResourceGuardCRUD/PutResourceGuard.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard_proxy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard_proxy.py index a37129b52107..0fceac9baaf7 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard_proxy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/put_resource_guard_proxy.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json +# x-ms-original-file: 2026-06-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_backups.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_backups.py index 24d8d1a3d754..27473406a2b4 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_backups.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_backups.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ResumeBackups.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ResumeBackups.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_protection.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_protection.py index 060cd1580431..972cecf45e86 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_protection.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/resume_protection.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ResumeProtection.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ResumeProtection.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection.py index c64935509884..4f784a7a260c 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/StopProtection.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/StopProtection.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection_resource_guard_enabled.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection_resource_guard_enabled.py index d1dc86368614..e4a34b6879f8 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection_resource_guard_enabled.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/stop_protection_resource_guard_enabled.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/StopProtection_ResourceGuardEnabled.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backup_resource_guard_enabled.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backup_resource_guard_enabled.py index 3bf2e1b09ebe..f018cec1d2fe 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backup_resource_guard_enabled.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backup_resource_guard_enabled.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/SuspendBackup_ResourceGuardEnabled.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backups.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backups.py index 9707fb1d170b..f8df6d75bcad 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backups.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/suspend_backups.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/SuspendBackups.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/SuspendBackups.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/sync_backup_instance.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/sync_backup_instance.py index 6c1ede4362f7..ef84f4daec74 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/sync_backup_instance.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/sync_backup_instance.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/SyncBackupInstance.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/SyncBackupInstance.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_backup.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_backup.py index 4ef6c7cc55f1..ee1935a1ada9 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_backup.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_backup.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/TriggerBackup.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/TriggerBackup.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_cross_region_restore.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_cross_region_restore.py index 30d0dc184b4f..05c6be84ad83 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_cross_region_restore.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_cross_region_restore.py @@ -80,6 +80,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/CrossRegionRestore/TriggerCrossRegionRestore.json +# x-ms-original-file: 2026-06-01/CrossRegionRestore/TriggerCrossRegionRestore.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_export_jobs.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_export_jobs.py index 22ab47f07914..21c00e5c8447 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_export_jobs.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_export_jobs.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/JobCRUD/TriggerExportJobs.json +# x-ms-original-file: 2026-06-01/JobCRUD/TriggerExportJobs.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_rehydrate.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_rehydrate.py index eabc5ee7c30d..acf391ce2b09 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_rehydrate.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_rehydrate.py @@ -42,6 +42,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/TriggerRehydrate.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/TriggerRehydrate.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore.py index c1cde49b0818..a21fff29312b 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore.py @@ -79,6 +79,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/TriggerRestore.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/TriggerRestore.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_as_files.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_as_files.py index 96404da1a9a5..8f274f23b35d 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_as_files.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_as_files.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/TriggerRestoreAsFiles.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/TriggerRestoreAsFiles.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_with_generic_parameters.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_with_generic_parameters.py new file mode 100644 index 000000000000..5835edf5a4e0 --- /dev/null +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_with_generic_parameters.py @@ -0,0 +1,80 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.dataprotection import DataProtectionMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-dataprotection +# USAGE + python trigger_restore_with_generic_parameters.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataProtectionMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.backup_instances.begin_trigger_restore( + resource_group_name="000pikumar", + vault_name="PrivatePreviewVault1", + backup_instance_name="testInstance1", + parameters={ + "objectType": "AzureBackupRecoveryPointBasedRestoreRequest", + "recoveryPointId": "hardcodedRP", + "restoreTargetInfo": { + "datasourceInfo": { + "datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups", + "objectType": "Datasource", + "resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc/volumeGroups/target-esan-volgroup", + "resourceLocation": "eastus2euap", + "resourceName": "target-esan-volgroup", + "resourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups", + "resourceUri": "SampleresourceUri123", + }, + "datasourceSetInfo": { + "datasourceType": "Microsoft.ElasticSan/elasticSans/volumeGroups", + "objectType": "DatasourceSet", + "resourceID": "/subscriptions/97cda027-4279-4cde-b4ff-19afa0021d87/resourceGroups/ESAN-ECYBVTRG/providers/Microsoft.ElasticSan/elasticSans/ecy-bvt-adhoc", + "resourceLocation": "eastus2euap", + "resourceType": "Microsoft.ElasticSan/elasticSans", + }, + "objectType": "ItemLevelRestoreTargetInfo", + "recoveryOption": "FailIfExists", + "restoreCriteria": [ + { + "objectType": "GenericRestoreDatasourceCriteria", + "resourceSelectors": { + "objectType": "resourceListSelectionCriteria", + "resourceIdentifiers": ["source-vol1", "source-vol2", "source-vol3"], + "resourceNameOverrides": {"source-vol1": "target-vol1", "source-vol2": "target-vol2"}, + }, + } + ], + "restoreLocation": "southeastasia", + }, + "sourceDataStoreType": "OperationalStore", + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/TriggerRestoreWithGenericParameters.json +if __name__ == "__main__": + main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_with_rehydration.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_with_rehydration.py index 9aa5f133abcf..4cb6953415e9 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_with_rehydration.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/trigger_restore_with_rehydration.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/TriggerRestoreWithRehydration.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/undelete_deleted_backup_instance.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/undelete_deleted_backup_instance.py index 7930e865ada2..ebb0d56e8183 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/undelete_deleted_backup_instance.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/undelete_deleted_backup_instance.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json +# x-ms-original-file: 2026-06-01/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/unlock_delete_resource_guard_proxy.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/unlock_delete_resource_guard_proxy.py index b011a573fef8..ba5a382ac179 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/unlock_delete_resource_guard_proxy.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/unlock_delete_resource_guard_proxy.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json +# x-ms-original-file: 2026-06-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_cross_region_restore.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_cross_region_restore.py index f8bf4ba3efb9..8f5fec8de6c8 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_cross_region_restore.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_cross_region_restore.py @@ -80,6 +80,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/CrossRegionRestore/ValidateCrossRegionRestore.json +# x-ms-original-file: 2026-06-01/CrossRegionRestore/ValidateCrossRegionRestore.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_backup.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_backup.py index 34a469e933b4..266bdf205623 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_backup.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_backup.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ValidateForBackup.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ValidateForBackup.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_modify_backup.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_modify_backup.py index f83e90a7e694..cf684822614c 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_modify_backup.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_for_modify_backup.py @@ -76,6 +76,6 @@ def main(): ).result() -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ValidateForModifyBackup.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ValidateForModifyBackup.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_restore.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_restore.py index 7217a266b3f4..60045a2cd062 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_restore.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/validate_restore.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: 2026-03-01/BackupInstanceOperations/ValidateRestore.json +# x-ms-original-file: 2026-06-01/BackupInstanceOperations/ValidateRestore.json if __name__ == "__main__": main() diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations.py index c94f3908b091..e838237c33c3 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations.py @@ -39,6 +39,7 @@ def test_backup_vaults_begin_create_or_update(self, resource_group): "location": "str", "properties": { "bcdrSecurityLevel": "str", + "costManagementSettings": {"granularityLevel": "str"}, "featureSettings": { "crossRegionRestoreSettings": {"state": "str"}, "crossSubscriptionRestoreSettings": {"state": "str"}, @@ -108,6 +109,7 @@ def test_backup_vaults_begin_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "properties": { + "costManagementSettings": {"granularityLevel": "str"}, "featureSettings": { "crossRegionRestoreSettings": {"state": "str"}, "crossSubscriptionRestoreSettings": {"state": "str"}, diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations_async.py b/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations_async.py index ab78fd4b9517..c02d6f7a57dc 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations_async.py +++ b/sdk/dataprotection/azure-mgmt-dataprotection/generated_tests/test_data_protection_mgmt_backup_vaults_operations_async.py @@ -41,6 +41,7 @@ async def test_backup_vaults_begin_create_or_update(self, resource_group): "location": "str", "properties": { "bcdrSecurityLevel": "str", + "costManagementSettings": {"granularityLevel": "str"}, "featureSettings": { "crossRegionRestoreSettings": {"state": "str"}, "crossSubscriptionRestoreSettings": {"state": "str"}, @@ -112,6 +113,7 @@ async def test_backup_vaults_begin_update(self, resource_group): "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, }, "properties": { + "costManagementSettings": {"granularityLevel": "str"}, "featureSettings": { "crossRegionRestoreSettings": {"state": "str"}, "crossSubscriptionRestoreSettings": {"state": "str"}, diff --git a/sdk/dataprotection/azure-mgmt-dataprotection/tsp-location.yaml b/sdk/dataprotection/azure-mgmt-dataprotection/tsp-location.yaml index d3a1e1f7b672..5826c3d8e3d9 100644 --- a/sdk/dataprotection/azure-mgmt-dataprotection/tsp-location.yaml +++ b/sdk/dataprotection/azure-mgmt-dataprotection/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/dataprotection/resource-manager/Microsoft.DataProtection/DataProtection -commit: 801a60cdad2669e8f824fedfbabbfe7f7093b940 +commit: 4f774bdae44fac19491a1caa4ec91760d9bf9b1b repo: Azure/azure-rest-api-specs additionalDirectories: