From fa7a311788b41caf43dd67cfac90a5088eb34617 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 29 Jul 2026 05:56:55 +0000 Subject: [PATCH 1/4] Configurations: 'specification/storagesync/resource-manager/Microsoft.StorageSync/StorageSync/tspconfig.yaml', API Version: 2022-09-01, SDK Release Type: stable, and CommitSHA: '801a60cdad2669e8f824fedfbabbfe7f7093b940' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6632047 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../azure-mgmt-storagesync/CHANGELOG.md | 188 ++ .../azure-mgmt-storagesync/_metadata.json | 6 +- sdk/storage/azure-mgmt-storagesync/api.md | 741 -------- .../azure-mgmt-storagesync/api.metadata.yml | 6 +- .../apiview-properties.json | 2 +- .../mgmt/storagesync/_utils/model_base.py | 19 +- .../azure/mgmt/storagesync/_version.py | 2 +- .../azure/mgmt/storagesync/types.py | 1582 +---------------- .../azure-mgmt-storagesync/pyproject.toml | 4 +- .../azure-mgmt-storagesync/tsp-location.yaml | 2 +- 10 files changed, 210 insertions(+), 2342 deletions(-) diff --git a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md index bbcf57e7c865..7ce8557955d3 100644 --- a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md +++ b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md @@ -1,5 +1,193 @@ # Release History +## 2.0.0 (2026-07-29) + +### Features Added + + - Model `CloudEndpoint` added property `properties` + - Model `CloudEndpointCreateParameters` added property `properties` + - Model `OperationResourceMetricSpecification` added property `lock_aggregation_type` + - Model `PrivateEndpointConnection` added property `properties` + - Model `PrivateLinkResource` added property `properties` + - Model `RegisteredServer` added property `properties` + - Model `RegisteredServerCreateParameters` added property `properties` + - Model `ServerEndpoint` added property `properties` + - Model `ServerEndpointCloudTieringStatus` added property `low_disk_mode` + - Model `ServerEndpointCreateParameters` added property `properties` + - Model `StorageSyncService` added property `identity` + - Model `StorageSyncService` added property `properties` + - Model `StorageSyncServiceCreateParameters` added property `id` + - Model `StorageSyncServiceCreateParameters` added property `identity` + - Model `StorageSyncServiceCreateParameters` added property `name` + - Model `StorageSyncServiceCreateParameters` added property `properties` + - Model `StorageSyncServiceCreateParameters` added property `system_data` + - Model `StorageSyncServiceCreateParameters` added property `type` + - Model `StorageSyncServiceUpdateParameters` added property `identity` + - Model `StorageSyncServiceUpdateParameters` added property `properties` + - Model `SyncGroup` added property `properties` + - Model `Workflow` added property `properties` + - Added model `CloudEndpointAfsShareMetadataCertificatePublicKeys` + - Added model `CloudEndpointCreateParametersProperties` + - Added model `CloudEndpointProperties` + - Added model `CloudTieringLowDiskMode` + - Added enum `CloudTieringLowDiskModeState` + - Added model `ErrorAdditionalInfo` + - Added model `ErrorDetail` + - Added model `ErrorResponse` + - Added model `ManagedServiceIdentity` + - Added enum `ManagedServiceIdentityType` + - Added model `PostBackupResponseProperties` + - Added model `PrivateEndpointConnectionProperties` + - Added model `PrivateLinkResourceProperties` + - Added model `RegisteredServerCreateParametersProperties` + - Added model `RegisteredServerProperties` + - Added model `RegisteredServerUpdateParameters` + - Added model `RegisteredServerUpdateProperties` + - Added enum `ServerAuthType` + - Added model `ServerEndpointCreateParametersProperties` + - Added model `ServerEndpointProperties` + - Added model `ServerEndpointProvisioningStatus` + - Added model `ServerEndpointProvisioningStepStatus` + - Added model `ServerEndpointUpdateProperties` + - Added enum `ServerProvisioningStatus` + - Added model `StorageSyncServiceCreateParametersProperties` + - Added model `StorageSyncServiceProperties` + - Added model `StorageSyncServiceUpdateProperties` + - Added model `SyncGroupProperties` + - Added enum `Type` + - Added model `UserAssignedIdentity` + - Added model `WorkflowProperties` + - Model `CloudEndpointsOperations` added method `afs_share_metadata_certificate_public_keys` + - Model `CloudEndpointsOperations` added method `restore_heartbeat` + - Model `RegisteredServersOperations` added method `begin_update` + +### Breaking Changes + + - Deleted or renamed model `MicrosoftStorageSync` + - Model `CloudEndpoint` deleted or renamed its instance variable `azure_file_share_name` + - Model `CloudEndpoint` deleted or renamed its instance variable `backup_enabled` + - Model `CloudEndpoint` deleted or renamed its instance variable `change_enumeration_status` + - Model `CloudEndpoint` deleted or renamed its instance variable `friendly_name` + - Model `CloudEndpoint` deleted or renamed its instance variable `last_operation_name` + - Model `CloudEndpoint` deleted or renamed its instance variable `last_workflow_id` + - Model `CloudEndpoint` deleted or renamed its instance variable `partnership_id` + - Model `CloudEndpoint` deleted or renamed its instance variable `provisioning_state` + - Model `CloudEndpoint` deleted or renamed its instance variable `storage_account_resource_id` + - Model `CloudEndpoint` deleted or renamed its instance variable `storage_account_tenant_id` + - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `azure_file_share_name` + - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `friendly_name` + - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `storage_account_resource_id` + - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `storage_account_tenant_id` + - Model `PostBackupResponse` deleted or renamed its instance variable `cloud_endpoint_name` + - Model `PrivateEndpointConnection` deleted or renamed its instance variable `private_endpoint` + - Model `PrivateEndpointConnection` deleted or renamed its instance variable `private_link_service_connection_state` + - Model `PrivateEndpointConnection` deleted or renamed its instance variable `provisioning_state` + - Model `PrivateLinkResource` deleted or renamed its instance variable `group_id` + - Model `PrivateLinkResource` deleted or renamed its instance variable `required_members` + - Model `PrivateLinkResource` deleted or renamed its instance variable `required_zone_names` + - Model `RegisteredServer` deleted or renamed its instance variable `agent_version` + - Model `RegisteredServer` deleted or renamed its instance variable `agent_version_expiration_date` + - Model `RegisteredServer` deleted or renamed its instance variable `agent_version_status` + - Model `RegisteredServer` deleted or renamed its instance variable `cluster_id` + - Model `RegisteredServer` deleted or renamed its instance variable `cluster_name` + - Model `RegisteredServer` deleted or renamed its instance variable `discovery_endpoint_uri` + - Model `RegisteredServer` deleted or renamed its instance variable `friendly_name` + - Model `RegisteredServer` deleted or renamed its instance variable `last_heart_beat` + - Model `RegisteredServer` deleted or renamed its instance variable `last_operation_name` + - Model `RegisteredServer` deleted or renamed its instance variable `last_workflow_id` + - Model `RegisteredServer` deleted or renamed its instance variable `management_endpoint_uri` + - Model `RegisteredServer` deleted or renamed its instance variable `monitoring_configuration` + - Model `RegisteredServer` deleted or renamed its instance variable `monitoring_endpoint_uri` + - Model `RegisteredServer` deleted or renamed its instance variable `provisioning_state` + - Model `RegisteredServer` deleted or renamed its instance variable `resource_location` + - Model `RegisteredServer` deleted or renamed its instance variable `server_certificate` + - Model `RegisteredServer` deleted or renamed its instance variable `server_id` + - Model `RegisteredServer` deleted or renamed its instance variable `server_management_error_code` + - Model `RegisteredServer` deleted or renamed its instance variable `server_name` + - Model `RegisteredServer` deleted or renamed its instance variable `server_os_version` + - Model `RegisteredServer` deleted or renamed its instance variable `server_role` + - Model `RegisteredServer` deleted or renamed its instance variable `service_location` + - Model `RegisteredServer` deleted or renamed its instance variable `storage_sync_service_uid` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `agent_version` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `cluster_id` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `cluster_name` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `friendly_name` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `last_heart_beat` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_certificate` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_id` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_os_version` + - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_role` + - Model `ServerEndpoint` deleted or renamed its instance variable `cloud_tiering` + - Model `ServerEndpoint` deleted or renamed its instance variable `cloud_tiering_status` + - Model `ServerEndpoint` deleted or renamed its instance variable `friendly_name` + - Model `ServerEndpoint` deleted or renamed its instance variable `initial_download_policy` + - Model `ServerEndpoint` deleted or renamed its instance variable `initial_upload_policy` + - Model `ServerEndpoint` deleted or renamed its instance variable `last_operation_name` + - Model `ServerEndpoint` deleted or renamed its instance variable `last_workflow_id` + - Model `ServerEndpoint` deleted or renamed its instance variable `local_cache_mode` + - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer` + - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer_share_name` + - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer_storage_account_resource_id` + - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer_storage_account_tenant_id` + - Model `ServerEndpoint` deleted or renamed its instance variable `provisioning_state` + - Model `ServerEndpoint` deleted or renamed its instance variable `recall_status` + - Model `ServerEndpoint` deleted or renamed its instance variable `server_local_path` + - Model `ServerEndpoint` deleted or renamed its instance variable `server_name` + - Model `ServerEndpoint` deleted or renamed its instance variable `server_resource_id` + - Model `ServerEndpoint` deleted or renamed its instance variable `sync_status` + - Model `ServerEndpoint` deleted or renamed its instance variable `tier_files_older_than_days` + - Model `ServerEndpoint` deleted or renamed its instance variable `volume_free_space_percent` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `cloud_tiering` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `friendly_name` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `initial_download_policy` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `initial_upload_policy` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `local_cache_mode` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `offline_data_transfer` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `offline_data_transfer_share_name` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `server_local_path` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `server_resource_id` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `tier_files_older_than_days` + - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `volume_free_space_percent` + - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `cloud_tiering` + - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `local_cache_mode` + - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `offline_data_transfer` + - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `offline_data_transfer_share_name` + - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `tier_files_older_than_days` + - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `volume_free_space_percent` + - Model `StorageSyncService` deleted or renamed its instance variable `incoming_traffic_policy` + - Model `StorageSyncService` deleted or renamed its instance variable `last_operation_name` + - Model `StorageSyncService` deleted or renamed its instance variable `last_workflow_id` + - Model `StorageSyncService` deleted or renamed its instance variable `private_endpoint_connections` + - Model `StorageSyncService` deleted or renamed its instance variable `provisioning_state` + - Model `StorageSyncService` deleted or renamed its instance variable `storage_sync_service_status` + - Model `StorageSyncService` deleted or renamed its instance variable `storage_sync_service_uid` + - Model `StorageSyncServiceCreateParameters` deleted or renamed its instance variable `incoming_traffic_policy` + - Model `StorageSyncServiceUpdateParameters` deleted or renamed its instance variable `incoming_traffic_policy` + - Model `SyncGroup` deleted or renamed its instance variable `sync_group_status` + - Model `SyncGroup` deleted or renamed its instance variable `unique_id` + - Model `Workflow` deleted or renamed its instance variable `command_name` + - Model `Workflow` deleted or renamed its instance variable `created_timestamp` + - Model `Workflow` deleted or renamed its instance variable `last_operation_id` + - Model `Workflow` deleted or renamed its instance variable `last_status_timestamp` + - Model `Workflow` deleted or renamed its instance variable `last_step_name` + - Model `Workflow` deleted or renamed its instance variable `operation` + - Model `Workflow` deleted or renamed its instance variable `status` + - Model `Workflow` deleted or renamed its instance variable `steps` + - Deleted or renamed model `CloudEndpointArray` + - Deleted or renamed model `OperationDisplayResource` + - Deleted or renamed model `OperationEntityListResult` + - Deleted or renamed model `PrivateEndpointConnectionListResult` + - Deleted or renamed model `ProgressType` + - Deleted or renamed model `Reason` + - Deleted or renamed model `RegisteredServerArray` + - Deleted or renamed model `ResourcesMoveInfo` + - Deleted or renamed model `ServerEndpointArray` + - Deleted or renamed model `StorageSyncServiceArray` + - Deleted or renamed model `SubscriptionState` + - Deleted or renamed model `SyncGroupArray` + - Deleted or renamed model `WorkflowArray` + - Deleted or renamed method `CloudEndpointsOperations.restoreheartbeat` + ## 2.0.0b2 (2026-07-06) ### Features Added diff --git a/sdk/storage/azure-mgmt-storagesync/_metadata.json b/sdk/storage/azure-mgmt-storagesync/_metadata.json index fa7b7ec092fe..67093b1448d2 100644 --- a/sdk/storage/azure-mgmt-storagesync/_metadata.json +++ b/sdk/storage/azure-mgmt-storagesync/_metadata.json @@ -3,9 +3,9 @@ "apiVersions": { "Microsoft.StorageSync": "2022-09-01" }, - "commit": "3d1de464b5576fa149aed429795f6030313e31bb", + "commit": "801a60cdad2669e8f824fedfbabbfe7f7093b940", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/storagesync/resource-manager/Microsoft.StorageSync/StorageSync", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.34.0" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.34.2" } \ No newline at end of file diff --git a/sdk/storage/azure-mgmt-storagesync/api.md b/sdk/storage/azure-mgmt-storagesync/api.md index aa68e00aabab..666aca732dfc 100644 --- a/sdk/storage/azure-mgmt-storagesync/api.md +++ b/sdk/storage/azure-mgmt-storagesync/api.md @@ -3660,73 +3660,6 @@ namespace azure.mgmt.storagesync.types type: Union[str, Type] - class azure.mgmt.storagesync.types.CheckNameAvailabilityResult(TypedDict, total=False): - key "message": str - key "nameAvailable": bool - key "reason": Union[str, NameAvailabilityReason] - message: str - name_available: bool - reason: Union[str, NameAvailabilityReason] - - - class azure.mgmt.storagesync.types.CloudEndpoint(ProxyResource): - key "id": str - key "name": str - key "properties": ForwardRef('CloudEndpointProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - name: str - properties: CloudEndpointProperties - system_data: SystemData - type: str - - - class azure.mgmt.storagesync.types.CloudEndpointAfsShareMetadataCertificatePublicKeys(TypedDict, total=False): - key "firstKey": str - key "secondKey": str - first_key: str - second_key: str - - - class azure.mgmt.storagesync.types.CloudEndpointChangeEnumerationActivity(TypedDict, total=False): - key "deletesProgressPercent": int - key "lastUpdatedTimestamp": str - key "minutesRemaining": int - key "operationState": Union[str, CloudEndpointChangeEnumerationActivityState] - key "processedDirectoriesCount": int - key "processedFilesCount": int - key "progressPercent": int - key "startedTimestamp": str - key "statusCode": int - key "totalCountsState": Union[str, CloudEndpointChangeEnumerationTotalCountsState] - key "totalDirectoriesCount": int - key "totalFilesCount": int - key "totalSizeBytes": int - deletes_progress_percent: int - last_updated_timestamp: str - minutes_remaining: int - operation_state: Union[str, CloudEndpointChangeEnumerationActivityState] - processed_directories_count: int - processed_files_count: int - progress_percent: int - started_timestamp: str - status_code: int - total_counts_state: Union[str, CloudEndpointChangeEnumerationTotalCountsState] - total_directories_count: int - total_files_count: int - total_size_bytes: int - - - class azure.mgmt.storagesync.types.CloudEndpointChangeEnumerationStatus(TypedDict, total=False): - key "activity": ForwardRef('CloudEndpointChangeEnumerationActivity', module='types') - key "lastEnumerationStatus": ForwardRef('CloudEndpointLastChangeEnumerationStatus', module='types') - key "lastUpdatedTimestamp": str - activity: CloudEndpointChangeEnumerationActivity - last_enumeration_status: CloudEndpointLastChangeEnumerationStatus - last_updated_timestamp: str - - class azure.mgmt.storagesync.types.CloudEndpointCreateParameters(ProxyResource): key "id": str key "name": str @@ -3751,149 +3684,6 @@ namespace azure.mgmt.storagesync.types storage_account_tenant_id: str - class azure.mgmt.storagesync.types.CloudEndpointLastChangeEnumerationStatus(TypedDict, total=False): - key "completedTimestamp": str - key "namespaceDirectoriesCount": int - key "namespaceFilesCount": int - key "namespaceSizeBytes": int - key "nextRunTimestamp": str - key "startedTimestamp": str - completed_timestamp: str - namespace_directories_count: int - namespace_files_count: int - namespace_size_bytes: int - next_run_timestamp: str - started_timestamp: str - - - class azure.mgmt.storagesync.types.CloudEndpointProperties(TypedDict, total=False): - key "azureFileShareName": str - key "backupEnabled": str - key "changeEnumerationStatus": ForwardRef('CloudEndpointChangeEnumerationStatus', module='types') - key "friendlyName": str - key "lastOperationName": str - key "lastWorkflowId": str - key "partnershipId": str - key "provisioningState": str - key "storageAccountResourceId": str - key "storageAccountTenantId": str - azure_file_share_name: str - backup_enabled: str - change_enumeration_status: CloudEndpointChangeEnumerationStatus - friendly_name: str - last_operation_name: str - last_workflow_id: str - partnership_id: str - provisioning_state: str - storage_account_resource_id: str - storage_account_tenant_id: str - - - class azure.mgmt.storagesync.types.CloudTieringCachePerformance(TypedDict, total=False): - key "cacheHitBytes": int - key "cacheHitBytesPercent": int - key "cacheMissBytes": int - key "lastUpdatedTimestamp": str - cache_hit_bytes: int - cache_hit_bytes_percent: int - cache_miss_bytes: int - last_updated_timestamp: str - - - class azure.mgmt.storagesync.types.CloudTieringDatePolicyStatus(TypedDict, total=False): - key "lastUpdatedTimestamp": str - key "tieredFilesMostRecentAccessTimestamp": str - last_updated_timestamp: str - tiered_files_most_recent_access_timestamp: str - - - class azure.mgmt.storagesync.types.CloudTieringFilesNotTiering(TypedDict, total=False): - key "lastUpdatedTimestamp": str - key "totalFileCount": int - errors: list[FilesNotTieringError] - last_updated_timestamp: str - total_file_count: int - - - class azure.mgmt.storagesync.types.CloudTieringLowDiskMode(TypedDict, total=False): - key "lastUpdatedTimestamp": str - key "state": Union[str, CloudTieringLowDiskModeState] - last_updated_timestamp: str - state: Union[str, CloudTieringLowDiskModeState] - - - class azure.mgmt.storagesync.types.CloudTieringSpaceSavings(TypedDict, total=False): - key "cachedSizeBytes": int - key "lastUpdatedTimestamp": str - key "spaceSavingsBytes": int - key "spaceSavingsPercent": int - key "totalSizeCloudBytes": int - key "volumeSizeBytes": int - cached_size_bytes: int - last_updated_timestamp: str - space_savings_bytes: int - space_savings_percent: int - total_size_cloud_bytes: int - volume_size_bytes: int - - - class azure.mgmt.storagesync.types.CloudTieringVolumeFreeSpacePolicyStatus(TypedDict, total=False): - key "currentVolumeFreeSpacePercent": int - key "effectiveVolumeFreeSpacePolicy": int - key "lastUpdatedTimestamp": str - current_volume_free_space_percent: int - effective_volume_free_space_policy: int - last_updated_timestamp: str - - - class azure.mgmt.storagesync.types.ErrorAdditionalInfo(TypedDict, total=False): - key "info": Any - key "type": str - info: Any - type: str - - - class azure.mgmt.storagesync.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.storagesync.types.ErrorResponse(TypedDict, total=False): - key "error": ForwardRef('ErrorDetail', module='types') - error: ErrorDetail - - - class azure.mgmt.storagesync.types.FilesNotTieringError(TypedDict, total=False): - key "errorCode": int - key "fileCount": int - error_code: int - file_count: int - - - class azure.mgmt.storagesync.types.LocationOperationStatus(TypedDict, total=False): - key "endTime": str - key "error": ForwardRef('StorageSyncApiError', module='types') - key "id": str - key "name": str - key "percentComplete": int - key "startTime": str - key "status": str - end_time: str - error: StorageSyncApiError - id: str - name: str - percent_complete: int - start_time: str - status: str - - class azure.mgmt.storagesync.types.ManagedServiceIdentity(TypedDict, total=False): key "principalId": str key "tenantId": str @@ -3905,90 +3695,6 @@ namespace azure.mgmt.storagesync.types user_assigned_identities: dict[str, UserAssignedIdentity] - class azure.mgmt.storagesync.types.OperationDisplayInfo(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.storagesync.types.OperationEntity(TypedDict, total=False): - key "display": ForwardRef('OperationDisplayInfo', module='types') - key "name": str - key "origin": str - key "properties": ForwardRef('OperationProperties', module='types') - display: OperationDisplayInfo - name: str - origin: str - properties: OperationProperties - - - class azure.mgmt.storagesync.types.OperationProperties(TypedDict, total=False): - key "serviceSpecification": ForwardRef('OperationResourceServiceSpecification', module='types') - service_specification: OperationResourceServiceSpecification - - - class azure.mgmt.storagesync.types.OperationResourceMetricSpecification(TypedDict, total=False): - key "aggregationType": str - key "displayDescription": str - key "displayName": str - key "fillGapWithZero": bool - key "lockAggregationType": str - key "name": str - key "unit": str - aggregation_type: str - dimensions: list[OperationResourceMetricSpecificationDimension] - display_description: str - display_name: str - fill_gap_with_zero: bool - lock_aggregation_type: str - name: str - supportedAggregationTypes: list[str] - supported_aggregation_types: list[str] - unit: str - - - class azure.mgmt.storagesync.types.OperationResourceMetricSpecificationDimension(TypedDict, total=False): - key "displayName": str - key "name": str - key "toBeExportedForShoebox": bool - display_name: str - name: str - to_be_exported_for_shoebox: bool - - - class azure.mgmt.storagesync.types.OperationResourceServiceSpecification(TypedDict, total=False): - metricSpecifications: list[OperationResourceMetricSpecification] - metric_specifications: list[OperationResourceMetricSpecification] - - - class azure.mgmt.storagesync.types.OperationStatus(TypedDict, total=False): - key "endTime": str - key "error": ForwardRef('StorageSyncApiError', module='types') - key "name": str - key "startTime": str - key "status": str - end_time: str - error: StorageSyncApiError - name: str - start_time: str - status: str - - - class azure.mgmt.storagesync.types.PostBackupResponse(TypedDict, total=False): - key "backupMetadata": ForwardRef('PostBackupResponseProperties', module='types') - backup_metadata: PostBackupResponseProperties - - - class azure.mgmt.storagesync.types.PostBackupResponseProperties(TypedDict, total=False): - key "cloudEndpointName": str - cloud_endpoint_name: str - - class azure.mgmt.storagesync.types.PostRestoreRequest(TypedDict, total=False): key "azureFileShareUri": str key "failedFileList": str @@ -4058,32 +3764,6 @@ namespace azure.mgmt.storagesync.types provisioning_state: Union[str, PrivateEndpointConnectionProvisioningState] - class azure.mgmt.storagesync.types.PrivateLinkResource(Resource): - 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.storagesync.types.PrivateLinkResourceListResult(TypedDict, total=False): - value: list[PrivateLinkResource] - - - class azure.mgmt.storagesync.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.storagesync.types.PrivateLinkServiceConnectionState(TypedDict, total=False): key "actionsRequired": str key "description": str @@ -4111,19 +3791,6 @@ namespace azure.mgmt.storagesync.types recall_path: str - class azure.mgmt.storagesync.types.RegisteredServer(ProxyResource): - key "id": str - key "name": str - key "properties": ForwardRef('RegisteredServerProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - name: str - properties: RegisteredServerProperties - system_data: SystemData - type: str - - class azure.mgmt.storagesync.types.RegisteredServerCreateParameters(ProxyResource): key "id": str key "name": str @@ -4162,63 +3829,6 @@ namespace azure.mgmt.storagesync.types server_role: str - class azure.mgmt.storagesync.types.RegisteredServerProperties(TypedDict, total=False): - key "activeAuthType": Union[str, ServerAuthType] - key "agentVersion": str - key "agentVersionExpirationDate": str - key "agentVersionStatus": Union[str, RegisteredServerAgentVersionStatus] - key "applicationId": str - key "clusterId": str - key "clusterName": str - key "discoveryEndpointUri": str - key "friendlyName": str - key "identity": bool - key "lastHeartBeat": str - key "lastOperationName": str - key "lastWorkflowId": str - key "latestApplicationId": str - key "managementEndpointUri": str - key "monitoringConfiguration": str - key "monitoringEndpointUri": str - key "provisioningState": str - key "resourceLocation": str - key "serverCertificate": str - key "serverId": str - key "serverManagementErrorCode": int - key "serverName": str - key "serverOSVersion": str - key "serverRole": str - key "serviceLocation": str - key "storageSyncServiceUid": str - active_auth_type: Union[str, ServerAuthType] - agent_version: str - agent_version_expiration_date: str - agent_version_status: Union[str, RegisteredServerAgentVersionStatus] - application_id: str - cluster_id: str - cluster_name: str - discovery_endpoint_uri: str - friendly_name: str - identity: bool - last_heart_beat: str - last_operation_name: str - last_workflow_id: str - latest_application_id: str - management_endpoint_uri: str - monitoring_configuration: str - monitoring_endpoint_uri: str - provisioning_state: str - resource_location: str - server_certificate: str - server_id: str - server_management_error_code: int - server_name: str - server_os_version: str - server_role: str - service_location: str - storage_sync_service_uid: str - - class azure.mgmt.storagesync.types.RegisteredServerUpdateParameters(ProxyResource): key "id": str key "name": str @@ -4257,55 +3867,6 @@ namespace azure.mgmt.storagesync.types path: str - class azure.mgmt.storagesync.types.ServerEndpoint(ProxyResource): - key "id": str - key "name": str - key "properties": ForwardRef('ServerEndpointProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - name: str - properties: ServerEndpointProperties - system_data: SystemData - type: str - - - class azure.mgmt.storagesync.types.ServerEndpointBackgroundDataDownloadActivity(TypedDict, total=False): - key "downloadedBytes": int - key "percentProgress": int - key "startedTimestamp": str - key "timestamp": str - downloaded_bytes: int - percent_progress: int - started_timestamp: str - timestamp: str - - - class azure.mgmt.storagesync.types.ServerEndpointCloudTieringStatus(TypedDict, total=False): - key "cachePerformance": ForwardRef('CloudTieringCachePerformance', module='types') - key "datePolicyStatus": ForwardRef('CloudTieringDatePolicyStatus', module='types') - key "filesNotTiering": ForwardRef('CloudTieringFilesNotTiering', module='types') - key "health": Union[str, ServerEndpointHealthState] - key "healthLastUpdatedTimestamp": str - key "lastCloudTieringResult": int - key "lastSuccessTimestamp": str - key "lastUpdatedTimestamp": str - key "lowDiskMode": ForwardRef('CloudTieringLowDiskMode', module='types') - key "spaceSavings": ForwardRef('CloudTieringSpaceSavings', module='types') - key "volumeFreeSpacePolicyStatus": ForwardRef('CloudTieringVolumeFreeSpacePolicyStatus', module='types') - cache_performance: CloudTieringCachePerformance - date_policy_status: CloudTieringDatePolicyStatus - files_not_tiering: CloudTieringFilesNotTiering - health: Union[str, ServerEndpointHealthState] - health_last_updated_timestamp: str - last_cloud_tiering_result: int - last_success_timestamp: str - last_updated_timestamp: str - low_disk_mode: CloudTieringLowDiskMode - space_savings: CloudTieringSpaceSavings - volume_free_space_policy_status: CloudTieringVolumeFreeSpacePolicyStatus - - class azure.mgmt.storagesync.types.ServerEndpointCreateParameters(ProxyResource): key "id": str key "name": str @@ -4344,169 +3905,6 @@ namespace azure.mgmt.storagesync.types volume_free_space_percent: int - class azure.mgmt.storagesync.types.ServerEndpointFilesNotSyncingError(TypedDict, total=False): - key "errorCode": int - key "persistentCount": int - key "transientCount": int - error_code: int - persistent_count: int - transient_count: int - - - class azure.mgmt.storagesync.types.ServerEndpointProperties(TypedDict, total=False): - key "cloudTiering": Union[str, FeatureStatus] - key "cloudTieringStatus": ForwardRef('ServerEndpointCloudTieringStatus', module='types') - key "friendlyName": str - key "initialDownloadPolicy": Union[str, InitialDownloadPolicy] - key "initialUploadPolicy": Union[str, InitialUploadPolicy] - key "lastOperationName": str - key "lastWorkflowId": str - key "localCacheMode": Union[str, LocalCacheMode] - key "offlineDataTransfer": Union[str, FeatureStatus] - key "offlineDataTransferShareName": str - key "offlineDataTransferStorageAccountResourceId": str - key "offlineDataTransferStorageAccountTenantId": str - key "provisioningState": str - key "recallStatus": ForwardRef('ServerEndpointRecallStatus', module='types') - key "serverEndpointProvisioningStatus": ForwardRef('ServerEndpointProvisioningStatus', module='types') - key "serverLocalPath": str - key "serverName": str - key "serverResourceId": str - key "syncStatus": ForwardRef('ServerEndpointSyncStatus', module='types') - key "tierFilesOlderThanDays": int - key "volumeFreeSpacePercent": int - cloud_tiering: Union[str, FeatureStatus] - cloud_tiering_status: ServerEndpointCloudTieringStatus - friendly_name: str - initial_download_policy: Union[str, InitialDownloadPolicy] - initial_upload_policy: Union[str, InitialUploadPolicy] - last_operation_name: str - last_workflow_id: str - local_cache_mode: Union[str, LocalCacheMode] - offline_data_transfer: Union[str, FeatureStatus] - offline_data_transfer_share_name: str - offline_data_transfer_storage_account_resource_id: str - offline_data_transfer_storage_account_tenant_id: str - provisioning_state: str - recall_status: ServerEndpointRecallStatus - server_endpoint_provisioning_status: ServerEndpointProvisioningStatus - server_local_path: str - server_name: str - server_resource_id: str - sync_status: ServerEndpointSyncStatus - tier_files_older_than_days: int - volume_free_space_percent: int - - - class azure.mgmt.storagesync.types.ServerEndpointProvisioningStatus(TypedDict, total=False): - key "provisioningStatus": Union[str, ServerProvisioningStatus] - key "provisioningType": str - provisioningStepStatuses: list[ServerEndpointProvisioningStepStatus] - provisioning_status: Union[str, ServerProvisioningStatus] - provisioning_step_statuses: list[ServerEndpointProvisioningStepStatus] - provisioning_type: str - - - class azure.mgmt.storagesync.types.ServerEndpointProvisioningStepStatus(TypedDict, total=False): - key "endTime": str - key "errorCode": int - key "minutesLeft": int - key "name": str - key "progressPercentage": int - key "startTime": str - key "status": str - additionalInformation: dict[str, str] - additional_information: dict[str, str] - end_time: str - error_code: int - minutes_left: int - name: str - progress_percentage: int - start_time: str - status: str - - - class azure.mgmt.storagesync.types.ServerEndpointRecallError(TypedDict, total=False): - key "count": int - key "errorCode": int - count: int - error_code: int - - - class azure.mgmt.storagesync.types.ServerEndpointRecallStatus(TypedDict, total=False): - key "lastUpdatedTimestamp": str - key "totalRecallErrorsCount": int - last_updated_timestamp: str - recallErrors: list[ServerEndpointRecallError] - recall_errors: list[ServerEndpointRecallError] - total_recall_errors_count: int - - - class azure.mgmt.storagesync.types.ServerEndpointSyncActivityStatus(TypedDict, total=False): - key "appliedBytes": int - key "appliedItemCount": int - key "perItemErrorCount": int - key "sessionMinutesRemaining": int - key "syncMode": Union[str, ServerEndpointSyncMode] - key "timestamp": str - key "totalBytes": int - key "totalItemCount": int - applied_bytes: int - applied_item_count: int - per_item_error_count: int - session_minutes_remaining: int - sync_mode: Union[str, ServerEndpointSyncMode] - timestamp: str - total_bytes: int - total_item_count: int - - - class azure.mgmt.storagesync.types.ServerEndpointSyncSessionStatus(TypedDict, total=False): - key "lastSyncMode": Union[str, ServerEndpointSyncMode] - key "lastSyncPerItemErrorCount": int - key "lastSyncResult": int - key "lastSyncSuccessTimestamp": str - key "lastSyncTimestamp": str - key "persistentFilesNotSyncingCount": int - key "transientFilesNotSyncingCount": int - filesNotSyncingErrors: list[ServerEndpointFilesNotSyncingError] - files_not_syncing_errors: list[ServerEndpointFilesNotSyncingError] - last_sync_mode: Union[str, ServerEndpointSyncMode] - last_sync_per_item_error_count: int - last_sync_result: int - last_sync_success_timestamp: str - last_sync_timestamp: str - persistent_files_not_syncing_count: int - transient_files_not_syncing_count: int - - - class azure.mgmt.storagesync.types.ServerEndpointSyncStatus(TypedDict, total=False): - key "backgroundDataDownloadActivity": ForwardRef('ServerEndpointBackgroundDataDownloadActivity', module='types') - key "combinedHealth": Union[str, ServerEndpointHealthState] - key "downloadActivity": ForwardRef('ServerEndpointSyncActivityStatus', module='types') - key "downloadHealth": Union[str, ServerEndpointHealthState] - key "downloadStatus": ForwardRef('ServerEndpointSyncSessionStatus', module='types') - key "lastUpdatedTimestamp": str - key "offlineDataTransferStatus": Union[str, ServerEndpointOfflineDataTransferState] - key "syncActivity": Union[str, ServerEndpointSyncActivityState] - key "totalPersistentFilesNotSyncingCount": int - key "uploadActivity": ForwardRef('ServerEndpointSyncActivityStatus', module='types') - key "uploadHealth": Union[str, ServerEndpointHealthState] - key "uploadStatus": ForwardRef('ServerEndpointSyncSessionStatus', module='types') - background_data_download_activity: ServerEndpointBackgroundDataDownloadActivity - combined_health: Union[str, ServerEndpointHealthState] - download_activity: ServerEndpointSyncActivityStatus - download_health: Union[str, ServerEndpointHealthState] - download_status: ServerEndpointSyncSessionStatus - last_updated_timestamp: str - offline_data_transfer_status: Union[str, ServerEndpointOfflineDataTransferState] - sync_activity: Union[str, ServerEndpointSyncActivityState] - total_persistent_files_not_syncing_count: int - upload_activity: ServerEndpointSyncActivityStatus - upload_health: Union[str, ServerEndpointHealthState] - upload_status: ServerEndpointSyncSessionStatus - - class azure.mgmt.storagesync.types.ServerEndpointUpdateParameters(TypedDict, total=False): key "properties": ForwardRef('ServerEndpointUpdateProperties', module='types') properties: ServerEndpointUpdateProperties @@ -4527,74 +3925,6 @@ namespace azure.mgmt.storagesync.types volume_free_space_percent: int - class azure.mgmt.storagesync.types.StorageSyncApiError(TypedDict, total=False): - key "code": str - key "details": ForwardRef('StorageSyncErrorDetails', module='types') - key "innererror": ForwardRef('StorageSyncInnerErrorDetails', module='types') - key "message": str - key "target": str - code: str - details: StorageSyncErrorDetails - innererror: StorageSyncInnerErrorDetails - message: str - target: str - - - class azure.mgmt.storagesync.types.StorageSyncError(TypedDict, total=False): - key "error": ForwardRef('StorageSyncApiError', module='types') - key "innererror": ForwardRef('StorageSyncApiError', module='types') - error: StorageSyncApiError - innererror: StorageSyncApiError - - - class azure.mgmt.storagesync.types.StorageSyncErrorDetails(TypedDict, total=False): - key "code": str - key "exceptionType": str - key "hashedMessage": str - key "httpErrorCode": str - key "httpMethod": str - key "message": str - key "requestUri": str - key "target": str - code: str - exception_type: str - hashed_message: str - http_error_code: str - http_method: str - message: str - request_uri: str - target: str - - - class azure.mgmt.storagesync.types.StorageSyncInnerErrorDetails(TypedDict, total=False): - key "callStack": str - key "innerException": str - key "innerExceptionCallStack": str - key "message": str - call_stack: str - inner_exception: str - inner_exception_call_stack: str - message: str - - - class azure.mgmt.storagesync.types.StorageSyncService(TrackedResource): - key "id": str - key "identity": ForwardRef('ManagedServiceIdentity', module='types') - key "location": Required[str] - key "name": str - key "properties": ForwardRef('StorageSyncServiceProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - identity: ManagedServiceIdentity - location: str - name: str - properties: StorageSyncServiceProperties - system_data: SystemData - tags: dict[str, str] - type: str - - class azure.mgmt.storagesync.types.StorageSyncServiceCreateParameters(TrackedResource): key "id": str key "identity": ForwardRef('ManagedServiceIdentity', module='types') @@ -4620,25 +3950,6 @@ namespace azure.mgmt.storagesync.types use_identity: bool - class azure.mgmt.storagesync.types.StorageSyncServiceProperties(TypedDict, total=False): - key "incomingTrafficPolicy": Union[str, IncomingTrafficPolicy] - key "lastOperationName": str - key "lastWorkflowId": str - key "provisioningState": str - key "storageSyncServiceStatus": int - key "storageSyncServiceUid": str - key "useIdentity": bool - incoming_traffic_policy: Union[str, IncomingTrafficPolicy] - last_operation_name: str - last_workflow_id: str - privateEndpointConnections: list[PrivateEndpointConnection] - private_endpoint_connections: list[PrivateEndpointConnection] - provisioning_state: str - storage_sync_service_status: int - storage_sync_service_uid: str - use_identity: bool - - class azure.mgmt.storagesync.types.StorageSyncServiceUpdateParameters(TypedDict, total=False): key "identity": ForwardRef('ManagedServiceIdentity', module='types') key "properties": ForwardRef('StorageSyncServiceUpdateProperties', module='types') @@ -4654,19 +3965,6 @@ namespace azure.mgmt.storagesync.types use_identity: bool - class azure.mgmt.storagesync.types.SyncGroup(ProxyResource): - key "id": str - key "name": str - key "properties": ForwardRef('SyncGroupProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - name: str - properties: SyncGroupProperties - system_data: SystemData - type: str - - class azure.mgmt.storagesync.types.SyncGroupCreateParameters(ProxyResource): key "id": str key "name": str @@ -4680,13 +3978,6 @@ namespace azure.mgmt.storagesync.types type: str - class azure.mgmt.storagesync.types.SyncGroupProperties(TypedDict, total=False): - key "syncGroupStatus": str - key "uniqueId": str - sync_group_status: str - unique_id: str - - class azure.mgmt.storagesync.types.SystemData(TypedDict, total=False): key "createdAt": str key "createdBy": str @@ -4736,36 +4027,4 @@ namespace azure.mgmt.storagesync.types principal_id: str - class azure.mgmt.storagesync.types.Workflow(ProxyResource): - key "id": str - key "name": str - key "properties": ForwardRef('WorkflowProperties', module='types') - key "systemData": ForwardRef('SystemData', module='types') - key "type": str - id: str - name: str - properties: WorkflowProperties - system_data: SystemData - type: str - - - class azure.mgmt.storagesync.types.WorkflowProperties(TypedDict, total=False): - key "commandName": str - key "createdTimestamp": str - key "lastOperationId": str - key "lastStatusTimestamp": str - key "lastStepName": str - key "operation": Union[str, OperationDirection] - key "status": Union[str, WorkflowStatus] - key "steps": str - command_name: str - created_timestamp: str - last_operation_id: str - last_status_timestamp: str - last_step_name: str - operation: Union[str, OperationDirection] - status: Union[str, WorkflowStatus] - steps: str - - ``` \ No newline at end of file diff --git a/sdk/storage/azure-mgmt-storagesync/api.metadata.yml b/sdk/storage/azure-mgmt-storagesync/api.metadata.yml index 656bb0af0074..ac6e648163a5 100644 --- a/sdk/storage/azure-mgmt-storagesync/api.metadata.yml +++ b/sdk/storage/azure-mgmt-storagesync/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: f789477cb288a54fa9148adace08c4e1eb15e8b3775f58976ef9658ea93cdf23 -parserVersion: 0.3.28 -pythonVersion: 3.13.13 +apiMdSha256: 19cf91bdbc59c8c8e919700c575a53b9fb509c0d652ba925a2e2ed47d6c4ef1a +parserVersion: 0.3.30 +pythonVersion: 3.13.14 diff --git a/sdk/storage/azure-mgmt-storagesync/apiview-properties.json b/sdk/storage/azure-mgmt-storagesync/apiview-properties.json index 3f7288b31347..0699188c1df3 100644 --- a/sdk/storage/azure-mgmt-storagesync/apiview-properties.json +++ b/sdk/storage/azure-mgmt-storagesync/apiview-properties.json @@ -203,5 +203,5 @@ "azure.mgmt.storagesync.StorageSyncMgmtClient.location_operation_status": "Microsoft.StorageSync.locationOperationStatusGet", "azure.mgmt.storagesync.aio.StorageSyncMgmtClient.location_operation_status": "Microsoft.StorageSync.locationOperationStatusGet" }, - "CrossLanguageVersion": "14b23868ff81" + "CrossLanguageVersion": "467789b7bf64" } \ No newline at end of file diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/model_base.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/model_base.py index b93f5120d517..0f2c5bdfe70f 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/model_base.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/model_base.py @@ -458,21 +458,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 +482,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 +517,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 +542,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/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_version.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_version.py index 8eb37199ee54..8f2350dd3b0c 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_version.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "2.0.0b2" +VERSION = "2.0.0" diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py index 37fa5283586a..220995dc32d4 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py @@ -1,4 +1,4 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -13,9 +13,6 @@ if TYPE_CHECKING: from .models import ( ChangeDetectionMode, - CloudEndpointChangeEnumerationActivityState, - CloudEndpointChangeEnumerationTotalCountsState, - CloudTieringLowDiskModeState, CreatedByType, FeatureStatus, IncomingTrafficPolicy, @@ -23,19 +20,9 @@ InitialUploadPolicy, LocalCacheMode, ManagedServiceIdentityType, - NameAvailabilityReason, - OperationDirection, PrivateEndpointConnectionProvisioningState, PrivateEndpointServiceConnectionStatus, - RegisteredServerAgentVersionStatus, - ServerAuthType, - ServerEndpointHealthState, - ServerEndpointOfflineDataTransferState, - ServerEndpointSyncActivityState, - ServerEndpointSyncMode, - ServerProvisioningStatus, Type, - WorkflowStatus, ) @@ -67,31 +54,6 @@ class CheckNameAvailabilityParameters(TypedDict, total=False): \"Microsoft.StorageSync/storageSyncServices\"""" -class CheckNameAvailabilityResult(TypedDict, total=False): - """The CheckNameAvailability operation response. - - :ivar name_available: Gets a boolean value that indicates whether the name is available for you - to use. If true, the name is available. If false, the name has already been taken or invalid - and cannot be used. - :vartype name_available: bool - :ivar reason: Gets the reason that a Storage Sync Service name could not be used. The Reason - element is only returned if NameAvailable is false. Known values are: "Invalid" and - "AlreadyExists". - :vartype reason: Union[str, "NameAvailabilityReason"] - :ivar message: Gets an error message explaining the Reason value in more detail. - :vartype message: str - """ - - nameAvailable: bool - """Gets a boolean value that indicates whether the name is available for you to use. If true, the - name is available. If false, the name has already been taken or invalid and cannot be used.""" - reason: Union[str, "NameAvailabilityReason"] - """Gets the reason that a Storage Sync Service name could not be used. The Reason element is only - returned if NameAvailable is false. Known values are: \"Invalid\" and \"AlreadyExists\".""" - message: str - """Gets an error message explaining the Reason value in more detail.""" - - class Resource(TypedDict, total=False): """Resource. @@ -137,127 +99,6 @@ class ProxyResource(Resource): """ -class CloudEndpoint(ProxyResource): - """Cloud Endpoint object. - - :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: Cloud Endpoint properties. - :vartype properties: "CloudEndpointProperties" - """ - - properties: "CloudEndpointProperties" - """Cloud Endpoint properties.""" - - -class CloudEndpointAfsShareMetadataCertificatePublicKeys(TypedDict, total=False): # pylint: disable=name-too-long - """Cloud endpoint AFS file share metadata signing certificate public keys. - - :ivar first_key: The first public key. - :vartype first_key: str - :ivar second_key: The second public key. - :vartype second_key: str - """ - - firstKey: str - """The first public key.""" - secondKey: str - """The second public key.""" - - -class CloudEndpointChangeEnumerationActivity(TypedDict, total=False): - """Cloud endpoint change enumeration activity object. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar operation_state: Change enumeration operation state. Known values are: - "InitialEnumerationInProgress" and "EnumerationInProgress". - :vartype operation_state: Union[str, "CloudEndpointChangeEnumerationActivityState"] - :ivar status_code: When non-zero, indicates an issue that is delaying change enumeration. - :vartype status_code: int - :ivar started_timestamp: Timestamp when change enumeration started. - :vartype started_timestamp: str - :ivar processed_files_count: Count of files processed. - :vartype processed_files_count: int - :ivar processed_directories_count: Count of directories processed. - :vartype processed_directories_count: int - :ivar total_files_count: Total count of files enumerated. - :vartype total_files_count: int - :ivar total_directories_count: Total count of directories enumerated. - :vartype total_directories_count: int - :ivar total_size_bytes: Total enumerated size in bytes. - :vartype total_size_bytes: int - :ivar progress_percent: Progress percentage for change enumeration run, excluding processing of - deletes. - :vartype progress_percent: int - :ivar minutes_remaining: Estimate of time remaining for the enumeration run. - :vartype minutes_remaining: int - :ivar total_counts_state: Change enumeration total counts state. Known values are: - "Calculating" and "Final". - :vartype total_counts_state: Union[str, "CloudEndpointChangeEnumerationTotalCountsState"] - :ivar deletes_progress_percent: Progress percentage for processing deletes. This is done - separately from the rest of the enumeration run. - :vartype deletes_progress_percent: int - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - operationState: Union[str, "CloudEndpointChangeEnumerationActivityState"] - """Change enumeration operation state. Known values are: \"InitialEnumerationInProgress\" and - \"EnumerationInProgress\".""" - statusCode: int - """When non-zero, indicates an issue that is delaying change enumeration.""" - startedTimestamp: str - """Timestamp when change enumeration started.""" - processedFilesCount: int - """Count of files processed.""" - processedDirectoriesCount: int - """Count of directories processed.""" - totalFilesCount: int - """Total count of files enumerated.""" - totalDirectoriesCount: int - """Total count of directories enumerated.""" - totalSizeBytes: int - """Total enumerated size in bytes.""" - progressPercent: int - """Progress percentage for change enumeration run, excluding processing of deletes.""" - minutesRemaining: int - """Estimate of time remaining for the enumeration run.""" - totalCountsState: Union[str, "CloudEndpointChangeEnumerationTotalCountsState"] - """Change enumeration total counts state. Known values are: \"Calculating\" and \"Final\".""" - deletesProgressPercent: int - """Progress percentage for processing deletes. This is done separately from the rest of the - enumeration run.""" - - -class CloudEndpointChangeEnumerationStatus(TypedDict, total=False): - """Cloud endpoint change enumeration status object. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar last_enumeration_status: Status of last completed change enumeration. - :vartype last_enumeration_status: "CloudEndpointLastChangeEnumerationStatus" - :ivar activity: Change enumeration activity. - :vartype activity: "CloudEndpointChangeEnumerationActivity" - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - lastEnumerationStatus: "CloudEndpointLastChangeEnumerationStatus" - """Status of last completed change enumeration.""" - activity: "CloudEndpointChangeEnumerationActivity" - """Change enumeration activity.""" - - class CloudEndpointCreateParameters(ProxyResource): """The parameters used when creating a cloud endpoint. @@ -303,312 +144,6 @@ class CloudEndpointCreateParametersProperties(TypedDict, total=False): """Friendly Name.""" -class CloudEndpointLastChangeEnumerationStatus(TypedDict, total=False): - """Cloud endpoint change enumeration status object. - - :ivar started_timestamp: Timestamp when change enumeration started. - :vartype started_timestamp: str - :ivar completed_timestamp: Timestamp when change enumeration completed. - :vartype completed_timestamp: str - :ivar namespace_files_count: Count of files in the namespace. - :vartype namespace_files_count: int - :ivar namespace_directories_count: Count of directories in the namespace. - :vartype namespace_directories_count: int - :ivar namespace_size_bytes: Namespace size in bytes. - :vartype namespace_size_bytes: int - :ivar next_run_timestamp: Timestamp of when change enumeration is expected to run again. - :vartype next_run_timestamp: str - """ - - startedTimestamp: str - """Timestamp when change enumeration started.""" - completedTimestamp: str - """Timestamp when change enumeration completed.""" - namespaceFilesCount: int - """Count of files in the namespace.""" - namespaceDirectoriesCount: int - """Count of directories in the namespace.""" - namespaceSizeBytes: int - """Namespace size in bytes.""" - nextRunTimestamp: str - """Timestamp of when change enumeration is expected to run again.""" - - -class CloudEndpointProperties(TypedDict, total=False): - """CloudEndpoint Properties object. - - :ivar storage_account_resource_id: Storage Account Resource Id. - :vartype storage_account_resource_id: str - :ivar azure_file_share_name: Azure file share name. - :vartype azure_file_share_name: str - :ivar storage_account_tenant_id: Storage Account Tenant Id. - :vartype storage_account_tenant_id: str - :ivar partnership_id: Partnership Id. - :vartype partnership_id: str - :ivar friendly_name: Friendly Name. - :vartype friendly_name: str - :ivar backup_enabled: Backup Enabled. - :vartype backup_enabled: str - :ivar provisioning_state: CloudEndpoint Provisioning State. - :vartype provisioning_state: str - :ivar last_workflow_id: CloudEndpoint lastWorkflowId. - :vartype last_workflow_id: str - :ivar last_operation_name: Resource Last Operation Name. - :vartype last_operation_name: str - :ivar change_enumeration_status: Cloud endpoint change enumeration status. - :vartype change_enumeration_status: "CloudEndpointChangeEnumerationStatus" - """ - - storageAccountResourceId: str - """Storage Account Resource Id.""" - azureFileShareName: str - """Azure file share name.""" - storageAccountTenantId: str - """Storage Account Tenant Id.""" - partnershipId: str - """Partnership Id.""" - friendlyName: str - """Friendly Name.""" - backupEnabled: str - """Backup Enabled.""" - provisioningState: str - """CloudEndpoint Provisioning State.""" - lastWorkflowId: str - """CloudEndpoint lastWorkflowId.""" - lastOperationName: str - """Resource Last Operation Name.""" - changeEnumerationStatus: "CloudEndpointChangeEnumerationStatus" - """Cloud endpoint change enumeration status.""" - - -class CloudTieringCachePerformance(TypedDict, total=False): - """Server endpoint cloud tiering status object. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar cache_hit_bytes: Count of bytes that were served from the local server. - :vartype cache_hit_bytes: int - :ivar cache_miss_bytes: Count of bytes that were served from the cloud. - :vartype cache_miss_bytes: int - :ivar cache_hit_bytes_percent: Percentage of total bytes (hit + miss) that were served from the - local server. - :vartype cache_hit_bytes_percent: int - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - cacheHitBytes: int - """Count of bytes that were served from the local server.""" - cacheMissBytes: int - """Count of bytes that were served from the cloud.""" - cacheHitBytesPercent: int - """Percentage of total bytes (hit + miss) that were served from the local server.""" - - -class CloudTieringDatePolicyStatus(TypedDict, total=False): - """Status of the date policy. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar tiered_files_most_recent_access_timestamp: Most recent access time of tiered files. - :vartype tiered_files_most_recent_access_timestamp: str - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - tieredFilesMostRecentAccessTimestamp: str - """Most recent access time of tiered files.""" - - -class CloudTieringFilesNotTiering(TypedDict, total=False): - """Server endpoint cloud tiering status object. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar total_file_count: Last cloud tiering result (HResult). - :vartype total_file_count: int - :ivar errors: Array of tiering errors. - :vartype errors: list["FilesNotTieringError"] - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - totalFileCount: int - """Last cloud tiering result (HResult).""" - errors: list["FilesNotTieringError"] - """Array of tiering errors.""" - - -class CloudTieringLowDiskMode(TypedDict, total=False): - """Information regarding the low disk mode state. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar state: Low disk mode state. Known values are: "Enabled" and "Disabled". - :vartype state: Union[str, "CloudTieringLowDiskModeState"] - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - state: Union[str, "CloudTieringLowDiskModeState"] - """Low disk mode state. Known values are: \"Enabled\" and \"Disabled\".""" - - -class CloudTieringSpaceSavings(TypedDict, total=False): - """Server endpoint cloud tiering status object. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar volume_size_bytes: Volume size. - :vartype volume_size_bytes: int - :ivar total_size_cloud_bytes: Total size of content in the azure file share. - :vartype total_size_cloud_bytes: int - :ivar cached_size_bytes: Cached content size on the server. - :vartype cached_size_bytes: int - :ivar space_savings_percent: Percentage of cached size over total size. - :vartype space_savings_percent: int - :ivar space_savings_bytes: Count of bytes saved on the server. - :vartype space_savings_bytes: int - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - volumeSizeBytes: int - """Volume size.""" - totalSizeCloudBytes: int - """Total size of content in the azure file share.""" - cachedSizeBytes: int - """Cached content size on the server.""" - spaceSavingsPercent: int - """Percentage of cached size over total size.""" - spaceSavingsBytes: int - """Count of bytes saved on the server.""" - - -class CloudTieringVolumeFreeSpacePolicyStatus(TypedDict, total=False): - """Status of the volume free space policy. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar effective_volume_free_space_policy: In the case where multiple server endpoints are - present in a volume, an effective free space policy is applied. - :vartype effective_volume_free_space_policy: int - :ivar current_volume_free_space_percent: Current volume free space percentage. - :vartype current_volume_free_space_percent: int - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - effectiveVolumeFreeSpacePolicy: int - """In the case where multiple server endpoints are present in a volume, an effective free space - policy is applied.""" - currentVolumeFreeSpacePercent: int - """Current volume free space percentage.""" - - -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 FilesNotTieringError(TypedDict, total=False): - """Files not tiering error object. - - :ivar error_code: Error code (HResult). - :vartype error_code: int - :ivar file_count: Count of files with this error. - :vartype file_count: int - """ - - errorCode: int - """Error code (HResult).""" - fileCount: int - """Count of files with this error.""" - - -class LocationOperationStatus(TypedDict, total=False): - """Operation status object. - - :ivar id: Operation resource Id. - :vartype id: str - :ivar name: Operation Id. - :vartype name: str - :ivar status: Operation status. - :vartype status: str - :ivar start_time: Start time of the operation. - :vartype start_time: str - :ivar end_time: End time of the operation. - :vartype end_time: str - :ivar error: Error details. - :vartype error: "StorageSyncApiError" - :ivar percent_complete: Percent complete. - :vartype percent_complete: int - """ - - id: str - """Operation resource Id.""" - name: str - """Operation Id.""" - status: str - """Operation status.""" - startTime: str - """Start time of the operation.""" - endTime: str - """End time of the operation.""" - error: "StorageSyncApiError" - """Error details.""" - percentComplete: int - """Percent complete.""" - - class ManagedServiceIdentity(TypedDict, total=False): """Managed service identity (system assigned and/or user assigned identities). @@ -638,185 +173,6 @@ class ManagedServiceIdentity(TypedDict, total=False): """The identities assigned to this resource by the user.""" -class OperationDisplayInfo(TypedDict, total=False): - """The operation supported by storage sync. - - :ivar description: The description of the operation. - :vartype description: str - :ivar operation: The action that users can perform, based on their permission level. - :vartype operation: str - :ivar provider: Service provider: Microsoft StorageSync. - :vartype provider: str - :ivar resource: Resource on which the operation is performed. - :vartype resource: str - """ - - description: str - """The description of the operation.""" - operation: str - """The action that users can perform, based on their permission level.""" - provider: str - """Service provider: Microsoft StorageSync.""" - resource: str - """Resource on which the operation is performed.""" - - -class OperationEntity(TypedDict, total=False): - """The operation supported by storage sync. - - :ivar name: Operation name: {provider}/{resource}/{operation}. - :vartype name: str - :ivar display: The operation supported by storage sync. - :vartype display: "OperationDisplayInfo" - :ivar origin: The origin. - :vartype origin: str - :ivar properties: Properties of the operations resource. - :vartype properties: "OperationProperties" - """ - - name: str - """Operation name: {provider}/{resource}/{operation}.""" - display: "OperationDisplayInfo" - """The operation supported by storage sync.""" - origin: str - """The origin.""" - properties: "OperationProperties" - """Properties of the operations resource.""" - - -class OperationProperties(TypedDict, total=False): - """Properties of the operations resource. - - :ivar service_specification: Service specification for the operations resource. - :vartype service_specification: "OperationResourceServiceSpecification" - """ - - serviceSpecification: "OperationResourceServiceSpecification" - """Service specification for the operations resource.""" - - -class OperationResourceMetricSpecification(TypedDict, total=False): - """Operation Display Resource object. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Display name for the metric. - :vartype display_name: str - :ivar display_description: Display description for the metric. - :vartype display_description: str - :ivar unit: Unit for the metric. - :vartype unit: str - :ivar aggregation_type: Aggregation type for the metric. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types for the metric. - :vartype supported_aggregation_types: list[str] - :ivar fill_gap_with_zero: Fill gaps in the metric with zero. - :vartype fill_gap_with_zero: bool - :ivar lock_aggregation_type: Lock Aggregation type for the metric. - :vartype lock_aggregation_type: str - :ivar dimensions: Dimensions for the metric specification. - :vartype dimensions: list["OperationResourceMetricSpecificationDimension"] - """ - - name: str - """Name of the metric.""" - displayName: str - """Display name for the metric.""" - displayDescription: str - """Display description for the metric.""" - unit: str - """Unit for the metric.""" - aggregationType: str - """Aggregation type for the metric.""" - supportedAggregationTypes: list[str] - """Supported aggregation types for the metric.""" - fillGapWithZero: bool - """Fill gaps in the metric with zero.""" - lockAggregationType: str - """Lock Aggregation type for the metric.""" - dimensions: list["OperationResourceMetricSpecificationDimension"] - """Dimensions for the metric specification.""" - - -class OperationResourceMetricSpecificationDimension(TypedDict, total=False): # pylint: disable=name-too-long - """OperationResourceMetricSpecificationDimension object. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Display name of the dimensions. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Indicates metric should be exported for Shoebox. - :vartype to_be_exported_for_shoebox: bool - """ - - name: str - """Name of the dimension.""" - displayName: str - """Display name of the dimensions.""" - toBeExportedForShoebox: bool - """Indicates metric should be exported for Shoebox.""" - - -class OperationResourceServiceSpecification(TypedDict, total=False): - """Service specification. - - :ivar metric_specifications: List of metric specifications. - :vartype metric_specifications: list["OperationResourceMetricSpecification"] - """ - - metricSpecifications: list["OperationResourceMetricSpecification"] - """List of metric specifications.""" - - -class OperationStatus(TypedDict, total=False): - """Operation status object. - - :ivar name: Operation Id. - :vartype name: str - :ivar status: Operation status. - :vartype status: str - :ivar start_time: Start time of the operation. - :vartype start_time: str - :ivar end_time: End time of the operation. - :vartype end_time: str - :ivar error: Error details. - :vartype error: "StorageSyncApiError" - """ - - name: str - """Operation Id.""" - status: str - """Operation status.""" - startTime: str - """Start time of the operation.""" - endTime: str - """End time of the operation.""" - error: "StorageSyncApiError" - """Error details.""" - - -class PostBackupResponse(TypedDict, total=False): - """Post Backup Response. - - :ivar backup_metadata: Post Backup Response Properties. - :vartype backup_metadata: "PostBackupResponseProperties" - """ - - backupMetadata: "PostBackupResponseProperties" - """Post Backup Response Properties.""" - - -class PostBackupResponseProperties(TypedDict, total=False): - """Post Backup Response Properties object. - - :ivar cloud_endpoint_name: cloud endpoint Name. - :vartype cloud_endpoint_name: str - """ - - cloudEndpointName: str - """cloud endpoint Name.""" - - class PostRestoreRequest(TypedDict, total=False): """Post Restore Request. @@ -960,66 +316,6 @@ class PrivateEndpointConnectionProperties(TypedDict, total=False): \"Succeeded\", \"Creating\", \"Deleting\", and \"Failed\".""" -class PrivateLinkResource(Resource): - """A 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 PrivateLinkResourceListResult(TypedDict, total=False): - """A list of private link resources for versions before v6. - - This model represents the standard ``PrivateLinkResourceListResult`` envelope for versions v3, - v4, and v5. It has been deprecated for v6 and beyond. - - Note: This is only intended for use with versions before v6. Do not use this if you are already - on CommonTypes.Version.v6 or beyond. - - If you are migrating to v6 or above, use ``PrivateLinkResourceListResult`` directly. - - :ivar value: Array of private link resources. - :vartype value: list["PrivateLinkResource"] - """ - - value: list["PrivateLinkResource"] - """Array of private link resources.""" - - -class PrivateLinkResourceProperties(TypedDict, total=False): - """Properties of a private link resource. - - :ivar group_id: The private link resource group id. - :vartype group_id: str - :ivar required_members: The private link resource required member names. - :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 - """The private link resource group id.""" - requiredMembers: list[str] - """The private link resource required member names.""" - requiredZoneNames: list[str] - """The private link resource private link DNS zone name.""" - - class PrivateLinkServiceConnectionState(TypedDict, total=False): """A collection of information about the state of the connection between service consumer and provider. @@ -1058,28 +354,6 @@ class RecallActionParameters(TypedDict, total=False): """Recall path.""" -class RegisteredServer(ProxyResource): - """Registered Server 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: RegisteredServer properties. - :vartype properties: "RegisteredServerProperties" - """ - - properties: "RegisteredServerProperties" - """RegisteredServer properties.""" - - class RegisteredServerCreateParameters(ProxyResource): """The parameters used when creating a registered server. @@ -1153,125 +427,6 @@ class RegisteredServerCreateParametersProperties(TypedDict, total=False): # pyl """Apply server with newly discovered ApplicationId if available.""" -class RegisteredServerProperties(TypedDict, total=False): - """RegisteredServer Properties object. - - :ivar server_certificate: Registered Server Certificate. - :vartype server_certificate: str - :ivar agent_version: Registered Server Agent Version. - :vartype agent_version: str - :ivar agent_version_status: Registered Server Agent Version Status. Known values are: "Ok", - "NearExpiry", "Expired", and "Blocked". - :vartype agent_version_status: Union[str, "RegisteredServerAgentVersionStatus"] - :ivar agent_version_expiration_date: Registered Server Agent Version Expiration Date. - :vartype agent_version_expiration_date: str - :ivar server_os_version: Registered Server OS Version. - :vartype server_os_version: str - :ivar server_management_error_code: Registered Server Management Error Code. - :vartype server_management_error_code: int - :ivar last_heart_beat: Registered Server last heart beat. - :vartype last_heart_beat: str - :ivar provisioning_state: Registered Server Provisioning State. - :vartype provisioning_state: str - :ivar server_role: Registered Server serverRole. - :vartype server_role: str - :ivar cluster_id: Registered Server clusterId. - :vartype cluster_id: str - :ivar cluster_name: Registered Server clusterName. - :vartype cluster_name: str - :ivar server_id: Registered Server serverId. - :vartype server_id: str - :ivar storage_sync_service_uid: Registered Server storageSyncServiceUid. - :vartype storage_sync_service_uid: str - :ivar last_workflow_id: Registered Server lastWorkflowId. - :vartype last_workflow_id: str - :ivar last_operation_name: Resource Last Operation Name. - :vartype last_operation_name: str - :ivar discovery_endpoint_uri: Resource discoveryEndpointUri. - :vartype discovery_endpoint_uri: str - :ivar resource_location: Resource Location. - :vartype resource_location: str - :ivar service_location: Service Location. - :vartype service_location: str - :ivar friendly_name: Friendly Name. - :vartype friendly_name: str - :ivar management_endpoint_uri: Management Endpoint Uri. - :vartype management_endpoint_uri: str - :ivar monitoring_endpoint_uri: Telemetry Endpoint Uri. - :vartype monitoring_endpoint_uri: str - :ivar monitoring_configuration: Monitoring Configuration. - :vartype monitoring_configuration: str - :ivar server_name: Server name. - :vartype server_name: str - :ivar application_id: Server Application Id. - :vartype application_id: str - :ivar identity: Apply server with newly discovered ApplicationId if available. - :vartype identity: bool - :ivar latest_application_id: Latest Server Application Id discovered from the server. It is not - yet applied. - :vartype latest_application_id: str - :ivar active_auth_type: Server auth type. Known values are: "Certificate" and - "ManagedIdentity". - :vartype active_auth_type: Union[str, "ServerAuthType"] - """ - - serverCertificate: str - """Registered Server Certificate.""" - agentVersion: str - """Registered Server Agent Version.""" - agentVersionStatus: Union[str, "RegisteredServerAgentVersionStatus"] - """Registered Server Agent Version Status. Known values are: \"Ok\", \"NearExpiry\", \"Expired\", - and \"Blocked\".""" - agentVersionExpirationDate: str - """Registered Server Agent Version Expiration Date.""" - serverOSVersion: str - """Registered Server OS Version.""" - serverManagementErrorCode: int - """Registered Server Management Error Code.""" - lastHeartBeat: str - """Registered Server last heart beat.""" - provisioningState: str - """Registered Server Provisioning State.""" - serverRole: str - """Registered Server serverRole.""" - clusterId: str - """Registered Server clusterId.""" - clusterName: str - """Registered Server clusterName.""" - serverId: str - """Registered Server serverId.""" - storageSyncServiceUid: str - """Registered Server storageSyncServiceUid.""" - lastWorkflowId: str - """Registered Server lastWorkflowId.""" - lastOperationName: str - """Resource Last Operation Name.""" - discoveryEndpointUri: str - """Resource discoveryEndpointUri.""" - resourceLocation: str - """Resource Location.""" - serviceLocation: str - """Service Location.""" - friendlyName: str - """Friendly Name.""" - managementEndpointUri: str - """Management Endpoint Uri.""" - monitoringEndpointUri: str - """Telemetry Endpoint Uri.""" - monitoringConfiguration: str - """Monitoring Configuration.""" - serverName: str - """Server name.""" - applicationId: str - """Server Application Id.""" - identity: bool - """Apply server with newly discovered ApplicationId if available.""" - latestApplicationId: str - """Latest Server Application Id discovered from the server. It is not yet applied.""" - activeAuthType: Union[str, "ServerAuthType"] - """Server auth type. Known values are: \"Certificate\" and \"ManagedIdentity\".""" - - class RegisteredServerUpdateParameters(ProxyResource): """The parameters used when updating a registered server. @@ -1324,104 +479,6 @@ class RestoreFileSpec(TypedDict, total=False): """Restore file spec isdir.""" -class ServerEndpoint(ProxyResource): - """Server Endpoint object. - - :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: Server Endpoint properties. - :vartype properties: "ServerEndpointProperties" - """ - - properties: "ServerEndpointProperties" - """Server Endpoint properties.""" - - -class ServerEndpointBackgroundDataDownloadActivity(TypedDict, total=False): # pylint: disable=name-too-long - """Background data download activity object. - - :ivar timestamp: Timestamp when properties were updated. - :vartype timestamp: str - :ivar started_timestamp: Timestamp when the operation started. - :vartype started_timestamp: str - :ivar percent_progress: Progress percentage. - :vartype percent_progress: int - :ivar downloaded_bytes: Running count of bytes downloaded. - :vartype downloaded_bytes: int - """ - - timestamp: str - """Timestamp when properties were updated.""" - startedTimestamp: str - """Timestamp when the operation started.""" - percentProgress: int - """Progress percentage.""" - downloadedBytes: int - """Running count of bytes downloaded.""" - - -class ServerEndpointCloudTieringStatus(TypedDict, total=False): - """Server endpoint cloud tiering status object. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar health: Cloud tiering health state. Known values are: "Unavailable", "Healthy", and - "Error". - :vartype health: Union[str, "ServerEndpointHealthState"] - :ivar health_last_updated_timestamp: The last updated timestamp of health state. - :vartype health_last_updated_timestamp: str - :ivar last_cloud_tiering_result: Last cloud tiering result (HResult). - :vartype last_cloud_tiering_result: int - :ivar last_success_timestamp: Last cloud tiering success timestamp. - :vartype last_success_timestamp: str - :ivar space_savings: Information regarding how much local space cloud tiering is saving. - :vartype space_savings: "CloudTieringSpaceSavings" - :ivar cache_performance: Information regarding how well the local cache on the server is - performing. - :vartype cache_performance: "CloudTieringCachePerformance" - :ivar files_not_tiering: Information regarding files that failed to be tiered. - :vartype files_not_tiering: "CloudTieringFilesNotTiering" - :ivar volume_free_space_policy_status: Status of the volume free space policy. - :vartype volume_free_space_policy_status: "CloudTieringVolumeFreeSpacePolicyStatus" - :ivar date_policy_status: Status of the date policy. - :vartype date_policy_status: "CloudTieringDatePolicyStatus" - :ivar low_disk_mode: Information regarding the low disk mode state. - :vartype low_disk_mode: "CloudTieringLowDiskMode" - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - health: Union[str, "ServerEndpointHealthState"] - """Cloud tiering health state. Known values are: \"Unavailable\", \"Healthy\", and \"Error\".""" - healthLastUpdatedTimestamp: str - """The last updated timestamp of health state.""" - lastCloudTieringResult: int - """Last cloud tiering result (HResult).""" - lastSuccessTimestamp: str - """Last cloud tiering success timestamp.""" - spaceSavings: "CloudTieringSpaceSavings" - """Information regarding how much local space cloud tiering is saving.""" - cachePerformance: "CloudTieringCachePerformance" - """Information regarding how well the local cache on the server is performing.""" - filesNotTiering: "CloudTieringFilesNotTiering" - """Information regarding files that failed to be tiered.""" - volumeFreeSpacePolicyStatus: "CloudTieringVolumeFreeSpacePolicyStatus" - """Status of the volume free space policy.""" - datePolicyStatus: "CloudTieringDatePolicyStatus" - """Status of the date policy.""" - lowDiskMode: "CloudTieringLowDiskMode" - """Information regarding the low disk mode state.""" - - class ServerEndpointCreateParameters(ProxyResource): """The parameters used when creating a server endpoint. @@ -1504,366 +561,6 @@ class ServerEndpointCreateParametersProperties(TypedDict, total=False): \"ServerAuthoritative\" and \"Merge\".""" -class ServerEndpointFilesNotSyncingError(TypedDict, total=False): - """Files not syncing error object. - - :ivar error_code: Error code (HResult). - :vartype error_code: int - :ivar persistent_count: Count of persistent files not syncing with the specified error code. - :vartype persistent_count: int - :ivar transient_count: Count of transient files not syncing with the specified error code. - :vartype transient_count: int - """ - - errorCode: int - """Error code (HResult).""" - persistentCount: int - """Count of persistent files not syncing with the specified error code.""" - transientCount: int - """Count of transient files not syncing with the specified error code.""" - - -class ServerEndpointProperties(TypedDict, total=False): - """ServerEndpoint Properties object. - - :ivar server_local_path: Server Local path. - :vartype server_local_path: str - :ivar cloud_tiering: Cloud Tiering. Known values are: "on" and "off". - :vartype cloud_tiering: Union[str, "FeatureStatus"] - :ivar volume_free_space_percent: Level of free space to be maintained by Cloud Tiering if it is - enabled. - :vartype volume_free_space_percent: int - :ivar tier_files_older_than_days: Tier files older than days. - :vartype tier_files_older_than_days: int - :ivar friendly_name: Friendly Name. - :vartype friendly_name: str - :ivar server_resource_id: Server Resource Id. - :vartype server_resource_id: str - :ivar provisioning_state: ServerEndpoint Provisioning State. - :vartype provisioning_state: str - :ivar last_workflow_id: ServerEndpoint lastWorkflowId. - :vartype last_workflow_id: str - :ivar last_operation_name: Resource Last Operation Name. - :vartype last_operation_name: str - :ivar sync_status: Server Endpoint sync status. - :vartype sync_status: "ServerEndpointSyncStatus" - :ivar offline_data_transfer: Offline data transfer. Known values are: "on" and "off". - :vartype offline_data_transfer: Union[str, "FeatureStatus"] - :ivar offline_data_transfer_storage_account_resource_id: Offline data transfer storage account - resource ID. - :vartype offline_data_transfer_storage_account_resource_id: str - :ivar offline_data_transfer_storage_account_tenant_id: Offline data transfer storage account - tenant ID. - :vartype offline_data_transfer_storage_account_tenant_id: str - :ivar offline_data_transfer_share_name: Offline data transfer share name. - :vartype offline_data_transfer_share_name: str - :ivar cloud_tiering_status: Cloud tiering status. Only populated if cloud tiering is enabled. - :vartype cloud_tiering_status: "ServerEndpointCloudTieringStatus" - :ivar recall_status: Recall status. Only populated if cloud tiering is enabled. - :vartype recall_status: "ServerEndpointRecallStatus" - :ivar initial_download_policy: Policy for how namespace and files are recalled during FastDr. - Known values are: "NamespaceOnly", "NamespaceThenModifiedFiles", and "AvoidTieredFiles". - :vartype initial_download_policy: Union[str, "InitialDownloadPolicy"] - :ivar local_cache_mode: Policy for enabling follow-the-sun business models: link local cache to - cloud behavior to pre-populate before local access. Known values are: - "DownloadNewAndModifiedFiles" and "UpdateLocallyCachedFiles". - :vartype local_cache_mode: Union[str, "LocalCacheMode"] - :ivar initial_upload_policy: Policy for how the initial upload sync session is performed. Known - values are: "ServerAuthoritative" and "Merge". - :vartype initial_upload_policy: Union[str, "InitialUploadPolicy"] - :ivar server_name: Server name. - :vartype server_name: str - :ivar server_endpoint_provisioning_status: Server Endpoint provisioning status. - :vartype server_endpoint_provisioning_status: "ServerEndpointProvisioningStatus" - """ - - serverLocalPath: str - """Server Local path.""" - cloudTiering: Union[str, "FeatureStatus"] - """Cloud Tiering. Known values are: \"on\" and \"off\".""" - volumeFreeSpacePercent: int - """Level of free space to be maintained by Cloud Tiering if it is enabled.""" - tierFilesOlderThanDays: int - """Tier files older than days.""" - friendlyName: str - """Friendly Name.""" - serverResourceId: str - """Server Resource Id.""" - provisioningState: str - """ServerEndpoint Provisioning State.""" - lastWorkflowId: str - """ServerEndpoint lastWorkflowId.""" - lastOperationName: str - """Resource Last Operation Name.""" - syncStatus: "ServerEndpointSyncStatus" - """Server Endpoint sync status.""" - offlineDataTransfer: Union[str, "FeatureStatus"] - """Offline data transfer. Known values are: \"on\" and \"off\".""" - offlineDataTransferStorageAccountResourceId: str - """Offline data transfer storage account resource ID.""" - offlineDataTransferStorageAccountTenantId: str - """Offline data transfer storage account tenant ID.""" - offlineDataTransferShareName: str - """Offline data transfer share name.""" - cloudTieringStatus: "ServerEndpointCloudTieringStatus" - """Cloud tiering status. Only populated if cloud tiering is enabled.""" - recallStatus: "ServerEndpointRecallStatus" - """Recall status. Only populated if cloud tiering is enabled.""" - initialDownloadPolicy: Union[str, "InitialDownloadPolicy"] - """Policy for how namespace and files are recalled during FastDr. Known values are: - \"NamespaceOnly\", \"NamespaceThenModifiedFiles\", and \"AvoidTieredFiles\".""" - localCacheMode: Union[str, "LocalCacheMode"] - """Policy for enabling follow-the-sun business models: link local cache to cloud behavior to - pre-populate before local access. Known values are: \"DownloadNewAndModifiedFiles\" and - \"UpdateLocallyCachedFiles\".""" - initialUploadPolicy: Union[str, "InitialUploadPolicy"] - """Policy for how the initial upload sync session is performed. Known values are: - \"ServerAuthoritative\" and \"Merge\".""" - serverName: str - """Server name.""" - serverEndpointProvisioningStatus: "ServerEndpointProvisioningStatus" - """Server Endpoint provisioning status.""" - - -class ServerEndpointProvisioningStatus(TypedDict, total=False): - """Server endpoint provisioning status information. - - :ivar provisioning_status: Server Endpoint provisioning status. Known values are: "NotStarted", - "InProgress", "Ready_SyncNotFunctional", "Ready_SyncFunctional", and "Error". - :vartype provisioning_status: Union[str, "ServerProvisioningStatus"] - :ivar provisioning_type: Server Endpoint provisioning type. - :vartype provisioning_type: str - :ivar provisioning_step_statuses: Provisioning Step status information for each step in the - provisioning process. - :vartype provisioning_step_statuses: list["ServerEndpointProvisioningStepStatus"] - """ - - provisioningStatus: Union[str, "ServerProvisioningStatus"] - """Server Endpoint provisioning status. Known values are: \"NotStarted\", \"InProgress\", - \"Ready_SyncNotFunctional\", \"Ready_SyncFunctional\", and \"Error\".""" - provisioningType: str - """Server Endpoint provisioning type.""" - provisioningStepStatuses: list["ServerEndpointProvisioningStepStatus"] - """Provisioning Step status information for each step in the provisioning process.""" - - -class ServerEndpointProvisioningStepStatus(TypedDict, total=False): - """Server endpoint provisioning step status object. - - :ivar name: Name of the provisioning step. - :vartype name: str - :ivar status: Status of the provisioning step. - :vartype status: str - :ivar start_time: Start time of the provisioning step. - :vartype start_time: str - :ivar minutes_left: Estimated completion time of the provisioning step in minutes. - :vartype minutes_left: int - :ivar progress_percentage: Estimated progress percentage. - :vartype progress_percentage: int - :ivar end_time: End time of the provisioning step. - :vartype end_time: str - :ivar error_code: Error code (HResult) for the provisioning step. - :vartype error_code: int - :ivar additional_information: Additional information for the provisioning step. - :vartype additional_information: dict[str, str] - """ - - name: str - """Name of the provisioning step.""" - status: str - """Status of the provisioning step.""" - startTime: str - """Start time of the provisioning step.""" - minutesLeft: int - """Estimated completion time of the provisioning step in minutes.""" - progressPercentage: int - """Estimated progress percentage.""" - endTime: str - """End time of the provisioning step.""" - errorCode: int - """Error code (HResult) for the provisioning step.""" - additionalInformation: dict[str, str] - """Additional information for the provisioning step.""" - - -class ServerEndpointRecallError(TypedDict, total=False): - """Server endpoint recall error object. - - :ivar error_code: Error code (HResult). - :vartype error_code: int - :ivar count: Count of occurences of the error. - :vartype count: int - """ - - errorCode: int - """Error code (HResult).""" - count: int - """Count of occurences of the error.""" - - -class ServerEndpointRecallStatus(TypedDict, total=False): - """Server endpoint recall status object. - - :ivar last_updated_timestamp: Last updated timestamp. - :vartype last_updated_timestamp: str - :ivar total_recall_errors_count: Total count of recall errors. - :vartype total_recall_errors_count: int - :ivar recall_errors: Array of recall errors. - :vartype recall_errors: list["ServerEndpointRecallError"] - """ - - lastUpdatedTimestamp: str - """Last updated timestamp.""" - totalRecallErrorsCount: int - """Total count of recall errors.""" - recallErrors: list["ServerEndpointRecallError"] - """Array of recall errors.""" - - -class ServerEndpointSyncActivityStatus(TypedDict, total=False): - """Sync Session status object. - - :ivar timestamp: Timestamp when properties were updated. - :vartype timestamp: str - :ivar per_item_error_count: Per item error count. - :vartype per_item_error_count: int - :ivar applied_item_count: Applied item count. - :vartype applied_item_count: int - :ivar total_item_count: Total item count (if available). - :vartype total_item_count: int - :ivar applied_bytes: Applied bytes. - :vartype applied_bytes: int - :ivar total_bytes: Total bytes (if available). - :vartype total_bytes: int - :ivar sync_mode: Sync mode. Known values are: "Regular", "NamespaceDownload", "InitialUpload", - "SnapshotUpload", and "InitialFullDownload". - :vartype sync_mode: Union[str, "ServerEndpointSyncMode"] - :ivar session_minutes_remaining: Session minutes remaining (if available). - :vartype session_minutes_remaining: int - """ - - timestamp: str - """Timestamp when properties were updated.""" - perItemErrorCount: int - """Per item error count.""" - appliedItemCount: int - """Applied item count.""" - totalItemCount: int - """Total item count (if available).""" - appliedBytes: int - """Applied bytes.""" - totalBytes: int - """Total bytes (if available).""" - syncMode: Union[str, "ServerEndpointSyncMode"] - """Sync mode. Known values are: \"Regular\", \"NamespaceDownload\", \"InitialUpload\", - \"SnapshotUpload\", and \"InitialFullDownload\".""" - sessionMinutesRemaining: int - """Session minutes remaining (if available).""" - - -class ServerEndpointSyncSessionStatus(TypedDict, total=False): - """Sync Session status object. - - :ivar last_sync_result: Last sync result (HResult). - :vartype last_sync_result: int - :ivar last_sync_timestamp: Last sync timestamp. - :vartype last_sync_timestamp: str - :ivar last_sync_success_timestamp: Last sync success timestamp. - :vartype last_sync_success_timestamp: str - :ivar last_sync_per_item_error_count: Last sync per item error count. - :vartype last_sync_per_item_error_count: int - :ivar persistent_files_not_syncing_count: Count of persistent files not syncing. - :vartype persistent_files_not_syncing_count: int - :ivar transient_files_not_syncing_count: Count of transient files not syncing. - :vartype transient_files_not_syncing_count: int - :ivar files_not_syncing_errors: Array of per-item errors coming from the last sync session. - :vartype files_not_syncing_errors: list["ServerEndpointFilesNotSyncingError"] - :ivar last_sync_mode: Sync mode. Known values are: "Regular", "NamespaceDownload", - "InitialUpload", "SnapshotUpload", and "InitialFullDownload". - :vartype last_sync_mode: Union[str, "ServerEndpointSyncMode"] - """ - - lastSyncResult: int - """Last sync result (HResult).""" - lastSyncTimestamp: str - """Last sync timestamp.""" - lastSyncSuccessTimestamp: str - """Last sync success timestamp.""" - lastSyncPerItemErrorCount: int - """Last sync per item error count.""" - persistentFilesNotSyncingCount: int - """Count of persistent files not syncing.""" - transientFilesNotSyncingCount: int - """Count of transient files not syncing.""" - filesNotSyncingErrors: list["ServerEndpointFilesNotSyncingError"] - """Array of per-item errors coming from the last sync session.""" - lastSyncMode: Union[str, "ServerEndpointSyncMode"] - """Sync mode. Known values are: \"Regular\", \"NamespaceDownload\", \"InitialUpload\", - \"SnapshotUpload\", and \"InitialFullDownload\".""" - - -class ServerEndpointSyncStatus(TypedDict, total=False): - """Server Endpoint sync status. - - :ivar download_health: Download Health Status. Known values are: "Unavailable", "Healthy", and - "Error". - :vartype download_health: Union[str, "ServerEndpointHealthState"] - :ivar upload_health: Upload Health Status. Known values are: "Unavailable", "Healthy", and - "Error". - :vartype upload_health: Union[str, "ServerEndpointHealthState"] - :ivar combined_health: Combined Health Status. Known values are: "Unavailable", "Healthy", and - "Error". - :vartype combined_health: Union[str, "ServerEndpointHealthState"] - :ivar sync_activity: Sync activity. Known values are: "Upload", "Download", and - "UploadAndDownload". - :vartype sync_activity: Union[str, "ServerEndpointSyncActivityState"] - :ivar total_persistent_files_not_syncing_count: Total count of persistent files not syncing - (combined upload + download). - :vartype total_persistent_files_not_syncing_count: int - :ivar last_updated_timestamp: Last Updated Timestamp. - :vartype last_updated_timestamp: str - :ivar upload_status: Upload Status. - :vartype upload_status: "ServerEndpointSyncSessionStatus" - :ivar download_status: Download Status. - :vartype download_status: "ServerEndpointSyncSessionStatus" - :ivar upload_activity: Upload sync activity. - :vartype upload_activity: "ServerEndpointSyncActivityStatus" - :ivar download_activity: Download sync activity. - :vartype download_activity: "ServerEndpointSyncActivityStatus" - :ivar offline_data_transfer_status: Offline Data Transfer State. Known values are: - "InProgress", "Stopping", "NotRunning", and "Complete". - :vartype offline_data_transfer_status: Union[str, "ServerEndpointOfflineDataTransferState"] - :ivar background_data_download_activity: Background data download activity. - :vartype background_data_download_activity: "ServerEndpointBackgroundDataDownloadActivity" - """ - - downloadHealth: Union[str, "ServerEndpointHealthState"] - """Download Health Status. Known values are: \"Unavailable\", \"Healthy\", and \"Error\".""" - uploadHealth: Union[str, "ServerEndpointHealthState"] - """Upload Health Status. Known values are: \"Unavailable\", \"Healthy\", and \"Error\".""" - combinedHealth: Union[str, "ServerEndpointHealthState"] - """Combined Health Status. Known values are: \"Unavailable\", \"Healthy\", and \"Error\".""" - syncActivity: Union[str, "ServerEndpointSyncActivityState"] - """Sync activity. Known values are: \"Upload\", \"Download\", and \"UploadAndDownload\".""" - totalPersistentFilesNotSyncingCount: int - """Total count of persistent files not syncing (combined upload + download).""" - lastUpdatedTimestamp: str - """Last Updated Timestamp.""" - uploadStatus: "ServerEndpointSyncSessionStatus" - """Upload Status.""" - downloadStatus: "ServerEndpointSyncSessionStatus" - """Download Status.""" - uploadActivity: "ServerEndpointSyncActivityStatus" - """Upload sync activity.""" - downloadActivity: "ServerEndpointSyncActivityStatus" - """Download sync activity.""" - offlineDataTransferStatus: Union[str, "ServerEndpointOfflineDataTransferState"] - """Offline Data Transfer State. Known values are: \"InProgress\", \"Stopping\", \"NotRunning\", - and \"Complete\".""" - backgroundDataDownloadActivity: "ServerEndpointBackgroundDataDownloadActivity" - """Background data download activity.""" - - class ServerEndpointUpdateParameters(TypedDict, total=False): """Parameters for updating an Server Endpoint. @@ -1911,110 +608,6 @@ class ServerEndpointUpdateProperties(TypedDict, total=False): \"UpdateLocallyCachedFiles\".""" -class StorageSyncApiError(TypedDict, total=False): - """Error type. - - :ivar code: Error code of the given entry. - :vartype code: str - :ivar message: Error message of the given entry. - :vartype message: str - :ivar target: Target of the given error entry. - :vartype target: str - :ivar details: Error details of the given entry. - :vartype details: "StorageSyncErrorDetails" - :ivar innererror: Inner error details of the given entry. - :vartype innererror: "StorageSyncInnerErrorDetails" - """ - - code: str - """Error code of the given entry.""" - message: str - """Error message of the given entry.""" - target: str - """Target of the given error entry.""" - details: "StorageSyncErrorDetails" - """Error details of the given entry.""" - innererror: "StorageSyncInnerErrorDetails" - """Inner error details of the given entry.""" - - -class StorageSyncError(TypedDict, total=False): - """Error type. - - :ivar error: Error details of the given entry. - :vartype error: "StorageSyncApiError" - :ivar innererror: Error details of the given entry. - :vartype innererror: "StorageSyncApiError" - """ - - error: "StorageSyncApiError" - """Error details of the given entry.""" - innererror: "StorageSyncApiError" - """Error details of the given entry.""" - - -class StorageSyncErrorDetails(TypedDict, total=False): - """Error Details object. - - :ivar code: Error code of the given entry. - :vartype code: str - :ivar message: Error message of the given entry. - :vartype message: str - :ivar target: Target of the given entry. - :vartype target: str - :ivar request_uri: Request URI of the given entry. - :vartype request_uri: str - :ivar exception_type: Exception type of the given entry. - :vartype exception_type: str - :ivar http_method: HTTP method of the given entry. - :vartype http_method: str - :ivar hashed_message: Hashed message of the given entry. - :vartype hashed_message: str - :ivar http_error_code: HTTP error code of the given entry. - :vartype http_error_code: str - """ - - code: str - """Error code of the given entry.""" - message: str - """Error message of the given entry.""" - target: str - """Target of the given entry.""" - requestUri: str - """Request URI of the given entry.""" - exceptionType: str - """Exception type of the given entry.""" - httpMethod: str - """HTTP method of the given entry.""" - hashedMessage: str - """Hashed message of the given entry.""" - httpErrorCode: str - """HTTP error code of the given entry.""" - - -class StorageSyncInnerErrorDetails(TypedDict, total=False): - """Error Details object. - - :ivar call_stack: Call stack of the error. - :vartype call_stack: str - :ivar message: Error message of the error. - :vartype message: str - :ivar inner_exception: Exception of the inner error. - :vartype inner_exception: str - :ivar inner_exception_call_stack: Call stack of the inner error. - :vartype inner_exception_call_stack: str - """ - - callStack: str - """Call stack of the error.""" - message: str - """Error message of the error.""" - innerException: str - """Exception of the inner error.""" - innerExceptionCallStack: str - """Call stack of the inner error.""" - - class TrackedResource(Resource): """Tracked Resource. @@ -2041,36 +634,6 @@ class TrackedResource(Resource): """The geo-location where the resource lives. Required.""" -class StorageSyncService(TrackedResource): - """Storage Sync Service object. - - :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 tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar properties: Storage Sync Service properties. - :vartype properties: "StorageSyncServiceProperties" - :ivar identity: The managed service identities assigned to this resource. - :vartype identity: "ManagedServiceIdentity" - """ - - properties: "StorageSyncServiceProperties" - """Storage Sync Service properties.""" - identity: "ManagedServiceIdentity" - """The managed service identities assigned to this resource.""" - - class StorageSyncServiceCreateParameters(TrackedResource): """The parameters used when creating a storage sync service. @@ -2121,49 +684,6 @@ class StorageSyncServiceCreateParametersProperties(TypedDict, total=False): # p """Use Identity authorization when customer have finished setup RBAC permissions.""" -class StorageSyncServiceProperties(TypedDict, total=False): - """Storage Sync Service Properties object. - - :ivar incoming_traffic_policy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and - "AllowVirtualNetworksOnly". - :vartype incoming_traffic_policy: Union[str, "IncomingTrafficPolicy"] - :ivar storage_sync_service_status: Storage Sync service status. - :vartype storage_sync_service_status: int - :ivar storage_sync_service_uid: Storage Sync service Uid. - :vartype storage_sync_service_uid: str - :ivar provisioning_state: StorageSyncService Provisioning State. - :vartype provisioning_state: str - :ivar use_identity: Use Identity authorization when customer have finished setup RBAC - permissions. - :vartype use_identity: bool - :ivar last_workflow_id: StorageSyncService lastWorkflowId. - :vartype last_workflow_id: str - :ivar last_operation_name: Resource Last Operation Name. - :vartype last_operation_name: str - :ivar private_endpoint_connections: List of private endpoint connection associated with the - specified storage sync service. - :vartype private_endpoint_connections: list["PrivateEndpointConnection"] - """ - - incomingTrafficPolicy: Union[str, "IncomingTrafficPolicy"] - """Incoming Traffic Policy. Known values are: \"AllowAllTraffic\" and - \"AllowVirtualNetworksOnly\".""" - storageSyncServiceStatus: int - """Storage Sync service status.""" - storageSyncServiceUid: str - """Storage Sync service Uid.""" - provisioningState: str - """StorageSyncService Provisioning State.""" - useIdentity: bool - """Use Identity authorization when customer have finished setup RBAC permissions.""" - lastWorkflowId: str - """StorageSyncService lastWorkflowId.""" - lastOperationName: str - """Resource Last Operation Name.""" - privateEndpointConnections: list["PrivateEndpointConnection"] - """List of private endpoint connection associated with the specified storage sync service.""" - - class StorageSyncServiceUpdateParameters(TypedDict, total=False): """Parameters for updating an Storage sync service. @@ -2203,28 +723,6 @@ class StorageSyncServiceUpdateProperties(TypedDict, total=False): """Use Identity authorization when customer have finished setup RBAC permissions.""" -class SyncGroup(ProxyResource): - """Sync Group object. - - :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: SyncGroup properties. - :vartype properties: "SyncGroupProperties" - """ - - properties: "SyncGroupProperties" - """SyncGroup properties.""" - - class SyncGroupCreateParameters(ProxyResource): """The parameters used when creating a sync group. @@ -2247,21 +745,6 @@ class SyncGroupCreateParameters(ProxyResource): """The parameters used to create the sync group.""" -class SyncGroupProperties(TypedDict, total=False): - """SyncGroup Properties object. - - :ivar unique_id: Unique Id. - :vartype unique_id: str - :ivar sync_group_status: Sync group status. - :vartype sync_group_status: str - """ - - uniqueId: str - """Unique Id.""" - syncGroupStatus: str - """Sync group status.""" - - class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. @@ -2345,66 +828,3 @@ class UserAssignedIdentity(TypedDict, total=False): """The principal ID of the assigned identity.""" clientId: str """The client ID of the assigned identity.""" - - -class Workflow(ProxyResource): - """Workflow 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: Workflow properties. - :vartype properties: "WorkflowProperties" - """ - - properties: "WorkflowProperties" - """Workflow properties.""" - - -class WorkflowProperties(TypedDict, total=False): - """Workflow Properties object. - - :ivar last_step_name: last step name. - :vartype last_step_name: str - :ivar status: workflow status. Known values are: "active", "expired", "succeeded", "aborted", - and "failed". - :vartype status: Union[str, "WorkflowStatus"] - :ivar operation: operation direction. Known values are: "do", "undo", and "cancel". - :vartype operation: Union[str, "OperationDirection"] - :ivar steps: workflow steps. - :vartype steps: str - :ivar last_operation_id: workflow last operation identifier. - :vartype last_operation_id: str - :ivar command_name: workflow command name. - :vartype command_name: str - :ivar created_timestamp: workflow created timestamp. - :vartype created_timestamp: str - :ivar last_status_timestamp: workflow last status timestamp. - :vartype last_status_timestamp: str - """ - - lastStepName: str - """last step name.""" - status: Union[str, "WorkflowStatus"] - """workflow status. Known values are: \"active\", \"expired\", \"succeeded\", \"aborted\", and - \"failed\".""" - operation: Union[str, "OperationDirection"] - """operation direction. Known values are: \"do\", \"undo\", and \"cancel\".""" - steps: str - """workflow steps.""" - lastOperationId: str - """workflow last operation identifier.""" - commandName: str - """workflow command name.""" - createdTimestamp: str - """workflow created timestamp.""" - lastStatusTimestamp: str - """workflow last status timestamp.""" diff --git a/sdk/storage/azure-mgmt-storagesync/pyproject.toml b/sdk/storage/azure-mgmt-storagesync/pyproject.toml index 0eb4f091b3dd..2c5d2bbc90d7 100644 --- a/sdk/storage/azure-mgmt-storagesync/pyproject.toml +++ b/sdk/storage/azure-mgmt-storagesync/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Storagesync Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -78,7 +78,7 @@ verifytypes = false package_name = "azure-mgmt-storagesync" package_pprint_name = "Storage Sync" package_doc_id = "" -is_stable = false +is_stable = true title = "StorageSyncMgmtClient" package_nspkg = "azure-mgmt-nspkg" is_arm = true diff --git a/sdk/storage/azure-mgmt-storagesync/tsp-location.yaml b/sdk/storage/azure-mgmt-storagesync/tsp-location.yaml index 54db90ffcd7e..88a30f541e14 100644 --- a/sdk/storage/azure-mgmt-storagesync/tsp-location.yaml +++ b/sdk/storage/azure-mgmt-storagesync/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/storagesync/resource-manager/Microsoft.StorageSync/StorageSync -commit: 3d1de464b5576fa149aed429795f6030313e31bb +commit: 801a60cdad2669e8f824fedfbabbfe7f7093b940 repo: Azure/azure-rest-api-specs additionalDirectories: From b5d8f0705cb48846dd6dcdf556daee0c2a78e830 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 29 Jul 2026 14:05:08 +0800 Subject: [PATCH 2/4] Optimize changelog for azure-mgmt-storagesync Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2cd0ad1-d514-4a7e-8d0a-1cc7af31aa6c --- .../azure-mgmt-storagesync/CHANGELOG.md | 181 +++--------------- 1 file changed, 26 insertions(+), 155 deletions(-) diff --git a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md index 7ce8557955d3..a2e7a35ab158 100644 --- a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md +++ b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md @@ -4,31 +4,16 @@ ### Features Added - - Model `CloudEndpoint` added property `properties` - - Model `CloudEndpointCreateParameters` added property `properties` - Model `OperationResourceMetricSpecification` added property `lock_aggregation_type` - - Model `PrivateEndpointConnection` added property `properties` - - Model `PrivateLinkResource` added property `properties` - - Model `RegisteredServer` added property `properties` - - Model `RegisteredServerCreateParameters` added property `properties` - - Model `ServerEndpoint` added property `properties` - Model `ServerEndpointCloudTieringStatus` added property `low_disk_mode` - - Model `ServerEndpointCreateParameters` added property `properties` - Model `StorageSyncService` added property `identity` - - Model `StorageSyncService` added property `properties` - Model `StorageSyncServiceCreateParameters` added property `id` - Model `StorageSyncServiceCreateParameters` added property `identity` - Model `StorageSyncServiceCreateParameters` added property `name` - - Model `StorageSyncServiceCreateParameters` added property `properties` - Model `StorageSyncServiceCreateParameters` added property `system_data` - Model `StorageSyncServiceCreateParameters` added property `type` - Model `StorageSyncServiceUpdateParameters` added property `identity` - - Model `StorageSyncServiceUpdateParameters` added property `properties` - - Model `SyncGroup` added property `properties` - - Model `Workflow` added property `properties` - Added model `CloudEndpointAfsShareMetadataCertificatePublicKeys` - - Added model `CloudEndpointCreateParametersProperties` - - Added model `CloudEndpointProperties` - Added model `CloudTieringLowDiskMode` - Added enum `CloudTieringLowDiskModeState` - Added model `ErrorAdditionalInfo` @@ -36,157 +21,43 @@ - Added model `ErrorResponse` - Added model `ManagedServiceIdentity` - Added enum `ManagedServiceIdentityType` - - Added model `PostBackupResponseProperties` - - Added model `PrivateEndpointConnectionProperties` - - Added model `PrivateLinkResourceProperties` - - Added model `RegisteredServerCreateParametersProperties` - - Added model `RegisteredServerProperties` - Added model `RegisteredServerUpdateParameters` - Added model `RegisteredServerUpdateProperties` - Added enum `ServerAuthType` - - Added model `ServerEndpointCreateParametersProperties` - - Added model `ServerEndpointProperties` - Added model `ServerEndpointProvisioningStatus` - Added model `ServerEndpointProvisioningStepStatus` - - Added model `ServerEndpointUpdateProperties` - Added enum `ServerProvisioningStatus` - - Added model `StorageSyncServiceCreateParametersProperties` - - Added model `StorageSyncServiceProperties` - - Added model `StorageSyncServiceUpdateProperties` - - Added model `SyncGroupProperties` - Added enum `Type` - Added model `UserAssignedIdentity` - - Added model `WorkflowProperties` - - Model `CloudEndpointsOperations` added method `afs_share_metadata_certificate_public_keys` - - Model `CloudEndpointsOperations` added method `restore_heartbeat` - - Model `RegisteredServersOperations` added method `begin_update` + - Operation group `CloudEndpointsOperations` added method `afs_share_metadata_certificate_public_keys` + - Operation group `RegisteredServersOperations` added method `begin_update` ### Breaking Changes - - Deleted or renamed model `MicrosoftStorageSync` - - Model `CloudEndpoint` deleted or renamed its instance variable `azure_file_share_name` - - Model `CloudEndpoint` deleted or renamed its instance variable `backup_enabled` - - Model `CloudEndpoint` deleted or renamed its instance variable `change_enumeration_status` - - Model `CloudEndpoint` deleted or renamed its instance variable `friendly_name` - - Model `CloudEndpoint` deleted or renamed its instance variable `last_operation_name` - - Model `CloudEndpoint` deleted or renamed its instance variable `last_workflow_id` - - Model `CloudEndpoint` deleted or renamed its instance variable `partnership_id` - - Model `CloudEndpoint` deleted or renamed its instance variable `provisioning_state` - - Model `CloudEndpoint` deleted or renamed its instance variable `storage_account_resource_id` - - Model `CloudEndpoint` deleted or renamed its instance variable `storage_account_tenant_id` - - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `azure_file_share_name` - - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `friendly_name` - - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `storage_account_resource_id` - - Model `CloudEndpointCreateParameters` deleted or renamed its instance variable `storage_account_tenant_id` - - Model `PostBackupResponse` deleted or renamed its instance variable `cloud_endpoint_name` - - Model `PrivateEndpointConnection` deleted or renamed its instance variable `private_endpoint` - - Model `PrivateEndpointConnection` deleted or renamed its instance variable `private_link_service_connection_state` - - Model `PrivateEndpointConnection` deleted or renamed its instance variable `provisioning_state` - - Model `PrivateLinkResource` deleted or renamed its instance variable `group_id` - - Model `PrivateLinkResource` deleted or renamed its instance variable `required_members` - - Model `PrivateLinkResource` deleted or renamed its instance variable `required_zone_names` - - Model `RegisteredServer` deleted or renamed its instance variable `agent_version` - - Model `RegisteredServer` deleted or renamed its instance variable `agent_version_expiration_date` - - Model `RegisteredServer` deleted or renamed its instance variable `agent_version_status` - - Model `RegisteredServer` deleted or renamed its instance variable `cluster_id` - - Model `RegisteredServer` deleted or renamed its instance variable `cluster_name` - - Model `RegisteredServer` deleted or renamed its instance variable `discovery_endpoint_uri` - - Model `RegisteredServer` deleted or renamed its instance variable `friendly_name` - - Model `RegisteredServer` deleted or renamed its instance variable `last_heart_beat` - - Model `RegisteredServer` deleted or renamed its instance variable `last_operation_name` - - Model `RegisteredServer` deleted or renamed its instance variable `last_workflow_id` - - Model `RegisteredServer` deleted or renamed its instance variable `management_endpoint_uri` - - Model `RegisteredServer` deleted or renamed its instance variable `monitoring_configuration` - - Model `RegisteredServer` deleted or renamed its instance variable `monitoring_endpoint_uri` - - Model `RegisteredServer` deleted or renamed its instance variable `provisioning_state` - - Model `RegisteredServer` deleted or renamed its instance variable `resource_location` - - Model `RegisteredServer` deleted or renamed its instance variable `server_certificate` - - Model `RegisteredServer` deleted or renamed its instance variable `server_id` - - Model `RegisteredServer` deleted or renamed its instance variable `server_management_error_code` - - Model `RegisteredServer` deleted or renamed its instance variable `server_name` - - Model `RegisteredServer` deleted or renamed its instance variable `server_os_version` - - Model `RegisteredServer` deleted or renamed its instance variable `server_role` - - Model `RegisteredServer` deleted or renamed its instance variable `service_location` - - Model `RegisteredServer` deleted or renamed its instance variable `storage_sync_service_uid` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `agent_version` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `cluster_id` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `cluster_name` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `friendly_name` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `last_heart_beat` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_certificate` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_id` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_os_version` - - Model `RegisteredServerCreateParameters` deleted or renamed its instance variable `server_role` - - Model `ServerEndpoint` deleted or renamed its instance variable `cloud_tiering` - - Model `ServerEndpoint` deleted or renamed its instance variable `cloud_tiering_status` - - Model `ServerEndpoint` deleted or renamed its instance variable `friendly_name` - - Model `ServerEndpoint` deleted or renamed its instance variable `initial_download_policy` - - Model `ServerEndpoint` deleted or renamed its instance variable `initial_upload_policy` - - Model `ServerEndpoint` deleted or renamed its instance variable `last_operation_name` - - Model `ServerEndpoint` deleted or renamed its instance variable `last_workflow_id` - - Model `ServerEndpoint` deleted or renamed its instance variable `local_cache_mode` - - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer` - - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer_share_name` - - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer_storage_account_resource_id` - - Model `ServerEndpoint` deleted or renamed its instance variable `offline_data_transfer_storage_account_tenant_id` - - Model `ServerEndpoint` deleted or renamed its instance variable `provisioning_state` - - Model `ServerEndpoint` deleted or renamed its instance variable `recall_status` - - Model `ServerEndpoint` deleted or renamed its instance variable `server_local_path` - - Model `ServerEndpoint` deleted or renamed its instance variable `server_name` - - Model `ServerEndpoint` deleted or renamed its instance variable `server_resource_id` - - Model `ServerEndpoint` deleted or renamed its instance variable `sync_status` - - Model `ServerEndpoint` deleted or renamed its instance variable `tier_files_older_than_days` - - Model `ServerEndpoint` deleted or renamed its instance variable `volume_free_space_percent` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `cloud_tiering` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `friendly_name` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `initial_download_policy` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `initial_upload_policy` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `local_cache_mode` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `offline_data_transfer` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `offline_data_transfer_share_name` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `server_local_path` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `server_resource_id` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `tier_files_older_than_days` - - Model `ServerEndpointCreateParameters` deleted or renamed its instance variable `volume_free_space_percent` - - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `cloud_tiering` - - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `local_cache_mode` - - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `offline_data_transfer` - - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `offline_data_transfer_share_name` - - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `tier_files_older_than_days` - - Model `ServerEndpointUpdateParameters` deleted or renamed its instance variable `volume_free_space_percent` - - Model `StorageSyncService` deleted or renamed its instance variable `incoming_traffic_policy` - - Model `StorageSyncService` deleted or renamed its instance variable `last_operation_name` - - Model `StorageSyncService` deleted or renamed its instance variable `last_workflow_id` - - Model `StorageSyncService` deleted or renamed its instance variable `private_endpoint_connections` - - Model `StorageSyncService` deleted or renamed its instance variable `provisioning_state` - - Model `StorageSyncService` deleted or renamed its instance variable `storage_sync_service_status` - - Model `StorageSyncService` deleted or renamed its instance variable `storage_sync_service_uid` - - Model `StorageSyncServiceCreateParameters` deleted or renamed its instance variable `incoming_traffic_policy` - - Model `StorageSyncServiceUpdateParameters` deleted or renamed its instance variable `incoming_traffic_policy` - - Model `SyncGroup` deleted or renamed its instance variable `sync_group_status` - - Model `SyncGroup` deleted or renamed its instance variable `unique_id` - - Model `Workflow` deleted or renamed its instance variable `command_name` - - Model `Workflow` deleted or renamed its instance variable `created_timestamp` - - Model `Workflow` deleted or renamed its instance variable `last_operation_id` - - Model `Workflow` deleted or renamed its instance variable `last_status_timestamp` - - Model `Workflow` deleted or renamed its instance variable `last_step_name` - - Model `Workflow` deleted or renamed its instance variable `operation` - - Model `Workflow` deleted or renamed its instance variable `status` - - Model `Workflow` deleted or renamed its instance variable `steps` - - Deleted or renamed model `CloudEndpointArray` - - Deleted or renamed model `OperationDisplayResource` - - Deleted or renamed model `OperationEntityListResult` - - Deleted or renamed model `PrivateEndpointConnectionListResult` - - Deleted or renamed model `ProgressType` - - Deleted or renamed model `Reason` - - Deleted or renamed model `RegisteredServerArray` - - Deleted or renamed model `ResourcesMoveInfo` - - Deleted or renamed model `ServerEndpointArray` - - Deleted or renamed model `StorageSyncServiceArray` - - Deleted or renamed model `SubscriptionState` - - Deleted or renamed model `SyncGroupArray` - - Deleted or renamed model `WorkflowArray` - - Deleted or renamed method `CloudEndpointsOperations.restoreheartbeat` + - This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration. + - Renamed client `MicrosoftStorageSync` to `StorageSyncMgmtClient` + - Operation group `CloudEndpointsOperations` renamed method `restoreheartbeat` to `restore_heartbeat` + - Model `CloudEndpoint` moved instance variable `storage_account_resource_id`, `azure_file_share_name`, `storage_account_tenant_id`, `partnership_id`, `friendly_name`, `backup_enabled`, `provisioning_state`, `last_workflow_id`, `last_operation_name` and `change_enumeration_status` under property `properties` whose type is `CloudEndpointProperties` + - Model `CloudEndpointCreateParameters` moved instance variable `storage_account_resource_id`, `azure_file_share_name`, `storage_account_tenant_id` and `friendly_name` under property `properties` whose type is `CloudEndpointCreateParametersProperties` + - Model `PostBackupResponse` moved instance variable `cloud_endpoint_name` under property `backup_metadata` whose type is `PostBackupResponseProperties` + - Model `PrivateEndpointConnection` moved instance variable `private_endpoint`, `private_link_service_connection_state` and `provisioning_state` under property `properties` whose type is `PrivateEndpointConnectionProperties` + - Model `PrivateLinkResource` moved instance variable `group_id`, `required_members` and `required_zone_names` under property `properties` whose type is `PrivateLinkResourceProperties` + - Model `RegisteredServer` moved instance variable `server_certificate`, `agent_version`, `agent_version_status`, `agent_version_expiration_date`, `server_os_version`, `server_management_error_code`, `last_heart_beat`, `provisioning_state`, `server_role`, `cluster_id`, `cluster_name`, `server_id`, `storage_sync_service_uid`, `last_workflow_id`, `last_operation_name`, `discovery_endpoint_uri`, `resource_location`, `service_location`, `friendly_name`, `management_endpoint_uri`, `monitoring_endpoint_uri`, `monitoring_configuration` and `server_name` under property `properties` whose type is `RegisteredServerProperties` + - Model `RegisteredServerCreateParameters` moved instance variable `server_certificate`, `agent_version`, `server_os_version`, `last_heart_beat`, `server_role`, `cluster_id`, `cluster_name`, `server_id` and `friendly_name` under property `properties` whose type is `RegisteredServerCreateParametersProperties` + - Model `ServerEndpoint` moved instance variable `server_local_path`, `cloud_tiering`, `volume_free_space_percent`, `tier_files_older_than_days`, `friendly_name`, `server_resource_id`, `provisioning_state`, `last_workflow_id`, `last_operation_name`, `sync_status`, `offline_data_transfer`, `offline_data_transfer_storage_account_resource_id`, `offline_data_transfer_storage_account_tenant_id`, `offline_data_transfer_share_name`, `cloud_tiering_status`, `recall_status`, `initial_download_policy`, `local_cache_mode`, `initial_upload_policy` and `server_name` under property `properties` whose type is `ServerEndpointProperties` + - Model `ServerEndpointCreateParameters` moved instance variable `server_local_path`, `cloud_tiering`, `volume_free_space_percent`, `tier_files_older_than_days`, `friendly_name`, `server_resource_id`, `offline_data_transfer`, `offline_data_transfer_share_name`, `initial_download_policy`, `local_cache_mode` and `initial_upload_policy` under property `properties` whose type is `ServerEndpointCreateParametersProperties` + - Model `ServerEndpointUpdateParameters` moved instance variable `cloud_tiering`, `volume_free_space_percent`, `tier_files_older_than_days`, `offline_data_transfer`, `offline_data_transfer_share_name` and `local_cache_mode` under property `properties` whose type is `ServerEndpointUpdateProperties` + - Model `StorageSyncService` moved instance variable `incoming_traffic_policy`, `storage_sync_service_status`, `storage_sync_service_uid`, `provisioning_state`, `last_workflow_id`, `last_operation_name` and `private_endpoint_connections` under property `properties` whose type is `StorageSyncServiceProperties` + - Model `StorageSyncServiceCreateParameters` moved instance variable `incoming_traffic_policy` under property `properties` whose type is `StorageSyncServiceCreateParametersProperties` + - Model `StorageSyncServiceUpdateParameters` moved instance variable `incoming_traffic_policy` under property `properties` whose type is `StorageSyncServiceUpdateProperties` + - Model `SyncGroup` moved instance variable `unique_id` and `sync_group_status` under property `properties` whose type is `SyncGroupProperties` + - Model `Workflow` moved instance variable `last_step_name`, `status`, `operation`, `steps`, `last_operation_id`, `command_name`, `created_timestamp` and `last_status_timestamp` under property `properties` whose type is `WorkflowProperties` + +### Other Changes + + - Deleted model `CloudEndpointArray`/`OperationEntityListResult`/`PrivateEndpointConnectionListResult`/`RegisteredServerArray`/`ServerEndpointArray`/`StorageSyncServiceArray`/`SyncGroupArray`/`WorkflowArray` which actually were not used by SDK users + - Deleted model `OperationDisplayResource`/`ResourcesMoveInfo`/`SubscriptionState` which actually were not used by SDK users + - Deleted enum `ProgressType`/`Reason` which actually were not used by SDK users ## 2.0.0b2 (2026-07-06) From 1ddf44ca1860b2c59f8257b72db355c6fc338dc3 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 29 Jul 2026 14:11:53 +0800 Subject: [PATCH 3/4] Remove disabled tests for azure-mgmt-storagesync Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2cd0ad1-d514-4a7e-8d0a-1cc7af31aa6c --- .../disable_test_cli_mgmt_storagesync.py | 291 ------------------ 1 file changed, 291 deletions(-) delete mode 100644 sdk/storage/azure-mgmt-storagesync/tests/disable_test_cli_mgmt_storagesync.py diff --git a/sdk/storage/azure-mgmt-storagesync/tests/disable_test_cli_mgmt_storagesync.py b/sdk/storage/azure-mgmt-storagesync/tests/disable_test_cli_mgmt_storagesync.py deleted file mode 100644 index 98d8037a8048..000000000000 --- a/sdk/storage/azure-mgmt-storagesync/tests/disable_test_cli_mgmt_storagesync.py +++ /dev/null @@ -1,291 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding: utf-8 - -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - - -# TEST SCENARIO COVERAGE -# ---------------------- -# Methods Total : 37 -# Methods Covered : 37 -# Examples Total : 38 -# Examples Tested : 38 -# Coverage % : 100 -# ---------------------- - -import os -import unittest - -import azure.mgmt.storagesync -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer - -AZURE_LOCATION = "eastus" - - -class MgmtMicrosoftStorageSyncTest(AzureMgmtTestCase): - - def setUp(self): - super(MgmtMicrosoftStorageSyncTest, self).setUp() - self.mgmt_client = self.create_mgmt_client(azure.mgmt.storagesync.StorageSyncManagementClient) - - @unittest.skip("skip test") - @ResourceGroupPreparer(location=AZURE_LOCATION) - def test_storagesync(self, resource_group): - - SUBSCRIPTION_ID = None - if self.is_live: - SUBSCRIPTION_ID = os.environ.get("AZURE_SUBSCRIPTION_ID", None) - if not SUBSCRIPTION_ID: - SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID - - RESOURCE_GROUP = resource_group.name - STORAGE_SYNC_SERVICE_NAME = "ssservicename" - SYNC_GROUP_NAME = "groupname" - REGISTERED_SERVER_NAME = "rservicename" - STORAGE_ACCOUNT_NAME = "accountnamexyz" - CLOUD_ENDPOINT_NAME = "cendpointname" - SERVER_ENDPOINT_NAME = "sendpointname" - LOCATION_NAME = AZURE_LOCATION - - # StorageSyncServices_Create[put] - BODY = {"location": "WestUS", "tags": {}} - result = self.mgmt_client.storage_sync_services.create(resource_group.name, STORAGE_SYNC_SERVICE_NAME, BODY) - - # SyncGroups_Create[put] - BODY = {} - result = self.mgmt_client.sync_groups.create( - resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, BODY - ) - - """ - # RegisteredServers_Create[put] - BODY = { - "server_role": "Standalone", - "server_certificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\"", - "last_heart_beat": "\"2017-08-08T18:29:06.470652Z\"", - "server_osversion": "10.0.14393.0", - "agent_version": "1.0.277.0" - } - result = self.mgmt_client.registered_servers.create(resource_group.name, STORAGE_SYNC_SERVICE_NAME, REGISTERED_SERVER_NAME, BODY) - result = result.result() - - # CloudEndpoints_Create[put] - BODY = { - "storage_account_resource_id": "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.Storage/storageAccounts/" + STORAGE_ACCOUNT_NAME + "", - "azure_file_share_name": "cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4", - "storage_account_tenant_id": "\"72f988bf-86f1-41af-91ab-2d7cd011db47\"", - "friendly_name": "ankushbsubscriptionmgmtmab" - } - result = self.mgmt_client.cloud_endpoints.create(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME, BODY) - result = result.result() - - # ServerEndpoints_Create[put] - BODY = { - "server_local_path": "D:\\SampleServerEndpoint_1", - "server_resource_id": "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.StorageSync/storageSyncServices/" + STORAGE_SYNC_SERVICE_NAME + "/registeredServers/" + REGISTERED_SERVER_NAME + "", - "cloud_tiering": "off", - "volume_free_space_percent": "100", - "tier_files_older_than_days": "0", - "offline_data_transfer": "on", - "offline_data_transfer_share_name": "myfileshare" - } - result = self.mgmt_client.server_endpoints.create(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, SERVER_ENDPOINT_NAME, BODY) - result = result.result() - - # ServerEndpoints_Get[get] - result = self.mgmt_client.server_endpoints.get(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, SERVER_ENDPOINT_NAME) - - # CloudEndpoints_Get[get] - result = self.mgmt_client.cloud_endpoints.get(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME) - - # ServerEndpoints_ListBySyncGroup[get] - result = self.mgmt_client.server_endpoints.list_by_sync_group(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME) - - # CloudEndpoints_ListBySyncGroup[get] - result = self.mgmt_client.cloud_endpoints.list_by_sync_group(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME) - - # RegisteredServers_Get[get] - result = self.mgmt_client.registered_servers.get(resource_group.name, STORAGE_SYNC_SERVICE_NAME, REGISTERED_SERVER_NAME) - - # Workflows_Get[get] - result = self.mgmt_client.workflows.get(resource_group.name, STORAGE_SYNC_SERVICE_NAME, WORKFLOW_NAME) - """ - - # SyncGroups_Get[get] - result = self.mgmt_client.sync_groups.get(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME) - - """ - # Workflows_Get[get] - result = self.mgmt_client.workflows.get(resource_group.name, STORAGE_SYNC_SERVICE_NAME, WORKFLOW_NAME) - - # RegisteredServers_ListByStorageSyncService[get] - result = self.mgmt_client.registered_servers.list_by_storage_sync_service(resource_group.name, STORAGE_SYNC_SERVICE_NAME) - """ - - # SyncGroups_ListByStorageSyncService[get] - result = self.mgmt_client.sync_groups.list_by_storage_sync_service( - resource_group.name, STORAGE_SYNC_SERVICE_NAME - ) - - # Workflows_ListByStorageSyncService[get] - result = self.mgmt_client.workflows.list_by_storage_sync_service(resource_group.name, STORAGE_SYNC_SERVICE_NAME) - - # StorageSyncServices_Get[get] - result = self.mgmt_client.storage_sync_services.get(resource_group.name, STORAGE_SYNC_SERVICE_NAME) - - # StorageSyncServices_ListByResourceGroup[get] - result = self.mgmt_client.storage_sync_services.list_by_resource_group(resource_group.name) - - # StorageSyncServices_ListBySubscription[get] - result = self.mgmt_client.storage_sync_services.list_by_subscription() - - # Operations_List[get] - result = self.mgmt_client.operations.list() - - """ - # CloudEndpoints_TriggerChangeDetection[post] - BODY = { - "directory_path": "NewDirectory", - "change_detection_mode": "Recursive" - } - result = self.mgmt_client.cloud_endpoints.trigger_change_detection(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME, BODY) - result = result.result() - - # CloudEndpoints_restoreheartbeat[post] - result = self.mgmt_client.cloud_endpoints.restoreheartbeat(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME) - - # ServerEndpoints_recallAction[post] - BODY = { - "pattern": "", - "recall_path": "" - } - result = self.mgmt_client.server_endpoints.recall_action(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, SERVER_ENDPOINT_NAME, BODY) - result = result.result() - - # CloudEndpoints_PostRestore[post] - BODY = { - "azure_file_share_uri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", - "source_azure_file_share_uri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", - "status": "Succeeded", - "restore_file_spec": [ - { - "path": "text1.txt", - "isdir": False - }, - { - "path": "MyDir", - "isdir": True - }, - { - "path": "MyDir/SubDir", - "isdir": False - }, - { - "path": "MyDir/SubDir/File1.pdf", - "isdir": False - } - ] - } - result = self.mgmt_client.cloud_endpoints.post_restore(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME, BODY) - result = result.result() - - # CloudEndpoints_PreRestore[post] - BODY = { - "azure_file_share_uri": "https://hfsazbackupdevintncus2.file.core.test-cint.azure-test.net/sampleFileShare", - "restore_file_spec": [ - { - "path": "text1.txt", - "isdir": False - }, - { - "path": "MyDir", - "isdir": True - }, - { - "path": "MyDir/SubDir", - "isdir": False - }, - { - "path": "MyDir/SubDir/File1.pdf", - "isdir": False - } - ] - } - result = self.mgmt_client.cloud_endpoints.pre_restore(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME, BODY) - result = result.result() - - # CloudEndpoints_PostBackup[post] - BODY = { - "azure_file_share": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" - } - result = self.mgmt_client.cloud_endpoints.post_backup(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME, BODY) - result = result.result() - - # CloudEndpoints_PreBackup[post] - BODY = { - "azure_file_share": "https://sampleserver.file.core.test-cint.azure-test.net/sampleFileShare" - } - result = self.mgmt_client.cloud_endpoints.pre_backup(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME, BODY) - result = result.result() - - # ServerEndpoints_Update[patch] - BODY = { - "cloud_tiering": "off", - "volume_free_space_percent": "100", - "tier_files_older_than_days": "0", - "offline_data_transfer": "off" - } - result = self.mgmt_client.server_endpoints.update(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, SERVER_ENDPOINT_NAME, BODY) - result = result.result() - - # RegisteredServers_triggerRollover[post] - BODY = { - "server_certificate": "\"MIIDFjCCAf6gAwIBAgIQQS+DS8uhc4VNzUkTw7wbRjANBgkqhkiG9w0BAQ0FADAzMTEwLwYDVQQDEyhhbmt1c2hiLXByb2QzLnJlZG1vbmQuY29ycC5taWNyb3NvZnQuY29tMB4XDTE3MDgwMzE3MDQyNFoXDTE4MDgwNDE3MDQyNFowMzExMC8GA1UEAxMoYW5rdXNoYi1wcm9kMy5yZWRtb25kLmNvcnAubWljcm9zb2Z0LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDRvV4gmsIy6jGDPiHsXmvgVP749NNP7DopdlbHaNhjFmYINHl0uWylyaZmgJrROt2mnxN/zEyJtGnqYHlzUr4xvGq/qV5pqgdB9tag/sw9i22gfe9PRZ0FmSOZnXMbLYgLiDFqLtut5gHcOuWMj03YnkfoBEKlFBxWbagvW2yxz/Sxi9OVSJOKCaXra0RpcIHrO/KFl6ho2eE1/7Ykmfa8hZvSdoPd5gHdLiQcMB/pxq+mWp1fI6c8vFZoDu7Atn+NXTzYPKUxKzaisF12TsaKpohUsJpbB3Wocb0F5frn614D2pg14ERB5otjAMWw1m65csQWPI6dP8KIYe0+QPkCAwEAAaMmMCQwIgYDVR0lAQH/BBgwFgYIKwYBBQUHAwIGCisGAQQBgjcKAwwwDQYJKoZIhvcNAQENBQADggEBAA4RhVIBkw34M1RwakJgHvtjsOFxF1tVQA941NtLokx1l2Z8+GFQkcG4xpZSt+UN6wLerdCbnNhtkCErWUDeaT0jxk4g71Ofex7iM04crT4iHJr8mi96/XnhnkTUs+GDk12VgdeeNEczMZz+8Mxw9dJ5NCnYgTwO0SzGlclRsDvjzkLo8rh2ZG6n/jKrEyNXXo+hOqhupij0QbRP2Tvexdfw201kgN1jdZify8XzJ8Oi0bTS0KpJf2pNPOlooK2bjMUei9ANtEdXwwfVZGWvVh6tJjdv6k14wWWJ1L7zhA1IIVb1J+sQUzJji5iX0DrezjTz1Fg+gAzITaA/WsuujlM=\"" - } - result = self.mgmt_client.registered_servers.trigger_rollover(resource_group.name, STORAGE_SYNC_SERVICE_NAME, REGISTERED_SERVER_NAME, BODY) - result = result.result() - - # Workflows_Abort[post] - result = self.mgmt_client.workflows.abort(resource_group.name, STORAGE_SYNC_SERVICE_NAME, WORKFLOW_NAME) - """ - - # StorageSyncServices_Update[patch] - BODY = {"tags": {"environment": "Test", "dept": "IT"}} - result = self.mgmt_client.storage_sync_services.update(resource_group.name, STORAGE_SYNC_SERVICE_NAME, BODY) - - # StorageSyncServiceCheckNameAvailability_AlreadyExists[post] - BODY = {"name": "newstoragesyncservicename", "type": "Microsoft.StorageSync/storageSyncServices"} - result = self.mgmt_client.storage_sync_services.check_name_availability(LOCATION_NAME, BODY) - - # StorageSyncServiceCheckNameAvailability_Available[post] - BODY = {"name": "newstoragesyncservicename", "type": "Microsoft.StorageSync/storageSyncServices"} - result = self.mgmt_client.storage_sync_services.check_name_availability(LOCATION_NAME, BODY) - - """ - # ServerEndpoints_Delete[delete] - result = self.mgmt_client.server_endpoints.delete(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, SERVER_ENDPOINT_NAME) - result = result.result() - - # CloudEndpoints_Delete[delete] - result = self.mgmt_client.cloud_endpoints.delete(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME, CLOUD_ENDPOINT_NAME) - result = result.result() - - # RegisteredServers_Delete[delete] - result = self.mgmt_client.registered_servers.delete(resource_group.name, STORAGE_SYNC_SERVICE_NAME, REGISTERED_SERVER_NAME) - result = result.result() - """ - - # SyncGroups_Delete[delete] - result = self.mgmt_client.sync_groups.delete(resource_group.name, STORAGE_SYNC_SERVICE_NAME, SYNC_GROUP_NAME) - - # StorageSyncServices_Delete[delete] - result = self.mgmt_client.storage_sync_services.delete(resource_group.name, STORAGE_SYNC_SERVICE_NAME) - - -# ------------------------------------------------------------------------------ -if __name__ == "__main__": - unittest.main() From 4e9b7e2e1aed835a7b30ae9086905b151387c85e Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Wed, 29 Jul 2026 14:19:53 +0800 Subject: [PATCH 4/4] Add live tests for azure-mgmt-storagesync Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2cd0ad1-d514-4a7e-8d0a-1cc7af31aa6c --- .../dev_requirements.txt | 2 ++ .../azure-mgmt-storagesync/tests/conftest.py | 35 +++++++++++++++++++ ...storage_sync_mgmt_operations_async_test.py | 27 ++++++++++++++ .../test_storage_sync_mgmt_operations_test.py | 26 ++++++++++++++ ...age_sync_services_operations_async_test.py | 27 ++++++++++++++ ...t_storage_sync_services_operations_test.py | 26 ++++++++++++++ 6 files changed, 143 insertions(+) create mode 100644 sdk/storage/azure-mgmt-storagesync/tests/conftest.py create mode 100644 sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_async_test.py create mode 100644 sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_test.py create mode 100644 sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_async_test.py create mode 100644 sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_test.py diff --git a/sdk/storage/azure-mgmt-storagesync/dev_requirements.txt b/sdk/storage/azure-mgmt-storagesync/dev_requirements.txt index 35cc92906098..9b594d506661 100644 --- a/sdk/storage/azure-mgmt-storagesync/dev_requirements.txt +++ b/sdk/storage/azure-mgmt-storagesync/dev_requirements.txt @@ -2,3 +2,5 @@ ../../core/azure-mgmt-core ../../core/azure-core aiohttp + +azure-identity \ No newline at end of file diff --git a/sdk/storage/azure-mgmt-storagesync/tests/conftest.py b/sdk/storage/azure-mgmt-storagesync/tests/conftest.py new file mode 100644 index 000000000000..8bfe48d9af8b --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/tests/conftest.py @@ -0,0 +1,35 @@ +# 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. +# -------------------------------------------------------------------------- +import os +import pytest +from dotenv import load_dotenv +from devtools_testutils import ( + test_proxy, + add_general_regex_sanitizer, + add_body_key_sanitizer, + add_header_regex_sanitizer, +) + +load_dotenv() + + +# For security, please avoid record sensitive identity information in recordings +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + storagesyncmgmt_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + storagesyncmgmt_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + storagesyncmgmt_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + storagesyncmgmt_client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=storagesyncmgmt_subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=storagesyncmgmt_tenant_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=storagesyncmgmt_client_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=storagesyncmgmt_client_secret, value="00000000-0000-0000-0000-000000000000") + + add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") + add_header_regex_sanitizer(key="Cookie", value="cookie;") + add_body_key_sanitizer(json_path="$..access_token", value="access_token") diff --git a/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_async_test.py b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_async_test.py new file mode 100644 index 000000000000..b31a045a5064 --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_async_test.py @@ -0,0 +1,27 @@ +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.storagesync.aio import StorageSyncMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestStorageSyncMgmtOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(StorageSyncMgmtClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_operations_list(self, resource_group): + response = self.client.operations.list() + result = [r async for r in response] + assert len(result) >= 0 diff --git a/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_test.py b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_test.py new file mode 100644 index 000000000000..c9785eab6ab1 --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_operations_test.py @@ -0,0 +1,26 @@ +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.storagesync import StorageSyncMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestStorageSyncMgmtOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(StorageSyncMgmtClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_operations_list(self, resource_group): + response = self.client.operations.list() + result = [r for r in response] + assert len(result) >= 0 diff --git a/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_async_test.py b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_async_test.py new file mode 100644 index 000000000000..6cc12f9d2890 --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_async_test.py @@ -0,0 +1,27 @@ +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.storagesync.aio import StorageSyncMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestStorageSyncMgmtStorageSyncServicesOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(StorageSyncMgmtClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_storage_sync_services_list_by_subscription(self, resource_group): + response = self.client.storage_sync_services.list_by_subscription() + result = [r async for r in response] + assert len(result) >= 0 diff --git a/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_test.py b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_test.py new file mode 100644 index 000000000000..27a34a3bdd15 --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/tests/test_storage_sync_mgmt_storage_sync_services_operations_test.py @@ -0,0 +1,26 @@ +# 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. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.storagesync import StorageSyncMgmtClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestStorageSyncMgmtStorageSyncServicesOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(StorageSyncMgmtClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_storage_sync_services_list_by_subscription(self, resource_group): + response = self.client.storage_sync_services.list_by_subscription() + result = [r for r in response] + assert len(result) >= 0