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

[ReleasePR azure-mgmt-servicebus] add apitestErrorCode doc #15803

Closed
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 @@ -16,16 +16,16 @@
from .operations import NamespacesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import Operations
from .operations import DisasterRecoveryConfigsOperations
from .operations import QueuesOperations
from .operations import TopicsOperations
from .operations import DisasterRecoveryConfigsOperations
from .operations import EventHubsOperations
from .operations import MigrationConfigsOperations
from .operations import PremiumMessagingRegionsOperations
from .operations import RegionsOperations
from .operations import SubscriptionsOperations
from .operations import RulesOperations
from .operations import Operations
from . import models


Expand All @@ -41,14 +41,12 @@ class ServiceBusManagementClient(SDKClient):
:vartype private_endpoint_connections: azure.mgmt.servicebus.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.servicebus.operations.PrivateLinkResourcesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.servicebus.operations.Operations
:ivar disaster_recovery_configs: DisasterRecoveryConfigs operations
:vartype disaster_recovery_configs: azure.mgmt.servicebus.operations.DisasterRecoveryConfigsOperations
:ivar queues: Queues operations
:vartype queues: azure.mgmt.servicebus.operations.QueuesOperations
:ivar topics: Topics operations
:vartype topics: azure.mgmt.servicebus.operations.TopicsOperations
:ivar disaster_recovery_configs: DisasterRecoveryConfigs operations
:vartype disaster_recovery_configs: azure.mgmt.servicebus.operations.DisasterRecoveryConfigsOperations
:ivar event_hubs: EventHubs operations
:vartype event_hubs: azure.mgmt.servicebus.operations.EventHubsOperations
:ivar migration_configs: MigrationConfigs operations
Expand All @@ -61,6 +59,8 @@ class ServiceBusManagementClient(SDKClient):
:vartype subscriptions: azure.mgmt.servicebus.operations.SubscriptionsOperations
:ivar rules: Rules operations
:vartype rules: azure.mgmt.servicebus.operations.RulesOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.servicebus.operations.Operations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -79,6 +79,7 @@ def __init__(
super(ServiceBusManagementClient, 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 = '2018-01-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -88,14 +89,12 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self.disaster_recovery_configs = DisasterRecoveryConfigsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.queues = QueuesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.topics = TopicsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.disaster_recovery_configs = DisasterRecoveryConfigsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.event_hubs = EventHubsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.migration_configs = MigrationConfigsOperations(
Expand All @@ -108,3 +107,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.rules = RulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import ErrorResponseError
from ._models_py3 import Eventhub
from ._models_py3 import FailoverProperties
from ._models_py3 import Identity
from ._models_py3 import IpFilterRule
from ._models_py3 import KeyVaultProperties
Expand Down Expand Up @@ -72,6 +73,7 @@
from ._models import ErrorResponse, ErrorResponseException
from ._models import ErrorResponseError
from ._models import Eventhub
from ._models import FailoverProperties
from ._models import Identity
from ._models import IpFilterRule
from ._models import KeyVaultProperties
Expand Down Expand Up @@ -109,6 +111,7 @@
from ._paged_models import EventhubPaged
from ._paged_models import IpFilterRulePaged
from ._paged_models import MigrationConfigPropertiesPaged
from ._paged_models import NetworkRuleSetPaged
from ._paged_models import OperationPaged
from ._paged_models import PremiumMessagingRegionsPaged
from ._paged_models import PrivateEndpointConnectionPaged
Expand All @@ -123,19 +126,19 @@
IPAction,
SkuName,
SkuTier,
KeySource,
IdentityType,
KeySource,
PrivateLinkConnectionStatus,
EndPointProvisioningState,
NetworkRuleIPAction,
DefaultAction,
AccessRights,
KeyType,
UnavailableReason,
ProvisioningStateDR,
RoleDisasterRecovery,
EntityStatus,
EncodingCaptureDescription,
NetworkRuleIPAction,
DefaultAction,
NameSpaceType,
FilterType,
)
Expand All @@ -155,6 +158,7 @@
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseError',
'Eventhub',
'FailoverProperties',
'Identity',
'IpFilterRule',
'KeyVaultProperties',
Expand Down Expand Up @@ -192,32 +196,33 @@
'SBNamespacePaged',
'VirtualNetworkRulePaged',
'SBAuthorizationRulePaged',
'NetworkRuleSetPaged',
'PrivateEndpointConnectionPaged',
'OperationPaged',
'ArmDisasterRecoveryPaged',
'SBQueuePaged',
'SBTopicPaged',
'ArmDisasterRecoveryPaged',
'EventhubPaged',
'MigrationConfigPropertiesPaged',
'PremiumMessagingRegionsPaged',
'SBSubscriptionPaged',
'RulePaged',
'OperationPaged',
'IPAction',
'SkuName',
'SkuTier',
'KeySource',
'IdentityType',
'KeySource',
'PrivateLinkConnectionStatus',
'EndPointProvisioningState',
'NetworkRuleIPAction',
'DefaultAction',
'AccessRights',
'KeyType',
'UnavailableReason',
'ProvisioningStateDR',
'RoleDisasterRecovery',
'EntityStatus',
'EncodingCaptureDescription',
'NetworkRuleIPAction',
'DefaultAction',
'NameSpaceType',
'FilterType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,24 @@ def __init__(self, **kwargs):
self.capture_description = kwargs.get('capture_description', None)


class FailoverProperties(Model):
"""Safe failover is to indicate the service should wait for pending
replication to finish before switching to the secondary.

:param is_safe_failover: Safe failover is to indicate the service should
wait for pending replication to finish before switching to the secondary.
:type is_safe_failover: bool
"""

_attribute_map = {
'is_safe_failover': {'key': 'properties.IsSafeFailover', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(FailoverProperties, self).__init__(**kwargs)
self.is_safe_failover = kwargs.get('is_safe_failover', None)


class Identity(Model):
"""Properties to configure Identity for Bring your Own Keys.

Expand Down Expand Up @@ -805,7 +823,7 @@ def __init__(self, **kwargs):


class NetworkRuleSet(Resource):
"""Description of topic resource.
"""Description of NetworkRuleSet resource.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -849,11 +867,12 @@ def __init__(self, **kwargs):


class NWRuleSetIpRules(Model):
"""The response from the List namespace operation.
"""Description of NetWorkRuleSet - IpRules resource.

:param ip_mask: IP Mask
:type ip_mask: str
:param action: The IP Filter Action. Possible values include: 'Allow'
:param action: The IP Filter Action. Possible values include: 'Allow'.
Default value: "Allow" .
:type action: str or ~azure.mgmt.servicebus.models.NetworkRuleIPAction
"""

Expand All @@ -865,16 +884,16 @@ class NWRuleSetIpRules(Model):
def __init__(self, **kwargs):
super(NWRuleSetIpRules, self).__init__(**kwargs)
self.ip_mask = kwargs.get('ip_mask', None)
self.action = kwargs.get('action', None)
self.action = kwargs.get('action', "Allow")


class NWRuleSetVirtualNetworkRules(Model):
"""The response from the List namespace operation.
"""Description of VirtualNetworkRules - NetworkRules resource.

:param subnet: Subnet properties
:type subnet: ~azure.mgmt.servicebus.models.Subnet
:param ignore_missing_vnet_service_endpoint: Value that indicates whether
to ignore missing Vnet Service Endpoint
to ignore missing VNet Service Endpoint
:type ignore_missing_vnet_service_endpoint: bool
"""

Expand Down Expand Up @@ -1352,6 +1371,8 @@ class SBNamespace(TrackedResource):
:type tags: dict[str, str]
:param sku: Properties of SKU
:type sku: ~azure.mgmt.servicebus.models.SBSku
:param identity: Properties of BYOK Identity description
:type identity: ~azure.mgmt.servicebus.models.Identity
:ivar provisioning_state: Provisioning state of the namespace.
:vartype provisioning_state: str
:ivar created_at: The time the namespace was created
Expand Down Expand Up @@ -1389,6 +1410,7 @@ class SBNamespace(TrackedResource):
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'SBSku'},
'identity': {'key': 'identity', 'type': 'Identity'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'},
'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'},
Expand All @@ -1401,6 +1423,7 @@ class SBNamespace(TrackedResource):
def __init__(self, **kwargs):
super(SBNamespace, self).__init__(**kwargs)
self.sku = kwargs.get('sku', None)
self.identity = kwargs.get('identity', None)
self.provisioning_state = None
self.created_at = None
self.updated_at = None
Expand Down Expand Up @@ -1987,10 +2010,16 @@ def __init__(self, **kwargs):
class Subnet(Model):
"""Properties supplied for Subnet.

:param id: Resource ID of Virtual Network Subnet
All required parameters must be populated in order to send to Azure.

:param id: Required. Resource ID of Virtual Network Subnet
:type id: str
"""

_validation = {
'id': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}
Expand Down
Loading