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 property pendingReplicationOperationsCount to GeoDR and Migration #2824

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
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class ArmDisasterRecovery(Resource):
'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'
:vartype provisioning_state: str or
~azure.mgmt.servicebus.models.ProvisioningStateDR
:ivar pending_replication_operations_count: Number of entities pending to
be replicated.
:vartype pending_replication_operations_count: long
:param partner_namespace: ARM Id of the Primary/Secondary eventhub
namespace name, which is part of GEO DR pairning
:type partner_namespace: str
Expand All @@ -47,6 +50,7 @@ class ArmDisasterRecovery(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'pending_replication_operations_count': {'readonly': True},
'role': {'readonly': True},
}

Expand All @@ -55,6 +59,7 @@ class ArmDisasterRecovery(Resource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'ProvisioningStateDR'},
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount ', 'type': 'long'},
'partner_namespace': {'key': 'properties.partnerNamespace', 'type': 'str'},
'alternate_name': {'key': 'properties.alternateName', 'type': 'str'},
'role': {'key': 'properties.role', 'type': 'RoleDisasterRecovery'},
Expand All @@ -63,6 +68,7 @@ class ArmDisasterRecovery(Resource):
def __init__(self, **kwargs):
super(ArmDisasterRecovery, self).__init__(**kwargs)
self.provisioning_state = None
self.pending_replication_operations_count = None
self.partner_namespace = kwargs.get('partner_namespace', None)
self.alternate_name = kwargs.get('alternate_name', None)
self.role = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class ArmDisasterRecovery(Resource):
Expand All @@ -30,6 +30,9 @@ class ArmDisasterRecovery(Resource):
'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'
:vartype provisioning_state: str or
~azure.mgmt.servicebus.models.ProvisioningStateDR
:ivar pending_replication_operations_count: Number of entities pending to
be replicated.
:vartype pending_replication_operations_count: long
:param partner_namespace: ARM Id of the Primary/Secondary eventhub
namespace name, which is part of GEO DR pairning
:type partner_namespace: str
Expand All @@ -47,6 +50,7 @@ class ArmDisasterRecovery(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'pending_replication_operations_count': {'readonly': True},
'role': {'readonly': True},
}

Expand All @@ -55,6 +59,7 @@ class ArmDisasterRecovery(Resource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'ProvisioningStateDR'},
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount ', 'type': 'long'},
'partner_namespace': {'key': 'properties.partnerNamespace', 'type': 'str'},
'alternate_name': {'key': 'properties.alternateName', 'type': 'str'},
'role': {'key': 'properties.role', 'type': 'RoleDisasterRecovery'},
Expand All @@ -63,6 +68,7 @@ class ArmDisasterRecovery(Resource):
def __init__(self, *, partner_namespace: str=None, alternate_name: str=None, **kwargs) -> None:
super(ArmDisasterRecovery, self).__init__(**kwargs)
self.provisioning_state = None
self.pending_replication_operations_count = None
self.partner_namespace = partner_namespace
self.alternate_name = alternate_name
self.role = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class Eventhub(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class MigrationConfigProperties(Resource):
:vartype type: str
:ivar provisioning_state: Provisioning state of Migration Configuration
:vartype provisioning_state: str
:ivar pending_replication_operations_count: Number of entities pending to
be replicated.
:vartype pending_replication_operations_count: long
:param target_namespace: Required. Existing premium Namespace ARM Id name
which has no entities, will be used for migration
:type target_namespace: str
Expand All @@ -41,6 +44,7 @@ class MigrationConfigProperties(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'pending_replication_operations_count': {'readonly': True},
'target_namespace': {'required': True},
'post_migration_name': {'required': True},
}
Expand All @@ -50,12 +54,14 @@ class MigrationConfigProperties(Resource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount ', 'type': 'long'},
'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'},
'post_migration_name': {'key': 'properties.postMigrationName', 'type': 'str'},
}

def __init__(self, **kwargs):
super(MigrationConfigProperties, self).__init__(**kwargs)
self.provisioning_state = None
self.pending_replication_operations_count = None
self.target_namespace = kwargs.get('target_namespace', None)
self.post_migration_name = kwargs.get('post_migration_name', None)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class MigrationConfigProperties(Resource):
Expand All @@ -28,6 +28,9 @@ class MigrationConfigProperties(Resource):
:vartype type: str
:ivar provisioning_state: Provisioning state of Migration Configuration
:vartype provisioning_state: str
:ivar pending_replication_operations_count: Number of entities pending to
be replicated.
:vartype pending_replication_operations_count: long
:param target_namespace: Required. Existing premium Namespace ARM Id name
which has no entities, will be used for migration
:type target_namespace: str
Expand All @@ -41,6 +44,7 @@ class MigrationConfigProperties(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'pending_replication_operations_count': {'readonly': True},
'target_namespace': {'required': True},
'post_migration_name': {'required': True},
}
Expand All @@ -50,12 +54,14 @@ class MigrationConfigProperties(Resource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount ', 'type': 'long'},
'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'},
'post_migration_name': {'key': 'properties.postMigrationName', 'type': 'str'},
}

def __init__(self, *, target_namespace: str, post_migration_name: str, **kwargs) -> None:
super(MigrationConfigProperties, self).__init__(**kwargs)
self.provisioning_state = None
self.pending_replication_operations_count = None
self.target_namespace = target_namespace
self.post_migration_name = post_migration_name
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource_namespace_patch import ResourceNamespacePatch
from .resource_namespace_patch_py3 import ResourceNamespacePatch


class PremiumMessagingRegions(ResourceNamespacePatch):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class ResourceNamespacePatch(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class Rule(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class SBAuthorizationRule(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .tracked_resource import TrackedResource
from .tracked_resource_py3 import TrackedResource


class SBNamespace(TrackedResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource_namespace_patch import ResourceNamespacePatch
from .resource_namespace_patch_py3 import ResourceNamespacePatch


class SBNamespaceUpdateParameters(ResourceNamespacePatch):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class SBQueue(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class SBSubscription(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class SBTopic(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .action import Action
from .action_py3 import Action


class SqlRuleAction(Action):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class TrackedResource(Resource):
Expand Down