From 177fc7a095a4474ff6a1de7bd351ea55ebbf6210 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 13 Aug 2026 08:24:04 +0000 Subject: [PATCH 1/3] Configurations: 'specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices/tspconfig.yaml', API Version: 2026-07-01, SDK Release Type: stable, and CommitSHA: 'e9b8d33567e9422a09711667279fe178fada51a1' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6697506 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../azure-mgmt-recoveryservices/CHANGELOG.md | 7 + .../_metadata.json | 10 +- .../azure-mgmt-recoveryservices/api.md | 505 ++------ .../api.metadata.yml | 4 +- .../apiview-properties.json | 3 +- .../azure/mgmt/recoveryservices/_client.py | 6 +- .../mgmt/recoveryservices/_configuration.py | 7 +- .../recoveryservices/_utils/model_base.py | 37 +- .../recoveryservices/_utils/serialization.py | 6 +- .../azure/mgmt/recoveryservices/_version.py | 2 +- .../mgmt/recoveryservices/aio/_client.py | 6 +- .../recoveryservices/aio/_configuration.py | 7 +- .../aio/operations/_operations.py | 70 +- .../mgmt/recoveryservices/models/__init__.py | 2 + .../mgmt/recoveryservices/models/_models.py | 162 ++- .../operations/_operations.py | 118 +- .../azure/mgmt/recoveryservices/types.py | 1020 ++++------------- .../generated_samples/capabilities.py | 2 +- .../check_name_availability_available.py | 2 +- .../check_name_availability_not_available.py | 2 +- .../delete_registered_identities.py | 2 +- .../generated_samples/delete_vault.py | 2 +- .../generated_samples/deleted_vaults_get.py | 2 +- .../deleted_vaults_get_operation_status.py | 2 +- .../deleted_vaults_list_by_subscription_id.py | 2 +- .../deleted_vaults_undelete.py | 2 +- .../generated_samples/get_operation_result.py | 2 +- .../generated_samples/get_operation_status.py | 2 +- .../get_private_link_resources.py | 2 +- .../generated_samples/get_vault.py | 2 +- .../get_vault_extended_info.py | 2 +- ...et_vault_with_region_of_choice_settings.py | 42 + .../list_by_subscription_ids.py | 2 +- .../generated_samples/list_operations.py | 2 +- .../list_private_link_resources.py | 2 +- .../list_replication_usages.py | 2 +- .../generated_samples/list_resources.py | 2 +- .../generated_samples/list_usages.py | 2 +- .../generated_samples/patch_vault.py | 2 +- .../generated_samples/patch_vault_with_cmk.py | 2 +- .../patch_vault_with_cmk2.py | 2 +- .../patch_vault_with_cmk3.py | 2 +- ...tch_vault_with_cost_management_settings.py | 2 +- .../patch_vault_with_immutability_config.py | 2 +- .../patch_vault_with_monitoring_settings.py | 2 +- .../patch_vault_with_redundancy_settings.py | 2 +- ...ch_vault_with_region_of_choice_settings.py | 46 + ...ch_vault_with_source_scan_configuration.py | 2 +- ...patch_vault_with_user_assigned_identity.py | 2 +- .../generated_samples/put_vault.py | 2 +- .../generated_samples/put_vault_cred.py | 2 +- .../put_vault_resource_guard_enabled.py | 2 +- .../generated_samples/put_vault_with_cmk.py | 2 +- ...put_vault_with_cost_management_settings.py | 2 +- .../put_vault_with_immutability_config.py | 2 +- .../put_vault_with_monitoring_settings.py | 2 +- .../put_vault_with_redundancy_settings.py | 2 +- ...ut_vault_with_region_of_choice_settings.py | 48 + ...ut_vault_with_source_scan_configuration.py | 2 +- .../put_vault_with_user_assigned_identity.py | 2 +- .../update_vault_extended_info.py | 2 +- .../update_vault_extended_info_put.py | 2 +- ...est_recovery_services_vaults_operations.py | 2 + ...covery_services_vaults_operations_async.py | 2 + .../tsp-location.yaml | 2 +- 65 files changed, 794 insertions(+), 1404 deletions(-) create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_with_region_of_choice_settings.py create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_region_of_choice_settings.py create mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_region_of_choice_settings.py diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md b/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md index 9e5f52f69c25..a9c19d10e47c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md @@ -1,5 +1,12 @@ # Release History +## 4.2.0 (2026-08-13) + +### Features Added + + - Model `VaultProperties` added property `region_of_choice_settings` + - Added model `RegionOfChoiceSettings` + ## 4.1.0 (2026-07-07) ### Features Added diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json b/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json index d7f7407ee72b..d9806e80136b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2026-05-01", + "apiVersion": "2026-07-01", "apiVersions": { - "Microsoft.RecoveryServices": "2026-05-01" + "Microsoft.RecoveryServices": "2026-07-01" }, - "commit": "3de4ed97d8bf726aa7fb8dea311a5a7d5ec59730", + "commit": "e9b8d33567e9422a09711667279fe178fada51a1", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.34.0" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.35.1" } \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/api.md b/sdk/recoveryservices/azure-mgmt-recoveryservices/api.md index 5ae2b1634829..50b9f046e4f9 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/api.md +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/api.md @@ -153,7 +153,7 @@ namespace azure.mgmt.recoveryservices.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01']) + @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01', '2026-05-31-preview', '2026-07-01']) async def get( self, location: str, @@ -162,7 +162,7 @@ namespace azure.mgmt.recoveryservices.aio.operations ) -> DeletedVault: ... @distributed_trace_async - @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'operation_id', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01']) + @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'operation_id', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01', '2026-05-31-preview', '2026-07-01']) async def get_operation_status( self, location: str, @@ -172,7 +172,7 @@ namespace azure.mgmt.recoveryservices.aio.operations ) -> OperationResource: ... @distributed_trace - @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01']) + @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01', '2026-05-31-preview', '2026-07-01']) def list_by_subscription_id( self, location: str, @@ -1387,6 +1387,20 @@ namespace azure.mgmt.recoveryservices.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.recoveryservices.models.RegionOfChoiceSettings(_Model): + status: Optional[Union[str, State]] + + @overload + def __init__( + self, + *, + status: Optional[Union[str, State]] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.recoveryservices.models.ReplicationUsage(_Model): jobs_summary: Optional[JobsSummary] monitoring_summary: Optional[MonitoringSummary] @@ -1884,6 +1898,7 @@ namespace azure.mgmt.recoveryservices.models provisioning_state: Optional[str] public_network_access: Optional[Union[str, PublicNetworkAccess]] redundancy_settings: Optional[VaultPropertiesRedundancySettings] + region_of_choice_settings: Optional[RegionOfChoiceSettings] resource_guard_operation_requests: Optional[list[str]] restore_settings: Optional[RestoreSettings] secure_score: Optional[Union[str, SecureScoreLevel]] @@ -1900,6 +1915,7 @@ namespace azure.mgmt.recoveryservices.models move_details: Optional[VaultPropertiesMoveDetails] = ..., public_network_access: Optional[Union[str, PublicNetworkAccess]] = ..., redundancy_settings: Optional[VaultPropertiesRedundancySettings] = ..., + region_of_choice_settings: Optional[RegionOfChoiceSettings] = ..., resource_guard_operation_requests: Optional[list[str]] = ..., restore_settings: Optional[RestoreSettings] = ..., security_settings: Optional[SecuritySettings] = ..., @@ -2033,7 +2049,7 @@ namespace azure.mgmt.recoveryservices.operations ) -> LROPoller[None]: ... @distributed_trace - @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01']) + @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01', '2026-05-31-preview', '2026-07-01']) def get( self, location: str, @@ -2042,7 +2058,7 @@ namespace azure.mgmt.recoveryservices.operations ) -> DeletedVault: ... @distributed_trace - @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'operation_id', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01']) + @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'deleted_vault_name', 'operation_id', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01', '2026-05-31-preview', '2026-07-01']) def get_operation_status( self, location: str, @@ -2052,7 +2068,7 @@ namespace azure.mgmt.recoveryservices.operations ) -> OperationResource: ... @distributed_trace - @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01']) + @api_version_validation(method_added_on='2025-08-01', params_added_on={'2025-08-01': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2025-08-01', '2026-01-01', '2026-02-01', '2026-03-31-preview', '2026-05-01', '2026-05-31-preview', '2026-07-01']) def list_by_subscription_id( self, location: str, @@ -2462,34 +2478,21 @@ namespace azure.mgmt.recoveryservices.types class azure.mgmt.recoveryservices.types.AssociatedIdentity(TypedDict, total=False): key "operationIdentityType": Union[str, IdentityType] key "userAssignedIdentity": str - operation_identity_type: Union[str, IdentityType] - user_assigned_identity: str + operationIdentityType: Union[str, IdentityType] + userAssignedIdentity: str class azure.mgmt.recoveryservices.types.AzureMonitorAlertSettings(TypedDict, total=False): key "alertsForAllFailoverIssues": Union[str, AlertsState] key "alertsForAllJobFailures": Union[str, AlertsState] key "alertsForAllReplicationIssues": Union[str, AlertsState] - alerts_for_all_failover_issues: Union[str, AlertsState] - alerts_for_all_job_failures: Union[str, AlertsState] - alerts_for_all_replication_issues: Union[str, AlertsState] + alertsForAllFailoverIssues: Union[str, AlertsState] + alertsForAllJobFailures: Union[str, AlertsState] + alertsForAllReplicationIssues: Union[str, AlertsState] class azure.mgmt.recoveryservices.types.CapabilitiesProperties(TypedDict, total=False): dnsZones: list[DNSZone] - dns_zones: list[DNSZone] - - - class azure.mgmt.recoveryservices.types.CapabilitiesResponse(ResourceCapabilitiesBase): - key "properties": ForwardRef('CapabilitiesResponseProperties', module='types') - key "type": Required[str] - properties: CapabilitiesResponseProperties - type: str - - - class azure.mgmt.recoveryservices.types.CapabilitiesResponseProperties(TypedDict, total=False): - dnsZones: list[DNSZoneResponse] - dns_zones: list[DNSZoneResponse] class azure.mgmt.recoveryservices.types.CertificateRequest(TypedDict, total=False): @@ -2504,122 +2507,38 @@ namespace azure.mgmt.recoveryservices.types type: str - class azure.mgmt.recoveryservices.types.CheckNameAvailabilityResult(TypedDict, total=False): - key "message": str - key "nameAvailable": bool - key "reason": str - message: str - name_available: bool - reason: str - - class azure.mgmt.recoveryservices.types.ClassicAlertSettings(TypedDict, total=False): key "alertsForCriticalOperations": Union[str, AlertsState] key "emailNotificationsForSiteRecovery": Union[str, AlertsState] - alerts_for_critical_operations: Union[str, AlertsState] - email_notifications_for_site_recovery: Union[str, AlertsState] - - - class azure.mgmt.recoveryservices.types.ClientDiscoveryDisplay(TypedDict, total=False): - key "description": str - key "operation": str - key "provider": str - key "resource": str - description: str - operation: str - provider: str - resource: str - - - class azure.mgmt.recoveryservices.types.ClientDiscoveryForLogSpecification(TypedDict, total=False): - key "blobDuration": str - key "displayName": str - key "name": str - blob_duration: str - display_name: str - name: str - - - class azure.mgmt.recoveryservices.types.ClientDiscoveryForProperties(TypedDict, total=False): - key "serviceSpecification": ForwardRef('ClientDiscoveryForServiceSpecification', module='types') - service_specification: ClientDiscoveryForServiceSpecification - - - class azure.mgmt.recoveryservices.types.ClientDiscoveryForServiceSpecification(TypedDict, total=False): - logSpecifications: list[ClientDiscoveryForLogSpecification] - log_specifications: list[ClientDiscoveryForLogSpecification] - - - class azure.mgmt.recoveryservices.types.ClientDiscoveryValueForSingleApi(TypedDict, total=False): - key "display": ForwardRef('ClientDiscoveryDisplay', module='types') - key "name": str - key "origin": str - key "properties": ForwardRef('ClientDiscoveryForProperties', module='types') - display: ClientDiscoveryDisplay - name: str - origin: str - properties: ClientDiscoveryForProperties - - - class azure.mgmt.recoveryservices.types.CloudError(TypedDict, total=False): - key "error": ForwardRef('Error', module='types') - error: Error + alertsForCriticalOperations: Union[str, AlertsState] + emailNotificationsForSiteRecovery: Union[str, AlertsState] class azure.mgmt.recoveryservices.types.CmkKekIdentity(TypedDict, total=False): key "useSystemAssignedIdentity": bool key "userAssignedIdentity": str - use_system_assigned_identity: bool - user_assigned_identity: str + useSystemAssignedIdentity: bool + userAssignedIdentity: str class azure.mgmt.recoveryservices.types.CmkKeyVaultProperties(TypedDict, total=False): key "keyUri": str - key_uri: str + keyUri: str class azure.mgmt.recoveryservices.types.CostManagementSettings(TypedDict, total=False): key "granularityLevel": Union[str, GranularityLevel] - granularity_level: Union[str, GranularityLevel] + granularityLevel: Union[str, GranularityLevel] class azure.mgmt.recoveryservices.types.CrossSubscriptionRestoreSettings(TypedDict, total=False): key "crossSubscriptionRestoreState": Union[str, CrossSubscriptionRestoreState] - cross_subscription_restore_state: Union[str, CrossSubscriptionRestoreState] + crossSubscriptionRestoreState: Union[str, CrossSubscriptionRestoreState] class azure.mgmt.recoveryservices.types.DNSZone(TypedDict, total=False): key "subResource": Union[str, VaultSubResourceType] - sub_resource: Union[str, VaultSubResourceType] - - - class azure.mgmt.recoveryservices.types.DNSZoneResponse(DNSZone): - key "subResource": Union[str, VaultSubResourceType] - requiredZoneNames: list[str] - required_zone_names: list[str] - sub_resource: Union[str, VaultSubResourceType] - - - class azure.mgmt.recoveryservices.types.DeletedVault(ProxyResource): - key "id": str - key "name": str - key "properties": ForwardRef('DeletedVaultProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - name: str - properties: DeletedVaultProperties - system_data: SystemData - type: str - - - class azure.mgmt.recoveryservices.types.DeletedVaultProperties(TypedDict, total=False): - key "purgeAt": str - key "vaultDeletionTime": str - key "vaultId": str - purge_at: str - vault_deletion_time: str - vault_id: str + subResource: Union[str, VaultSubResourceType] class azure.mgmt.recoveryservices.types.DeletedVaultUndeleteInput(TypedDict, total=False): @@ -2629,60 +2548,23 @@ namespace azure.mgmt.recoveryservices.types class azure.mgmt.recoveryservices.types.DeletedVaultUndeleteInputProperties(TypedDict, total=False): key "recoveryResourceGroupId": Required[str] - recovery_resource_group_id: str - - - class azure.mgmt.recoveryservices.types.Error(TypedDict, total=False): - key "code": str - key "message": str - key "target": str - additionalInfo: list[ErrorAdditionalInfo] - additional_info: list[ErrorAdditionalInfo] - code: str - details: list[Error] - message: str - target: str - - - class azure.mgmt.recoveryservices.types.ErrorAdditionalInfo(TypedDict, total=False): - key "info": Any - key "type": str - info: Any - type: str - - - class azure.mgmt.recoveryservices.types.ErrorDetail(TypedDict, total=False): - key "code": str - key "message": str - key "target": str - additionalInfo: list[ErrorAdditionalInfo] - additional_info: list[ErrorAdditionalInfo] - code: str - details: list[ErrorDetail] - message: str - target: str - - - class azure.mgmt.recoveryservices.types.ErrorResponse(TypedDict, total=False): - key "error": ForwardRef('ErrorDetail', module='types') - error: ErrorDetail + recoveryResourceGroupId: str class azure.mgmt.recoveryservices.types.IdentityData(TypedDict, total=False): key "principalId": str key "tenantId": str key "type": Required[Union[str, ResourceIdentityType]] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, ResourceIdentityType] userAssignedIdentities: dict[str, UserIdentity] - user_assigned_identities: dict[str, UserIdentity] class azure.mgmt.recoveryservices.types.ImmutabilityConfiguration(TypedDict, total=False): key "durationInDays": int key "type": Union[str, ImmutabilityType] - duration_in_days: int + durationInDays: int type: Union[str, ImmutabilityType] @@ -2693,57 +2575,11 @@ namespace azure.mgmt.recoveryservices.types state: Union[str, ImmutabilityState] - class azure.mgmt.recoveryservices.types.JobsSummary(TypedDict, total=False): - key "failedJobs": int - key "inProgressJobs": int - key "suspendedJobs": int - failed_jobs: int - in_progress_jobs: int - suspended_jobs: int - - class azure.mgmt.recoveryservices.types.MonitoringSettings(TypedDict, total=False): key "azureMonitorAlertSettings": ForwardRef('AzureMonitorAlertSettings', module='types') key "classicAlertSettings": ForwardRef('ClassicAlertSettings', module='types') - azure_monitor_alert_settings: AzureMonitorAlertSettings - classic_alert_settings: ClassicAlertSettings - - - class azure.mgmt.recoveryservices.types.MonitoringSummary(TypedDict, total=False): - key "deprecatedProviderCount": int - key "eventsCount": int - key "supportedProviderCount": int - key "unHealthyProviderCount": int - key "unHealthyVmCount": int - key "unsupportedProviderCount": int - deprecated_provider_count: int - events_count: int - supported_provider_count: int - un_healthy_provider_count: int - un_healthy_vm_count: int - unsupported_provider_count: int - - - class azure.mgmt.recoveryservices.types.NameInfo(TypedDict, total=False): - key "localizedValue": str - key "value": str - localized_value: str - value: str - - - class azure.mgmt.recoveryservices.types.OperationResource(TypedDict, total=False): - key "endTime": str - key "error": ForwardRef('Error', module='types') - key "id": str - key "name": str - key "startTime": str - key "status": str - end_time: str - error: Error - id: str - name: str - start_time: str - status: str + azureMonitorAlertSettings: AzureMonitorAlertSettings + classicAlertSettings: ClassicAlertSettings class azure.mgmt.recoveryservices.types.PatchTrackedResource(Resource): @@ -2757,7 +2593,7 @@ namespace azure.mgmt.recoveryservices.types id: str location: str name: str - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -2779,7 +2615,7 @@ namespace azure.mgmt.recoveryservices.types name: str properties: VaultProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -2794,10 +2630,9 @@ namespace azure.mgmt.recoveryservices.types key "privateLinkServiceConnectionState": ForwardRef('PrivateLinkServiceConnectionState', module='types') key "provisioningState": Union[str, ProvisioningState] groupIds: list[Union[str, VaultSubResourceType]] - group_ids: list[Union[str, VaultSubResourceType]] - private_endpoint: PrivateEndpoint - private_link_service_connection_state: PrivateLinkServiceConnectionState - provisioning_state: Union[str, ProvisioningState] + privateEndpoint: PrivateEndpoint + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState + provisioningState: Union[str, ProvisioningState] class azure.mgmt.recoveryservices.types.PrivateEndpointConnectionVaultProperties(TypedDict, total=False): @@ -2813,33 +2648,11 @@ namespace azure.mgmt.recoveryservices.types type: str - class azure.mgmt.recoveryservices.types.PrivateLinkResource(ProxyResource): - key "id": str - key "name": str - key "properties": ForwardRef('PrivateLinkResourceProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - name: str - properties: PrivateLinkResourceProperties - system_data: SystemData - type: str - - - class azure.mgmt.recoveryservices.types.PrivateLinkResourceProperties(TypedDict, total=False): - key "groupId": str - group_id: str - requiredMembers: list[str] - requiredZoneNames: list[str] - required_members: list[str] - required_zone_names: list[str] - - class azure.mgmt.recoveryservices.types.PrivateLinkServiceConnectionState(TypedDict, total=False): key "actionsRequired": str key "description": str key "status": Union[str, PrivateEndpointConnectionStatus] - actions_required: str + actionsRequired: str description: str status: Union[str, PrivateEndpointConnectionStatus] @@ -2851,30 +2664,20 @@ namespace azure.mgmt.recoveryservices.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.recoveryservices.types.RawCertificateData(TypedDict, total=False): key "authType": Union[str, AuthType] key "certificate": str - auth_type: Union[str, AuthType] + authType: Union[str, AuthType] certificate: str - class azure.mgmt.recoveryservices.types.ReplicationUsage(TypedDict, total=False): - key "jobsSummary": ForwardRef('JobsSummary', module='types') - key "monitoringSummary": ForwardRef('MonitoringSummary', module='types') - key "protectedItemCount": int - key "recoveryPlanCount": int - key "recoveryServicesProviderAuthType": int - key "registeredServersCount": int - jobs_summary: JobsSummary - monitoring_summary: MonitoringSummary - protected_item_count: int - recovery_plan_count: int - recovery_services_provider_auth_type: int - registered_servers_count: int + class azure.mgmt.recoveryservices.types.RegionOfChoiceSettings(TypedDict, total=False): + key "status": Union[str, State] + status: Union[str, State] class azure.mgmt.recoveryservices.types.Resource(TypedDict, total=False): @@ -2884,7 +2687,7 @@ namespace azure.mgmt.recoveryservices.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -2900,71 +2703,9 @@ namespace azure.mgmt.recoveryservices.types type: str - class azure.mgmt.recoveryservices.types.ResourceCertificateAndAadDetails(TypedDict, total=False): - key "aadAudience": str - key "aadAuthority": Required[str] - key "aadTenantId": Required[str] - key "authType": Required[Literal["AzureActiveDirectory"]] - key "azureManagementEndpointAudience": Required[str] - key "certificate": str - key "friendlyName": str - key "issuer": str - key "resourceId": int - key "servicePrincipalClientId": Required[str] - key "servicePrincipalObjectId": Required[str] - key "serviceResourceId": str - key "subject": str - key "thumbprint": str - key "validFrom": str - key "validTo": str - aad_audience: str - aad_authority: str - aad_tenant_id: str - auth_type: Literal[AzureActiveDirectory] - azure_management_endpoint_audience: str - certificate: str - friendly_name: str - issuer: str - resource_id: int - service_principal_client_id: str - service_principal_object_id: str - service_resource_id: str - subject: str - thumbprint: str - valid_from: str - valid_to: str - - - class azure.mgmt.recoveryservices.types.ResourceCertificateAndAcsDetails(TypedDict, total=False): - key "authType": Required[Literal["AccessControlService"]] - key "certificate": str - key "friendlyName": str - key "globalAcsHostName": Required[str] - key "globalAcsNamespace": Required[str] - key "globalAcsRPRealm": Required[str] - key "issuer": str - key "resourceId": int - key "subject": str - key "thumbprint": str - key "validFrom": str - key "validTo": str - auth_type: Literal[AccessControlService] - certificate: str - friendly_name: str - global_acs_host_name: str - global_acs_namespace: str - global_acs_rp_realm: str - issuer: str - resource_id: int - subject: str - thumbprint: str - valid_from: str - valid_to: str - - class azure.mgmt.recoveryservices.types.RestoreSettings(TypedDict, total=False): key "crossSubscriptionRestoreSettings": ForwardRef('CrossSubscriptionRestoreSettings', module='types') - cross_subscription_restore_settings: CrossSubscriptionRestoreSettings + crossSubscriptionRestoreSettings: CrossSubscriptionRestoreSettings class azure.mgmt.recoveryservices.types.SecuritySettings(TypedDict, total=False): @@ -2972,10 +2713,10 @@ namespace azure.mgmt.recoveryservices.types key "multiUserAuthorization": Union[str, MultiUserAuthorization] key "softDeleteSettings": ForwardRef('SoftDeleteSettings', module='types') key "sourceScanConfiguration": ForwardRef('SourceScanConfiguration', module='types') - immutability_settings: ImmutabilitySettings - multi_user_authorization: Union[str, MultiUserAuthorization] - soft_delete_settings: SoftDeleteSettings - source_scan_configuration: SourceScanConfiguration + immutabilitySettings: ImmutabilitySettings + multiUserAuthorization: Union[str, MultiUserAuthorization] + softDeleteSettings: SoftDeleteSettings + sourceScanConfiguration: SourceScanConfiguration class azure.mgmt.recoveryservices.types.Sku(TypedDict, total=False): @@ -2995,15 +2736,15 @@ namespace azure.mgmt.recoveryservices.types key "enhancedSecurityState": Union[str, EnhancedSecurityState] key "softDeleteRetentionPeriodInDays": int key "softDeleteState": Union[str, SoftDeleteState] - enhanced_security_state: Union[str, EnhancedSecurityState] - soft_delete_retention_period_in_days: int - soft_delete_state: Union[str, SoftDeleteState] + enhancedSecurityState: Union[str, EnhancedSecurityState] + softDeleteRetentionPeriodInDays: int + softDeleteState: Union[str, SoftDeleteState] class azure.mgmt.recoveryservices.types.SourceScanConfiguration(TypedDict, total=False): key "sourceScanIdentity": ForwardRef('AssociatedIdentity', module='types') key "state": Union[str, State] - source_scan_identity: AssociatedIdentity + sourceScanIdentity: AssociatedIdentity state: Union[str, State] @@ -3014,12 +2755,12 @@ namespace azure.mgmt.recoveryservices.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.recoveryservices.types.TrackedResource(Resource): @@ -3031,7 +2772,7 @@ namespace azure.mgmt.recoveryservices.types id: str location: str name: str - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -3046,22 +2787,22 @@ namespace azure.mgmt.recoveryservices.types key "status": Union[str, VaultUpgradeState] key "triggerType": Union[str, TriggerType] key "upgradedResourceId": str - end_time_utc: str - last_updated_time_utc: str + endTimeUtc: str + lastUpdatedTimeUtc: str message: str - operation_id: str - previous_resource_id: str - start_time_utc: str + operationId: str + previousResourceId: str + startTimeUtc: str status: Union[str, VaultUpgradeState] - trigger_type: Union[str, TriggerType] - upgraded_resource_id: str + triggerType: Union[str, TriggerType] + upgradedResourceId: str class azure.mgmt.recoveryservices.types.UserIdentity(TypedDict, total=False): key "clientId": str key "principalId": str - client_id: str - principal_id: str + clientId: str + principalId: str class azure.mgmt.recoveryservices.types.Vault(TrackedResource): @@ -3081,31 +2822,20 @@ namespace azure.mgmt.recoveryservices.types name: str properties: VaultProperties sku: Sku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str - class azure.mgmt.recoveryservices.types.VaultCertificateResponse(TypedDict, total=False): - key "id": str - key "name": str - key "properties": ForwardRef('ResourceCertificateDetails', module='types') - key "type": str - id: str - name: str - properties: ResourceCertificateDetails - type: str - - class azure.mgmt.recoveryservices.types.VaultExtendedInfo(TypedDict, total=False): key "algorithm": str key "encryptionKey": str key "encryptionKeyThumbprint": str key "integrityKey": str algorithm: str - encryption_key: str - encryption_key_thumbprint: str - integrity_key: str + encryptionKey: str + encryptionKeyThumbprint: str + integrityKey: str class azure.mgmt.recoveryservices.types.VaultExtendedInfoResource(ProxyResource): @@ -3119,7 +2849,7 @@ namespace azure.mgmt.recoveryservices.types id: str name: str properties: VaultExtendedInfo - system_data: SystemData + systemData: SystemData type: str @@ -3136,39 +2866,39 @@ namespace azure.mgmt.recoveryservices.types key "provisioningState": str key "publicNetworkAccess": Union[str, PublicNetworkAccess] key "redundancySettings": ForwardRef('VaultPropertiesRedundancySettings', module='types') + key "regionOfChoiceSettings": ForwardRef('RegionOfChoiceSettings', module='types') key "restoreSettings": ForwardRef('RestoreSettings', module='types') key "secureScore": Union[str, SecureScoreLevel] key "securitySettings": ForwardRef('SecuritySettings', module='types') key "upgradeDetails": ForwardRef('UpgradeDetails', module='types') - backup_storage_version: Union[str, BackupStorageVersion] - bcdr_security_level: Union[str, BCDRSecurityLevel] - cost_management_settings: CostManagementSettings + backupStorageVersion: Union[str, BackupStorageVersion] + bcdrSecurityLevel: Union[str, BCDRSecurityLevel] + costManagementSettings: CostManagementSettings encryption: VaultPropertiesEncryption - monitoring_settings: MonitoringSettings - move_details: VaultPropertiesMoveDetails - move_state: Union[str, ResourceMoveState] + monitoringSettings: MonitoringSettings + moveDetails: VaultPropertiesMoveDetails + moveState: Union[str, ResourceMoveState] privateEndpointConnections: list[PrivateEndpointConnectionVaultProperties] - private_endpoint_connections: list[PrivateEndpointConnectionVaultProperties] - private_endpoint_state_for_backup: Union[str, VaultPrivateEndpointState] - private_endpoint_state_for_site_recovery: Union[str, VaultPrivateEndpointState] - provisioning_state: str - public_network_access: Union[str, PublicNetworkAccess] - redundancy_settings: VaultPropertiesRedundancySettings + privateEndpointStateForBackup: Union[str, VaultPrivateEndpointState] + privateEndpointStateForSiteRecovery: Union[str, VaultPrivateEndpointState] + provisioningState: str + publicNetworkAccess: Union[str, PublicNetworkAccess] + redundancySettings: VaultPropertiesRedundancySettings + regionOfChoiceSettings: RegionOfChoiceSettings resourceGuardOperationRequests: list[str] - resource_guard_operation_requests: list[str] - restore_settings: RestoreSettings - secure_score: Union[str, SecureScoreLevel] - security_settings: SecuritySettings - upgrade_details: UpgradeDetails + restoreSettings: RestoreSettings + secureScore: Union[str, SecureScoreLevel] + securitySettings: SecuritySettings + upgradeDetails: UpgradeDetails class azure.mgmt.recoveryservices.types.VaultPropertiesEncryption(TypedDict, total=False): key "infrastructureEncryption": Union[str, InfrastructureEncryptionState] key "kekIdentity": ForwardRef('CmkKekIdentity', module='types') key "keyVaultProperties": ForwardRef('CmkKeyVaultProperties', module='types') - infrastructure_encryption: Union[str, InfrastructureEncryptionState] - kek_identity: CmkKekIdentity - key_vault_properties: CmkKeyVaultProperties + infrastructureEncryption: Union[str, InfrastructureEncryptionState] + kekIdentity: CmkKekIdentity + keyVaultProperties: CmkKeyVaultProperties class azure.mgmt.recoveryservices.types.VaultPropertiesMoveDetails(TypedDict, total=False): @@ -3177,33 +2907,18 @@ namespace azure.mgmt.recoveryservices.types key "sourceResourceId": str key "startTimeUtc": str key "targetResourceId": str - completion_time_utc: str - operation_id: str - source_resource_id: str - start_time_utc: str - target_resource_id: str + completionTimeUtc: str + operationId: str + sourceResourceId: str + startTimeUtc: str + targetResourceId: str class azure.mgmt.recoveryservices.types.VaultPropertiesRedundancySettings(TypedDict, total=False): key "crossRegionRestore": Union[str, CrossRegionRestore] key "standardTierStorageRedundancy": Union[str, StandardTierStorageRedundancy] - cross_region_restore: Union[str, CrossRegionRestore] - standard_tier_storage_redundancy: Union[str, StandardTierStorageRedundancy] - - - class azure.mgmt.recoveryservices.types.VaultUsage(TypedDict, total=False): - key "currentValue": int - key "limit": int - key "name": ForwardRef('NameInfo', module='types') - key "nextResetTime": str - key "quotaPeriod": str - key "unit": Union[str, UsagesUnit] - current_value: int - limit: int - name: NameInfo - next_reset_time: str - quota_period: str - unit: Union[str, UsagesUnit] + crossRegionRestore: Union[str, CrossRegionRestore] + standardTierStorageRedundancy: Union[str, StandardTierStorageRedundancy] ``` \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/api.metadata.yml b/sdk/recoveryservices/azure-mgmt-recoveryservices/api.metadata.yml index 217a37fa05ab..d79348d8815f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/api.metadata.yml +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: 048fa63bd2e03305602a82d48677c12303884877039cc2e34b93c025b944e82f -parserVersion: 0.3.28 +apiMdSha256: a818033c280b1ec0f8dee0207c88a0766717cca0f5096ebcd6f190d08d81e1bf +parserVersion: 0.3.31 pythonVersion: 3.13.14 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/apiview-properties.json b/sdk/recoveryservices/azure-mgmt-recoveryservices/apiview-properties.json index 0299d27ba74f..bb3c7b2b9832 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/apiview-properties.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/apiview-properties.json @@ -50,6 +50,7 @@ "azure.mgmt.recoveryservices.models.PrivateLinkResourceProperties": "Microsoft.RecoveryServices.PrivateLinkResourceProperties", "azure.mgmt.recoveryservices.models.PrivateLinkServiceConnectionState": "Microsoft.RecoveryServices.PrivateLinkServiceConnectionState", "azure.mgmt.recoveryservices.models.RawCertificateData": "Microsoft.RecoveryServices.RawCertificateData", + "azure.mgmt.recoveryservices.models.RegionOfChoiceSettings": "Microsoft.RecoveryServices.RegionOfChoiceSettings", "azure.mgmt.recoveryservices.models.ReplicationUsage": "Microsoft.RecoveryServices.ReplicationUsage", "azure.mgmt.recoveryservices.models.ResourceCapabilities": "Microsoft.RecoveryServices.ResourceCapabilities", "azure.mgmt.recoveryservices.models.ResourceCertificateDetails": "Microsoft.RecoveryServices.ResourceCertificateDetails", @@ -151,5 +152,5 @@ "azure.mgmt.recoveryservices.RecoveryServicesClient.get_operation_result": "Microsoft.RecoveryServices.getOperationResult", "azure.mgmt.recoveryservices.aio.RecoveryServicesClient.get_operation_result": "Microsoft.RecoveryServices.getOperationResult" }, - "CrossLanguageVersion": "45e8bbe08725" + "CrossLanguageVersion": "4cffd300683a" } \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_client.py index df2d6e202a28..cb48d8812b0e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_client.py @@ -43,7 +43,9 @@ from azure.core.credentials import TokenCredential -class RecoveryServicesClient(_RecoveryServicesClientOperationsMixin): # pylint: disable=too-many-instance-attributes +class RecoveryServicesClient( + _RecoveryServicesClientOperationsMixin +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """RecoveryServicesClient. :ivar operations: Operations operations @@ -78,7 +80,7 @@ class RecoveryServicesClient(_RecoveryServicesClientOperationsMixin): # pylint: :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-05-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-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/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_configuration.py index d8133b48fcfc..193d5678bd5c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_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 RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance-attributes +class RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for RecoveryServicesClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance- :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-05-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-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-05-01") + api_version: str = kwargs.pop("api_version", "2026-07-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/model_base.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/model_base.py index b93f5120d517..35d5fc024978 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/model_base.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_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: @@ -458,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -482,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -517,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -542,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/serialization.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_utils/serialization.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_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/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_version.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_version.py index d5259bd18589..20f69cd93841 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_version.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "4.1.0" +VERSION = "4.2.0" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/_client.py index 369fa76f3d98..c06c2bec61bd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/_client.py @@ -43,7 +43,9 @@ from azure.core.credentials_async import AsyncTokenCredential -class RecoveryServicesClient(_RecoveryServicesClientOperationsMixin): # pylint: disable=too-many-instance-attributes +class RecoveryServicesClient( + _RecoveryServicesClientOperationsMixin +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """RecoveryServicesClient. :ivar operations: Operations operations @@ -81,7 +83,7 @@ class RecoveryServicesClient(_RecoveryServicesClientOperationsMixin): # pylint: :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-05-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-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/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/_configuration.py index bb6f5844f957..dcd1a6c30b3a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/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 RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance-attributes +class RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for RecoveryServicesClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class RecoveryServicesClientConfiguration: # pylint: disable=too-many-instance- :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-05-01" + :keyword api_version: The API version to use for this operation. Known values are "2026-07-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-05-01") + api_version: str = kwargs.pop("api_version", "2026-07-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/operations/_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/operations/_operations.py index 596de966b24e..ed4b041bf7a6 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/operations/_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/aio/operations/_operations.py @@ -71,7 +71,7 @@ List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -182,7 +182,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VaultsOperations: +class VaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1080,7 +1080,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DeletedVaultsOperations: +class DeletedVaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1101,7 +1101,15 @@ def __init__(self, *args, **kwargs) -> None: @api_version_validation( method_added_on="2025-08-01", params_added_on={"2025-08-01": ["api_version", "subscription_id", "location", "accept"]}, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) def list_by_subscription_id(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.DeletedVault"]: """List deleted vaults in a subscription. @@ -1203,7 +1211,15 @@ async def get_next(next_link=None): @api_version_validation( method_added_on="2025-08-01", params_added_on={"2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "accept"]}, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) async def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _models.DeletedVault: """Get a specific deleted vault. @@ -1278,7 +1294,15 @@ async def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _m params_added_on={ "2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "content_type", "accept"] }, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) async def _undelete_initial( self, @@ -1441,7 +1465,15 @@ async def begin_undelete( params_added_on={ "2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "content_type", "accept"] }, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) async def begin_undelete( self, @@ -1517,7 +1549,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "operation_id", "accept"] }, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) async def get_operation_status( self, location: str, deleted_vault_name: str, operation_id: str, **kwargs: Any @@ -1593,7 +1633,7 @@ async def get_operation_status( return deserialized # type: ignore -class PrivateLinkResourcesOperations: +class PrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1789,7 +1829,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VaultCertificatesOperations: +class VaultCertificatesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1995,7 +2035,7 @@ async def create( return deserialized # type: ignore -class RegisteredIdentitiesOperations: +class RegisteredIdentitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2073,7 +2113,7 @@ async def delete(self, resource_group_name: str, vault_name: str, identity_name: return cls(pipeline_response, None, {}) # type: ignore -class ReplicationUsagesOperations: +class ReplicationUsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2194,7 +2234,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2314,7 +2354,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VaultExtendedInfoOperations: +class VaultExtendedInfoOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2763,7 +2803,7 @@ async def update( return deserialized # type: ignore -class RecoveryServicesOperations: +class RecoveryServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py index f550cb73f00c..4cd6f796a02d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/__init__.py @@ -61,6 +61,7 @@ PrivateLinkServiceConnectionState, ProxyResource, RawCertificateData, + RegionOfChoiceSettings, ReplicationUsage, Resource, ResourceCapabilities, @@ -171,6 +172,7 @@ "PrivateLinkServiceConnectionState", "ProxyResource", "RawCertificateData", + "RegionOfChoiceSettings", "ReplicationUsage", "Resource", "ResourceCapabilities", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py index 167ff71e1fe9..76713ed6a564 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/models/_models.py @@ -17,7 +17,7 @@ from .. import models as _models -class AssociatedIdentity(_Model): +class AssociatedIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity details to be used for an operation. :ivar operation_identity_type: Identity type that should be used for an operation. Known values @@ -57,7 +57,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -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". @@ -102,7 +102,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapabilitiesProperties(_Model): +class CapabilitiesProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Capabilities information. :ivar dns_zones: @@ -131,7 +131,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceCapabilitiesBase(_Model): +class ResourceCapabilitiesBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Base class for request and response capabilities information for Microsoft.RecoveryServices. :ivar type: Describes the Resource type: Microsoft.RecoveryServices/Vaults. Required. @@ -159,7 +159,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapabilitiesResponse(ResourceCapabilitiesBase): +class CapabilitiesResponse(ResourceCapabilitiesBase): # pylint: disable=docstring-keyword-should-match-keyword-only """Capabilities response for Microsoft.RecoveryServices. :ivar type: Describes the Resource type: Microsoft.RecoveryServices/Vaults. Required. @@ -192,7 +192,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CapabilitiesResponseProperties(_Model): +class CapabilitiesResponseProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Capabilities properties in response. :ivar dns_zones: @@ -221,7 +221,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CertificateRequest(_Model): +class CertificateRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of the certificate to be uploaded to the vault. :ivar properties: Raw certificate data. @@ -251,7 +251,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CheckNameAvailabilityParameters(_Model): +class CheckNameAvailabilityParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Resource Name availability input parameters - Resource type and resource name. :ivar type: Describes the Resource type: Microsoft.RecoveryServices/Vaults. @@ -284,7 +284,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 """Response for check name availability API. Resource provider will set availability as true | false. @@ -322,7 +322,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClassicAlertSettings(_Model): +class ClassicAlertSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Settings for classic alerts. :ivar alerts_for_critical_operations: Known values are: "Enabled" and "Disabled". @@ -360,7 +360,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClientDiscoveryDisplay(_Model): +class ClientDiscoveryDisplay(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Localized display information of an operation. :ivar provider: Name of the provider for display purposes. @@ -403,7 +403,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClientDiscoveryForLogSpecification(_Model): +class ClientDiscoveryForLogSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class to represent shoebox log specification in json client discovery. :ivar name: Name of the log. @@ -445,7 +445,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClientDiscoveryForProperties(_Model): +class ClientDiscoveryForProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class to represent shoebox properties in json client discovery. :ivar service_specification: Operation properties. @@ -476,7 +476,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClientDiscoveryForServiceSpecification(_Model): +class ClientDiscoveryForServiceSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Class to represent shoebox service specification in json client discovery. :ivar log_specifications: List of log specifications of this operation. @@ -507,7 +507,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ClientDiscoveryValueForSingleApi(_Model): +class ClientDiscoveryValueForSingleApi(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Available operation details. :ivar name: Name of the Operation. @@ -556,7 +556,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. @@ -584,7 +584,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 identity used for CMK. :ivar use_system_assigned_identity: Indicate that system assigned identity should be used. @@ -625,7 +625,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. @@ -653,7 +653,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CostManagementSettings(_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", @@ -685,7 +685,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 """Settings for Cross Subscription Restore Settings. :ivar cross_subscription_restore_state: Known values are: "Enabled", "Disabled", and @@ -762,7 +762,7 @@ class ProxyResource(Resource): """ -class DeletedVault(ProxyResource): +class DeletedVault(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """DeletedVault information as returned by the resource provider. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -824,7 +824,7 @@ class DeletedVaultProperties(_Model): """Time in UTC at which the DeletedVault will be purged.""" -class DeletedVaultUndeleteInput(_Model): +class DeletedVaultUndeleteInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input definition for DeletedVault undelete. :ivar properties: Undelete input properties. Required. @@ -854,7 +854,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DeletedVaultUndeleteInputProperties(_Model): +class DeletedVaultUndeleteInputProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Input definition for DeletedVault undelete properties. :ivar recovery_resource_group_id: Recovery resource group Id. Required. @@ -884,7 +884,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DNSZone(_Model): +class DNSZone(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """DNSZone information. :ivar sub_resource: Subresource type for vault AzureBackup, AzureBackup_secondary or @@ -917,7 +917,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DNSZoneResponse(DNSZone): +class DNSZoneResponse(DNSZone): # pylint: disable=docstring-keyword-should-match-keyword-only """DNSZone information for Microsoft.RecoveryServices. :ivar sub_resource: Subresource type for vault AzureBackup, AzureBackup_secondary or @@ -1025,7 +1025,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. @@ -1053,7 +1053,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IdentityData(_Model): +class IdentityData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity for the resource. :ivar principal_id: The principal ID of resource identity. @@ -1108,7 +1108,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImmutabilityConfiguration(_Model): +class ImmutabilityConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Immutability configuration of vault. :ivar type: Immutability type. 'AsPerPolicy' inherits duration from backup policy; 'TimeBased' @@ -1148,7 +1148,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ImmutabilitySettings(_Model): +class ImmutabilitySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Immutability Settings of vault. :ivar state: Known values are: "Disabled", "Unlocked", and "Locked". @@ -1187,7 +1187,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class JobsSummary(_Model): +class JobsSummary(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Summary of the replication job data for this vault. :ivar failed_jobs: Count of failed jobs. @@ -1231,7 +1231,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MonitoringSettings(_Model): +class MonitoringSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Monitoring Settings of the vault. :ivar azure_monitor_alert_settings: Settings for Azure Monitor based alerts. @@ -1269,7 +1269,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MonitoringSummary(_Model): +class MonitoringSummary(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Summary of the replication monitoring data for this vault. :ivar un_healthy_vm_count: Count of unhealthy VMs. @@ -1334,7 +1334,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class NameInfo(_Model): +class NameInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The name of usage. :ivar value: Value of usage. @@ -1369,7 +1369,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationResource(_Model): +class OperationResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Operation Resource. :ivar end_time: End time of the operation. @@ -1430,7 +1430,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PatchTrackedResource(Resource): +class PatchTrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked resource with location. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1479,7 +1479,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PatchVault(PatchTrackedResource): +class PatchVault(PatchTrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Patch Resource information, as returned by the resource provider. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1550,7 +1550,7 @@ class PrivateEndpoint(_Model): """Gets or sets id.""" -class PrivateEndpointConnection(_Model): +class PrivateEndpointConnection(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Private Endpoint Connection Response Properties. :ivar provisioning_state: Gets or sets provisioning state of the private endpoint connection. @@ -1632,7 +1632,7 @@ class PrivateEndpointConnectionVaultProperties(_Model): """The location of the private Endpoint connection.""" -class PrivateLinkResource(ProxyResource): +class PrivateLinkResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Information of the private link resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1735,7 +1735,7 @@ class PrivateLinkServiceConnectionState(_Model): """Gets or sets actions required.""" -class RawCertificateData(_Model): +class RawCertificateData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Raw certificate data. :ivar auth_type: Specifies the authentication type. Known values are: "Invalid", "ACS", "AAD", @@ -1774,7 +1774,40 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ReplicationUsage(_Model): +class RegionOfChoiceSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """Region of choice settings at vault level. This setting allows customers to configure backups + for datasources from different region. + + :ivar status: The status of region of choice settings - Enabled or Disabled. Known values are: + "Invalid", "Enabled", and "Disabled". + :vartype status: str or ~azure.mgmt.recoveryservices.models.State + """ + + status: Optional[Union[str, "_models.State"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The status of region of choice settings - Enabled or Disabled. Known values are: \"Invalid\", + \"Enabled\", and \"Disabled\".""" + + @overload + def __init__( + self, + *, + status: Optional[Union[str, "_models.State"]] = 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 ReplicationUsage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Replication usages of a vault. :ivar monitoring_summary: Summary of the replication monitoring data for this vault. @@ -1840,7 +1873,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceCapabilities(ResourceCapabilitiesBase): +class ResourceCapabilities(ResourceCapabilitiesBase): # pylint: disable=docstring-keyword-should-match-keyword-only """Input to get capabilities information for Microsoft.RecoveryServices. :ivar type: Describes the Resource type: Microsoft.RecoveryServices/Vaults. Required. @@ -1873,7 +1906,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceCertificateDetails(_Model): +class ResourceCertificateDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Certificate details representing the Vault credentials. You probably want to use the sub-classes and not this class directly. Known sub-classes are: @@ -1957,7 +1990,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResourceCertificateAndAadDetails(ResourceCertificateDetails, discriminator="AzureActiveDirectory"): +class ResourceCertificateAndAadDetails( + ResourceCertificateDetails, discriminator="AzureActiveDirectory" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Certificate details representing the Vault credentials for AAD. :ivar certificate: The base64 encoded certificate raw data string. @@ -2056,7 +2091,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = "AzureActiveDirectory" # type: ignore -class ResourceCertificateAndAcsDetails(ResourceCertificateDetails, discriminator="AccessControlService"): +class ResourceCertificateAndAcsDetails( + ResourceCertificateDetails, discriminator="AccessControlService" +): # pylint: disable=docstring-keyword-should-match-keyword-only """Certificate details representing the Vault credentials for ACS. :ivar certificate: The base64 encoded certificate raw data string. @@ -2131,7 +2168,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: self.auth_type = "AccessControlService" # type: ignore -class RestoreSettings(_Model): +class RestoreSettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Restore Settings of the vault. :ivar cross_subscription_restore_settings: Settings for CrossSubscriptionRestore. @@ -2162,7 +2199,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 """Security Settings of the vault. :ivar immutability_settings: Immutability Settings of a vault. @@ -2214,7 +2251,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Sku(_Model): +class Sku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identifies the unique system identifier for each Azure resource. :ivar name: Name of SKU is RS0 (Recovery Services 0th version) and the tier is standard tier. @@ -2267,7 +2304,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 Settings of vault. :ivar soft_delete_state: Known values are: "Invalid", "Enabled", "Disabled", and "AlwaysON". @@ -2313,7 +2350,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SourceScanConfiguration(_Model): +class SourceScanConfiguration(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Source scan configuration of vault. :ivar state: Known values are: "Invalid", "Enabled", and "Disabled". @@ -2350,7 +2387,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. @@ -2417,7 +2454,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 - @@ -2525,7 +2562,7 @@ class UserIdentity(_Model): """The client ID of the user-assigned identity.""" -class Vault(TrackedResource): +class Vault(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Resource information, as returned by the resource provider. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2587,7 +2624,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VaultCertificateResponse(_Model): +class VaultCertificateResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Certificate corresponding to a vault that can be used by clients to register themselves with the vault. @@ -2631,7 +2668,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VaultExtendedInfo(_Model): +class VaultExtendedInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Vault extended information. :ivar integrity_key: Integrity key. @@ -2680,7 +2717,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VaultExtendedInfoResource(ProxyResource): +class VaultExtendedInfoResource(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Vault extended information. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2746,7 +2783,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class VaultProperties(_Model): +class VaultProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the vault. :ivar provisioning_state: Provisioning State. @@ -2799,6 +2836,8 @@ class VaultProperties(_Model): :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will be performed. :vartype resource_guard_operation_requests: list[str] + :ivar region_of_choice_settings: Region of choice settings for this vault. + :vartype region_of_choice_settings: ~azure.mgmt.recoveryservices.models.RegionOfChoiceSettings """ provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) @@ -2872,6 +2911,10 @@ class VaultProperties(_Model): name="resourceGuardOperationRequests", visibility=["read", "create", "update", "delete", "query"] ) """ResourceGuardOperationRequests on which LAC check will be performed.""" + region_of_choice_settings: Optional["_models.RegionOfChoiceSettings"] = rest_field( + name="regionOfChoiceSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Region of choice settings for this vault.""" @overload def __init__( @@ -2887,6 +2930,7 @@ def __init__( redundancy_settings: Optional["_models.VaultPropertiesRedundancySettings"] = None, security_settings: Optional["_models.SecuritySettings"] = None, resource_guard_operation_requests: Optional[list[str]] = None, + region_of_choice_settings: Optional["_models.RegionOfChoiceSettings"] = None, ) -> None: ... @overload @@ -2900,7 +2944,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VaultPropertiesEncryption(_Model): +class VaultPropertiesEncryption(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Customer Managed Key details of the resource. :ivar key_vault_properties: The properties of the Key Vault which hosts CMK. @@ -2975,7 +3019,7 @@ class VaultPropertiesMoveDetails(_Model): """Target Resource of the Resource Move Operation.""" -class VaultPropertiesRedundancySettings(_Model): +class VaultPropertiesRedundancySettings(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The redundancy Settings of a Vault. :ivar standard_tier_storage_redundancy: The storage redundancy setting of a vault. Known values @@ -3017,7 +3061,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VaultUsage(_Model): +class VaultUsage(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Usages of a vault. :ivar unit: Unit of the usage. Known values are: "Count", "Bytes", "Seconds", "Percent", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_operations.py index 1c2974871366..25252f4ff61b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/operations/_operations.py @@ -51,7 +51,7 @@ def build_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -72,7 +72,7 @@ def build_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -106,7 +106,7 @@ def build_vaults_create_or_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -146,7 +146,7 @@ def build_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -179,7 +179,7 @@ def build_vaults_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}" path_format_arguments = { @@ -202,7 +202,7 @@ def build_vaults_list_by_subscription_id_request( # pylint: disable=name-too-lo _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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -228,7 +228,7 @@ def build_vaults_list_by_resource_group_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -257,7 +257,7 @@ def build_deleted_vaults_list_by_subscription_id_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -284,7 +284,7 @@ def build_deleted_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -313,7 +313,7 @@ def build_deleted_vaults_undelete_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -343,7 +343,7 @@ def build_deleted_vaults_get_operation_status_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -372,7 +372,7 @@ def build_private_link_resources_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -401,7 +401,7 @@ def build_private_link_resources_list_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -430,7 +430,7 @@ def build_vault_certificates_create_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -460,7 +460,7 @@ def build_registered_identities_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/registeredIdentities/{identityName}" path_format_arguments = { @@ -484,7 +484,7 @@ def build_replication_usages_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -512,7 +512,7 @@ def build_usages_list_by_vaults_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -540,7 +540,7 @@ def build_vault_extended_info_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -569,7 +569,7 @@ def build_vault_extended_info_create_or_update_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -600,7 +600,7 @@ def build_vault_extended_info_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -631,7 +631,7 @@ def build_recovery_services_check_name_availability_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -662,7 +662,7 @@ def build_recovery_services_capabilities_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -691,7 +691,7 @@ def build_recovery_services_get_operation_status_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -720,7 +720,7 @@ def build_recovery_services_get_operation_result_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-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-07-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -743,7 +743,7 @@ def build_recovery_services_get_operation_result_request( # pylint: disable=nam return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -854,7 +854,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VaultsOperations: +class VaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1752,7 +1752,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DeletedVaultsOperations: +class DeletedVaultsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1773,7 +1773,15 @@ def __init__(self, *args, **kwargs) -> None: @api_version_validation( method_added_on="2025-08-01", params_added_on={"2025-08-01": ["api_version", "subscription_id", "location", "accept"]}, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) def list_by_subscription_id(self, location: str, **kwargs: Any) -> ItemPaged["_models.DeletedVault"]: """List deleted vaults in a subscription. @@ -1874,7 +1882,15 @@ def get_next(next_link=None): @api_version_validation( method_added_on="2025-08-01", params_added_on={"2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "accept"]}, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _models.DeletedVault: """Get a specific deleted vault. @@ -1949,7 +1965,15 @@ def get(self, location: str, deleted_vault_name: str, **kwargs: Any) -> _models. params_added_on={ "2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "content_type", "accept"] }, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) def _undelete_initial( self, @@ -2112,7 +2136,15 @@ def begin_undelete( params_added_on={ "2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "content_type", "accept"] }, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) def begin_undelete( self, @@ -2188,7 +2220,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2025-08-01": ["api_version", "subscription_id", "location", "deleted_vault_name", "operation_id", "accept"] }, - api_versions_list=["2025-08-01", "2026-01-01", "2026-02-01", "2026-03-31-preview", "2026-05-01"], + api_versions_list=[ + "2025-08-01", + "2026-01-01", + "2026-02-01", + "2026-03-31-preview", + "2026-05-01", + "2026-05-31-preview", + "2026-07-01", + ], ) def get_operation_status( self, location: str, deleted_vault_name: str, operation_id: str, **kwargs: Any @@ -2264,7 +2304,7 @@ def get_operation_status( return deserialized # type: ignore -class PrivateLinkResourcesOperations: +class PrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2459,7 +2499,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VaultCertificatesOperations: +class VaultCertificatesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2665,7 +2705,7 @@ def create( return deserialized # type: ignore -class RegisteredIdentitiesOperations: +class RegisteredIdentitiesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2745,7 +2785,7 @@ def delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class ReplicationUsagesOperations: +class ReplicationUsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2863,7 +2903,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class UsagesOperations: +class UsagesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2983,7 +3023,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VaultExtendedInfoOperations: +class VaultExtendedInfoOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3432,7 +3472,7 @@ def update( return deserialized # type: ignore -class RecoveryServicesOperations: +class RecoveryServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/types.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/types.py index a61c178ae702..1a7483d34513 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/types.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/azure/mgmt/recoveryservices/types.py @@ -7,7 +7,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Literal, TYPE_CHECKING, Union +from typing import Any, TYPE_CHECKING, Union from typing_extensions import Required, TypedDict if TYPE_CHECKING: @@ -37,7 +37,6 @@ StandardTierStorageRedundancy, State, TriggerType, - UsagesUnit, VaultPrivateEndpointState, VaultSubResourceType, VaultUpgradeState, @@ -47,12 +46,12 @@ class AssociatedIdentity(TypedDict, total=False): """Identity details to be used for an operation. - :ivar operation_identity_type: Identity type that should be used for an operation. Known values + :ivar operationIdentityType: Identity type that should be used for an operation. Known values are: "SystemAssigned" and "UserAssigned". - :vartype operation_identity_type: Union[str, "IdentityType"] - :ivar user_assigned_identity: User assigned identity to be used for an operation if + :vartype operationIdentityType: Union[str, "IdentityType"] + :ivar userAssignedIdentity: User assigned identity to be used for an operation if operationIdentityType is UserAssigned. - :vartype user_assigned_identity: str + :vartype userAssignedIdentity: str """ operationIdentityType: Union[str, "IdentityType"] @@ -65,12 +64,12 @@ class AssociatedIdentity(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 alerts_for_all_replication_issues: Known values are: "Enabled" and "Disabled". - :vartype alerts_for_all_replication_issues: Union[str, "AlertsState"] - :ivar alerts_for_all_failover_issues: Known values are: "Enabled" and "Disabled". - :vartype alerts_for_all_failover_issues: Union[str, "AlertsState"] + :ivar alertsForAllJobFailures: Known values are: "Enabled" and "Disabled". + :vartype alertsForAllJobFailures: Union[str, "AlertsState"] + :ivar alertsForAllReplicationIssues: Known values are: "Enabled" and "Disabled". + :vartype alertsForAllReplicationIssues: Union[str, "AlertsState"] + :ivar alertsForAllFailoverIssues: Known values are: "Enabled" and "Disabled". + :vartype alertsForAllFailoverIssues: Union[str, "AlertsState"] """ alertsForAllJobFailures: Union[str, "AlertsState"] @@ -84,8 +83,8 @@ class AzureMonitorAlertSettings(TypedDict, total=False): class CapabilitiesProperties(TypedDict, total=False): """Capabilities information. - :ivar dns_zones: - :vartype dns_zones: list["DNSZone"] + :ivar dnsZones: + :vartype dnsZones: list["DNSZone"] """ dnsZones: list["DNSZone"] @@ -102,29 +101,6 @@ class ResourceCapabilitiesBase(TypedDict, total=False): """Describes the Resource type: Microsoft.RecoveryServices/Vaults. Required.""" -class CapabilitiesResponse(ResourceCapabilitiesBase): - """Capabilities response for Microsoft.RecoveryServices. - - :ivar type: Describes the Resource type: Microsoft.RecoveryServices/Vaults. Required. - :vartype type: str - :ivar properties: Capabilities properties in response. - :vartype properties: "CapabilitiesResponseProperties" - """ - - properties: "CapabilitiesResponseProperties" - """Capabilities properties in response.""" - - -class CapabilitiesResponseProperties(TypedDict, total=False): - """Capabilities properties in response. - - :ivar dns_zones: - :vartype dns_zones: list["DNSZoneResponse"] - """ - - dnsZones: list["DNSZoneResponse"] - - class CertificateRequest(TypedDict, total=False): """Details of the certificate to be uploaded to the vault. @@ -151,30 +127,13 @@ class CheckNameAvailabilityParameters(TypedDict, total=False): """Resource name for which availability needs to be checked.""" -class CheckNameAvailabilityResult(TypedDict, total=False): - """Response for check name availability API. Resource provider will set availability as true | - false. - - :ivar name_available: - :vartype name_available: bool - :ivar reason: - :vartype reason: str - :ivar message: - :vartype message: str - """ - - nameAvailable: bool - reason: str - message: str - - class ClassicAlertSettings(TypedDict, total=False): """Settings for classic alerts. - :ivar alerts_for_critical_operations: Known values are: "Enabled" and "Disabled". - :vartype alerts_for_critical_operations: Union[str, "AlertsState"] - :ivar email_notifications_for_site_recovery: Known values are: "Enabled" and "Disabled". - :vartype email_notifications_for_site_recovery: Union[str, "AlertsState"] + :ivar alertsForCriticalOperations: Known values are: "Enabled" and "Disabled". + :vartype alertsForCriticalOperations: Union[str, "AlertsState"] + :ivar emailNotificationsForSiteRecovery: Known values are: "Enabled" and "Disabled". + :vartype emailNotificationsForSiteRecovery: Union[str, "AlertsState"] """ alertsForCriticalOperations: Union[str, "AlertsState"] @@ -183,115 +142,15 @@ class ClassicAlertSettings(TypedDict, total=False): """Known values are: \"Enabled\" and \"Disabled\".""" -class ClientDiscoveryDisplay(TypedDict, total=False): - """Localized display information of an operation. - - :ivar provider: Name of the provider for display purposes. - :vartype provider: str - :ivar resource: ResourceType for which this Operation can be performed. - :vartype resource: str - :ivar operation: Operations Name itself. - :vartype operation: str - :ivar description: Description of the operation having details of what operation is about. - :vartype description: str - """ - - provider: str - """Name of the provider for display purposes.""" - resource: str - """ResourceType for which this Operation can be performed.""" - operation: str - """Operations Name itself.""" - description: str - """Description of the operation having details of what operation is about.""" - - -class ClientDiscoveryForLogSpecification(TypedDict, total=False): - """Class to represent shoebox log specification in json client discovery. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized display name. - :vartype display_name: str - :ivar blob_duration: Blobs created in customer storage account per hour. - :vartype blob_duration: str - """ - - name: str - """Name of the log.""" - displayName: str - """Localized display name.""" - blobDuration: str - """Blobs created in customer storage account per hour.""" - - -class ClientDiscoveryForProperties(TypedDict, total=False): - """Class to represent shoebox properties in json client discovery. - - :ivar service_specification: Operation properties. - :vartype service_specification: "ClientDiscoveryForServiceSpecification" - """ - - serviceSpecification: "ClientDiscoveryForServiceSpecification" - """Operation properties.""" - - -class ClientDiscoveryForServiceSpecification(TypedDict, total=False): - """Class to represent shoebox service specification in json client discovery. - - :ivar log_specifications: List of log specifications of this operation. - :vartype log_specifications: list["ClientDiscoveryForLogSpecification"] - """ - - logSpecifications: list["ClientDiscoveryForLogSpecification"] - """List of log specifications of this operation.""" - - -class ClientDiscoveryValueForSingleApi(TypedDict, total=False): - """Available operation details. - - :ivar name: Name of the Operation. - :vartype name: str - :ivar display: Contains the localized display information for this particular operation. - :vartype display: "ClientDiscoveryDisplay" - :ivar origin: The intended executor of the operation;governs the display of the operation in - the RBAC UX and the audit logs UX. - :vartype origin: str - :ivar properties: ShoeBox properties for the given operation. - :vartype properties: "ClientDiscoveryForProperties" - """ - - name: str - """Name of the Operation.""" - display: "ClientDiscoveryDisplay" - """Contains the localized display information for this particular operation.""" - origin: str - """The intended executor of the operation;governs the display of the operation in the RBAC UX and - the audit logs UX.""" - properties: "ClientDiscoveryForProperties" - """ShoeBox properties for the given operation.""" - - -class CloudError(TypedDict, total=False): - """An error response from Azure Backup. - - :ivar error: The resource management error response. - :vartype error: "Error" - """ - - error: "Error" - """The resource management error response.""" - - class CmkKekIdentity(TypedDict, total=False): """The details of the identity used for CMK. - :ivar use_system_assigned_identity: Indicate that system assigned identity should be used. + :ivar useSystemAssignedIdentity: Indicate that system assigned identity should be used. Mutually exclusive with 'userAssignedIdentity' field. - :vartype use_system_assigned_identity: bool - :ivar user_assigned_identity: The user assigned identity to be used to grant permissions in - case the type of identity used is UserAssigned. - :vartype user_assigned_identity: str + :vartype useSystemAssignedIdentity: bool + :ivar userAssignedIdentity: The user assigned identity to be used to grant permissions in case + the type of identity used is UserAssigned. + :vartype userAssignedIdentity: str """ useSystemAssignedIdentity: bool @@ -305,8 +164,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 @@ -316,9 +175,9 @@ class CmkKeyVaultProperties(TypedDict, total=False): class CostManagementSettings(TypedDict, total=False): """Cost Management Settings of the vault. - :ivar granularity_level: Settings for granularity level. Known values are: "VaultLevel", + :ivar granularityLevel: Settings for granularity level. Known values are: "VaultLevel", "ProtectedItemLevel", and "ProtectedItemWithParentTag". - :vartype granularity_level: Union[str, "GranularityLevel"] + :vartype granularityLevel: Union[str, "GranularityLevel"] """ granularityLevel: Union[str, "GranularityLevel"] @@ -329,9 +188,9 @@ class CostManagementSettings(TypedDict, total=False): class CrossSubscriptionRestoreSettings(TypedDict, total=False): """Settings for Cross Subscription Restore Settings. - :ivar cross_subscription_restore_state: Known values are: "Enabled", "Disabled", and + :ivar crossSubscriptionRestoreState: Known values are: "Enabled", "Disabled", and "PermanentlyDisabled". - :vartype cross_subscription_restore_state: Union[str, "CrossSubscriptionRestoreState"] + :vartype crossSubscriptionRestoreState: Union[str, "CrossSubscriptionRestoreState"] """ crossSubscriptionRestoreState: Union[str, "CrossSubscriptionRestoreState"] @@ -349,9 +208,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 @@ -377,52 +236,11 @@ 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 - information. - :vartype system_data: "SystemData" - """ - - -class DeletedVault(ProxyResource): - """DeletedVault information as returned by the resource provider. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :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" - :ivar properties: The resource-specific properties for this resource. - :vartype properties: "DeletedVaultProperties" - """ - - properties: "DeletedVaultProperties" - """The resource-specific properties for this resource.""" - - -class DeletedVaultProperties(TypedDict, total=False): - """Properties of the DeletedVault. - - :ivar vault_id: ARM Id of the Vault which was deleted. - :vartype vault_id: str - :ivar vault_deletion_time: Time in UTC at which the Vault was deleted. - :vartype vault_deletion_time: str - :ivar purge_at: Time in UTC at which the DeletedVault will be purged. - :vartype purge_at: str + :vartype systemData: "SystemData" """ - vaultId: str - """ARM Id of the Vault which was deleted.""" - vaultDeletionTime: str - """Time in UTC at which the Vault was deleted.""" - purgeAt: str - """Time in UTC at which the DeletedVault will be purged.""" - class DeletedVaultUndeleteInput(TypedDict, total=False): """Input definition for DeletedVault undelete. @@ -438,8 +256,8 @@ class DeletedVaultUndeleteInput(TypedDict, total=False): class DeletedVaultUndeleteInputProperties(TypedDict, total=False): """Input definition for DeletedVault undelete properties. - :ivar recovery_resource_group_id: Recovery resource group Id. Required. - :vartype recovery_resource_group_id: str + :ivar recoveryResourceGroupId: Recovery resource group Id. Required. + :vartype recoveryResourceGroupId: str """ recoveryResourceGroupId: Required[str] @@ -449,10 +267,10 @@ class DeletedVaultUndeleteInputProperties(TypedDict, total=False): class DNSZone(TypedDict, total=False): """DNSZone information. - :ivar sub_resource: Subresource type for vault AzureBackup, AzureBackup_secondary or + :ivar subResource: Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery. Known values are: "AzureBackup", "AzureBackup_secondary", and "AzureSiteRecovery". - :vartype sub_resource: Union[str, "VaultSubResourceType"] + :vartype subResource: Union[str, "VaultSubResourceType"] """ subResource: Union[str, "VaultSubResourceType"] @@ -460,117 +278,22 @@ class DNSZone(TypedDict, total=False): values are: \"AzureBackup\", \"AzureBackup_secondary\", and \"AzureSiteRecovery\".""" -class DNSZoneResponse(DNSZone): - """DNSZone information for Microsoft.RecoveryServices. - - :ivar sub_resource: Subresource type for vault AzureBackup, AzureBackup_secondary or - AzureSiteRecovery. Known values are: "AzureBackup", "AzureBackup_secondary", and - "AzureSiteRecovery". - :vartype sub_resource: Union[str, "VaultSubResourceType"] - :ivar required_zone_names: The private link resource Private link DNS zone names. - :vartype required_zone_names: list[str] - """ - - requiredZoneNames: list[str] - """The private link resource Private link DNS zone names.""" - - -class Error(TypedDict, total=False): - """The resource management error response. - - :ivar additional_info: The error additional info. - :vartype additional_info: list["ErrorAdditionalInfo"] - :ivar code: The error code. - :vartype code: str - :ivar details: The error details. - :vartype details: list["Error"] - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - """ - - additionalInfo: list["ErrorAdditionalInfo"] - """The error additional info.""" - code: str - """The error code.""" - details: list["Error"] - """The error details.""" - message: str - """The error message.""" - target: str - """The error target.""" - - -class ErrorAdditionalInfo(TypedDict, total=False): - """The resource management error additional info. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: Any - """ - - type: str - """The additional info type.""" - info: Any - """The additional info.""" - - -class ErrorDetail(TypedDict, total=False): - """The error detail. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list["ErrorDetail"] - :ivar additional_info: The error additional info. - :vartype additional_info: list["ErrorAdditionalInfo"] - """ - - code: str - """The error code.""" - message: str - """The error message.""" - target: str - """The error target.""" - details: list["ErrorDetail"] - """The error details.""" - additionalInfo: list["ErrorAdditionalInfo"] - """The error additional info.""" - - -class ErrorResponse(TypedDict, total=False): - """Error response. - - :ivar error: The error object. - :vartype error: "ErrorDetail" - """ - - error: "ErrorDetail" - """The error object.""" - - class IdentityData(TypedDict, total=False): """Identity for the resource. - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str + :ivar principalId: The principal ID of resource identity. + :vartype principalId: str + :ivar tenantId: The tenant ID of resource. + :vartype tenantId: str :ivar type: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. Required. Known values are: "SystemAssigned", "None", "UserAssigned", and "SystemAssigned, UserAssigned". :vartype type: Union[str, "ResourceIdentityType"] - :ivar user_assigned_identities: The list of user-assigned identities associated with the + :ivar userAssignedIdentities: The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :vartype user_assigned_identities: dict[str, "UserIdentity"] + :vartype userAssignedIdentities: dict[str, "UserIdentity"] """ principalId: str @@ -594,9 +317,9 @@ class ImmutabilityConfiguration(TypedDict, total=False): :ivar type: Immutability type. 'AsPerPolicy' inherits duration from backup policy; 'TimeBased' requires explicit durationInDays. Known values are: "AsPerPolicy" and "TimeBased". :vartype type: Union[str, "ImmutabilityType"] - :ivar duration_in_days: Duration in days. Required when type is TimeBased, omitted when + :ivar durationInDays: Duration in days. Required when type is TimeBased, omitted when AsPerPolicy. - :vartype duration_in_days: int + :vartype durationInDays: int """ type: Union[str, "ImmutabilityType"] @@ -623,32 +346,13 @@ class ImmutabilitySettings(TypedDict, total=False): backup policy (AsPerPolicy) or fixed for a specific duration (TimeBased).""" -class JobsSummary(TypedDict, total=False): - """Summary of the replication job data for this vault. - - :ivar failed_jobs: Count of failed jobs. - :vartype failed_jobs: int - :ivar suspended_jobs: Count of suspended jobs. - :vartype suspended_jobs: int - :ivar in_progress_jobs: Count of in-progress jobs. - :vartype in_progress_jobs: int - """ - - failedJobs: int - """Count of failed jobs.""" - suspendedJobs: int - """Count of suspended jobs.""" - inProgressJobs: int - """Count of in-progress jobs.""" - - class MonitoringSettings(TypedDict, total=False): """Monitoring Settings of the vault. - :ivar azure_monitor_alert_settings: Settings for Azure Monitor based alerts. - :vartype azure_monitor_alert_settings: "AzureMonitorAlertSettings" - :ivar classic_alert_settings: Settings for classic alerts. - :vartype classic_alert_settings: "ClassicAlertSettings" + :ivar azureMonitorAlertSettings: Settings for Azure Monitor based alerts. + :vartype azureMonitorAlertSettings: "AzureMonitorAlertSettings" + :ivar classicAlertSettings: Settings for classic alerts. + :vartype classicAlertSettings: "ClassicAlertSettings" """ azureMonitorAlertSettings: "AzureMonitorAlertSettings" @@ -657,87 +361,6 @@ class MonitoringSettings(TypedDict, total=False): """Settings for classic alerts.""" -class MonitoringSummary(TypedDict, total=False): - """Summary of the replication monitoring data for this vault. - - :ivar un_healthy_vm_count: Count of unhealthy VMs. - :vartype un_healthy_vm_count: int - :ivar un_healthy_provider_count: Count of unhealthy replication providers. - :vartype un_healthy_provider_count: int - :ivar events_count: Count of all critical warnings. - :vartype events_count: int - :ivar deprecated_provider_count: Count of all deprecated recovery service providers. - :vartype deprecated_provider_count: int - :ivar supported_provider_count: Count of all the supported recovery service providers. - :vartype supported_provider_count: int - :ivar unsupported_provider_count: Count of all the unsupported recovery service providers. - :vartype unsupported_provider_count: int - """ - - unHealthyVmCount: int - """Count of unhealthy VMs.""" - unHealthyProviderCount: int - """Count of unhealthy replication providers.""" - eventsCount: int - """Count of all critical warnings.""" - deprecatedProviderCount: int - """Count of all deprecated recovery service providers.""" - supportedProviderCount: int - """Count of all the supported recovery service providers.""" - unsupportedProviderCount: int - """Count of all the unsupported recovery service providers.""" - - -class NameInfo(TypedDict, total=False): - """The name of usage. - - :ivar value: Value of usage. - :vartype value: str - :ivar localized_value: Localized value of usage. - :vartype localized_value: str - """ - - value: str - """Value of usage.""" - localizedValue: str - """Localized value of usage.""" - - -class OperationResource(TypedDict, total=False): - """Operation Resource. - - :ivar end_time: End time of the operation. - :vartype end_time: str - :ivar error: Required if status == failed or status == canceled. This is the OData v4 error - format, used by the RPC and will go into the v2.2 Azure REST API guidelines. - :vartype error: "Error" - :ivar id: It should match what is used to GET the operation result. - :vartype id: str - :ivar name: It must match the last segment of the "id" field, and will typically be a GUID / - system generated value. - :vartype name: str - :ivar status: The status of the operation. (InProgress/Success/Failed/Cancelled). - :vartype status: str - :ivar start_time: Start time of the operation. - :vartype start_time: str - """ - - endTime: str - """End time of the operation.""" - error: "Error" - """Required if status == failed or status == canceled. This is the OData v4 error format, used by - the RPC and will go into the v2.2 Azure REST API guidelines.""" - id: str - """It should match what is used to GET the operation result.""" - name: str - """It must match the last segment of the \"id\" field, and will typically be a GUID / system - generated value.""" - status: str - """The status of the operation. (InProgress/Success/Failed/Cancelled).""" - startTime: str - """Start time of the operation.""" - - class PatchTrackedResource(Resource): """Tracked resource with location. @@ -749,9 +372,9 @@ class PatchTrackedResource(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 location: Resource location. :vartype location: str :ivar tags: Resource tags. @@ -779,9 +402,9 @@ class PatchVault(PatchTrackedResource): :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 location: Resource location. :vartype location: str :ivar tags: Resource tags. @@ -818,17 +441,16 @@ class PrivateEndpoint(TypedDict, total=False): class PrivateEndpointConnection(TypedDict, total=False): """Private Endpoint Connection Response Properties. - :ivar provisioning_state: Gets or sets provisioning state of the private endpoint connection. + :ivar provisioningState: Gets or sets provisioning state of the private endpoint connection. Known values are: "Succeeded", "Deleting", "Failed", and "Pending". - :vartype provisioning_state: Union[str, "ProvisioningState"] - :ivar private_endpoint: The Private Endpoint network resource that is linked to the Private + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar privateEndpoint: The Private Endpoint network resource that is linked to the Private Endpoint connection. - :vartype private_endpoint: "PrivateEndpoint" - :ivar private_link_service_connection_state: Gets or sets private link service connection - state. - :vartype private_link_service_connection_state: "PrivateLinkServiceConnectionState" - :ivar group_ids: Group Ids for the Private Endpoint. - :vartype group_ids: list[Union[str, "VaultSubResourceType"]] + :vartype privateEndpoint: "PrivateEndpoint" + :ivar privateLinkServiceConnectionState: Gets or sets private link service connection state. + :vartype privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + :ivar groupIds: Group Ids for the Private Endpoint. + :vartype groupIds: list[Union[str, "VaultSubResourceType"]] """ provisioningState: Union[str, "ProvisioningState"] @@ -873,49 +495,6 @@ class PrivateEndpointConnectionVaultProperties(TypedDict, total=False): """The location of the private Endpoint connection.""" -class PrivateLinkResource(ProxyResource): - """Information of the private link resource. - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :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 - information. - :vartype system_data: "SystemData" - :ivar properties: Resource properties. - :vartype properties: "PrivateLinkResourceProperties" - """ - - properties: "PrivateLinkResourceProperties" - """Resource properties.""" - - -class PrivateLinkResourceProperties(TypedDict, total=False): - """Properties of the private link resource. - - :ivar group_id: e.g. f9ad6492-33d4-4690-9999-6bfd52a0d081 (Backup) or - f9ad6492-33d4-4690-9999-6bfd52a0d082 (SiteRecovery). - :vartype group_id: str - :ivar required_members: [backup-ecs1, backup-prot1, backup-prot1b, backup-prot1c, backup-id1]. - :vartype required_members: list[str] - :ivar required_zone_names: The private link resource Private link DNS zone name. - :vartype required_zone_names: list[str] - """ - - groupId: str - """e.g. f9ad6492-33d4-4690-9999-6bfd52a0d081 (Backup) or f9ad6492-33d4-4690-9999-6bfd52a0d082 - (SiteRecovery).""" - requiredMembers: list[str] - """[backup-ecs1, backup-prot1, backup-prot1b, backup-prot1c, backup-id1].""" - requiredZoneNames: list[str] - """The private link resource Private link DNS zone name.""" - - class PrivateLinkServiceConnectionState(TypedDict, total=False): """Gets or sets private link service connection state. @@ -924,8 +503,8 @@ class PrivateLinkServiceConnectionState(TypedDict, total=False): :vartype status: Union[str, "PrivateEndpointConnectionStatus"] :ivar description: Gets or sets description. :vartype description: str - :ivar actions_required: Gets or sets actions required. - :vartype actions_required: str + :ivar actionsRequired: Gets or sets actions required. + :vartype actionsRequired: str """ status: Union[str, "PrivateEndpointConnectionStatus"] @@ -940,9 +519,9 @@ class PrivateLinkServiceConnectionState(TypedDict, total=False): class RawCertificateData(TypedDict, total=False): """Raw certificate data. - :ivar auth_type: Specifies the authentication type. Known values are: "Invalid", "ACS", "AAD", + :ivar authType: Specifies the authentication type. Known values are: "Invalid", "ACS", "AAD", "AccessControlService", and "AzureActiveDirectory". - :vartype auth_type: Union[str, "AuthType"] + :vartype authType: Union[str, "AuthType"] :ivar certificate: The base64 encoded certificate raw data string. :vartype certificate: str """ @@ -954,36 +533,18 @@ class RawCertificateData(TypedDict, total=False): """The base64 encoded certificate raw data string.""" -class ReplicationUsage(TypedDict, total=False): - """Replication usages of a vault. - - :ivar monitoring_summary: Summary of the replication monitoring data for this vault. - :vartype monitoring_summary: "MonitoringSummary" - :ivar jobs_summary: Summary of the replication jobs data for this vault. - :vartype jobs_summary: "JobsSummary" - :ivar protected_item_count: Number of replication protected items for this vault. - :vartype protected_item_count: int - :ivar recovery_plan_count: Number of replication recovery plans for this vault. - :vartype recovery_plan_count: int - :ivar registered_servers_count: Number of servers registered to this vault. - :vartype registered_servers_count: int - :ivar recovery_services_provider_auth_type: The authentication type of recovery service - providers in the vault. - :vartype recovery_services_provider_auth_type: int +class RegionOfChoiceSettings(TypedDict, total=False): + """Region of choice settings at vault level. This setting allows customers to configure backups + for datasources from different region. + + :ivar status: The status of region of choice settings - Enabled or Disabled. Known values are: + "Invalid", "Enabled", and "Disabled". + :vartype status: Union[str, "State"] """ - monitoringSummary: "MonitoringSummary" - """Summary of the replication monitoring data for this vault.""" - jobsSummary: "JobsSummary" - """Summary of the replication jobs data for this vault.""" - protectedItemCount: int - """Number of replication protected items for this vault.""" - recoveryPlanCount: int - """Number of replication recovery plans for this vault.""" - registeredServersCount: int - """Number of servers registered to this vault.""" - recoveryServicesProviderAuthType: int - """The authentication type of recovery service providers in the vault.""" + status: Union[str, "State"] + """The status of region of choice settings - Enabled or Disabled. Known values are: \"Invalid\", + \"Enabled\", and \"Disabled\".""" class ResourceCapabilities(ResourceCapabilitiesBase): @@ -999,141 +560,11 @@ class ResourceCapabilities(ResourceCapabilitiesBase): """Capabilities information.""" -class ResourceCertificateAndAadDetails(TypedDict, total=False): - """Certificate details representing the Vault credentials for AAD. - - :ivar certificate: The base64 encoded certificate raw data string. - :vartype certificate: str - :ivar friendly_name: Certificate friendly name. - :vartype friendly_name: str - :ivar issuer: Certificate issuer. - :vartype issuer: str - :ivar resource_id: Resource ID of the vault. - :vartype resource_id: int - :ivar subject: Certificate Subject Name. - :vartype subject: str - :ivar thumbprint: Certificate thumbprint. - :vartype thumbprint: str - :ivar valid_from: Certificate Validity start Date time. - :vartype valid_from: str - :ivar valid_to: Certificate Validity End Date time. - :vartype valid_to: str - :ivar aad_authority: AAD tenant authority. Required. - :vartype aad_authority: str - :ivar aad_tenant_id: AAD tenant Id. Required. - :vartype aad_tenant_id: str - :ivar service_principal_client_id: AAD service principal clientId. Required. - :vartype service_principal_client_id: str - :ivar service_principal_object_id: AAD service principal ObjectId. Required. - :vartype service_principal_object_id: str - :ivar azure_management_endpoint_audience: Azure Management Endpoint Audience. Required. - :vartype azure_management_endpoint_audience: str - :ivar service_resource_id: Service Resource Id. - :vartype service_resource_id: str - :ivar aad_audience: AAD audience for the resource. - :vartype aad_audience: str - :ivar auth_type: This property will be used as the discriminator for deciding the specific - types in the polymorphic chain of types. Required. Default value is "AzureActiveDirectory". - :vartype auth_type: Literal["AzureActiveDirectory"] - """ - - certificate: str - """The base64 encoded certificate raw data string.""" - friendlyName: str - """Certificate friendly name.""" - issuer: str - """Certificate issuer.""" - resourceId: int - """Resource ID of the vault.""" - subject: str - """Certificate Subject Name.""" - thumbprint: str - """Certificate thumbprint.""" - validFrom: str - """Certificate Validity start Date time.""" - validTo: str - """Certificate Validity End Date time.""" - aadAuthority: Required[str] - """AAD tenant authority. Required.""" - aadTenantId: Required[str] - """AAD tenant Id. Required.""" - servicePrincipalClientId: Required[str] - """AAD service principal clientId. Required.""" - servicePrincipalObjectId: Required[str] - """AAD service principal ObjectId. Required.""" - azureManagementEndpointAudience: Required[str] - """Azure Management Endpoint Audience. Required.""" - serviceResourceId: str - """Service Resource Id.""" - aadAudience: str - """AAD audience for the resource.""" - authType: Required[Literal["AzureActiveDirectory"]] - """This property will be used as the discriminator for deciding the specific types in the - polymorphic chain of types. Required. Default value is \"AzureActiveDirectory\".""" - - -class ResourceCertificateAndAcsDetails(TypedDict, total=False): - """Certificate details representing the Vault credentials for ACS. - - :ivar certificate: The base64 encoded certificate raw data string. - :vartype certificate: str - :ivar friendly_name: Certificate friendly name. - :vartype friendly_name: str - :ivar issuer: Certificate issuer. - :vartype issuer: str - :ivar resource_id: Resource ID of the vault. - :vartype resource_id: int - :ivar subject: Certificate Subject Name. - :vartype subject: str - :ivar thumbprint: Certificate thumbprint. - :vartype thumbprint: str - :ivar valid_from: Certificate Validity start Date time. - :vartype valid_from: str - :ivar valid_to: Certificate Validity End Date time. - :vartype valid_to: str - :ivar global_acs_namespace: ACS namespace name - tenant for our service. Required. - :vartype global_acs_namespace: str - :ivar global_acs_host_name: Acs mgmt host name to connect to. Required. - :vartype global_acs_host_name: str - :ivar global_acs_rp_realm: Global ACS namespace RP realm. Required. - :vartype global_acs_rp_realm: str - :ivar auth_type: This property will be used as the discriminator for deciding the specific - types in the polymorphic chain of types. Required. Default value is "AccessControlService". - :vartype auth_type: Literal["AccessControlService"] - """ - - certificate: str - """The base64 encoded certificate raw data string.""" - friendlyName: str - """Certificate friendly name.""" - issuer: str - """Certificate issuer.""" - resourceId: int - """Resource ID of the vault.""" - subject: str - """Certificate Subject Name.""" - thumbprint: str - """Certificate thumbprint.""" - validFrom: str - """Certificate Validity start Date time.""" - validTo: str - """Certificate Validity End Date time.""" - globalAcsNamespace: Required[str] - """ACS namespace name - tenant for our service. Required.""" - globalAcsHostName: Required[str] - """Acs mgmt host name to connect to. Required.""" - globalAcsRPRealm: Required[str] - """Global ACS namespace RP realm. Required.""" - authType: Required[Literal["AccessControlService"]] - """This property will be used as the discriminator for deciding the specific types in the - polymorphic chain of types. Required. Default value is \"AccessControlService\".""" - - class RestoreSettings(TypedDict, total=False): """Restore Settings of the vault. - :ivar cross_subscription_restore_settings: Settings for CrossSubscriptionRestore. - :vartype cross_subscription_restore_settings: "CrossSubscriptionRestoreSettings" + :ivar crossSubscriptionRestoreSettings: Settings for CrossSubscriptionRestore. + :vartype crossSubscriptionRestoreSettings: "CrossSubscriptionRestoreSettings" """ crossSubscriptionRestoreSettings: "CrossSubscriptionRestoreSettings" @@ -1143,15 +574,15 @@ class RestoreSettings(TypedDict, total=False): class SecuritySettings(TypedDict, total=False): """Security Settings of the vault. - :ivar immutability_settings: Immutability Settings of a vault. - :vartype immutability_settings: "ImmutabilitySettings" - :ivar soft_delete_settings: Soft delete Settings of a vault. - :vartype soft_delete_settings: "SoftDeleteSettings" - :ivar multi_user_authorization: MUA Settings of a vault. Known values are: "Invalid", - "Enabled", and "Disabled". - :vartype multi_user_authorization: Union[str, "MultiUserAuthorization"] - :ivar source_scan_configuration: Source scan configuration of vault. - :vartype source_scan_configuration: "SourceScanConfiguration" + :ivar immutabilitySettings: Immutability Settings of a vault. + :vartype immutabilitySettings: "ImmutabilitySettings" + :ivar softDeleteSettings: Soft delete Settings of a vault. + :vartype softDeleteSettings: "SoftDeleteSettings" + :ivar multiUserAuthorization: MUA Settings of a vault. Known values are: "Invalid", "Enabled", + and "Disabled". + :vartype multiUserAuthorization: Union[str, "MultiUserAuthorization"] + :ivar sourceScanConfiguration: Source scan configuration of vault. + :vartype sourceScanConfiguration: "SourceScanConfiguration" """ immutabilitySettings: "ImmutabilitySettings" @@ -1199,13 +630,13 @@ class Sku(TypedDict, total=False): class SoftDeleteSettings(TypedDict, total=False): """Soft delete Settings of vault. - :ivar soft_delete_state: Known values are: "Invalid", "Enabled", "Disabled", and "AlwaysON". - :vartype soft_delete_state: Union[str, "SoftDeleteState"] - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int - :ivar enhanced_security_state: Known values are: "Invalid", "Enabled", "Disabled", and + :ivar softDeleteState: Known values are: "Invalid", "Enabled", "Disabled", and "AlwaysON". + :vartype softDeleteState: Union[str, "SoftDeleteState"] + :ivar softDeleteRetentionPeriodInDays: Soft delete retention period in days. + :vartype softDeleteRetentionPeriodInDays: int + :ivar enhancedSecurityState: Known values are: "Invalid", "Enabled", "Disabled", and "AlwaysON". - :vartype enhanced_security_state: Union[str, "EnhancedSecurityState"] + :vartype enhancedSecurityState: Union[str, "EnhancedSecurityState"] """ softDeleteState: Union[str, "SoftDeleteState"] @@ -1221,8 +652,8 @@ class SourceScanConfiguration(TypedDict, total=False): :ivar state: Known values are: "Invalid", "Enabled", and "Disabled". :vartype state: Union[str, "State"] - :ivar source_scan_identity: Identity details to be used for an operation. - :vartype source_scan_identity: "AssociatedIdentity" + :ivar sourceScanIdentity: Identity details to be used for an operation. + :vartype sourceScanIdentity: "AssociatedIdentity" """ state: Union[str, "State"] @@ -1234,20 +665,20 @@ class SourceScanConfiguration(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 @@ -1277,9 +708,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. @@ -1295,26 +726,26 @@ class TrackedResource(Resource): class UpgradeDetails(TypedDict, total=False): """Details for upgrading vault. - :ivar operation_id: ID of the vault upgrade operation. - :vartype operation_id: str - :ivar start_time_utc: UTC time at which the upgrade operation has started. - :vartype start_time_utc: str - :ivar last_updated_time_utc: UTC time at which the upgrade operation status was last updated. - :vartype last_updated_time_utc: str - :ivar end_time_utc: UTC time at which the upgrade operation has ended. - :vartype end_time_utc: str + :ivar operationId: ID of the vault upgrade operation. + :vartype operationId: str + :ivar startTimeUtc: UTC time at which the upgrade operation has started. + :vartype startTimeUtc: str + :ivar lastUpdatedTimeUtc: UTC time at which the upgrade operation status was last updated. + :vartype lastUpdatedTimeUtc: str + :ivar endTimeUtc: UTC time at which the upgrade operation has ended. + :vartype endTimeUtc: str :ivar status: Status of the vault upgrade operation. Known values are: "Unknown", "InProgress", "Upgraded", and "Failed". :vartype status: Union[str, "VaultUpgradeState"] :ivar message: Message to the user containing information about the upgrade operation. :vartype message: str - :ivar trigger_type: The way the vault upgrade was triggered. Known values are: "UserTriggered" + :ivar triggerType: The way the vault upgrade was triggered. Known values are: "UserTriggered" and "ForcedUpgrade". - :vartype trigger_type: Union[str, "TriggerType"] - :ivar upgraded_resource_id: Resource ID of the upgraded vault. - :vartype upgraded_resource_id: str - :ivar previous_resource_id: Resource ID of the vault before the upgrade. - :vartype previous_resource_id: str + :vartype triggerType: Union[str, "TriggerType"] + :ivar upgradedResourceId: Resource ID of the upgraded vault. + :vartype upgradedResourceId: str + :ivar previousResourceId: Resource ID of the vault before the upgrade. + :vartype previousResourceId: str """ operationId: str @@ -1342,10 +773,10 @@ class UpgradeDetails(TypedDict, total=False): class UserIdentity(TypedDict, total=False): """A resource identity that is managed by the user of the service. - :ivar principal_id: The principal ID of the user-assigned identity. - :vartype principal_id: str - :ivar client_id: The client ID of the user-assigned identity. - :vartype client_id: str + :ivar principalId: The principal ID of the user-assigned identity. + :vartype principalId: str + :ivar clientId: The client ID of the user-assigned identity. + :vartype clientId: str """ principalId: str @@ -1365,9 +796,9 @@ class Vault(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. @@ -1392,40 +823,15 @@ class Vault(TrackedResource): """etag for the resource.""" -class VaultCertificateResponse(TypedDict, total=False): - """Certificate corresponding to a vault that can be used by clients to register themselves with - the vault. - - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar properties: Certificate details representing the Vault credentials. - :vartype properties: "ResourceCertificateDetails" - """ - - name: str - """Resource name associated with the resource.""" - type: str - """Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...""" - id: str - """Resource Id represents the complete path to the resource.""" - properties: "ResourceCertificateDetails" - """Certificate details representing the Vault credentials.""" - - class VaultExtendedInfo(TypedDict, total=False): """Vault extended information. - :ivar integrity_key: Integrity key. - :vartype integrity_key: str - :ivar encryption_key: Encryption key. - :vartype encryption_key: str - :ivar encryption_key_thumbprint: Encryption key thumbprint. - :vartype encryption_key_thumbprint: str + :ivar integrityKey: Integrity key. + :vartype integrityKey: str + :ivar encryptionKey: Encryption key. + :vartype encryptionKey: str + :ivar encryptionKeyThumbprint: Encryption key thumbprint. + :vartype encryptionKeyThumbprint: str :ivar algorithm: Algorithm for Vault ExtendedInfo. :vartype algorithm: str """ @@ -1451,9 +857,9 @@ class VaultExtendedInfoResource(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: Vault extended information. :vartype properties: "VaultExtendedInfo" :ivar etag: etag for the resource. @@ -1469,51 +875,53 @@ class VaultExtendedInfoResource(ProxyResource): class VaultProperties(TypedDict, total=False): """Properties of the vault. - :ivar provisioning_state: Provisioning State. - :vartype provisioning_state: str - :ivar upgrade_details: Details for upgrading vault. - :vartype upgrade_details: "UpgradeDetails" - :ivar private_endpoint_connections: List of private endpoint connection. - :vartype private_endpoint_connections: list["PrivateEndpointConnectionVaultProperties"] - :ivar private_endpoint_state_for_backup: Private endpoint state for backup. Known values are: + :ivar provisioningState: Provisioning State. + :vartype provisioningState: str + :ivar upgradeDetails: Details for upgrading vault. + :vartype upgradeDetails: "UpgradeDetails" + :ivar privateEndpointConnections: List of private endpoint connection. + :vartype privateEndpointConnections: list["PrivateEndpointConnectionVaultProperties"] + :ivar privateEndpointStateForBackup: Private endpoint state for backup. Known values are: "None" and "Enabled". - :vartype private_endpoint_state_for_backup: Union[str, "VaultPrivateEndpointState"] - :ivar private_endpoint_state_for_site_recovery: Private endpoint state for site recovery. Known + :vartype privateEndpointStateForBackup: Union[str, "VaultPrivateEndpointState"] + :ivar privateEndpointStateForSiteRecovery: Private endpoint state for site recovery. Known values are: "None" and "Enabled". - :vartype private_endpoint_state_for_site_recovery: Union[str, "VaultPrivateEndpointState"] + :vartype privateEndpointStateForSiteRecovery: Union[str, "VaultPrivateEndpointState"] :ivar encryption: Customer Managed Key details of the resource. :vartype encryption: "VaultPropertiesEncryption" - :ivar move_details: The details of the latest move operation performed on the Azure Resource. - :vartype move_details: "VaultPropertiesMoveDetails" - :ivar move_state: The State of the Resource after the move operation. Known values are: + :ivar moveDetails: The details of the latest move operation performed on the Azure Resource. + :vartype moveDetails: "VaultPropertiesMoveDetails" + :ivar moveState: The State of the Resource after the move operation. Known values are: "Unknown", "InProgress", "PrepareFailed", "CommitFailed", "PrepareTimedout", "CommitTimedout", "MoveSucceeded", "Failure", "CriticalFailure", and "PartialSuccess". - :vartype move_state: Union[str, "ResourceMoveState"] - :ivar backup_storage_version: Backup storage version. Known values are: "V1", "V2", and + :vartype moveState: Union[str, "ResourceMoveState"] + :ivar backupStorageVersion: Backup storage version. Known values are: "V1", "V2", and "Unassigned". - :vartype backup_storage_version: Union[str, "BackupStorageVersion"] - :ivar public_network_access: property to enable or disable resource provider inbound network + :vartype backupStorageVersion: Union[str, "BackupStorageVersion"] + :ivar publicNetworkAccess: property to enable or disable resource provider inbound network traffic from public clients. Known values are: "Enabled" and "Disabled". - :vartype public_network_access: Union[str, "PublicNetworkAccess"] - :ivar monitoring_settings: Monitoring Settings of the vault. - :vartype monitoring_settings: "MonitoringSettings" - :ivar cost_management_settings: Cost Management Settings of the vault. - :vartype cost_management_settings: "CostManagementSettings" - :ivar restore_settings: Restore Settings of the vault. - :vartype restore_settings: "RestoreSettings" - :ivar redundancy_settings: The redundancy Settings of a Vault. - :vartype redundancy_settings: "VaultPropertiesRedundancySettings" - :ivar security_settings: Security Settings of the vault. - :vartype security_settings: "SecuritySettings" - :ivar secure_score: Secure Score of Recovery Services Vault. Known values are: "None", + :vartype publicNetworkAccess: Union[str, "PublicNetworkAccess"] + :ivar monitoringSettings: Monitoring Settings of the vault. + :vartype monitoringSettings: "MonitoringSettings" + :ivar costManagementSettings: Cost Management Settings of the vault. + :vartype costManagementSettings: "CostManagementSettings" + :ivar restoreSettings: Restore Settings of the vault. + :vartype restoreSettings: "RestoreSettings" + :ivar redundancySettings: The redundancy Settings of a Vault. + :vartype redundancySettings: "VaultPropertiesRedundancySettings" + :ivar securitySettings: Security Settings of the vault. + :vartype securitySettings: "SecuritySettings" + :ivar secureScore: Secure Score of Recovery Services Vault. Known values are: "None", "Minimum", "Adequate", and "Maximum". - :vartype secure_score: Union[str, "SecureScoreLevel"] - :ivar bcdr_security_level: Security levels of Recovery Services Vault for business continuity - and disaster recovery. Known values are: "Poor", "Fair", "Good", and "Excellent". - :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] + :vartype secureScore: Union[str, "SecureScoreLevel"] + :ivar bcdrSecurityLevel: Security levels of Recovery Services Vault for business continuity and + disaster recovery. Known values are: "Poor", "Fair", "Good", and "Excellent". + :vartype bcdrSecurityLevel: Union[str, "BCDRSecurityLevel"] + :ivar resourceGuardOperationRequests: ResourceGuardOperationRequests on which LAC check will be + performed. + :vartype resourceGuardOperationRequests: list[str] + :ivar regionOfChoiceSettings: Region of choice settings for this vault. + :vartype regionOfChoiceSettings: "RegionOfChoiceSettings" """ provisioningState: str @@ -1557,18 +965,20 @@ class VaultProperties(TypedDict, total=False): values are: \"Poor\", \"Fair\", \"Good\", and \"Excellent\".""" resourceGuardOperationRequests: list[str] """ResourceGuardOperationRequests on which LAC check will be performed.""" + regionOfChoiceSettings: "RegionOfChoiceSettings" + """Region of choice settings for this vault.""" class VaultPropertiesEncryption(TypedDict, total=False): """Customer Managed Key details of the resource. - :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 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 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"] """ keyVaultProperties: "CmkKeyVaultProperties" @@ -1582,16 +992,16 @@ class VaultPropertiesEncryption(TypedDict, total=False): class VaultPropertiesMoveDetails(TypedDict, total=False): """The details of the latest move operation performed on the Azure Resource. - :ivar operation_id: OperationId of the Resource Move Operation. - :vartype operation_id: str - :ivar start_time_utc: Start Time of the Resource Move Operation. - :vartype start_time_utc: str - :ivar completion_time_utc: End Time of the Resource Move Operation. - :vartype completion_time_utc: str - :ivar source_resource_id: Source Resource of the Resource Move Operation. - :vartype source_resource_id: str - :ivar target_resource_id: Target Resource of the Resource Move Operation. - :vartype target_resource_id: str + :ivar operationId: OperationId of the Resource Move Operation. + :vartype operationId: str + :ivar startTimeUtc: Start Time of the Resource Move Operation. + :vartype startTimeUtc: str + :ivar completionTimeUtc: End Time of the Resource Move Operation. + :vartype completionTimeUtc: str + :ivar sourceResourceId: Source Resource of the Resource Move Operation. + :vartype sourceResourceId: str + :ivar targetResourceId: Target Resource of the Resource Move Operation. + :vartype targetResourceId: str """ operationId: str @@ -1609,12 +1019,12 @@ class VaultPropertiesMoveDetails(TypedDict, total=False): class VaultPropertiesRedundancySettings(TypedDict, total=False): """The redundancy Settings of a Vault. - :ivar standard_tier_storage_redundancy: The storage redundancy setting of a vault. Known values + :ivar standardTierStorageRedundancy: The storage redundancy setting of a vault. Known values are: "Invalid", "LocallyRedundant", "GeoRedundant", and "ZoneRedundant". - :vartype standard_tier_storage_redundancy: Union[str, "StandardTierStorageRedundancy"] - :ivar cross_region_restore: Flag to show if Cross Region Restore is enabled on the Vault or - not. Known values are: "Enabled" and "Disabled". - :vartype cross_region_restore: Union[str, "CrossRegionRestore"] + :vartype standardTierStorageRedundancy: Union[str, "StandardTierStorageRedundancy"] + :ivar crossRegionRestore: Flag to show if Cross Region Restore is enabled on the Vault or not. + Known values are: "Enabled" and "Disabled". + :vartype crossRegionRestore: Union[str, "CrossRegionRestore"] """ standardTierStorageRedundancy: Union[str, "StandardTierStorageRedundancy"] @@ -1623,39 +1033,3 @@ class VaultPropertiesRedundancySettings(TypedDict, total=False): crossRegionRestore: Union[str, "CrossRegionRestore"] """Flag to show if Cross Region Restore is enabled on the Vault or not. Known values are: \"Enabled\" and \"Disabled\".""" - - -class VaultUsage(TypedDict, total=False): - """Usages of a vault. - - :ivar unit: Unit of the usage. Known values are: "Count", "Bytes", "Seconds", "Percent", - "CountPerSecond", and "BytesPerSecond". - :vartype unit: Union[str, "UsagesUnit"] - :ivar quota_period: Quota period of usage. - :vartype quota_period: str - :ivar next_reset_time: Next reset time of usage. - :vartype next_reset_time: str - :ivar current_value: Current value of usage. - :vartype current_value: int - :ivar limit: Limit of usage. - :vartype limit: int - :ivar name: Name of usage. - :vartype name: "NameInfo" - """ - - unit: Union[str, "UsagesUnit"] - """Unit of the usage. Known values are: \"Count\", \"Bytes\", \"Seconds\", \"Percent\", - \"CountPerSecond\", and \"BytesPerSecond\".""" - quotaPeriod: str - """Quota period of usage.""" - nextResetTime: str - """Next reset time of usage.""" - currentValue: int - """Current value of usage.""" - limit: int - """Limit of usage.""" - name: "NameInfo" - """Name of usage.""" - - -ResourceCertificateDetails = Union[ResourceCertificateAndAcsDetails, ResourceCertificateAndAadDetails] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/capabilities.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/capabilities.py index 0ec58fd6716d..a41f9748977f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/capabilities.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/capabilities.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/Capabilities.json +# x-ms-original-file: 2026-07-01/Capabilities.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_available.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_available.py index ccc477cc667e..05e409125186 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_available.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_available.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/CheckNameAvailability_Available.json +# x-ms-original-file: 2026-07-01/CheckNameAvailability_Available.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_not_available.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_not_available.py index 2e7533187b44..a61935d48b88 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_not_available.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/check_name_availability_not_available.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/CheckNameAvailability_NotAvailable.json +# x-ms-original-file: 2026-07-01/CheckNameAvailability_NotAvailable.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_registered_identities.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_registered_identities.py index 2f71c7f0240e..e364f821445c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_registered_identities.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_registered_identities.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2026-05-01/DeleteRegisteredIdentities.json +# x-ms-original-file: 2026-07-01/DeleteRegisteredIdentities.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_vault.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_vault.py index ca880ce652ce..9389e75e7862 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_vault.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/delete_vault.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-01/DeleteVault.json +# x-ms-original-file: 2026-07-01/DeleteVault.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get.py index 1bcc443001e4..a134bb21ee44 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/DeletedVaults_Get.json +# x-ms-original-file: 2026-07-01/DeletedVaults_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get_operation_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get_operation_status.py index d58470ba07b6..f92afba6faf2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get_operation_status.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_get_operation_status.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/DeletedVaults_GetOperationStatus.json +# x-ms-original-file: 2026-07-01/DeletedVaults_GetOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_list_by_subscription_id.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_list_by_subscription_id.py index dba58e14ac68..4819db64cc59 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_list_by_subscription_id.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_list_by_subscription_id.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-01/DeletedVaults_ListBySubscriptionId.json +# x-ms-original-file: 2026-07-01/DeletedVaults_ListBySubscriptionId.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_undelete.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_undelete.py index dc7041a9ac45..e3d462d43b6b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_undelete.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/deleted_vaults_undelete.py @@ -42,6 +42,6 @@ def main(): ).result() -# x-ms-original-file: 2026-05-01/DeletedVaults_Undelete.json +# x-ms-original-file: 2026-07-01/DeletedVaults_Undelete.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_result.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_result.py index c126ee3fbf28..0e88e6e407d2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_result.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_result.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/GetOperationResult.json +# x-ms-original-file: 2026-07-01/GetOperationResult.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_status.py index e1dd830de8d5..f43af89a8937 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_status.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_operation_status.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/GetOperationStatus.json +# x-ms-original-file: 2026-07-01/GetOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_private_link_resources.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_private_link_resources.py index 67aa96d30ee8..e92a884a7d77 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_private_link_resources.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_private_link_resources.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/GetPrivateLinkResources.json +# x-ms-original-file: 2026-07-01/GetPrivateLinkResources.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault.py index b94388da1f78..e6bbc39ba461 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/GETVault.json +# x-ms-original-file: 2026-07-01/GETVault.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_extended_info.py index 7ef56f357a7d..2f0b15fa271d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_extended_info.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_extended_info.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/GETVaultExtendedInfo.json +# x-ms-original-file: 2026-07-01/GETVaultExtendedInfo.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_with_region_of_choice_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_with_region_of_choice_settings.py new file mode 100644 index 000000000000..b642a741d610 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/get_vault_with_region_of_choice_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.recoveryservices import RecoveryServicesClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-recoveryservices +# USAGE + python get_vault_with_region_of_choice_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 = RecoveryServicesClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.vaults.get( + resource_group_name="Default-RecoveryServices-ResourceGroup", + vault_name="swaggerExample", + ) + print(response) + + +# x-ms-original-file: 2026-07-01/GETVault_WithRegionOfChoiceSettings.json +if __name__ == "__main__": + main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_by_subscription_ids.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_by_subscription_ids.py index 5f677eaba52d..554aadbc98ba 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_by_subscription_ids.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_by_subscription_ids.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-01/ListBySubscriptionIds.json +# x-ms-original-file: 2026-07-01/ListBySubscriptionIds.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_operations.py index 192e24b0505a..7cd9abfa5559 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_operations.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-01/ListOperations.json +# x-ms-original-file: 2026-07-01/ListOperations.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_private_link_resources.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_private_link_resources.py index 6118dada5a17..5934aadd29f4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_private_link_resources.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_private_link_resources.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-01/ListPrivateLinkResources.json +# x-ms-original-file: 2026-07-01/ListPrivateLinkResources.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_replication_usages.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_replication_usages.py index 40b6d015d833..f4e28d3ebb7e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_replication_usages.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_replication_usages.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-01/ListReplicationUsages.json +# x-ms-original-file: 2026-07-01/ListReplicationUsages.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_resources.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_resources.py index 767b27ccd047..32444fa57e8d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_resources.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_resources.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-01/ListResources.json +# x-ms-original-file: 2026-07-01/ListResources.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_usages.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_usages.py index d8d72ff176d0..727912e72f73 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_usages.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/list_usages.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-05-01/ListUsages.json +# x-ms-original-file: 2026-07-01/ListUsages.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault.py index 7ed6d18c55fa..0e3c235e68b5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault.json +# x-ms-original-file: 2026-07-01/PATCHVault.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk.py index e8c0685fb45b..d41fc26be180 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithCMK.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithCMK.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk2.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk2.py index 0ca314b3f53a..d8de7342a780 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk2.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk2.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PatchVault_WithCMK2.json +# x-ms-original-file: 2026-07-01/PatchVault_WithCMK2.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk3.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk3.py index 4e4f9625f47b..6b4086708b87 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk3.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cmk3.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithCMK3.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithCMK3.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cost_management_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cost_management_settings.py index 0c2ffb64df55..4bd00797f871 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cost_management_settings.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_cost_management_settings.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithCostManagementSettings.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithCostManagementSettings.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_immutability_config.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_immutability_config.py index ddd83aa96259..98bb3264b3eb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_immutability_config.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_immutability_config.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithImmutabilityConfig.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithImmutabilityConfig.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_monitoring_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_monitoring_settings.py index fadaefad294c..ef9955dafebc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_monitoring_settings.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_monitoring_settings.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithMonitoringSettings.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithMonitoringSettings.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_redundancy_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_redundancy_settings.py index 847750970bbf..ba6d10f04211 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_redundancy_settings.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_redundancy_settings.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithRedundancySettings.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithRedundancySettings.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_region_of_choice_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_region_of_choice_settings.py new file mode 100644 index 000000000000..c41ebb975174 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_region_of_choice_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.recoveryservices import RecoveryServicesClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-recoveryservices +# USAGE + python patch_vault_with_region_of_choice_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 = RecoveryServicesClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.vaults.begin_update( + resource_group_name="HelloWorld", + vault_name="swaggerExample", + vault={ + "properties": {"regionOfChoiceSettings": {"status": "Enabled"}}, + "tags": {"PatchKey": "PatchKeyUpdated"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/PATCHVault_WithRegionOfChoiceSettings.json +if __name__ == "__main__": + main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_source_scan_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_source_scan_configuration.py index 0c78c99c1cd7..7bf36620c8b7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_source_scan_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_source_scan_configuration.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithSourceScanConfiguration.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithSourceScanConfiguration.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_user_assigned_identity.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_user_assigned_identity.py index 2bf3e02bbe89..8ebe13a65995 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_user_assigned_identity.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/patch_vault_with_user_assigned_identity.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PATCHVault_WithUserAssignedIdentity.json +# x-ms-original-file: 2026-07-01/PATCHVault_WithUserAssignedIdentity.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault.py index e3a838439187..195182044407 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault.json +# x-ms-original-file: 2026-07-01/PUTVault.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_cred.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_cred.py index 88739b28cfb9..3adfc3a47a5b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_cred.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_cred.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVaultCred.json +# x-ms-original-file: 2026-07-01/PUTVaultCred.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_resource_guard_enabled.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_resource_guard_enabled.py index 55bdcd644aad..a0870195a13e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_resource_guard_enabled.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_resource_guard_enabled.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_ResourceGuardEnabled.json +# x-ms-original-file: 2026-07-01/PUTVault_ResourceGuardEnabled.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cmk.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cmk.py index 26afadbb6db3..e6034413de79 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cmk.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cmk.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_WithCMK.json +# x-ms-original-file: 2026-07-01/PUTVault_WithCMK.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cost_management_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cost_management_settings.py index bc76e51f8482..47be1e20a278 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cost_management_settings.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_cost_management_settings.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_WithCostManagementSettings.json +# x-ms-original-file: 2026-07-01/PUTVault_WithCostManagementSettings.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_immutability_config.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_immutability_config.py index eafbefc6059a..4eb8dc980dcb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_immutability_config.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_immutability_config.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_WithImmutabilityConfig.json +# x-ms-original-file: 2026-07-01/PUTVault_WithImmutabilityConfig.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_monitoring_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_monitoring_settings.py index 3614dbb002db..f6b693fc96f0 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_monitoring_settings.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_monitoring_settings.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_WithMonitoringSettings.json +# x-ms-original-file: 2026-07-01/PUTVault_WithMonitoringSettings.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_redundancy_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_redundancy_settings.py index 87074da4ddea..8a242b06c17e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_redundancy_settings.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_redundancy_settings.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_WithRedundancySettings.json +# x-ms-original-file: 2026-07-01/PUTVault_WithRedundancySettings.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_region_of_choice_settings.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_region_of_choice_settings.py new file mode 100644 index 000000000000..e7716bec0743 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_region_of_choice_settings.py @@ -0,0 +1,48 @@ +# 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.recoveryservices import RecoveryServicesClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-recoveryservices +# USAGE + python put_vault_with_region_of_choice_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 = RecoveryServicesClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.vaults.begin_create_or_update( + resource_group_name="Default-RecoveryServices-ResourceGroup", + vault_name="swaggerExample", + vault={ + "identity": {"type": "SystemAssigned"}, + "location": "West US", + "properties": {"publicNetworkAccess": "Enabled", "regionOfChoiceSettings": {"status": "Enabled"}}, + "sku": {"name": "Standard"}, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-07-01/PUTVault_WithRegionOfChoiceSettings.json +if __name__ == "__main__": + main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_source_scan_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_source_scan_configuration.py index 4a0d6f95b428..e1dd9623c57b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_source_scan_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_source_scan_configuration.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_WithSourceScanConfiguration.json +# x-ms-original-file: 2026-07-01/PUTVault_WithSourceScanConfiguration.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_user_assigned_identity.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_user_assigned_identity.py index b2e13381805c..8f43a91104ed 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_user_assigned_identity.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/put_vault_with_user_assigned_identity.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/PUTVault_WithUserAssignedIdentity.json +# x-ms-original-file: 2026-07-01/PUTVault_WithUserAssignedIdentity.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info.py index 5833bb4ebb90..1de51dc7db34 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info.py @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/UpdateVaultExtendedInfo.json +# x-ms-original-file: 2026-07-01/UpdateVaultExtendedInfo.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info_put.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info_put.py index ad139cf37d00..ba0d8ae33864 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info_put.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_samples/update_vault_extended_info_put.py @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: 2026-05-01/UpdateVaultExtendedInfo_Put.json +# x-ms-original-file: 2026-07-01/UpdateVaultExtendedInfo_Put.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations.py index ebcacad8869e..6f2876c6c83f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations.py @@ -97,6 +97,7 @@ def test_vaults_begin_create_or_update(self, resource_group): "provisioningState": "str", "publicNetworkAccess": "str", "redundancySettings": {"crossRegionRestore": "str", "standardTierStorageRedundancy": "str"}, + "regionOfChoiceSettings": {"status": "str"}, "resourceGuardOperationRequests": ["str"], "restoreSettings": {"crossSubscriptionRestoreSettings": {"crossSubscriptionRestoreState": "str"}}, "secureScore": "str", @@ -210,6 +211,7 @@ def test_vaults_begin_update(self, resource_group): "provisioningState": "str", "publicNetworkAccess": "str", "redundancySettings": {"crossRegionRestore": "str", "standardTierStorageRedundancy": "str"}, + "regionOfChoiceSettings": {"status": "str"}, "resourceGuardOperationRequests": ["str"], "restoreSettings": {"crossSubscriptionRestoreSettings": {"crossSubscriptionRestoreState": "str"}}, "secureScore": "str", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations_async.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations_async.py index 33ba3da158ff..c2ac601342a1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations_async.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/generated_tests/test_recovery_services_vaults_operations_async.py @@ -99,6 +99,7 @@ async def test_vaults_begin_create_or_update(self, resource_group): "provisioningState": "str", "publicNetworkAccess": "str", "redundancySettings": {"crossRegionRestore": "str", "standardTierStorageRedundancy": "str"}, + "regionOfChoiceSettings": {"status": "str"}, "resourceGuardOperationRequests": ["str"], "restoreSettings": { "crossSubscriptionRestoreSettings": {"crossSubscriptionRestoreState": "str"} @@ -219,6 +220,7 @@ async def test_vaults_begin_update(self, resource_group): "provisioningState": "str", "publicNetworkAccess": "str", "redundancySettings": {"crossRegionRestore": "str", "standardTierStorageRedundancy": "str"}, + "regionOfChoiceSettings": {"status": "str"}, "resourceGuardOperationRequests": ["str"], "restoreSettings": { "crossSubscriptionRestoreSettings": {"crossSubscriptionRestoreState": "str"} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml b/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml index 3f2a6266d405..56ec91c0f8fa 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices -commit: 3de4ed97d8bf726aa7fb8dea311a5a7d5ec59730 +commit: e9b8d33567e9422a09711667279fe178fada51a1 repo: Azure/azure-rest-api-specs additionalDirectories: From b886696032d225c175ec6b71582826e41ac16b63 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Thu, 13 Aug 2026 16:40:46 +0800 Subject: [PATCH 2/3] update Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9c6ec20f-6a71-48e1-a064-33e5528da1cc --- .../test_recovery_services_vaults_operations_async_test.py | 4 ++-- .../tests/test_recovery_services_vaults_operations_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_async_test.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_async_test.py index 694e0a1984cd..86a5a39cac8c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_async_test.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_async_test.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_vaults_list_by_subscription_id(self, resource_group): response = self.client.vaults.list_by_subscription_id() result = [r async for r in response] - assert response + assert len(result) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async @@ -33,4 +33,4 @@ async def test_vaults_list_by_resource_group(self, resource_group): resource_group_name=resource_group.name, ) result = [r async for r in response] - assert result == [] + assert len(result) == 0 diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_test.py b/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_test.py index eb3a35fdd4c3..4764799b8d96 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_test.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/tests/test_recovery_services_vaults_operations_test.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_vaults_list_by_subscription_id(self, resource_group): response = self.client.vaults.list_by_subscription_id() result = [r for r in response] - assert response + assert len(result) @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy @@ -32,4 +32,4 @@ def test_vaults_list_by_resource_group(self, resource_group): resource_group_name=resource_group.name, ) result = [r for r in response] - assert result == [] + assert len(result) == 0 From 7e8bbbebe50a6bf4b15f581d77782b2e915b3a9a Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 13 Aug 2026 09:35:14 +0000 Subject: [PATCH 3/3] Configurations: 'specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices/tspconfig.yaml', API Version: 2026-07-01, SDK Release Type: stable, and CommitSHA: '29a24a19a18c67892fd965d6aea4595e803becd2' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6697821 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json | 2 +- .../azure-mgmt-recoveryservices/tsp-location.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json b/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json index d9806e80136b..18e7ed78e358 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/_metadata.json @@ -3,7 +3,7 @@ "apiVersions": { "Microsoft.RecoveryServices": "2026-07-01" }, - "commit": "e9b8d33567e9422a09711667279fe178fada51a1", + "commit": "29a24a19a18c67892fd965d6aea4595e803becd2", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices", "emitterVersion": "0.63.3", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml b/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml index 56ec91c0f8fa..97f09c0f9df9 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/RecoveryServices -commit: e9b8d33567e9422a09711667279fe178fada51a1 +commit: 29a24a19a18c67892fd965d6aea4595e803becd2 repo: Azure/azure-rest-api-specs additionalDirectories: