Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR servicebus/resource-manager] ServiceBus: Added read-only property migrationState to MigrationConfig #3435

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion azure-mgmt-servicebus/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include *.rst
include azure_bdist_wheel.py
2 changes: 1 addition & 1 deletion azure-mgmt-servicebus/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-servicebus/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class MigrationConfigProperties(Resource):
:param post_migration_name: Required. Name to access Standard Namespace
after migration
:type post_migration_name: str
:ivar migration_state: State in which Standard to Premium Migration is,
possible values : Unknown, Reverting, Completing, Initiating, Syncing,
Active
:vartype migration_state: str
"""

_validation = {
Expand All @@ -47,6 +51,7 @@ class MigrationConfigProperties(Resource):
'pending_replication_operations_count': {'readonly': True},
'target_namespace': {'required': True},
'post_migration_name': {'required': True},
'migration_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -57,6 +62,7 @@ class MigrationConfigProperties(Resource):
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount', 'type': 'long'},
'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'},
'post_migration_name': {'key': 'properties.postMigrationName', 'type': 'str'},
'migration_state': {'key': 'properties.migrationState', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -65,3 +71,4 @@ def __init__(self, **kwargs):
self.pending_replication_operations_count = None
self.target_namespace = kwargs.get('target_namespace', None)
self.post_migration_name = kwargs.get('post_migration_name', None)
self.migration_state = None
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class MigrationConfigProperties(Resource):
:param post_migration_name: Required. Name to access Standard Namespace
after migration
:type post_migration_name: str
:ivar migration_state: State in which Standard to Premium Migration is,
possible values : Unknown, Reverting, Completing, Initiating, Syncing,
Active
:vartype migration_state: str
"""

_validation = {
Expand All @@ -47,6 +51,7 @@ class MigrationConfigProperties(Resource):
'pending_replication_operations_count': {'readonly': True},
'target_namespace': {'required': True},
'post_migration_name': {'required': True},
'migration_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -57,6 +62,7 @@ class MigrationConfigProperties(Resource):
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount', 'type': 'long'},
'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'},
'post_migration_name': {'key': 'properties.postMigrationName', 'type': 'str'},
'migration_state': {'key': 'properties.migrationState', 'type': 'str'},
}

def __init__(self, *, target_namespace: str, post_migration_name: str, **kwargs) -> None:
Expand All @@ -65,3 +71,4 @@ def __init__(self, *, target_namespace: str, post_migration_name: str, **kwargs)
self.pending_replication_operations_count = None
self.target_namespace = target_namespace
self.post_migration_name = post_migration_name
self.migration_state = None
54 changes: 0 additions & 54 deletions azure-mgmt-servicebus/azure_bdist_wheel.py

This file was deleted.

1 change: 0 additions & 1 deletion azure-mgmt-servicebus/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[bdist_wheel]
universal=1
azure-namespace-package=azure-mgmt-nspkg
17 changes: 9 additions & 8 deletions azure-mgmt-servicebus/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
import os.path
from io import open
from setuptools import find_packages, setup
try:
from azure_bdist_wheel import cmdclass
except ImportError:
from distutils import log as logger
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

# Change the PACKAGE_NAME only to change folder and different name
PACKAGE_NAME = "azure-mgmt-servicebus"
Expand Down Expand Up @@ -76,11 +70,18 @@
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
packages=find_packages(exclude=["tests"]),
packages=find_packages(exclude=[
'tests',
# Exclude packages that will be covered by PEP420 or nspkg
'azure',
'azure.mgmt',
]),
install_requires=[
'msrest>=0.5.0',
'msrestazure>=0.4.32,<2.0.0',
'azure-common~=1.1',
],
cmdclass=cmdclass
extras_require={
":python_version<'3.0'": ['azure-mgmt-nspkg'],
}
)