From a5d912c32b93f54a7de85f238996e95868c15233 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 14 Aug 2026 06:41:29 +0000 Subject: [PATCH] Configurations: 'specification/storagesync/resource-manager/Microsoft.StorageSync/StorageSync/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: 'bd92126f09e7e3caa74f10fa1c944d1e451813ac' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6702656 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 | 22 + .../azure-mgmt-storagesync/_metadata.json | 10 +- sdk/storage/azure-mgmt-storagesync/api.md | 294 ++++++++--- .../azure-mgmt-storagesync/api.metadata.yml | 4 +- .../apiview-properties.json | 7 +- .../azure/mgmt/storagesync/_client.py | 6 +- .../azure/mgmt/storagesync/_configuration.py | 7 +- .../azure/mgmt/storagesync/_patch.py | 1 - .../mgmt/storagesync/_utils/model_base.py | 18 +- .../mgmt/storagesync/_utils/serialization.py | 6 +- .../azure/mgmt/storagesync/_validation.py | 66 +++ .../azure/mgmt/storagesync/_version.py | 2 +- .../azure/mgmt/storagesync/aio/_client.py | 6 +- .../mgmt/storagesync/aio/_configuration.py | 7 +- .../azure/mgmt/storagesync/aio/_patch.py | 1 - .../storagesync/aio/operations/_operations.py | 338 ++++++++++++- .../mgmt/storagesync/aio/operations/_patch.py | 1 - .../azure/mgmt/storagesync/models/__init__.py | 6 + .../azure/mgmt/storagesync/models/_enums.py | 9 + .../azure/mgmt/storagesync/models/_models.py | 246 ++++++--- .../azure/mgmt/storagesync/models/_patch.py | 1 - .../storagesync/operations/_operations.py | 465 +++++++++++++++--- .../mgmt/storagesync/operations/_patch.py | 1 - .../azure/mgmt/storagesync/types.py | 354 +++++++------ ..._share_metadata_certificate_public_keys.py | 2 +- .../cloud_endpoints_create.py | 2 +- .../cloud_endpoints_delete.py | 2 +- .../generated_samples/cloud_endpoints_get.py | 2 +- .../cloud_endpoints_list_by_sync_group.py | 2 +- .../cloud_endpoints_post_backup.py | 2 +- .../cloud_endpoints_post_restore.py | 2 +- .../cloud_endpoints_pre_backup.py | 2 +- .../cloud_endpoints_pre_restore.py | 2 +- .../cloud_endpoints_restore_heatbeat.py | 2 +- ...loud_endpoints_trigger_change_detection.py | 2 +- .../cloud_endpoints_update.py | 45 ++ .../location_operation_status_get.py | 2 +- .../generated_samples/operation_status_get.py | 2 +- .../generated_samples/operations_list.py | 2 +- .../private_endpoint_connections_create.py | 2 +- .../private_endpoint_connections_delete.py | 2 +- .../private_endpoint_connections_get.py | 2 +- ...onnections_list_by_storage_sync_service.py | 2 +- .../private_link_resources_list.py | 2 +- .../registered_servers_create.py | 2 +- .../registered_servers_delete.py | 2 +- .../registered_servers_get.py | 2 +- ...ed_servers_list_by_storage_sync_service.py | 2 +- .../registered_servers_trigger_rollover.py | 2 +- .../registered_servers_update.py | 2 +- .../server_endpoints_create.py | 2 +- .../server_endpoints_delete.py | 2 +- .../generated_samples/server_endpoints_get.py | 2 +- .../server_endpoints_list_by_sync_group.py | 2 +- .../server_endpoints_recall.py | 2 +- .../server_endpoints_update.py | 2 +- ..._check_name_availability_already_exists.py | 2 +- ...rvice_check_name_availability_available.py | 2 +- .../storage_sync_services_create.py | 2 +- .../storage_sync_services_delete.py | 2 +- .../storage_sync_services_get.py | 2 +- ...ge_sync_services_list_by_resource_group.py | 2 +- ...rage_sync_services_list_by_subscription.py | 2 +- .../storage_sync_services_update.py | 2 +- .../generated_samples/sync_groups_create.py | 2 +- .../generated_samples/sync_groups_delete.py | 2 +- .../generated_samples/sync_groups_get.py | 2 +- ...ync_groups_list_by_storage_sync_service.py | 2 +- .../generated_samples/workflows_abort.py | 2 +- .../generated_samples/workflows_get.py | 2 +- .../workflows_list_by_storage_sync_service.py | 2 +- ...ge_sync_mgmt_cloud_endpoints_operations.py | 15 + ...c_mgmt_cloud_endpoints_operations_async.py | 17 + .../azure-mgmt-storagesync/tsp-location.yaml | 2 +- 74 files changed, 1613 insertions(+), 436 deletions(-) create mode 100644 sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_validation.py create mode 100644 sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_update.py diff --git a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md index a2e7a35ab158..b3c4f2d0db0a 100644 --- a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md +++ b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md @@ -1,5 +1,27 @@ # Release History +## 2.1.0 (2026-08-14) + +### Features Added + + - Model `CloudEndpointCreateParametersProperties` added property `change_enumeration_interval_days` + - Model `CloudEndpointProperties` added property `change_enumeration_interval_days` + - Model `ServerEndpointSyncActivityStatus` added property `in_progress_large_file_path` + - Model `ServerEndpointSyncActivityStatus` added property `in_progress_large_file_percent_complete` + - Model `ServerEndpointSyncActivityStatus` added property `in_progress_large_file_size_bytes` + - Model `ServerEndpointSyncActivityStatus` added property `is_remaining_final` + - Model `ServerEndpointSyncActivityStatus` added property `recent_items_per_second` + - Model `ServerEndpointSyncActivityStatus` added property `recent_megabytes_per_second` + - Model `ServerEndpointSyncActivityStatus` added property `remaining_delete_count` + - Model `ServerEndpointSyncActivityStatus` added property `remaining_directory_count` + - Model `ServerEndpointSyncActivityStatus` added property `remaining_file_count` + - Model `ServerEndpointSyncActivityStatus` added property `remaining_logical_size_bytes` + - Model `ServerEndpointSyncActivityStatus` added property `warning` + - Added model `CloudEndpointUpdateParameters` + - Added model `CloudEndpointUpdateProperties` + - Added enum `ServerEndpointSyncSessionWarningType` + - Model `CloudEndpointsOperations` added method `begin_update` + ## 2.0.0 (2026-07-29) ### Features Added diff --git a/sdk/storage/azure-mgmt-storagesync/_metadata.json b/sdk/storage/azure-mgmt-storagesync/_metadata.json index 67093b1448d2..4b3155425132 100644 --- a/sdk/storage/azure-mgmt-storagesync/_metadata.json +++ b/sdk/storage/azure-mgmt-storagesync/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2022-09-01", + "apiVersion": "2025-12-01", "apiVersions": { - "Microsoft.StorageSync": "2022-09-01" + "Microsoft.StorageSync": "2025-12-01" }, - "commit": "801a60cdad2669e8f824fedfbabbfe7f7093b940", + "commit": "bd92126f09e7e3caa74f10fa1c944d1e451813ac", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/storagesync/resource-manager/Microsoft.StorageSync/StorageSync", - "emitterVersion": "0.63.3", - "httpClientPythonVersion": "^0.34.2" + "emitterVersion": "0.63.5", + "httpClientPythonVersion": "^0.36.0" } \ No newline at end of file diff --git a/sdk/storage/azure-mgmt-storagesync/api.md b/sdk/storage/azure-mgmt-storagesync/api.md index 666aca732dfc..fe3846ba5a6c 100644 --- a/sdk/storage/azure-mgmt-storagesync/api.md +++ b/sdk/storage/azure-mgmt-storagesync/api.md @@ -353,6 +353,45 @@ namespace azure.mgmt.storagesync.aio.operations **kwargs: Any ) -> AsyncLROPoller[None]: ... + @overload + async def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[CloudEndpoint]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[CloudEndpoint]: ... + + @overload + async def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[CloudEndpoint]: ... + @distributed_trace_async async def get( self, @@ -1171,6 +1210,7 @@ namespace azure.mgmt.storagesync.models class azure.mgmt.storagesync.models.CloudEndpointCreateParametersProperties(_Model): azure_file_share_name: Optional[str] + change_enumeration_interval_days: Optional[int] friendly_name: Optional[str] storage_account_resource_id: Optional[str] storage_account_tenant_id: Optional[str] @@ -1180,6 +1220,7 @@ namespace azure.mgmt.storagesync.models self, *, azure_file_share_name: Optional[str] = ..., + change_enumeration_interval_days: Optional[int] = ..., friendly_name: Optional[str] = ..., storage_account_resource_id: Optional[str] = ..., storage_account_tenant_id: Optional[str] = ... @@ -1201,6 +1242,7 @@ namespace azure.mgmt.storagesync.models class azure.mgmt.storagesync.models.CloudEndpointProperties(_Model): azure_file_share_name: Optional[str] backup_enabled: Optional[str] + change_enumeration_interval_days: Optional[int] change_enumeration_status: Optional[CloudEndpointChangeEnumerationStatus] friendly_name: Optional[str] last_operation_name: Optional[str] @@ -1215,6 +1257,7 @@ namespace azure.mgmt.storagesync.models self, *, azure_file_share_name: Optional[str] = ..., + change_enumeration_interval_days: Optional[int] = ..., friendly_name: Optional[str] = ..., last_operation_name: Optional[str] = ..., last_workflow_id: Optional[str] = ..., @@ -1228,6 +1271,34 @@ namespace azure.mgmt.storagesync.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... + class azure.mgmt.storagesync.models.CloudEndpointUpdateParameters(_Model): + properties: Optional[CloudEndpointUpdateProperties] + + @overload + def __init__( + self, + *, + properties: Optional[CloudEndpointUpdateProperties] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + + class azure.mgmt.storagesync.models.CloudEndpointUpdateProperties(_Model): + change_enumeration_interval_days: Optional[int] + + @overload + def __init__( + self, + *, + change_enumeration_interval_days: Optional[int] = ... + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: ... + + class azure.mgmt.storagesync.models.CloudTieringCachePerformance(_Model): cache_hit_bytes: Optional[int] cache_hit_bytes_percent: Optional[int] @@ -2172,12 +2243,23 @@ namespace azure.mgmt.storagesync.models class azure.mgmt.storagesync.models.ServerEndpointSyncActivityStatus(_Model): applied_bytes: Optional[int] applied_item_count: Optional[int] + in_progress_large_file_path: Optional[str] + in_progress_large_file_percent_complete: Optional[int] + in_progress_large_file_size_bytes: Optional[int] + is_remaining_final: Optional[bool] per_item_error_count: Optional[int] + recent_items_per_second: Optional[float] + recent_megabytes_per_second: Optional[float] + remaining_delete_count: Optional[int] + remaining_directory_count: Optional[int] + remaining_file_count: Optional[int] + remaining_logical_size_bytes: Optional[int] session_minutes_remaining: Optional[int] sync_mode: Optional[Union[str, ServerEndpointSyncMode]] timestamp: Optional[datetime] total_bytes: Optional[int] total_item_count: Optional[int] + warning: Optional[Union[str, ServerEndpointSyncSessionWarningType]] class azure.mgmt.storagesync.models.ServerEndpointSyncMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -2199,6 +2281,11 @@ namespace azure.mgmt.storagesync.models transient_files_not_syncing_count: Optional[int] + class azure.mgmt.storagesync.models.ServerEndpointSyncSessionWarningType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + BLOCKED_BY_LARGE_FILE = "BlockedByLargeFile" + NO_WARNING = "NoWarning" + + class azure.mgmt.storagesync.models.ServerEndpointSyncStatus(_Model): background_data_download_activity: Optional[ServerEndpointBackgroundDataDownloadActivity] combined_health: Optional[Union[str, ServerEndpointHealthState]] @@ -2962,6 +3049,45 @@ namespace azure.mgmt.storagesync.operations **kwargs: Any ) -> LROPoller[None]: ... + @overload + def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[CloudEndpoint]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[CloudEndpoint]: ... + + @overload + def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[CloudEndpoint]: ... + @distributed_trace def get( self, @@ -3650,7 +3776,7 @@ namespace azure.mgmt.storagesync.types class azure.mgmt.storagesync.types.BackupRequest(TypedDict, total=False): key "azureFileShare": str - azure_file_share: str + azureFileShare: str class azure.mgmt.storagesync.types.CheckNameAvailabilityParameters(TypedDict, total=False): @@ -3669,30 +3795,41 @@ namespace azure.mgmt.storagesync.types id: str name: str properties: CloudEndpointCreateParametersProperties - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.storagesync.types.CloudEndpointCreateParametersProperties(TypedDict, total=False): key "azureFileShareName": str + key "changeEnumerationIntervalDays": int key "friendlyName": str key "storageAccountResourceId": str key "storageAccountTenantId": str - azure_file_share_name: str - friendly_name: str - storage_account_resource_id: str - storage_account_tenant_id: str + azureFileShareName: str + changeEnumerationIntervalDays: int + friendlyName: str + storageAccountResourceId: str + storageAccountTenantId: str + + + class azure.mgmt.storagesync.types.CloudEndpointUpdateParameters(TypedDict, total=False): + key "properties": ForwardRef('CloudEndpointUpdateProperties', module='types') + properties: CloudEndpointUpdateProperties + + + class azure.mgmt.storagesync.types.CloudEndpointUpdateProperties(TypedDict, total=False): + key "changeEnumerationIntervalDays": int + changeEnumerationIntervalDays: int class azure.mgmt.storagesync.types.ManagedServiceIdentity(TypedDict, total=False): key "principalId": str key "tenantId": str key "type": Required[Union[str, ManagedServiceIdentityType]] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, ManagedServiceIdentityType] userAssignedIdentities: dict[str, UserAssignedIdentity] - user_assigned_identities: dict[str, UserAssignedIdentity] class azure.mgmt.storagesync.types.PostRestoreRequest(TypedDict, total=False): @@ -3703,14 +3840,13 @@ namespace azure.mgmt.storagesync.types key "requestId": str key "sourceAzureFileShareUri": str key "status": str - azure_file_share_uri: str - failed_file_list: str + azureFileShareUri: str + failedFileList: str partition: str - replica_group: str - request_id: str + replicaGroup: str + requestId: str restoreFileSpec: list[RestoreFileSpec] - restore_file_spec: list[RestoreFileSpec] - source_azure_file_share_uri: str + sourceAzureFileShareUri: str status: str @@ -3723,15 +3859,14 @@ namespace azure.mgmt.storagesync.types key "requestId": str key "sourceAzureFileShareUri": str key "status": str - azure_file_share_uri: str - backup_metadata_property_bag: str + azureFileShareUri: str + backupMetadataPropertyBag: str partition: str - pause_wait_for_sync_drain_time_period_in_seconds: int - replica_group: str - request_id: str + pauseWaitForSyncDrainTimePeriodInSeconds: int + replicaGroup: str + requestId: str restoreFileSpec: list[RestoreFileSpec] - restore_file_spec: list[RestoreFileSpec] - source_azure_file_share_uri: str + sourceAzureFileShareUri: str status: str @@ -3749,7 +3884,7 @@ namespace azure.mgmt.storagesync.types id: str name: str properties: PrivateEndpointConnectionProperties - system_data: SystemData + systemData: SystemData type: str @@ -3758,17 +3893,16 @@ namespace azure.mgmt.storagesync.types key "privateLinkServiceConnectionState": Required[PrivateLinkServiceConnectionState] key "provisioningState": Union[str, PrivateEndpointConnectionProvisioningState] groupIds: list[str] - group_ids: list[str] - private_endpoint: PrivateEndpoint - private_link_service_connection_state: PrivateLinkServiceConnectionState - provisioning_state: Union[str, PrivateEndpointConnectionProvisioningState] + privateEndpoint: PrivateEndpoint + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState + provisioningState: Union[str, PrivateEndpointConnectionProvisioningState] class azure.mgmt.storagesync.types.PrivateLinkServiceConnectionState(TypedDict, total=False): key "actionsRequired": str key "description": str key "status": Union[str, PrivateEndpointServiceConnectionStatus] - actions_required: str + actionsRequired: str description: str status: Union[str, PrivateEndpointServiceConnectionStatus] @@ -3780,7 +3914,7 @@ namespace azure.mgmt.storagesync.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -3788,7 +3922,7 @@ namespace azure.mgmt.storagesync.types key "pattern": str key "recallPath": str pattern: str - recall_path: str + recallPath: str class azure.mgmt.storagesync.types.RegisteredServerCreateParameters(ProxyResource): @@ -3800,7 +3934,7 @@ namespace azure.mgmt.storagesync.types id: str name: str properties: RegisteredServerCreateParametersProperties - system_data: SystemData + systemData: SystemData type: str @@ -3816,17 +3950,17 @@ namespace azure.mgmt.storagesync.types key "serverId": str key "serverOSVersion": str key "serverRole": str - agent_version: str - application_id: str - cluster_id: str - cluster_name: str - friendly_name: str + agentVersion: str + applicationId: str + clusterId: str + clusterName: str + friendlyName: str identity: bool - last_heart_beat: str - server_certificate: str - server_id: str - server_os_version: str - server_role: str + lastHeartBeat: str + serverCertificate: str + serverId: str + serverOSVersion: str + serverRole: str class azure.mgmt.storagesync.types.RegisteredServerUpdateParameters(ProxyResource): @@ -3838,14 +3972,14 @@ namespace azure.mgmt.storagesync.types id: str name: str properties: RegisteredServerUpdateProperties - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.storagesync.types.RegisteredServerUpdateProperties(TypedDict, total=False): key "applicationId": str key "identity": bool - application_id: str + applicationId: str identity: bool @@ -3856,7 +3990,7 @@ namespace azure.mgmt.storagesync.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -3876,7 +4010,7 @@ namespace azure.mgmt.storagesync.types id: str name: str properties: ServerEndpointCreateParametersProperties - system_data: SystemData + systemData: SystemData type: str @@ -3892,17 +4026,17 @@ namespace azure.mgmt.storagesync.types key "serverResourceId": str key "tierFilesOlderThanDays": int key "volumeFreeSpacePercent": int - cloud_tiering: Union[str, FeatureStatus] - friendly_name: str - initial_download_policy: Union[str, InitialDownloadPolicy] - initial_upload_policy: Union[str, InitialUploadPolicy] - local_cache_mode: Union[str, LocalCacheMode] - offline_data_transfer: Union[str, FeatureStatus] - offline_data_transfer_share_name: str - server_local_path: str - server_resource_id: str - tier_files_older_than_days: int - volume_free_space_percent: int + cloudTiering: Union[str, FeatureStatus] + friendlyName: str + initialDownloadPolicy: Union[str, InitialDownloadPolicy] + initialUploadPolicy: Union[str, InitialUploadPolicy] + localCacheMode: Union[str, LocalCacheMode] + offlineDataTransfer: Union[str, FeatureStatus] + offlineDataTransferShareName: str + serverLocalPath: str + serverResourceId: str + tierFilesOlderThanDays: int + volumeFreeSpacePercent: int class azure.mgmt.storagesync.types.ServerEndpointUpdateParameters(TypedDict, total=False): @@ -3917,12 +4051,12 @@ namespace azure.mgmt.storagesync.types key "offlineDataTransferShareName": str key "tierFilesOlderThanDays": int key "volumeFreeSpacePercent": int - cloud_tiering: Union[str, FeatureStatus] - local_cache_mode: Union[str, LocalCacheMode] - offline_data_transfer: Union[str, FeatureStatus] - offline_data_transfer_share_name: str - tier_files_older_than_days: int - volume_free_space_percent: int + cloudTiering: Union[str, FeatureStatus] + localCacheMode: Union[str, LocalCacheMode] + offlineDataTransfer: Union[str, FeatureStatus] + offlineDataTransferShareName: str + tierFilesOlderThanDays: int + volumeFreeSpacePercent: int class azure.mgmt.storagesync.types.StorageSyncServiceCreateParameters(TrackedResource): @@ -3938,7 +4072,7 @@ namespace azure.mgmt.storagesync.types location: str name: str properties: StorageSyncServiceCreateParametersProperties - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -3946,8 +4080,8 @@ namespace azure.mgmt.storagesync.types class azure.mgmt.storagesync.types.StorageSyncServiceCreateParametersProperties(TypedDict, total=False): key "incomingTrafficPolicy": Union[str, IncomingTrafficPolicy] key "useIdentity": bool - incoming_traffic_policy: Union[str, IncomingTrafficPolicy] - use_identity: bool + incomingTrafficPolicy: Union[str, IncomingTrafficPolicy] + useIdentity: bool class azure.mgmt.storagesync.types.StorageSyncServiceUpdateParameters(TypedDict, total=False): @@ -3961,8 +4095,8 @@ namespace azure.mgmt.storagesync.types class azure.mgmt.storagesync.types.StorageSyncServiceUpdateProperties(TypedDict, total=False): key "incomingTrafficPolicy": Union[str, IncomingTrafficPolicy] key "useIdentity": bool - incoming_traffic_policy: Union[str, IncomingTrafficPolicy] - use_identity: bool + incomingTrafficPolicy: Union[str, IncomingTrafficPolicy] + useIdentity: bool class azure.mgmt.storagesync.types.SyncGroupCreateParameters(ProxyResource): @@ -3974,7 +4108,7 @@ namespace azure.mgmt.storagesync.types id: str name: str properties: Any - system_data: SystemData + systemData: SystemData type: str @@ -3985,12 +4119,12 @@ namespace azure.mgmt.storagesync.types key "lastModifiedAt": str key "lastModifiedBy": str key "lastModifiedByType": Union[str, CreatedByType] - created_at: str - created_by: str - created_by_type: Union[str, CreatedByType] - last_modified_at: str - last_modified_by: str - last_modified_by_type: Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] class azure.mgmt.storagesync.types.TrackedResource(Resource): @@ -4002,7 +4136,7 @@ namespace azure.mgmt.storagesync.types id: str location: str name: str - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -4010,21 +4144,21 @@ namespace azure.mgmt.storagesync.types class azure.mgmt.storagesync.types.TriggerChangeDetectionParameters(TypedDict, total=False): key "changeDetectionMode": Union[str, ChangeDetectionMode] key "directoryPath": str - change_detection_mode: Union[str, ChangeDetectionMode] - directory_path: str + changeDetectionMode: Union[str, ChangeDetectionMode] + directoryPath: str paths: list[str] class azure.mgmt.storagesync.types.TriggerRolloverRequest(TypedDict, total=False): key "serverCertificate": str - server_certificate: str + serverCertificate: str class azure.mgmt.storagesync.types.UserAssignedIdentity(TypedDict, total=False): key "clientId": str key "principalId": str - client_id: str - principal_id: str + clientId: str + principalId: 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 ac6e648163a5..87cafb2e2047 100644 --- a/sdk/storage/azure-mgmt-storagesync/api.metadata.yml +++ b/sdk/storage/azure-mgmt-storagesync/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: 19cf91bdbc59c8c8e919700c575a53b9fb509c0d652ba925a2e2ed47d6c4ef1a -parserVersion: 0.3.30 +apiMdSha256: 1861a38141e1dd33d5bc7f7d61fba17af7644c6da59ffa4251e387f628fae57b +parserVersion: 0.3.31 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 0699188c1df3..5633145d20ec 100644 --- a/sdk/storage/azure-mgmt-storagesync/apiview-properties.json +++ b/sdk/storage/azure-mgmt-storagesync/apiview-properties.json @@ -14,6 +14,8 @@ "azure.mgmt.storagesync.models.CloudEndpointCreateParametersProperties": "Microsoft.StorageSync.CloudEndpointCreateParametersProperties", "azure.mgmt.storagesync.models.CloudEndpointLastChangeEnumerationStatus": "Microsoft.StorageSync.CloudEndpointLastChangeEnumerationStatus", "azure.mgmt.storagesync.models.CloudEndpointProperties": "Microsoft.StorageSync.CloudEndpointProperties", + "azure.mgmt.storagesync.models.CloudEndpointUpdateParameters": "Microsoft.StorageSync.CloudEndpointUpdateParameters", + "azure.mgmt.storagesync.models.CloudEndpointUpdateProperties": "Microsoft.StorageSync.CloudEndpointUpdateProperties", "azure.mgmt.storagesync.models.CloudTieringCachePerformance": "Microsoft.StorageSync.CloudTieringCachePerformance", "azure.mgmt.storagesync.models.CloudTieringDatePolicyStatus": "Microsoft.StorageSync.CloudTieringDatePolicyStatus", "azure.mgmt.storagesync.models.CloudTieringFilesNotTiering": "Microsoft.StorageSync.CloudTieringFilesNotTiering", @@ -102,6 +104,7 @@ "azure.mgmt.storagesync.models.ServerEndpointHealthState": "Microsoft.StorageSync.ServerEndpointHealthState", "azure.mgmt.storagesync.models.ServerEndpointSyncActivityState": "Microsoft.StorageSync.ServerEndpointSyncActivityState", "azure.mgmt.storagesync.models.ServerEndpointSyncMode": "Microsoft.StorageSync.ServerEndpointSyncMode", + "azure.mgmt.storagesync.models.ServerEndpointSyncSessionWarningType": "Microsoft.StorageSync.ServerEndpointSyncSessionWarningType", "azure.mgmt.storagesync.models.ServerEndpointOfflineDataTransferState": "Microsoft.StorageSync.ServerEndpointOfflineDataTransferState", "azure.mgmt.storagesync.models.CloudTieringLowDiskModeState": "Microsoft.StorageSync.CloudTieringLowDiskModeState", "azure.mgmt.storagesync.models.InitialDownloadPolicy": "Microsoft.StorageSync.InitialDownloadPolicy", @@ -148,6 +151,8 @@ "azure.mgmt.storagesync.aio.operations.CloudEndpointsOperations.get": "Microsoft.StorageSync.CloudEndpoints.get", "azure.mgmt.storagesync.operations.CloudEndpointsOperations.begin_create": "Microsoft.StorageSync.CloudEndpoints.create", "azure.mgmt.storagesync.aio.operations.CloudEndpointsOperations.begin_create": "Microsoft.StorageSync.CloudEndpoints.create", + "azure.mgmt.storagesync.operations.CloudEndpointsOperations.begin_update": "Microsoft.StorageSync.CloudEndpoints.update", + "azure.mgmt.storagesync.aio.operations.CloudEndpointsOperations.begin_update": "Microsoft.StorageSync.CloudEndpoints.update", "azure.mgmt.storagesync.operations.CloudEndpointsOperations.begin_delete": "Microsoft.StorageSync.CloudEndpoints.delete", "azure.mgmt.storagesync.aio.operations.CloudEndpointsOperations.begin_delete": "Microsoft.StorageSync.CloudEndpoints.delete", "azure.mgmt.storagesync.operations.CloudEndpointsOperations.list_by_sync_group": "Microsoft.StorageSync.CloudEndpoints.listBySyncGroup", @@ -203,5 +208,5 @@ "azure.mgmt.storagesync.StorageSyncMgmtClient.location_operation_status": "Microsoft.StorageSync.locationOperationStatusGet", "azure.mgmt.storagesync.aio.StorageSyncMgmtClient.location_operation_status": "Microsoft.StorageSync.locationOperationStatusGet" }, - "CrossLanguageVersion": "467789b7bf64" + "CrossLanguageVersion": "108eb3dd46a1" } \ No newline at end of file diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_client.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_client.py index 521d4dd62b4b..4309cddb396b 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_client.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_client.py @@ -43,7 +43,9 @@ from azure.core.credentials import TokenCredential -class StorageSyncMgmtClient(_StorageSyncMgmtClientOperationsMixin): # pylint: disable=too-many-instance-attributes +class StorageSyncMgmtClient( + _StorageSyncMgmtClientOperationsMixin +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Microsoft Storage Sync Service API. This belongs to Microsoft.StorageSync Resource Provider. :ivar operations: Operations operations @@ -77,7 +79,7 @@ class StorageSyncMgmtClient(_StorageSyncMgmtClientOperationsMixin): # pylint: d :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2022-09-01" + :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py index dc697f6e1c3b..69c634205cd7 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials import TokenCredential -class StorageSyncMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes +class StorageSyncMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for StorageSyncMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class StorageSyncMgmtClientConfiguration: # pylint: disable=too-many-instance-a :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2022-09-01" + :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2022-09-01") + api_version: str = kwargs.pop("api_version", "2025-12-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_patch.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_patch.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/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 0f2c5bdfe70f..35d5fc024978 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 @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/serialization.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/serialization.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_validation.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_validation.py new file mode 100644 index 000000000000..f5af3a4eb8a2 --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/_validation.py @@ -0,0 +1,66 @@ +# -------------------------------------------------------------------------- +# 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 functools + + +def api_version_validation(**kwargs): + params_added_on = kwargs.pop("params_added_on", {}) + method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default + + def decorator(func): + @functools.wraps(func) + def wrapper(*args, **kwargs): + try: + # this assumes the client has an _api_version attribute + client = args[0] + client_api_version = client._config.api_version # pylint: disable=protected-access + except AttributeError: + return func(*args, **kwargs) + + if _index_with_default(method_added_on) > _index_with_default(client_api_version): + raise ValueError( + f"'{func.__name__}' is not available in API version " + f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." + ) + + unsupported = { + parameter: api_version + for api_version, parameters in params_added_on.items() + for parameter in parameters + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) + } + if unsupported: + raise ValueError( + "".join( + [ + f"'{param}' is not available in API version {client_api_version}. " + f"Use service API version {version} or newer.\n" + for param, version in unsupported.items() + ] + ) + ) + return func(*args, **kwargs) + + return wrapper + + return decorator 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 8f2350dd3b0c..ccb75164d3bc 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.0" +VERSION = "2.1.0" diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_client.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_client.py index ffb17859acf7..29411ff870b7 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_client.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_client.py @@ -43,7 +43,9 @@ from azure.core.credentials_async import AsyncTokenCredential -class StorageSyncMgmtClient(_StorageSyncMgmtClientOperationsMixin): # pylint: disable=too-many-instance-attributes +class StorageSyncMgmtClient( + _StorageSyncMgmtClientOperationsMixin +): # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Microsoft Storage Sync Service API. This belongs to Microsoft.StorageSync Resource Provider. :ivar operations: Operations operations @@ -78,7 +80,7 @@ class StorageSyncMgmtClient(_StorageSyncMgmtClientOperationsMixin): # pylint: d :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2022-09-01" + :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_configuration.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_configuration.py index fb31d7027aaa..9d4d205adce9 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_configuration.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class StorageSyncMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes +class StorageSyncMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for StorageSyncMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,7 +34,7 @@ class StorageSyncMgmtClientConfiguration: # pylint: disable=too-many-instance-a :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2022-09-01" + :keyword api_version: The API version to use for this operation. Known values are "2025-12-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str @@ -47,7 +48,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2022-09-01") + api_version: str = kwargs.pop("api_version", "2025-12-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_patch.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_patch.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_operations.py index 0c714fe38bf4..d48ac8e8ecea 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_operations.py @@ -37,6 +37,7 @@ from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer from ..._utils.utils import ClientMixinABC +from ..._validation import api_version_validation from ...operations._operations import ( build_cloud_endpoints_afs_share_metadata_certificate_public_keys_request, build_cloud_endpoints_create_request, @@ -49,6 +50,7 @@ build_cloud_endpoints_pre_restore_request, build_cloud_endpoints_restore_heartbeat_request, build_cloud_endpoints_trigger_change_detection_request, + build_cloud_endpoints_update_request, build_operation_status_get_request, build_operations_list_request, build_private_endpoint_connections_create_request, @@ -91,7 +93,7 @@ List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -201,7 +203,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class StorageSyncServicesOperations: +class StorageSyncServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1286,7 +1288,7 @@ async def check_name_availability( return deserialized # type: ignore -class PrivateEndpointConnectionsOperations: +class PrivateEndpointConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1897,7 +1899,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class SyncGroupsOperations: +class SyncGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2357,7 +2359,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class CloudEndpointsOperations: +class CloudEndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2747,6 +2749,322 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + @api_version_validation( + method_added_on="2025-12-01", + params_added_on={ + "2025-12-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "storage_sync_service_name", + "sync_group_name", + "cloud_endpoint_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-12-01"], + ) + async def _update_initial( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: Union[_models.CloudEndpointUpdateParameters, _types.CloudEndpointUpdateParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(properties, (IOBase, bytes)): + _content = properties + else: + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_cloud_endpoints_update_request( + resource_group_name=resource_group_name, + storage_sync_service_name=storage_sync_service_name, + sync_group_name=sync_group_name, + cloud_endpoint_name=cloud_endpoint_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.StorageSyncError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: _models.CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Required. + :type properties: ~azure.mgmt.storagesync.models.CloudEndpointUpdateParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns CloudEndpoint. The CloudEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: _types.CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Required. + :type properties: ~azure.mgmt.storagesync.types.CloudEndpointUpdateParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns CloudEndpoint. The CloudEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Required. + :type properties: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns CloudEndpoint. The CloudEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + @api_version_validation( + method_added_on="2025-12-01", + params_added_on={ + "2025-12-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "storage_sync_service_name", + "sync_group_name", + "cloud_endpoint_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-12-01"], + ) + async def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: Union[_models.CloudEndpointUpdateParameters, _types.CloudEndpointUpdateParameters, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Is either a + CloudEndpointUpdateParameters type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.storagesync.models.CloudEndpointUpdateParameters or + ~azure.mgmt.storagesync.types.CloudEndpointUpdateParameters or IO[bytes] + :return: An instance of AsyncLROPoller that returns CloudEndpoint. The CloudEndpoint is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CloudEndpoint] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + storage_sync_service_name=storage_sync_service_name, + sync_group_name=sync_group_name, + cloud_endpoint_name=cloud_endpoint_name, + properties=properties, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + + deserialized = _deserialize(_models.CloudEndpoint, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.CloudEndpoint].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.CloudEndpoint]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + async def _delete_initial( self, resource_group_name: str, @@ -4504,7 +4822,7 @@ async def afs_share_metadata_certificate_public_keys( # pylint: disable=name-to return deserialized # type: ignore -class ServerEndpointsOperations: +class ServerEndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5707,7 +6025,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class RegisteredServersOperations: +class RegisteredServersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6832,7 +7150,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class WorkflowsOperations: +class WorkflowsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7101,7 +7419,7 @@ async def abort( return cls(pipeline_response, None, response_headers) # type: ignore -class PrivateLinkResourcesOperations: +class PrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7192,7 +7510,7 @@ async def list_by_storage_sync_service( return deserialized # type: ignore -class OperationStatusOperations: +class OperationStatusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_patch.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_patch.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/aio/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py index 5ba883243ad5..daf806eb22f7 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/__init__.py @@ -25,6 +25,8 @@ CloudEndpointCreateParametersProperties, CloudEndpointLastChangeEnumerationStatus, CloudEndpointProperties, + CloudEndpointUpdateParameters, + CloudEndpointUpdateProperties, CloudTieringCachePerformance, CloudTieringDatePolicyStatus, CloudTieringFilesNotTiering, @@ -125,6 +127,7 @@ ServerEndpointOfflineDataTransferState, ServerEndpointSyncActivityState, ServerEndpointSyncMode, + ServerEndpointSyncSessionWarningType, ServerProvisioningStatus, Type, WorkflowStatus, @@ -145,6 +148,8 @@ "CloudEndpointCreateParametersProperties", "CloudEndpointLastChangeEnumerationStatus", "CloudEndpointProperties", + "CloudEndpointUpdateParameters", + "CloudEndpointUpdateProperties", "CloudTieringCachePerformance", "CloudTieringDatePolicyStatus", "CloudTieringFilesNotTiering", @@ -242,6 +247,7 @@ "ServerEndpointOfflineDataTransferState", "ServerEndpointSyncActivityState", "ServerEndpointSyncMode", + "ServerEndpointSyncSessionWarningType", "ServerProvisioningStatus", "Type", "WorkflowStatus", diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_enums.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_enums.py index 029434bd7721..348b0425b406 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_enums.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_enums.py @@ -247,6 +247,15 @@ class ServerEndpointSyncMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """INITIAL_FULL_DOWNLOAD.""" +class ServerEndpointSyncSessionWarningType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Warning types for sync sessions.""" + + NO_WARNING = "NoWarning" + """No warning.""" + BLOCKED_BY_LARGE_FILE = "BlockedByLargeFile" + """Sync is blocked by a large file.""" + + class ServerProvisioningStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Server provisioning status.""" diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py index 2af154eda55f..b6e6ea4b7665 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_models.py @@ -17,7 +17,7 @@ from .. import models as _models -class BackupRequest(_Model): +class BackupRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Backup request. :ivar azure_file_share: Azure File Share. @@ -47,7 +47,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CheckNameAvailabilityParameters(_Model): +class CheckNameAvailabilityParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for a check name availability request. :ivar name: The name to check for availability. Required. @@ -152,7 +152,7 @@ class ProxyResource(Resource): """ -class CloudEndpoint(ProxyResource): +class CloudEndpoint(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Cloud Endpoint object. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -186,6 +186,7 @@ class CloudEndpoint(ProxyResource): "last_workflow_id", "last_operation_name", "change_enumeration_status", + "change_enumeration_interval_days", ] @overload @@ -338,7 +339,7 @@ class CloudEndpointChangeEnumerationStatus(_Model): """Change enumeration activity.""" -class CloudEndpointCreateParameters(ProxyResource): +class CloudEndpointCreateParameters(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when creating a cloud endpoint. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -366,6 +367,7 @@ class CloudEndpointCreateParameters(ProxyResource): "azure_file_share_name", "storage_account_tenant_id", "friendly_name", + "change_enumeration_interval_days", ] @overload @@ -404,7 +406,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class CloudEndpointCreateParametersProperties(_Model): +class CloudEndpointCreateParametersProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CloudEndpoint Properties object. :ivar storage_account_resource_id: Storage Account Resource Id. @@ -415,6 +417,9 @@ class CloudEndpointCreateParametersProperties(_Model): :vartype storage_account_tenant_id: str :ivar friendly_name: Friendly Name. :vartype friendly_name: str + :ivar change_enumeration_interval_days: The interval for enumerating changes on the cloud + endpoint. + :vartype change_enumeration_interval_days: int """ storage_account_resource_id: Optional[str] = rest_field( @@ -433,6 +438,10 @@ class CloudEndpointCreateParametersProperties(_Model): name="friendlyName", visibility=["read", "create", "update", "delete", "query"] ) """Friendly Name.""" + change_enumeration_interval_days: Optional[int] = rest_field( + name="changeEnumerationIntervalDays", visibility=["read", "create", "update", "delete", "query"] + ) + """The interval for enumerating changes on the cloud endpoint.""" @overload def __init__( @@ -442,6 +451,7 @@ def __init__( azure_file_share_name: Optional[str] = None, storage_account_tenant_id: Optional[str] = None, friendly_name: Optional[str] = None, + change_enumeration_interval_days: Optional[int] = None, ) -> None: ... @overload @@ -492,7 +502,7 @@ class CloudEndpointLastChangeEnumerationStatus(_Model): """Timestamp of when change enumeration is expected to run again.""" -class CloudEndpointProperties(_Model): +class CloudEndpointProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """CloudEndpoint Properties object. :ivar storage_account_resource_id: Storage Account Resource Id. @@ -516,6 +526,9 @@ class CloudEndpointProperties(_Model): :ivar change_enumeration_status: Cloud endpoint change enumeration status. :vartype change_enumeration_status: ~azure.mgmt.storagesync.models.CloudEndpointChangeEnumerationStatus + :ivar change_enumeration_interval_days: The interval for enumerating changes on the cloud + endpoint. + :vartype change_enumeration_interval_days: int """ storage_account_resource_id: Optional[str] = rest_field( @@ -556,6 +569,10 @@ class CloudEndpointProperties(_Model): name="changeEnumerationStatus", visibility=["read"] ) """Cloud endpoint change enumeration status.""" + change_enumeration_interval_days: Optional[int] = rest_field( + name="changeEnumerationIntervalDays", visibility=["read", "create", "update", "delete", "query"] + ) + """The interval for enumerating changes on the cloud endpoint.""" @overload def __init__( @@ -569,6 +586,68 @@ def __init__( provisioning_state: Optional[str] = None, last_workflow_id: Optional[str] = None, last_operation_name: Optional[str] = None, + change_enumeration_interval_days: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CloudEndpointUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The parameters used when updating a cloud endpoint. + + :ivar properties: The properties of the cloud endpoint. + :vartype properties: ~azure.mgmt.storagesync.models.CloudEndpointUpdateProperties + """ + + properties: Optional["_models.CloudEndpointUpdateProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The properties of the cloud endpoint.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.CloudEndpointUpdateProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CloudEndpointUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """CloudEndpoint Update Properties object. + + :ivar change_enumeration_interval_days: The interval for enumerating changes on the cloud + endpoint. + :vartype change_enumeration_interval_days: int + """ + + change_enumeration_interval_days: Optional[int] = rest_field( + name="changeEnumerationIntervalDays", visibility=["read", "create", "update", "delete", "query"] + ) + """The interval for enumerating changes on the cloud endpoint.""" + + @overload + def __init__( + self, + *, + change_enumeration_interval_days: Optional[int] = None, ) -> None: ... @overload @@ -769,7 +848,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -847,7 +926,7 @@ class LocationOperationStatus(_Model): """Percent complete.""" -class ManagedServiceIdentity(_Model): +class ManagedServiceIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Managed service identity (system assigned and/or user assigned identities). :ivar principal_id: The service principal ID of the system assigned identity. This property @@ -899,7 +978,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationDisplayInfo(_Model): +class OperationDisplayInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The operation supported by storage sync. :ivar description: The description of the operation. @@ -942,7 +1021,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationEntity(_Model): +class OperationEntity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The operation supported by storage sync. :ivar name: Operation name: {provider}/{resource}/{operation}. @@ -989,7 +1068,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationProperties(_Model): +class OperationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the operations resource. :ivar service_specification: Service specification for the operations resource. @@ -1020,7 +1099,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationResourceMetricSpecification(_Model): +class OperationResourceMetricSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Operation Display Resource object. :ivar name: Name of the metric. @@ -1103,7 +1182,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationResourceMetricSpecificationDimension(_Model): # pylint: disable=name-too-long +class OperationResourceMetricSpecificationDimension( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """OperationResourceMetricSpecificationDimension object. :ivar name: Name of the dimension. @@ -1145,7 +1226,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationResourceServiceSpecification(_Model): +class OperationResourceServiceSpecification(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Service specification. :ivar metric_specifications: List of metric specifications. @@ -1203,7 +1284,7 @@ class OperationStatus(_Model): """Error details.""" -class PostBackupResponse(_Model): +class PostBackupResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Post Backup Response. :ivar backup_metadata: Post Backup Response Properties. @@ -1264,7 +1345,7 @@ class PostBackupResponseProperties(_Model): """cloud endpoint Name.""" -class PostRestoreRequest(_Model): +class PostRestoreRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Post Restore Request. :ivar partition: Post Restore partition. @@ -1337,7 +1418,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PreRestoreRequest(_Model): +class PreRestoreRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Pre Restore request object. :ivar partition: Pre Restore partition. @@ -1429,7 +1510,7 @@ class PrivateEndpoint(_Model): """The resource identifier of the private endpoint.""" -class PrivateEndpointConnection(Resource): +class PrivateEndpointConnection(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """The private endpoint connection resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1490,7 +1571,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class PrivateEndpointConnectionProperties(_Model): +class PrivateEndpointConnectionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of the private endpoint connection. :ivar group_ids: The group ids for the private endpoint resource. @@ -1543,7 +1624,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResource(Resource): +class PrivateLinkResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """A private link resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1584,7 +1665,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResourceListResult(_Model): +class PrivateLinkResourceListResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A list of private link resources for versions before v6. This model represents the standard ``PrivateLinkResourceListResult`` envelope for versions v3, @@ -1622,7 +1703,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkResourceProperties(_Model): +class PrivateLinkResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties of a private link resource. :ivar group_id: The private link resource group id. @@ -1660,7 +1741,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PrivateLinkServiceConnectionState(_Model): +class PrivateLinkServiceConnectionState(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A collection of information about the state of the connection between service consumer and provider. @@ -1706,7 +1787,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RecallActionParameters(_Model): +class RecallActionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when calling recall action on server endpoint. :ivar pattern: Pattern of the files. @@ -1741,7 +1822,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RegisteredServer(ProxyResource): +class RegisteredServer(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Registered Server resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1830,7 +1911,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RegisteredServerCreateParameters(ProxyResource): +class RegisteredServerCreateParameters(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when creating a registered server. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1903,7 +1984,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RegisteredServerCreateParametersProperties(_Model): # pylint: disable=name-too-long +class RegisteredServerCreateParametersProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """RegisteredServer Create Properties object. :ivar server_certificate: Registered Server Certificate. @@ -1997,7 +2080,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RegisteredServerProperties(_Model): +class RegisteredServerProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RegisteredServer Properties object. :ivar server_certificate: Registered Server Certificate. @@ -2201,7 +2284,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RegisteredServerUpdateParameters(ProxyResource): +class RegisteredServerUpdateParameters(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when updating a registered server. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2262,7 +2345,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class RegisteredServerUpdateProperties(_Model): +class RegisteredServerUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """RegisteredServer Update Properties object. :ivar identity: Apply server with newly discovered ApplicationId if available. @@ -2297,7 +2380,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class RestoreFileSpec(_Model): +class RestoreFileSpec(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Restore file spec. :ivar path: Restore file spec path. @@ -2330,7 +2413,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ServerEndpoint(ProxyResource): +class ServerEndpoint(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Server Endpoint object. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2506,7 +2589,7 @@ class ServerEndpointCloudTieringStatus(_Model): """Information regarding the low disk mode state.""" -class ServerEndpointCreateParameters(ProxyResource): +class ServerEndpointCreateParameters(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when creating a server endpoint. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -2579,7 +2662,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ServerEndpointCreateParametersProperties(_Model): +class ServerEndpointCreateParametersProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ServerEndpoint Properties object. :ivar server_local_path: Server Local path. @@ -2707,7 +2790,7 @@ class ServerEndpointFilesNotSyncingError(_Model): """Count of transient files not syncing with the specified error code.""" -class ServerEndpointProperties(_Model): +class ServerEndpointProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ServerEndpoint Properties object. :ivar server_local_path: Server Local path. @@ -2992,6 +3075,29 @@ class ServerEndpointSyncActivityStatus(_Model): :vartype sync_mode: str or ~azure.mgmt.storagesync.models.ServerEndpointSyncMode :ivar session_minutes_remaining: Session minutes remaining (if available). :vartype session_minutes_remaining: int + :ivar remaining_file_count: Remaining file count (if totals are final). + :vartype remaining_file_count: int + :ivar remaining_directory_count: Remaining directory count (if totals are final). + :vartype remaining_directory_count: int + :ivar remaining_delete_count: Remaining delete count (if totals are final). + :vartype remaining_delete_count: int + :ivar remaining_logical_size_bytes: Remaining logical size in bytes (if totals are final). + :vartype remaining_logical_size_bytes: int + :ivar is_remaining_final: Whether the remaining counts are final. + :vartype is_remaining_final: bool + :ivar recent_items_per_second: Recent throughput in items per second. + :vartype recent_items_per_second: float + :ivar recent_megabytes_per_second: Recent throughput in megabytes per second. + :vartype recent_megabytes_per_second: float + :ivar in_progress_large_file_path: Path of large file currently in progress. + :vartype in_progress_large_file_path: str + :ivar in_progress_large_file_size_bytes: Size in bytes of large file currently in progress. + :vartype in_progress_large_file_size_bytes: int + :ivar in_progress_large_file_percent_complete: Percent complete (0-100) of large file currently + in progress. + :vartype in_progress_large_file_percent_complete: int + :ivar warning: Warning type (if any). Known values are: "NoWarning" and "BlockedByLargeFile". + :vartype warning: str or ~azure.mgmt.storagesync.models.ServerEndpointSyncSessionWarningType """ timestamp: Optional[datetime.datetime] = rest_field(visibility=["read"], format="rfc3339") @@ -3011,6 +3117,32 @@ class ServerEndpointSyncActivityStatus(_Model): \"SnapshotUpload\", and \"InitialFullDownload\".""" session_minutes_remaining: Optional[int] = rest_field(name="sessionMinutesRemaining", visibility=["read"]) """Session minutes remaining (if available).""" + remaining_file_count: Optional[int] = rest_field(name="remainingFileCount", visibility=["read"]) + """Remaining file count (if totals are final).""" + remaining_directory_count: Optional[int] = rest_field(name="remainingDirectoryCount", visibility=["read"]) + """Remaining directory count (if totals are final).""" + remaining_delete_count: Optional[int] = rest_field(name="remainingDeleteCount", visibility=["read"]) + """Remaining delete count (if totals are final).""" + remaining_logical_size_bytes: Optional[int] = rest_field(name="remainingLogicalSizeBytes", visibility=["read"]) + """Remaining logical size in bytes (if totals are final).""" + is_remaining_final: Optional[bool] = rest_field(name="isRemainingFinal", visibility=["read"]) + """Whether the remaining counts are final.""" + recent_items_per_second: Optional[float] = rest_field(name="recentItemsPerSecond", visibility=["read"]) + """Recent throughput in items per second.""" + recent_megabytes_per_second: Optional[float] = rest_field(name="recentMegabytesPerSecond", visibility=["read"]) + """Recent throughput in megabytes per second.""" + in_progress_large_file_path: Optional[str] = rest_field(name="inProgressLargeFilePath", visibility=["read"]) + """Path of large file currently in progress.""" + in_progress_large_file_size_bytes: Optional[int] = rest_field( + name="inProgressLargeFileSizeBytes", visibility=["read"] + ) + """Size in bytes of large file currently in progress.""" + in_progress_large_file_percent_complete: Optional[int] = rest_field( + name="inProgressLargeFilePercentComplete", visibility=["read"] + ) + """Percent complete (0-100) of large file currently in progress.""" + warning: Optional[Union[str, "_models.ServerEndpointSyncSessionWarningType"]] = rest_field(visibility=["read"]) + """Warning type (if any). Known values are: \"NoWarning\" and \"BlockedByLargeFile\".""" class ServerEndpointSyncSessionStatus(_Model): @@ -3155,7 +3287,7 @@ class ServerEndpointSyncStatus(_Model): """Background data download activity.""" -class ServerEndpointUpdateParameters(_Model): +class ServerEndpointUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for updating an Server Endpoint. :ivar properties: The properties of the server endpoint. @@ -3212,7 +3344,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class ServerEndpointUpdateProperties(_Model): +class ServerEndpointUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """ServerEndpoint Update Properties object. :ivar cloud_tiering: Cloud Tiering. Known values are: "on" and "off". @@ -3282,7 +3414,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSyncApiError(_Model): +class StorageSyncApiError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error type. :ivar code: Error code of the given entry. @@ -3334,7 +3466,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSyncError(_Model): +class StorageSyncError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error type. :ivar error: Error details of the given entry. @@ -3371,7 +3503,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSyncErrorDetails(_Model): +class StorageSyncErrorDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error Details object. :ivar code: Error code of the given entry. @@ -3444,7 +3576,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSyncInnerErrorDetails(_Model): +class StorageSyncInnerErrorDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error Details object. :ivar call_stack: Call stack of the error. @@ -3491,7 +3623,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TrackedResource(Resource): +class TrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3535,7 +3667,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSyncService(TrackedResource): +class StorageSyncService(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Storage Sync Service object. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3618,7 +3750,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class StorageSyncServiceCreateParameters(TrackedResource): +class StorageSyncServiceCreateParameters( + TrackedResource +): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when creating a storage sync service. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3695,7 +3829,9 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class StorageSyncServiceCreateParametersProperties(_Model): # pylint: disable=name-too-long +class StorageSyncServiceCreateParametersProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """StorageSyncService Properties object. :ivar incoming_traffic_policy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and @@ -3735,7 +3871,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSyncServiceProperties(_Model): +class StorageSyncServiceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Storage Sync Service Properties object. :ivar incoming_traffic_policy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and @@ -3800,7 +3936,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class StorageSyncServiceUpdateParameters(_Model): +class StorageSyncServiceUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Parameters for updating an Storage sync service. :ivar tags: The user-specified tags associated with the storage sync service. @@ -3864,7 +4000,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class StorageSyncServiceUpdateProperties(_Model): +class StorageSyncServiceUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """StorageSyncService Properties object. :ivar incoming_traffic_policy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and @@ -3904,7 +4040,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SyncGroup(ProxyResource): +class SyncGroup(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Sync Group object. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -3965,7 +4101,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class SyncGroupCreateParameters(ProxyResource): +class SyncGroupCreateParameters(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when creating a sync group. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4039,7 +4175,7 @@ class SyncGroupProperties(_Model): """Sync group status.""" -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -4106,7 +4242,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TriggerChangeDetectionParameters(_Model): +class TriggerChangeDetectionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters used when calling trigger change detection action on cloud endpoint. :ivar directory_path: Relative path to a directory Azure File share for which change detection @@ -4153,7 +4289,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class TriggerRolloverRequest(_Model): +class TriggerRolloverRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Trigger Rollover Request. :ivar server_certificate: Certificate Data. @@ -4198,7 +4334,7 @@ class UserAssignedIdentity(_Model): """The client ID of the assigned identity.""" -class Workflow(ProxyResource): +class Workflow(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Workflow resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -4268,7 +4404,7 @@ def __setattr__(self, key: str, value: Any) -> None: super().__setattr__(key, value) -class WorkflowProperties(_Model): +class WorkflowProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Workflow Properties object. :ivar last_step_name: last step name. diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_patch.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_patch.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/models/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operations.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operations.py index 0b21764a9679..5aa0dcd1a940 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_operations.py @@ -37,6 +37,7 @@ from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer from .._utils.utils import ClientMixinABC +from .._validation import api_version_validation T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] @@ -50,7 +51,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +72,7 @@ def build_storage_sync_services_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -100,7 +101,7 @@ def build_storage_sync_services_create_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -131,7 +132,7 @@ def build_storage_sync_services_update_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -160,7 +161,7 @@ def build_storage_sync_services_delete_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}" path_format_arguments = { @@ -183,7 +184,7 @@ def build_storage_sync_services_list_by_resource_group_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -210,7 +211,7 @@ def build_storage_sync_services_list_by_subscription_request( # pylint: disable _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -237,7 +238,7 @@ def build_storage_sync_services_check_name_availability_request( # pylint: disa _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -272,7 +273,7 @@ def build_private_endpoint_connections_get_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -308,7 +309,7 @@ def build_private_endpoint_connections_create_request( # pylint: disable=name-t _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -344,7 +345,7 @@ def build_private_endpoint_connections_delete_request( # pylint: disable=name-t ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}" path_format_arguments = { @@ -370,7 +371,7 @@ def build_private_endpoint_connections_list_by_storage_sync_service_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -398,7 +399,7 @@ def build_sync_groups_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -428,7 +429,7 @@ def build_sync_groups_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -458,7 +459,7 @@ def build_sync_groups_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}" path_format_arguments = { @@ -482,7 +483,7 @@ def build_sync_groups_list_by_storage_sync_service_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -515,7 +516,7 @@ def build_cloud_endpoints_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -551,7 +552,7 @@ def build_cloud_endpoints_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -577,6 +578,44 @@ def build_cloud_endpoints_create_request( return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) +def build_cloud_endpoints_update_request( + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "storageSyncServiceName": _SERIALIZER.url("storage_sync_service_name", storage_sync_service_name, "str"), + "syncGroupName": _SERIALIZER.url("sync_group_name", sync_group_name, "str"), + "cloudEndpointName": _SERIALIZER.url("cloud_endpoint_name", cloud_endpoint_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + def build_cloud_endpoints_delete_request( resource_group_name: str, storage_sync_service_name: str, @@ -587,7 +626,7 @@ def build_cloud_endpoints_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}" path_format_arguments = { @@ -612,7 +651,7 @@ def build_cloud_endpoints_list_by_sync_group_request( # pylint: disable=name-to _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -647,7 +686,7 @@ def build_cloud_endpoints_pre_backup_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prebackup" path_format_arguments = { @@ -682,7 +721,7 @@ def build_cloud_endpoints_post_backup_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -720,7 +759,7 @@ def build_cloud_endpoints_pre_restore_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/prerestore" path_format_arguments = { @@ -753,7 +792,7 @@ def build_cloud_endpoints_restore_heartbeat_request( # pylint: disable=name-too ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/restoreheartbeat" path_format_arguments = { @@ -784,7 +823,7 @@ def build_cloud_endpoints_post_restore_request( # pylint: disable=name-too-long _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/postrestore" path_format_arguments = { @@ -819,7 +858,7 @@ def build_cloud_endpoints_trigger_change_detection_request( # pylint: disable=n _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/cloudEndpoints/{cloudEndpointName}/triggerChangeDetection" path_format_arguments = { @@ -853,7 +892,7 @@ def build_cloud_endpoints_afs_share_metadata_certificate_public_keys_request( # _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -888,7 +927,7 @@ def build_server_endpoints_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -924,7 +963,7 @@ def build_server_endpoints_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -962,7 +1001,7 @@ def build_server_endpoints_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -998,7 +1037,7 @@ def build_server_endpoints_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}" path_format_arguments = { @@ -1023,7 +1062,7 @@ def build_server_endpoints_list_by_sync_group_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1058,7 +1097,7 @@ def build_server_endpoints_recall_action_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}/recallAction" path_format_arguments = { @@ -1087,7 +1126,7 @@ def build_registered_servers_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1117,7 +1156,7 @@ def build_registered_servers_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1149,7 +1188,7 @@ def build_registered_servers_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1179,7 +1218,7 @@ def build_registered_servers_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}" path_format_arguments = { @@ -1203,7 +1242,7 @@ def build_registered_servers_list_by_storage_sync_service_request( # pylint: di _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1232,7 +1271,7 @@ def build_registered_servers_trigger_rollover_request( # pylint: disable=name-t _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/registeredServers/{serverId}/triggerRollover" path_format_arguments = { @@ -1260,7 +1299,7 @@ def build_workflows_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1289,7 +1328,7 @@ def build_workflows_list_by_storage_sync_service_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1316,7 +1355,7 @@ def build_workflows_abort_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/workflows/{workflowId}/abort" path_format_arguments = { @@ -1340,7 +1379,7 @@ def build_private_link_resources_list_by_storage_sync_service_request( # pylint _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1373,7 +1412,7 @@ def build_operation_status_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1403,7 +1442,7 @@ def build_storage_sync_mgmt_location_operation_status_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-12-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1425,7 +1464,7 @@ def build_storage_sync_mgmt_location_operation_status_request( # pylint: disabl return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1535,7 +1574,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class StorageSyncServicesOperations: +class StorageSyncServicesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2616,7 +2655,7 @@ def check_name_availability( return deserialized # type: ignore -class PrivateEndpointConnectionsOperations: +class PrivateEndpointConnectionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3222,7 +3261,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class SyncGroupsOperations: +class SyncGroupsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3682,7 +3721,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class CloudEndpointsOperations: +class CloudEndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4072,6 +4111,322 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) + @api_version_validation( + method_added_on="2025-12-01", + params_added_on={ + "2025-12-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "storage_sync_service_name", + "sync_group_name", + "cloud_endpoint_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-12-01"], + ) + def _update_initial( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: Union[_models.CloudEndpointUpdateParameters, _types.CloudEndpointUpdateParameters, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(properties, (IOBase, bytes)): + _content = properties + else: + _content = json.dumps(properties, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_cloud_endpoints_update_request( + resource_group_name=resource_group_name, + storage_sync_service_name=storage_sync_service_name, + sync_group_name=sync_group_name, + cloud_endpoint_name=cloud_endpoint_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.StorageSyncError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + + if response.status_code == 202: + response_headers["Azure-AsyncOperation"] = self._deserialize( + "str", response.headers.get("Azure-AsyncOperation") + ) + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: _models.CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Required. + :type properties: ~azure.mgmt.storagesync.models.CloudEndpointUpdateParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns CloudEndpoint. The CloudEndpoint is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: _types.CloudEndpointUpdateParameters, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Required. + :type properties: ~azure.mgmt.storagesync.types.CloudEndpointUpdateParameters + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns CloudEndpoint. The CloudEndpoint is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Required. + :type properties: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns CloudEndpoint. The CloudEndpoint is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + @api_version_validation( + method_added_on="2025-12-01", + params_added_on={ + "2025-12-01": [ + "api_version", + "subscription_id", + "resource_group_name", + "storage_sync_service_name", + "sync_group_name", + "cloud_endpoint_name", + "content_type", + "accept", + ] + }, + api_versions_list=["2025-12-01"], + ) + def begin_update( + self, + resource_group_name: str, + storage_sync_service_name: str, + sync_group_name: str, + cloud_endpoint_name: str, + properties: Union[_models.CloudEndpointUpdateParameters, _types.CloudEndpointUpdateParameters, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.CloudEndpoint]: + """Patch a given CloudEndpoint. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param storage_sync_service_name: Name of Storage Sync Service resource. Required. + :type storage_sync_service_name: str + :param sync_group_name: Name of Sync Group resource. Required. + :type sync_group_name: str + :param cloud_endpoint_name: Name of Cloud Endpoint object. Required. + :type cloud_endpoint_name: str + :param properties: The resource properties to be updated. Is either a + CloudEndpointUpdateParameters type or a IO[bytes] type. Required. + :type properties: ~azure.mgmt.storagesync.models.CloudEndpointUpdateParameters or + ~azure.mgmt.storagesync.types.CloudEndpointUpdateParameters or IO[bytes] + :return: An instance of LROPoller that returns CloudEndpoint. The CloudEndpoint is compatible + with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storagesync.models.CloudEndpoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CloudEndpoint] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + storage_sync_service_name=storage_sync_service_name, + sync_group_name=sync_group_name, + cloud_endpoint_name=cloud_endpoint_name, + properties=properties, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["x-ms-correlation-request-id"] = self._deserialize( + "str", response.headers.get("x-ms-correlation-request-id") + ) + response_headers["x-ms-request-id"] = self._deserialize("str", response.headers.get("x-ms-request-id")) + + deserialized = _deserialize(_models.CloudEndpoint, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.CloudEndpoint].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.CloudEndpoint]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + def _delete_initial( self, resource_group_name: str, @@ -5829,7 +6184,7 @@ def afs_share_metadata_certificate_public_keys( # pylint: disable=name-too-long return deserialized # type: ignore -class ServerEndpointsOperations: +class ServerEndpointsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -7032,7 +7387,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class RegisteredServersOperations: +class RegisteredServersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8156,7 +8511,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class WorkflowsOperations: +class WorkflowsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8425,7 +8780,7 @@ def abort( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, response_headers) # type: ignore -class PrivateLinkResourcesOperations: +class PrivateLinkResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -8516,7 +8871,7 @@ def list_by_storage_sync_service( return deserialized # type: ignore -class OperationStatusOperations: +class OperationStatusOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_patch.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_patch.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py index 220995dc32d4..1c8b47eb1e8d 100644 --- a/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py +++ b/sdk/storage/azure-mgmt-storagesync/azure/mgmt/storagesync/types.py @@ -29,8 +29,8 @@ class BackupRequest(TypedDict, total=False): """Backup request. - :ivar azure_file_share: Azure File Share. - :vartype azure_file_share: str + :ivar azureFileShare: Azure File Share. + :vartype azureFileShare: str """ azureFileShare: str @@ -65,9 +65,9 @@ class Resource(TypedDict, total=False): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ id: str @@ -93,9 +93,9 @@ class ProxyResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ @@ -110,9 +110,9 @@ class CloudEndpointCreateParameters(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The parameters used to create the cloud endpoint. :vartype properties: "CloudEndpointCreateParametersProperties" """ @@ -124,14 +124,17 @@ class CloudEndpointCreateParameters(ProxyResource): class CloudEndpointCreateParametersProperties(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 friendly_name: Friendly Name. - :vartype friendly_name: str + :ivar storageAccountResourceId: Storage Account Resource Id. + :vartype storageAccountResourceId: str + :ivar azureFileShareName: Azure file share name. + :vartype azureFileShareName: str + :ivar storageAccountTenantId: Storage Account Tenant Id. + :vartype storageAccountTenantId: str + :ivar friendlyName: Friendly Name. + :vartype friendlyName: str + :ivar changeEnumerationIntervalDays: The interval for enumerating changes on the cloud + endpoint. + :vartype changeEnumerationIntervalDays: int """ storageAccountResourceId: str @@ -142,22 +145,47 @@ class CloudEndpointCreateParametersProperties(TypedDict, total=False): """Storage Account Tenant Id.""" friendlyName: str """Friendly Name.""" + changeEnumerationIntervalDays: int + """The interval for enumerating changes on the cloud endpoint.""" + + +class CloudEndpointUpdateParameters(TypedDict, total=False): + """The parameters used when updating a cloud endpoint. + + :ivar properties: The properties of the cloud endpoint. + :vartype properties: "CloudEndpointUpdateProperties" + """ + + properties: "CloudEndpointUpdateProperties" + """The properties of the cloud endpoint.""" + + +class CloudEndpointUpdateProperties(TypedDict, total=False): + """CloudEndpoint Update Properties object. + + :ivar changeEnumerationIntervalDays: The interval for enumerating changes on the cloud + endpoint. + :vartype changeEnumerationIntervalDays: int + """ + + changeEnumerationIntervalDays: int + """The interval for enumerating changes on the cloud endpoint.""" class ManagedServiceIdentity(TypedDict, total=False): """Managed service identity (system assigned and/or user assigned identities). - :ivar principal_id: The service principal ID of the system assigned identity. This property - will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + :ivar principalId: The service principal ID of the system assigned identity. This property will + only be provided for a system assigned identity. + :vartype principalId: str + :ivar tenantId: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. - :vartype tenant_id: str + :vartype tenantId: str :ivar type: The type of managed identity assigned to this resource. Required. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". :vartype type: Union[str, "ManagedServiceIdentityType"] - :ivar user_assigned_identities: The identities assigned to this resource by the user. - :vartype user_assigned_identities: dict[str, "UserAssignedIdentity"] + :ivar userAssignedIdentities: The identities assigned to this resource by the user. + :vartype userAssignedIdentities: dict[str, "UserAssignedIdentity"] """ principalId: str @@ -178,20 +206,20 @@ class PostRestoreRequest(TypedDict, total=False): :ivar partition: Post Restore partition. :vartype partition: str - :ivar replica_group: Post Restore replica group. - :vartype replica_group: str - :ivar request_id: Post Restore request id. - :vartype request_id: str - :ivar azure_file_share_uri: Post Restore Azure file share uri. - :vartype azure_file_share_uri: str + :ivar replicaGroup: Post Restore replica group. + :vartype replicaGroup: str + :ivar requestId: Post Restore request id. + :vartype requestId: str + :ivar azureFileShareUri: Post Restore Azure file share uri. + :vartype azureFileShareUri: str :ivar status: Post Restore Azure status. :vartype status: str - :ivar source_azure_file_share_uri: Post Restore Azure source azure file share uri. - :vartype source_azure_file_share_uri: str - :ivar failed_file_list: Post Restore Azure failed file list. - :vartype failed_file_list: str - :ivar restore_file_spec: Post Restore restore file spec array. - :vartype restore_file_spec: list["RestoreFileSpec"] + :ivar sourceAzureFileShareUri: Post Restore Azure source azure file share uri. + :vartype sourceAzureFileShareUri: str + :ivar failedFileList: Post Restore Azure failed file list. + :vartype failedFileList: str + :ivar restoreFileSpec: Post Restore restore file spec array. + :vartype restoreFileSpec: list["RestoreFileSpec"] """ partition: str @@ -217,23 +245,23 @@ class PreRestoreRequest(TypedDict, total=False): :ivar partition: Pre Restore partition. :vartype partition: str - :ivar replica_group: Pre Restore replica group. - :vartype replica_group: str - :ivar request_id: Pre Restore request id. - :vartype request_id: str - :ivar azure_file_share_uri: Pre Restore Azure file share uri. - :vartype azure_file_share_uri: str + :ivar replicaGroup: Pre Restore replica group. + :vartype replicaGroup: str + :ivar requestId: Pre Restore request id. + :vartype requestId: str + :ivar azureFileShareUri: Pre Restore Azure file share uri. + :vartype azureFileShareUri: str :ivar status: Pre Restore Azure status. :vartype status: str - :ivar source_azure_file_share_uri: Pre Restore Azure source azure file share uri. - :vartype source_azure_file_share_uri: str - :ivar backup_metadata_property_bag: Pre Restore backup metadata property bag. - :vartype backup_metadata_property_bag: str - :ivar restore_file_spec: Pre Restore restore file spec array. - :vartype restore_file_spec: list["RestoreFileSpec"] - :ivar pause_wait_for_sync_drain_time_period_in_seconds: Pre Restore pause wait for sync drain - time period in seconds. - :vartype pause_wait_for_sync_drain_time_period_in_seconds: int + :ivar sourceAzureFileShareUri: Pre Restore Azure source azure file share uri. + :vartype sourceAzureFileShareUri: str + :ivar backupMetadataPropertyBag: Pre Restore backup metadata property bag. + :vartype backupMetadataPropertyBag: str + :ivar restoreFileSpec: Pre Restore restore file spec array. + :vartype restoreFileSpec: list["RestoreFileSpec"] + :ivar pauseWaitForSyncDrainTimePeriodInSeconds: Pre Restore pause wait for sync drain time + period in seconds. + :vartype pauseWaitForSyncDrainTimePeriodInSeconds: int """ partition: str @@ -278,9 +306,9 @@ class PrivateEndpointConnection(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: Resource properties. :vartype properties: "PrivateEndpointConnectionProperties" """ @@ -292,16 +320,16 @@ class PrivateEndpointConnection(Resource): class PrivateEndpointConnectionProperties(TypedDict, total=False): """Properties of the private endpoint connection. - :ivar group_ids: The group ids for the private endpoint resource. - :vartype group_ids: list[str] - :ivar private_endpoint: The private endpoint resource. - :vartype private_endpoint: "PrivateEndpoint" - :ivar private_link_service_connection_state: A collection of information about the state of the + :ivar groupIds: The group ids for the private endpoint resource. + :vartype groupIds: list[str] + :ivar privateEndpoint: The private endpoint resource. + :vartype privateEndpoint: "PrivateEndpoint" + :ivar privateLinkServiceConnectionState: A collection of information about the state of the connection between service consumer and provider. Required. - :vartype private_link_service_connection_state: "PrivateLinkServiceConnectionState" - :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + :vartype privateLinkServiceConnectionState: "PrivateLinkServiceConnectionState" + :ivar provisioningState: The provisioning state of the private endpoint connection resource. Known values are: "Succeeded", "Creating", "Deleting", and "Failed". - :vartype provisioning_state: Union[str, "PrivateEndpointConnectionProvisioningState"] + :vartype provisioningState: Union[str, "PrivateEndpointConnectionProvisioningState"] """ groupIds: list[str] @@ -325,9 +353,9 @@ class PrivateLinkServiceConnectionState(TypedDict, total=False): :vartype status: Union[str, "PrivateEndpointServiceConnectionStatus"] :ivar description: The reason for approval/rejection of the connection. :vartype description: str - :ivar actions_required: A message indicating if changes on the service provider require any + :ivar actionsRequired: A message indicating if changes on the service provider require any updates on the consumer. - :vartype actions_required: str + :vartype actionsRequired: str """ status: Union[str, "PrivateEndpointServiceConnectionStatus"] @@ -344,8 +372,8 @@ class RecallActionParameters(TypedDict, total=False): :ivar pattern: Pattern of the files. :vartype pattern: str - :ivar recall_path: Recall path. - :vartype recall_path: str + :ivar recallPath: Recall path. + :vartype recallPath: str """ pattern: str @@ -365,9 +393,9 @@ class RegisteredServerCreateParameters(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The parameters used to create the registered server. :vartype properties: "RegisteredServerCreateParametersProperties" """ @@ -379,26 +407,26 @@ class RegisteredServerCreateParameters(ProxyResource): class RegisteredServerCreateParametersProperties(TypedDict, total=False): # pylint: disable=name-too-long """RegisteredServer Create Properties object. - :ivar server_certificate: Registered Server Certificate. - :vartype server_certificate: str - :ivar agent_version: Registered Server Agent Version. - :vartype agent_version: str - :ivar server_os_version: Registered Server OS Version. - :vartype server_os_version: str - :ivar last_heart_beat: Registered Server last heart beat. - :vartype last_heart_beat: 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 friendly_name: Friendly Name. - :vartype friendly_name: str - :ivar application_id: Server ServicePrincipal Id. - :vartype application_id: str + :ivar serverCertificate: Registered Server Certificate. + :vartype serverCertificate: str + :ivar agentVersion: Registered Server Agent Version. + :vartype agentVersion: str + :ivar serverOSVersion: Registered Server OS Version. + :vartype serverOSVersion: str + :ivar lastHeartBeat: Registered Server last heart beat. + :vartype lastHeartBeat: str + :ivar serverRole: Registered Server serverRole. + :vartype serverRole: str + :ivar clusterId: Registered Server clusterId. + :vartype clusterId: str + :ivar clusterName: Registered Server clusterName. + :vartype clusterName: str + :ivar serverId: Registered Server serverId. + :vartype serverId: str + :ivar friendlyName: Friendly Name. + :vartype friendlyName: str + :ivar applicationId: Server ServicePrincipal Id. + :vartype applicationId: str :ivar identity: Apply server with newly discovered ApplicationId if available. :vartype identity: bool """ @@ -438,9 +466,9 @@ class RegisteredServerUpdateParameters(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The parameters used to update the registered server. :vartype properties: "RegisteredServerUpdateProperties" """ @@ -454,8 +482,8 @@ class RegisteredServerUpdateProperties(TypedDict, total=False): :ivar identity: Apply server with newly discovered ApplicationId if available. :vartype identity: bool - :ivar application_id: Apply server with new ServicePrincipal Id. - :vartype application_id: str + :ivar applicationId: Apply server with new ServicePrincipal Id. + :vartype applicationId: str """ identity: bool @@ -490,9 +518,9 @@ class ServerEndpointCreateParameters(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The parameters used to create the server endpoint. :vartype properties: "ServerEndpointCreateParametersProperties" """ @@ -504,33 +532,33 @@ class ServerEndpointCreateParameters(ProxyResource): class ServerEndpointCreateParametersProperties(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 + :ivar serverLocalPath: Server Local path. + :vartype serverLocalPath: str + :ivar cloudTiering: Cloud Tiering. Known values are: "on" and "off". + :vartype cloudTiering: Union[str, "FeatureStatus"] + :ivar volumeFreeSpacePercent: 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 offline_data_transfer: Offline data transfer. Known values are: "on" and "off". - :vartype offline_data_transfer: Union[str, "FeatureStatus"] - :ivar offline_data_transfer_share_name: Offline data transfer share name. - :vartype offline_data_transfer_share_name: str - :ivar initial_download_policy: Policy for how namespace and files are recalled during FastDr. + :vartype volumeFreeSpacePercent: int + :ivar tierFilesOlderThanDays: Tier files older than days. + :vartype tierFilesOlderThanDays: int + :ivar friendlyName: Friendly Name. + :vartype friendlyName: str + :ivar serverResourceId: Server Resource Id. + :vartype serverResourceId: str + :ivar offlineDataTransfer: Offline data transfer. Known values are: "on" and "off". + :vartype offlineDataTransfer: Union[str, "FeatureStatus"] + :ivar offlineDataTransferShareName: Offline data transfer share name. + :vartype offlineDataTransferShareName: str + :ivar initialDownloadPolicy: 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 + :vartype initialDownloadPolicy: Union[str, "InitialDownloadPolicy"] + :ivar 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". - :vartype local_cache_mode: Union[str, "LocalCacheMode"] - :ivar initial_upload_policy: Policy for how the initial upload sync session is performed. Known + :vartype localCacheMode: Union[str, "LocalCacheMode"] + :ivar initialUploadPolicy: Policy for how the initial upload sync session is performed. Known values are: "ServerAuthoritative" and "Merge". - :vartype initial_upload_policy: Union[str, "InitialUploadPolicy"] + :vartype initialUploadPolicy: Union[str, "InitialUploadPolicy"] """ serverLocalPath: str @@ -575,21 +603,21 @@ class ServerEndpointUpdateParameters(TypedDict, total=False): class ServerEndpointUpdateProperties(TypedDict, total=False): """ServerEndpoint Update Properties object. - :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 + :ivar cloudTiering: Cloud Tiering. Known values are: "on" and "off". + :vartype cloudTiering: Union[str, "FeatureStatus"] + :ivar volumeFreeSpacePercent: 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 offline_data_transfer: Offline data transfer. Known values are: "on" and "off". - :vartype offline_data_transfer: Union[str, "FeatureStatus"] - :ivar offline_data_transfer_share_name: Offline data transfer share name. - :vartype offline_data_transfer_share_name: str - :ivar local_cache_mode: Policy for enabling follow-the-sun business models: link local cache to + :vartype volumeFreeSpacePercent: int + :ivar tierFilesOlderThanDays: Tier files older than days. + :vartype tierFilesOlderThanDays: int + :ivar offlineDataTransfer: Offline data transfer. Known values are: "on" and "off". + :vartype offlineDataTransfer: Union[str, "FeatureStatus"] + :ivar offlineDataTransferShareName: Offline data transfer share name. + :vartype offlineDataTransferShareName: str + :ivar 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". - :vartype local_cache_mode: Union[str, "LocalCacheMode"] + :vartype localCacheMode: Union[str, "LocalCacheMode"] """ cloudTiering: Union[str, "FeatureStatus"] @@ -619,9 +647,9 @@ class TrackedResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -645,9 +673,9 @@ class StorageSyncServiceCreateParameters(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -669,12 +697,12 @@ class StorageSyncServiceCreateParameters(TrackedResource): class StorageSyncServiceCreateParametersProperties(TypedDict, total=False): # pylint: disable=name-too-long """StorageSyncService Properties object. - :ivar incoming_traffic_policy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and + :ivar incomingTrafficPolicy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and "AllowVirtualNetworksOnly". - :vartype incoming_traffic_policy: Union[str, "IncomingTrafficPolicy"] - :ivar use_identity: Use Identity authorization when customer have finished setup RBAC + :vartype incomingTrafficPolicy: Union[str, "IncomingTrafficPolicy"] + :ivar useIdentity: Use Identity authorization when customer have finished setup RBAC permissions. - :vartype use_identity: bool + :vartype useIdentity: bool """ incomingTrafficPolicy: Union[str, "IncomingTrafficPolicy"] @@ -708,12 +736,12 @@ class StorageSyncServiceUpdateParameters(TypedDict, total=False): class StorageSyncServiceUpdateProperties(TypedDict, total=False): """StorageSyncService Properties object. - :ivar incoming_traffic_policy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and + :ivar incomingTrafficPolicy: Incoming Traffic Policy. Known values are: "AllowAllTraffic" and "AllowVirtualNetworksOnly". - :vartype incoming_traffic_policy: Union[str, "IncomingTrafficPolicy"] - :ivar use_identity: Use Identity authorization when customer have finished setup RBAC + :vartype incomingTrafficPolicy: Union[str, "IncomingTrafficPolicy"] + :ivar useIdentity: Use Identity authorization when customer have finished setup RBAC permissions. - :vartype use_identity: bool + :vartype useIdentity: bool """ incomingTrafficPolicy: Union[str, "IncomingTrafficPolicy"] @@ -734,9 +762,9 @@ class SyncGroupCreateParameters(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The parameters used to create the sync group. :vartype properties: Any """ @@ -748,20 +776,20 @@ class SyncGroupCreateParameters(ProxyResource): class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: Union[str, "CreatedByType"] - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: str - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: Union[str, "CreatedByType"] - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: str + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str """ createdBy: str @@ -783,12 +811,12 @@ class SystemData(TypedDict, total=False): class TriggerChangeDetectionParameters(TypedDict, total=False): """The parameters used when calling trigger change detection action on cloud endpoint. - :ivar directory_path: Relative path to a directory Azure File share for which change detection + :ivar directoryPath: Relative path to a directory Azure File share for which change detection is to be performed. - :vartype directory_path: str - :ivar change_detection_mode: Change Detection Mode. Applies to a directory specified in + :vartype directoryPath: str + :ivar changeDetectionMode: Change Detection Mode. Applies to a directory specified in directoryPath parameter. Known values are: "Default" and "Recursive". - :vartype change_detection_mode: Union[str, "ChangeDetectionMode"] + :vartype changeDetectionMode: Union[str, "ChangeDetectionMode"] :ivar paths: Array of relative paths on the Azure File share to be included in the change detection. Can be files and directories. :vartype paths: list[str] @@ -807,8 +835,8 @@ class TriggerChangeDetectionParameters(TypedDict, total=False): class TriggerRolloverRequest(TypedDict, total=False): """Trigger Rollover Request. - :ivar server_certificate: Certificate Data. - :vartype server_certificate: str + :ivar serverCertificate: Certificate Data. + :vartype serverCertificate: str """ serverCertificate: str @@ -818,10 +846,10 @@ class TriggerRolloverRequest(TypedDict, total=False): class UserAssignedIdentity(TypedDict, total=False): """User assigned identity properties. - :ivar principal_id: The principal ID of the assigned identity. - :vartype principal_id: str - :ivar client_id: The client ID of the assigned identity. - :vartype client_id: str + :ivar principalId: The principal ID of the assigned identity. + :vartype principalId: str + :ivar clientId: The client ID of the assigned identity. + :vartype clientId: str """ principalId: str diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_afs_share_metadata_certificate_public_keys.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_afs_share_metadata_certificate_public_keys.py index 6813bf30bf0c..0f5136f51c91 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_afs_share_metadata_certificate_public_keys.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_afs_share_metadata_certificate_public_keys.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/CloudEndpoints_AfsShareMetadataCertificatePublicKeys.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_AfsShareMetadataCertificatePublicKeys.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_create.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_create.py index 54baad78c088..0def0f157f83 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_create.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_create.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/CloudEndpoints_Create.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_Create.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_delete.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_delete.py index 0a7eaeb8f736..29b5b15c14dd 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_delete.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/CloudEndpoints_Delete.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_Delete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_get.py index 86e42fa261ff..3597b06af912 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/CloudEndpoints_Get.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_list_by_sync_group.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_list_by_sync_group.py index 2f695b1a9b37..31aa1cd5bed3 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_list_by_sync_group.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_list_by_sync_group.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/CloudEndpoints_ListBySyncGroup.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_ListBySyncGroup.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_backup.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_backup.py index 6abcabd12ca8..7a8bd9bc7062 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_backup.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_backup.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/CloudEndpoints_PostBackup.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_PostBackup.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_restore.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_restore.py index 374484f47b70..57c651c01dd6 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_restore.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_post_restore.py @@ -50,6 +50,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/CloudEndpoints_PostRestore.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_PostRestore.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_backup.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_backup.py index 1ce2077b3e36..0d0333132f93 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_backup.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_backup.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/CloudEndpoints_PreBackup.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_PreBackup.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_restore.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_restore.py index 11c3ed6670df..89da09ee1d24 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_restore.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_pre_restore.py @@ -47,6 +47,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/CloudEndpoints_PreRestore.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_PreRestore.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_restore_heatbeat.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_restore_heatbeat.py index d2c59d2e083e..e502967d2bc6 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_restore_heatbeat.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_restore_heatbeat.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: 2022-09-01/CloudEndpoints_RestoreHeatbeat.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_RestoreHeatbeat.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_trigger_change_detection.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_trigger_change_detection.py index f666aa41059e..f5133691a923 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_trigger_change_detection.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_trigger_change_detection.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/CloudEndpoints_TriggerChangeDetection.json +# x-ms-original-file: 2025-12-01/CloudEndpoints_TriggerChangeDetection.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_update.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_update.py new file mode 100644 index 000000000000..562e8555940a --- /dev/null +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_update.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storagesync import StorageSyncMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storagesync +# USAGE + python cloud_endpoints_update.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageSyncMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.cloud_endpoints.begin_update( + resource_group_name="rgstoragesync", + storage_sync_service_name="llg", + sync_group_name="wwuoouzucgvfrsvjfgsobajg", + cloud_endpoint_name="mjpalurfyrwkmqeygi", + properties={"properties": {"changeEnumerationIntervalDays": 14}}, + ).result() + print(response) + + +# x-ms-original-file: 2025-12-01/CloudEndpoints_Update.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/location_operation_status_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/location_operation_status_get.py index 94aa7047562a..e94ff43cc5bb 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/location_operation_status_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/location_operation_status_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/LocationOperationStatus_Get.json +# x-ms-original-file: 2025-12-01/LocationOperationStatus_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/operation_status_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/operation_status_get.py index c6205b4042a8..d991194a8d37 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/operation_status_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/operation_status_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/OperationStatus_Get.json +# x-ms-original-file: 2025-12-01/OperationStatus_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/operations_list.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/operations_list.py index ad9004e03326..d342d0629481 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/operations_list.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/operations_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/Operations_List.json +# x-ms-original-file: 2025-12-01/Operations_List.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_create.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_create.py index dccc89047b63..0598e813be8e 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_create.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_create.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/PrivateEndpointConnections_Create.json +# x-ms-original-file: 2025-12-01/PrivateEndpointConnections_Create.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_delete.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_delete.py index 9019b90c76d2..88afa862ceac 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_delete.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/PrivateEndpointConnections_Delete.json +# x-ms-original-file: 2025-12-01/PrivateEndpointConnections_Delete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_get.py index 8dc3655b9cd2..4a63a43f7262 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/PrivateEndpointConnections_Get.json +# x-ms-original-file: 2025-12-01/PrivateEndpointConnections_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_list_by_storage_sync_service.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_list_by_storage_sync_service.py index da28d6d3a344..2a9d1882cd92 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_list_by_storage_sync_service.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_endpoint_connections_list_by_storage_sync_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/PrivateEndpointConnections_ListByStorageSyncService.json +# x-ms-original-file: 2025-12-01/PrivateEndpointConnections_ListByStorageSyncService.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_link_resources_list.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_link_resources_list.py index 1e0238956cfd..36dfac7d3c6c 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/private_link_resources_list.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/private_link_resources_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/PrivateLinkResources_List.json +# x-ms-original-file: 2025-12-01/PrivateLinkResources_List.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_create.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_create.py index 22e536b3b3c5..85c74e83e4f6 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_create.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_create.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/RegisteredServers_Create.json +# x-ms-original-file: 2025-12-01/RegisteredServers_Create.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_delete.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_delete.py index 6d60cf463e20..01160aac19f5 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_delete.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/RegisteredServers_Delete.json +# x-ms-original-file: 2025-12-01/RegisteredServers_Delete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_get.py index 164a89c54da9..2f4be68c6e9e 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/RegisteredServers_Get.json +# x-ms-original-file: 2025-12-01/RegisteredServers_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_list_by_storage_sync_service.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_list_by_storage_sync_service.py index 56188bb32d04..4352179eac91 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_list_by_storage_sync_service.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_list_by_storage_sync_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/RegisteredServers_ListByStorageSyncService.json +# x-ms-original-file: 2025-12-01/RegisteredServers_ListByStorageSyncService.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_trigger_rollover.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_trigger_rollover.py index d31e334e6e97..a3d7bbb782e1 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_trigger_rollover.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_trigger_rollover.py @@ -41,6 +41,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/RegisteredServers_TriggerRollover.json +# x-ms-original-file: 2025-12-01/RegisteredServers_TriggerRollover.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_update.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_update.py index cb06b647642c..29b76a6f3050 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_update.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/registered_servers_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/RegisteredServers_Update.json +# x-ms-original-file: 2025-12-01/RegisteredServers_Update.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_create.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_create.py index f4175b42df6e..bb40a05323e5 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_create.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_create.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/ServerEndpoints_Create.json +# x-ms-original-file: 2025-12-01/ServerEndpoints_Create.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_delete.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_delete.py index 7de54554ad65..1692eb61e736 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_delete.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_delete.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/ServerEndpoints_Delete.json +# x-ms-original-file: 2025-12-01/ServerEndpoints_Delete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_get.py index 7cfbe4e541b0..f725733a6b3b 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/ServerEndpoints_Get.json +# x-ms-original-file: 2025-12-01/ServerEndpoints_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_list_by_sync_group.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_list_by_sync_group.py index 1a2c6d62b426..e71e25941b6e 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_list_by_sync_group.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_list_by_sync_group.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/ServerEndpoints_ListBySyncGroup.json +# x-ms-original-file: 2025-12-01/ServerEndpoints_ListBySyncGroup.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_recall.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_recall.py index 2b5436cfdd5b..c03e7351a425 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_recall.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_recall.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/ServerEndpoints_Recall.json +# x-ms-original-file: 2025-12-01/ServerEndpoints_Recall.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_update.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_update.py index 3d4ba57f7f1e..db728151346c 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_update.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/server_endpoints_update.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/ServerEndpoints_Update.json +# x-ms-original-file: 2025-12-01/ServerEndpoints_Update.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_already_exists.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_already_exists.py index 3d17574c05ee..4cf10b5e62ff 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_already_exists.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_already_exists.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/StorageSyncServiceCheckNameAvailability_AlreadyExists.json +# x-ms-original-file: 2025-12-01/StorageSyncServiceCheckNameAvailability_AlreadyExists.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_available.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_available.py index a77cf3e4c3b7..2d36864a07d7 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_available.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_service_check_name_availability_available.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/StorageSyncServiceCheckNameAvailability_Available.json +# x-ms-original-file: 2025-12-01/StorageSyncServiceCheckNameAvailability_Available.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_create.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_create.py index 4f9e6d293145..a7b54e4c2c78 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_create.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_create.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/StorageSyncServices_Create.json +# x-ms-original-file: 2025-12-01/StorageSyncServices_Create.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_delete.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_delete.py index 0ed3719a323b..0615899dcea4 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_delete.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2022-09-01/StorageSyncServices_Delete.json +# x-ms-original-file: 2025-12-01/StorageSyncServices_Delete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_get.py index 5788390fdcc7..c36af25ceb00 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/StorageSyncServices_Get.json +# x-ms-original-file: 2025-12-01/StorageSyncServices_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_resource_group.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_resource_group.py index 58018253bd91..4b00fc40d4a5 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_resource_group.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/StorageSyncServices_ListByResourceGroup.json +# x-ms-original-file: 2025-12-01/StorageSyncServices_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_subscription.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_subscription.py index eeb3e0ba6f68..f7edf53f16c8 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_subscription.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_list_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/StorageSyncServices_ListBySubscription.json +# x-ms-original-file: 2025-12-01/StorageSyncServices_ListBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_update.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_update.py index 5aa6b999e69b..7b241c78e2d7 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_update.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/storage_sync_services_update.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/StorageSyncServices_Update.json +# x-ms-original-file: 2025-12-01/StorageSyncServices_Update.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_create.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_create.py index fb960ef6b3ed..c9f1f0d2ca55 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_create.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_create.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/SyncGroups_Create.json +# x-ms-original-file: 2025-12-01/SyncGroups_Create.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_delete.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_delete.py index ff2833ff50f1..a9afe28a7b43 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_delete.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2022-09-01/SyncGroups_Delete.json +# x-ms-original-file: 2025-12-01/SyncGroups_Delete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_get.py index 215fe4890ed5..14c0da99d6c4 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/SyncGroups_Get.json +# x-ms-original-file: 2025-12-01/SyncGroups_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_list_by_storage_sync_service.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_list_by_storage_sync_service.py index 22b935465d8f..9c72c5177d4e 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_list_by_storage_sync_service.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/sync_groups_list_by_storage_sync_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/SyncGroups_ListByStorageSyncService.json +# x-ms-original-file: 2025-12-01/SyncGroups_ListByStorageSyncService.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_abort.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_abort.py index e2640ef9edf1..30b90694f4ba 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_abort.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_abort.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2022-09-01/Workflows_Abort.json +# x-ms-original-file: 2025-12-01/Workflows_Abort.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_get.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_get.py index 79abc303a207..44b120f75c8a 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_get.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2022-09-01/Workflows_Get.json +# x-ms-original-file: 2025-12-01/Workflows_Get.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_list_by_storage_sync_service.py b/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_list_by_storage_sync_service.py index 6cf8e9237e7d..30d2f5fb8cb2 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_list_by_storage_sync_service.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_samples/workflows_list_by_storage_sync_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2022-09-01/Workflows_ListByStorageSyncService.json +# x-ms-original-file: 2025-12-01/Workflows_ListByStorageSyncService.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations.py b/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations.py index 80884d26e154..5630b863f5b8 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations.py @@ -44,6 +44,7 @@ def test_cloud_endpoints_begin_create(self, resource_group): "name": "str", "properties": { "azureFileShareName": "str", + "changeEnumerationIntervalDays": 0, "friendlyName": "str", "storageAccountResourceId": "str", "storageAccountTenantId": "str", @@ -63,6 +64,20 @@ def test_cloud_endpoints_begin_create(self, resource_group): # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_cloud_endpoints_begin_update(self, resource_group): + response = self.client.cloud_endpoints.begin_update( + resource_group_name=resource_group.name, + storage_sync_service_name="str", + sync_group_name="str", + cloud_endpoint_name="str", + properties={"properties": {"changeEnumerationIntervalDays": 0}}, + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_cloud_endpoints_begin_delete(self, resource_group): diff --git a/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations_async.py b/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations_async.py index 99646365b098..793986284af6 100644 --- a/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations_async.py +++ b/sdk/storage/azure-mgmt-storagesync/generated_tests/test_storage_sync_mgmt_cloud_endpoints_operations_async.py @@ -46,6 +46,7 @@ async def test_cloud_endpoints_begin_create(self, resource_group): "name": "str", "properties": { "azureFileShareName": "str", + "changeEnumerationIntervalDays": 0, "friendlyName": "str", "storageAccountResourceId": "str", "storageAccountTenantId": "str", @@ -66,6 +67,22 @@ async def test_cloud_endpoints_begin_create(self, resource_group): # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_cloud_endpoints_begin_update(self, resource_group): + response = await ( + await self.client.cloud_endpoints.begin_update( + resource_group_name=resource_group.name, + storage_sync_service_name="str", + sync_group_name="str", + cloud_endpoint_name="str", + properties={"properties": {"changeEnumerationIntervalDays": 0}}, + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_cloud_endpoints_begin_delete(self, resource_group): diff --git a/sdk/storage/azure-mgmt-storagesync/tsp-location.yaml b/sdk/storage/azure-mgmt-storagesync/tsp-location.yaml index 88a30f541e14..87ab2ebb9159 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: 801a60cdad2669e8f824fedfbabbfe7f7093b940 +commit: bd92126f09e7e3caa74f10fa1c944d1e451813ac repo: Azure/azure-rest-api-specs additionalDirectories: