Skip to content

Commit 35f3e8b

Browse files
authored
[AutoPR servicebus/resource-manager] ServiceBus: Added read-only property migrationState to MigrationConfig (#3435)
* Generated from 9a98bac6ece54a9768cde679cb75741e9ccd993f Added readonly property migrationState to MigrationConfig * Packaging update of azure-mgmt-servicebus
1 parent bb3efff commit 35f3e8b

File tree

8 files changed

+25
-66
lines changed

8 files changed

+25
-66
lines changed

azure-mgmt-servicebus/MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
include *.rst
2-
include azure_bdist_wheel.py
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__import__('pkg_resources').declare_namespace(__name__)
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__import__('pkg_resources').declare_namespace(__name__)
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

azure-mgmt-servicebus/azure/mgmt/servicebus/models/migration_config_properties.py

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ class MigrationConfigProperties(Resource):
3737
:param post_migration_name: Required. Name to access Standard Namespace
3838
after migration
3939
:type post_migration_name: str
40+
:ivar migration_state: State in which Standard to Premium Migration is,
41+
possible values : Unknown, Reverting, Completing, Initiating, Syncing,
42+
Active
43+
:vartype migration_state: str
4044
"""
4145

4246
_validation = {
@@ -47,6 +51,7 @@ class MigrationConfigProperties(Resource):
4751
'pending_replication_operations_count': {'readonly': True},
4852
'target_namespace': {'required': True},
4953
'post_migration_name': {'required': True},
54+
'migration_state': {'readonly': True},
5055
}
5156

5257
_attribute_map = {
@@ -57,6 +62,7 @@ class MigrationConfigProperties(Resource):
5762
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount', 'type': 'long'},
5863
'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'},
5964
'post_migration_name': {'key': 'properties.postMigrationName', 'type': 'str'},
65+
'migration_state': {'key': 'properties.migrationState', 'type': 'str'},
6066
}
6167

6268
def __init__(self, **kwargs):
@@ -65,3 +71,4 @@ def __init__(self, **kwargs):
6571
self.pending_replication_operations_count = None
6672
self.target_namespace = kwargs.get('target_namespace', None)
6773
self.post_migration_name = kwargs.get('post_migration_name', None)
74+
self.migration_state = None

azure-mgmt-servicebus/azure/mgmt/servicebus/models/migration_config_properties_py3.py

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ class MigrationConfigProperties(Resource):
3737
:param post_migration_name: Required. Name to access Standard Namespace
3838
after migration
3939
:type post_migration_name: str
40+
:ivar migration_state: State in which Standard to Premium Migration is,
41+
possible values : Unknown, Reverting, Completing, Initiating, Syncing,
42+
Active
43+
:vartype migration_state: str
4044
"""
4145

4246
_validation = {
@@ -47,6 +51,7 @@ class MigrationConfigProperties(Resource):
4751
'pending_replication_operations_count': {'readonly': True},
4852
'target_namespace': {'required': True},
4953
'post_migration_name': {'required': True},
54+
'migration_state': {'readonly': True},
5055
}
5156

5257
_attribute_map = {
@@ -57,6 +62,7 @@ class MigrationConfigProperties(Resource):
5762
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount', 'type': 'long'},
5863
'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'},
5964
'post_migration_name': {'key': 'properties.postMigrationName', 'type': 'str'},
65+
'migration_state': {'key': 'properties.migrationState', 'type': 'str'},
6066
}
6167

6268
def __init__(self, *, target_namespace: str, post_migration_name: str, **kwargs) -> None:
@@ -65,3 +71,4 @@ def __init__(self, *, target_namespace: str, post_migration_name: str, **kwargs)
6571
self.pending_replication_operations_count = None
6672
self.target_namespace = target_namespace
6773
self.post_migration_name = post_migration_name
74+
self.migration_state = None

azure-mgmt-servicebus/azure_bdist_wheel.py

-54
This file was deleted.

azure-mgmt-servicebus/setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[bdist_wheel]
22
universal=1
3-
azure-namespace-package=azure-mgmt-nspkg

azure-mgmt-servicebus/setup.py

+9-8
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
import os.path
1111
from io import open
1212
from setuptools import find_packages, setup
13-
try:
14-
from azure_bdist_wheel import cmdclass
15-
except ImportError:
16-
from distutils import log as logger
17-
logger.warn("Wheel is not available, disabling bdist_wheel hook")
18-
cmdclass = {}
1913

2014
# Change the PACKAGE_NAME only to change folder and different name
2115
PACKAGE_NAME = "azure-mgmt-servicebus"
@@ -76,11 +70,18 @@
7670
'License :: OSI Approved :: MIT License',
7771
],
7872
zip_safe=False,
79-
packages=find_packages(exclude=["tests"]),
73+
packages=find_packages(exclude=[
74+
'tests',
75+
# Exclude packages that will be covered by PEP420 or nspkg
76+
'azure',
77+
'azure.mgmt',
78+
]),
8079
install_requires=[
8180
'msrest>=0.5.0',
8281
'msrestazure>=0.4.32,<2.0.0',
8382
'azure-common~=1.1',
8483
],
85-
cmdclass=cmdclass
84+
extras_require={
85+
":python_version<'3.0'": ['azure-mgmt-nspkg'],
86+
}
8687
)

0 commit comments

Comments
 (0)