Skip to content

Commit

Permalink
CodeGen from PR 14407 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[StorageSync] Publish 2020-09-01 as stable API version (Azure#14407)

* DONOT COMMIT: Microsoft.StorageSync : Update Api Version 2020-09-01 (preview) for InitialUploadPolicy feature. (Azure#11392)

* update initialuploadpolicy

* Update test for InitialUploadPolicy setting

Co-authored-by: Manish Duggal <manidu@microsoft.com>

* [Microsoft.StorageSync] change enumeration protocol changes for 2020-09-01 (Azure#12793)

* change eumeration protocol changes

* fix unexpected changes

* StorageSync new api version 2020-09-01 (Azure#14005)

* change

* del

* revert

* Remove systemData changes (postponed to future API version)

* run prettier

* Address breaking changes and S360 item for default values

* run prettier

Co-authored-by: Andre Pinto <anpint@microsoft.com>

Co-authored-by: Manishd79 <duggal_sunny@yahoo.com>
Co-authored-by: Manish Duggal <manidu@microsoft.com>
Co-authored-by: ankushbindlish2 <34896519+ankushbindlish2@users.noreply.github.com>
  • Loading branch information
4 people committed Jun 10, 2021
1 parent fd411ac commit 8910810
Show file tree
Hide file tree
Showing 19 changed files with 3,095 additions and 256 deletions.
1 change: 1 addition & 0 deletions sdk/storage/azure-mgmt-storagesync/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/storage/azure-mgmt-storagesync/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "9ccf663e5d68e601ab65efb4045ff4b2668f20f7",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/storagesync/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/storagesync/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from ._configuration import StorageSyncManagementClientConfiguration
from .operations import Operations
from .operations import StorageSyncServicesOperations
from .operations import PrivateLinkResourcesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import SyncGroupsOperations
from .operations import CloudEndpointsOperations
from .operations import ServerEndpointsOperations
Expand All @@ -34,6 +36,10 @@ class StorageSyncManagementClient(SDKClient):
:vartype operations: azure.mgmt.storagesync.operations.Operations
:ivar storage_sync_services: StorageSyncServices operations
:vartype storage_sync_services: azure.mgmt.storagesync.operations.StorageSyncServicesOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.storagesync.operations.PrivateLinkResourcesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.storagesync.operations.PrivateEndpointConnectionsOperations
:ivar sync_groups: SyncGroups operations
:vartype sync_groups: azure.mgmt.storagesync.operations.SyncGroupsOperations
:ivar cloud_endpoints: CloudEndpoints operations
Expand Down Expand Up @@ -62,14 +68,18 @@ def __init__(
super(StorageSyncManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-06-01'
self.api_version = '2020-09-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.storage_sync_services = StorageSyncServicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.sync_groups = SyncGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.cloud_endpoints = CloudEndpointsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,32 @@
from ._models_py3 import CheckNameAvailabilityParameters
from ._models_py3 import CheckNameAvailabilityResult
from ._models_py3 import CloudEndpoint
from ._models_py3 import CloudEndpointChangeEnumerationActivity
from ._models_py3 import CloudEndpointChangeEnumerationStatus
from ._models_py3 import CloudEndpointCreateParameters
from ._models_py3 import CloudEndpointLastChangeEnumerationStatus
from ._models_py3 import CloudTieringCachePerformance
from ._models_py3 import CloudTieringDatePolicyStatus
from ._models_py3 import CloudTieringFilesNotTiering
from ._models_py3 import CloudTieringSpaceSavings
from ._models_py3 import CloudTieringVolumeFreeSpacePolicyStatus
from ._models_py3 import FilesNotTieringError
from ._models_py3 import OperationDisplayInfo
from ._models_py3 import OperationDisplayResource
from ._models_py3 import OperationEntity
from ._models_py3 import OperationProperties
from ._models_py3 import OperationResourceMetricSpecification
from ._models_py3 import OperationResourceMetricSpecificationDimension
from ._models_py3 import OperationResourceServiceSpecification
from ._models_py3 import OperationStatus
from ._models_py3 import PostBackupResponse
from ._models_py3 import PostRestoreRequest
from ._models_py3 import PreRestoreRequest
from ._models_py3 import PrivateEndpoint
from ._models_py3 import PrivateEndpointConnection
from ._models_py3 import PrivateLinkResource
from ._models_py3 import PrivateLinkResourceListResult
from ._models_py3 import PrivateLinkServiceConnectionState
from ._models_py3 import ProxyResource
from ._models_py3 import RecallActionParameters
from ._models_py3 import RegisteredServer
Expand All @@ -31,6 +49,7 @@
from ._models_py3 import ResourcesMoveInfo
from ._models_py3 import RestoreFileSpec
from ._models_py3 import ServerEndpoint
from ._models_py3 import ServerEndpointBackgroundDataDownloadActivity
from ._models_py3 import ServerEndpointCloudTieringStatus
from ._models_py3 import ServerEndpointCreateParameters
from ._models_py3 import ServerEndpointFilesNotSyncingError
Expand All @@ -43,6 +62,7 @@
from ._models_py3 import StorageSyncApiError
from ._models_py3 import StorageSyncError, StorageSyncErrorException
from ._models_py3 import StorageSyncErrorDetails
from ._models_py3 import StorageSyncInnerErrorDetails
from ._models_py3 import StorageSyncService
from ._models_py3 import StorageSyncServiceCreateParameters
from ._models_py3 import StorageSyncServiceUpdateParameters
Expand All @@ -59,14 +79,32 @@
from ._models import CheckNameAvailabilityParameters
from ._models import CheckNameAvailabilityResult
from ._models import CloudEndpoint
from ._models import CloudEndpointChangeEnumerationActivity
from ._models import CloudEndpointChangeEnumerationStatus
from ._models import CloudEndpointCreateParameters
from ._models import CloudEndpointLastChangeEnumerationStatus
from ._models import CloudTieringCachePerformance
from ._models import CloudTieringDatePolicyStatus
from ._models import CloudTieringFilesNotTiering
from ._models import CloudTieringSpaceSavings
from ._models import CloudTieringVolumeFreeSpacePolicyStatus
from ._models import FilesNotTieringError
from ._models import OperationDisplayInfo
from ._models import OperationDisplayResource
from ._models import OperationEntity
from ._models import OperationProperties
from ._models import OperationResourceMetricSpecification
from ._models import OperationResourceMetricSpecificationDimension
from ._models import OperationResourceServiceSpecification
from ._models import OperationStatus
from ._models import PostBackupResponse
from ._models import PostRestoreRequest
from ._models import PreRestoreRequest
from ._models import PrivateEndpoint
from ._models import PrivateEndpointConnection
from ._models import PrivateLinkResource
from ._models import PrivateLinkResourceListResult
from ._models import PrivateLinkServiceConnectionState
from ._models import ProxyResource
from ._models import RecallActionParameters
from ._models import RegisteredServer
Expand All @@ -75,6 +113,7 @@
from ._models import ResourcesMoveInfo
from ._models import RestoreFileSpec
from ._models import ServerEndpoint
from ._models import ServerEndpointBackgroundDataDownloadActivity
from ._models import ServerEndpointCloudTieringStatus
from ._models import ServerEndpointCreateParameters
from ._models import ServerEndpointFilesNotSyncingError
Expand All @@ -87,6 +126,7 @@
from ._models import StorageSyncApiError
from ._models import StorageSyncError, StorageSyncErrorException
from ._models import StorageSyncErrorDetails
from ._models import StorageSyncInnerErrorDetails
from ._models import StorageSyncService
from ._models import StorageSyncServiceCreateParameters
from ._models import StorageSyncServiceUpdateParameters
Expand All @@ -99,15 +139,33 @@
from ._models import Workflow
from ._paged_models import CloudEndpointPaged
from ._paged_models import OperationEntityPaged
from ._paged_models import PrivateEndpointConnectionPaged
from ._paged_models import RegisteredServerPaged
from ._paged_models import ServerEndpointPaged
from ._paged_models import StorageSyncServicePaged
from ._paged_models import SyncGroupPaged
from ._paged_models import WorkflowPaged
from ._storage_sync_management_client_enums import (
Reason,
IncomingTrafficPolicy,
PrivateEndpointServiceConnectionStatus,
PrivateEndpointConnectionProvisioningState,
CloudEndpointChangeEnumerationActivityState,
CloudEndpointChangeEnumerationTotalCountsState,
ChangeDetectionMode,
FeatureStatus,
InitialDownloadPolicy,
LocalCacheMode,
InitialUploadPolicy,
ServerEndpointHealthState,
ServerEndpointSyncActivityState,
ServerEndpointSyncMode,
ServerEndpointOfflineDataTransferState,
RegisteredServerAgentVersionStatus,
WorkflowStatus,
OperationDirection,
NameAvailabilityReason,
ProgressType,
)

__all__ = [
Expand All @@ -116,14 +174,32 @@
'CheckNameAvailabilityParameters',
'CheckNameAvailabilityResult',
'CloudEndpoint',
'CloudEndpointChangeEnumerationActivity',
'CloudEndpointChangeEnumerationStatus',
'CloudEndpointCreateParameters',
'CloudEndpointLastChangeEnumerationStatus',
'CloudTieringCachePerformance',
'CloudTieringDatePolicyStatus',
'CloudTieringFilesNotTiering',
'CloudTieringSpaceSavings',
'CloudTieringVolumeFreeSpacePolicyStatus',
'FilesNotTieringError',
'OperationDisplayInfo',
'OperationDisplayResource',
'OperationEntity',
'OperationProperties',
'OperationResourceMetricSpecification',
'OperationResourceMetricSpecificationDimension',
'OperationResourceServiceSpecification',
'OperationStatus',
'PostBackupResponse',
'PostRestoreRequest',
'PreRestoreRequest',
'PrivateEndpoint',
'PrivateEndpointConnection',
'PrivateLinkResource',
'PrivateLinkResourceListResult',
'PrivateLinkServiceConnectionState',
'ProxyResource',
'RecallActionParameters',
'RegisteredServer',
Expand All @@ -132,6 +208,7 @@
'ResourcesMoveInfo',
'RestoreFileSpec',
'ServerEndpoint',
'ServerEndpointBackgroundDataDownloadActivity',
'ServerEndpointCloudTieringStatus',
'ServerEndpointCreateParameters',
'ServerEndpointFilesNotSyncingError',
Expand All @@ -144,6 +221,7 @@
'StorageSyncApiError',
'StorageSyncError', 'StorageSyncErrorException',
'StorageSyncErrorDetails',
'StorageSyncInnerErrorDetails',
'StorageSyncService',
'StorageSyncServiceCreateParameters',
'StorageSyncServiceUpdateParameters',
Expand All @@ -156,12 +234,30 @@
'Workflow',
'OperationEntityPaged',
'StorageSyncServicePaged',
'PrivateEndpointConnectionPaged',
'SyncGroupPaged',
'CloudEndpointPaged',
'ServerEndpointPaged',
'RegisteredServerPaged',
'WorkflowPaged',
'Reason',
'IncomingTrafficPolicy',
'PrivateEndpointServiceConnectionStatus',
'PrivateEndpointConnectionProvisioningState',
'CloudEndpointChangeEnumerationActivityState',
'CloudEndpointChangeEnumerationTotalCountsState',
'ChangeDetectionMode',
'FeatureStatus',
'InitialDownloadPolicy',
'LocalCacheMode',
'InitialUploadPolicy',
'ServerEndpointHealthState',
'ServerEndpointSyncActivityState',
'ServerEndpointSyncMode',
'ServerEndpointOfflineDataTransferState',
'RegisteredServerAgentVersionStatus',
'WorkflowStatus',
'OperationDirection',
'NameAvailabilityReason',
'ProgressType',
]
Loading

0 comments on commit 8910810

Please sign in to comment.