Skip to content

Commit

Permalink
[AutoPR servicebus/resource-manager] ServiceBus: added NetworkRuleSet…
Browse files Browse the repository at this point in the history
…s list API (#6966)

* Generated from 26fbb00e498d34206afb040c7c9eb7b79fa3fd5e

added NetworkRuleSets list API

* Packaging update of azure-mgmt-servicebus

* Generated from 87e06617e7103a97295b2fe25f4a47990371b397

added x-ms-pageable and formating

* Generated from 2f83e3fb7917b9f6301fea15cf45e3e3fbeac7bb

removed readonly for compatibilityLevel
  • Loading branch information
AutorestCI authored Sep 11, 2019
1 parent 6f0b759 commit a6cc1da
Show file tree
Hide file tree
Showing 105 changed files with 3,956 additions and 4,800 deletions.
2 changes: 1 addition & 1 deletion sdk/servicebus/azure-mgmt-servicebus/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Service Bus Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .service_bus_management_client import ServiceBusManagementClient
from .version import VERSION
from ._configuration import ServiceBusManagementClientConfiguration
from ._service_bus_management_client import ServiceBusManagementClient
__all__ = ['ServiceBusManagementClient', 'ServiceBusManagementClientConfiguration']

__all__ = ['ServiceBusManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class ServiceBusManagementClientConfiguration(AzureConfiguration):
"""Configuration for ServiceBusManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials that uniquely identify a
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(ServiceBusManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-servicebus/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -11,54 +11,20 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.operations import Operations
from .operations.namespaces_operations import NamespacesOperations
from .operations.disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations
from .operations.migration_configs_operations import MigrationConfigsOperations
from .operations.queues_operations import QueuesOperations
from .operations.topics_operations import TopicsOperations
from .operations.subscriptions_operations import SubscriptionsOperations
from .operations.rules_operations import RulesOperations
from .operations.regions_operations import RegionsOperations
from .operations.premium_messaging_regions_operations import PremiumMessagingRegionsOperations
from .operations.event_hubs_operations import EventHubsOperations
from . import models


class ServiceBusManagementClientConfiguration(AzureConfiguration):
"""Configuration for ServiceBusManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Subscription credentials that uniquely identify a
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(ServiceBusManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-servicebus/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import ServiceBusManagementClientConfiguration
from .operations import Operations
from .operations import NamespacesOperations
from .operations import DisasterRecoveryConfigsOperations
from .operations import MigrationConfigsOperations
from .operations import QueuesOperations
from .operations import TopicsOperations
from .operations import SubscriptionsOperations
from .operations import RulesOperations
from .operations import RegionsOperations
from .operations import PremiumMessagingRegionsOperations
from .operations import EventHubsOperations
from . import models


class ServiceBusManagementClient(SDKClient):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,91 +10,92 @@
# --------------------------------------------------------------------------

try:
from .tracked_resource_py3 import TrackedResource
from .resource_py3 import Resource
from .resource_namespace_patch_py3 import ResourceNamespacePatch
from .sb_sku_py3 import SBSku
from .sb_namespace_py3 import SBNamespace
from .sb_namespace_update_parameters_py3 import SBNamespaceUpdateParameters
from .sb_namespace_migrate_py3 import SBNamespaceMigrate
from .sb_authorization_rule_py3 import SBAuthorizationRule
from .authorization_rule_properties_py3 import AuthorizationRuleProperties
from .access_keys_py3 import AccessKeys
from .regenerate_access_key_parameters_py3 import RegenerateAccessKeyParameters
from .message_count_details_py3 import MessageCountDetails
from .sb_queue_py3 import SBQueue
from .sb_topic_py3 import SBTopic
from .sb_subscription_py3 import SBSubscription
from .check_name_availability_py3 import CheckNameAvailability
from .check_name_availability_result_py3 import CheckNameAvailabilityResult
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .action_py3 import Action
from .sql_filter_py3 import SqlFilter
from .correlation_filter_py3 import CorrelationFilter
from .rule_py3 import Rule
from .sql_rule_action_py3 import SqlRuleAction
from .premium_messaging_regions_properties_py3 import PremiumMessagingRegionsProperties
from .premium_messaging_regions_py3 import PremiumMessagingRegions
from .destination_py3 import Destination
from .capture_description_py3 import CaptureDescription
from .eventhub_py3 import Eventhub
from .arm_disaster_recovery_py3 import ArmDisasterRecovery
from .migration_config_properties_py3 import MigrationConfigProperties
from .subnet_py3 import Subnet
from .nw_rule_set_ip_rules_py3 import NWRuleSetIpRules
from .nw_rule_set_virtual_network_rules_py3 import NWRuleSetVirtualNetworkRules
from .network_rule_set_py3 import NetworkRuleSet
from ._models_py3 import AccessKeys
from ._models_py3 import Action
from ._models_py3 import ArmDisasterRecovery
from ._models_py3 import AuthorizationRuleProperties
from ._models_py3 import CaptureDescription
from ._models_py3 import CheckNameAvailability
from ._models_py3 import CheckNameAvailabilityResult
from ._models_py3 import CorrelationFilter
from ._models_py3 import Destination
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import Eventhub
from ._models_py3 import MessageCountDetails
from ._models_py3 import MigrationConfigProperties
from ._models_py3 import NetworkRuleSet
from ._models_py3 import NWRuleSetIpRules
from ._models_py3 import NWRuleSetVirtualNetworkRules
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import PremiumMessagingRegions
from ._models_py3 import PremiumMessagingRegionsProperties
from ._models_py3 import RegenerateAccessKeyParameters
from ._models_py3 import Resource
from ._models_py3 import ResourceNamespacePatch
from ._models_py3 import Rule
from ._models_py3 import SBAuthorizationRule
from ._models_py3 import SBNamespace
from ._models_py3 import SBNamespaceMigrate
from ._models_py3 import SBNamespaceUpdateParameters
from ._models_py3 import SBQueue
from ._models_py3 import SBSku
from ._models_py3 import SBSubscription
from ._models_py3 import SBTopic
from ._models_py3 import SqlFilter
from ._models_py3 import SqlRuleAction
from ._models_py3 import Subnet
from ._models_py3 import TrackedResource
except (SyntaxError, ImportError):
from .tracked_resource import TrackedResource
from .resource import Resource
from .resource_namespace_patch import ResourceNamespacePatch
from .sb_sku import SBSku
from .sb_namespace import SBNamespace
from .sb_namespace_update_parameters import SBNamespaceUpdateParameters
from .sb_namespace_migrate import SBNamespaceMigrate
from .sb_authorization_rule import SBAuthorizationRule
from .authorization_rule_properties import AuthorizationRuleProperties
from .access_keys import AccessKeys
from .regenerate_access_key_parameters import RegenerateAccessKeyParameters
from .message_count_details import MessageCountDetails
from .sb_queue import SBQueue
from .sb_topic import SBTopic
from .sb_subscription import SBSubscription
from .check_name_availability import CheckNameAvailability
from .check_name_availability_result import CheckNameAvailabilityResult
from .operation_display import OperationDisplay
from .operation import Operation
from .error_response import ErrorResponse, ErrorResponseException
from .action import Action
from .sql_filter import SqlFilter
from .correlation_filter import CorrelationFilter
from .rule import Rule
from .sql_rule_action import SqlRuleAction
from .premium_messaging_regions_properties import PremiumMessagingRegionsProperties
from .premium_messaging_regions import PremiumMessagingRegions
from .destination import Destination
from .capture_description import CaptureDescription
from .eventhub import Eventhub
from .arm_disaster_recovery import ArmDisasterRecovery
from .migration_config_properties import MigrationConfigProperties
from .subnet import Subnet
from .nw_rule_set_ip_rules import NWRuleSetIpRules
from .nw_rule_set_virtual_network_rules import NWRuleSetVirtualNetworkRules
from .network_rule_set import NetworkRuleSet
from .operation_paged import OperationPaged
from .sb_namespace_paged import SBNamespacePaged
from .sb_authorization_rule_paged import SBAuthorizationRulePaged
from .arm_disaster_recovery_paged import ArmDisasterRecoveryPaged
from .migration_config_properties_paged import MigrationConfigPropertiesPaged
from .sb_queue_paged import SBQueuePaged
from .sb_topic_paged import SBTopicPaged
from .sb_subscription_paged import SBSubscriptionPaged
from .rule_paged import RulePaged
from .premium_messaging_regions_paged import PremiumMessagingRegionsPaged
from .eventhub_paged import EventhubPaged
from .service_bus_management_client_enums import (
from ._models import AccessKeys
from ._models import Action
from ._models import ArmDisasterRecovery
from ._models import AuthorizationRuleProperties
from ._models import CaptureDescription
from ._models import CheckNameAvailability
from ._models import CheckNameAvailabilityResult
from ._models import CorrelationFilter
from ._models import Destination
from ._models import ErrorResponse, ErrorResponseException
from ._models import Eventhub
from ._models import MessageCountDetails
from ._models import MigrationConfigProperties
from ._models import NetworkRuleSet
from ._models import NWRuleSetIpRules
from ._models import NWRuleSetVirtualNetworkRules
from ._models import Operation
from ._models import OperationDisplay
from ._models import PremiumMessagingRegions
from ._models import PremiumMessagingRegionsProperties
from ._models import RegenerateAccessKeyParameters
from ._models import Resource
from ._models import ResourceNamespacePatch
from ._models import Rule
from ._models import SBAuthorizationRule
from ._models import SBNamespace
from ._models import SBNamespaceMigrate
from ._models import SBNamespaceUpdateParameters
from ._models import SBQueue
from ._models import SBSku
from ._models import SBSubscription
from ._models import SBTopic
from ._models import SqlFilter
from ._models import SqlRuleAction
from ._models import Subnet
from ._models import TrackedResource
from ._paged_models import ArmDisasterRecoveryPaged
from ._paged_models import EventhubPaged
from ._paged_models import MigrationConfigPropertiesPaged
from ._paged_models import NetworkRuleSetPaged
from ._paged_models import OperationPaged
from ._paged_models import PremiumMessagingRegionsPaged
from ._paged_models import RulePaged
from ._paged_models import SBAuthorizationRulePaged
from ._paged_models import SBNamespacePaged
from ._paged_models import SBQueuePaged
from ._paged_models import SBSubscriptionPaged
from ._paged_models import SBTopicPaged
from ._service_bus_management_client_enums import (
SkuName,
SkuTier,
NameSpaceType,
Expand All @@ -111,45 +112,46 @@
)

__all__ = [
'TrackedResource',
'Resource',
'ResourceNamespacePatch',
'SBSku',
'SBNamespace',
'SBNamespaceUpdateParameters',
'SBNamespaceMigrate',
'SBAuthorizationRule',
'AuthorizationRuleProperties',
'AccessKeys',
'RegenerateAccessKeyParameters',
'MessageCountDetails',
'SBQueue',
'SBTopic',
'SBSubscription',
'Action',
'ArmDisasterRecovery',
'AuthorizationRuleProperties',
'CaptureDescription',
'CheckNameAvailability',
'CheckNameAvailabilityResult',
'OperationDisplay',
'Operation',
'ErrorResponse', 'ErrorResponseException',
'Action',
'SqlFilter',
'CorrelationFilter',
'Rule',
'SqlRuleAction',
'PremiumMessagingRegionsProperties',
'PremiumMessagingRegions',
'Destination',
'CaptureDescription',
'ErrorResponse', 'ErrorResponseException',
'Eventhub',
'ArmDisasterRecovery',
'MessageCountDetails',
'MigrationConfigProperties',
'Subnet',
'NetworkRuleSet',
'NWRuleSetIpRules',
'NWRuleSetVirtualNetworkRules',
'NetworkRuleSet',
'Operation',
'OperationDisplay',
'PremiumMessagingRegions',
'PremiumMessagingRegionsProperties',
'RegenerateAccessKeyParameters',
'Resource',
'ResourceNamespacePatch',
'Rule',
'SBAuthorizationRule',
'SBNamespace',
'SBNamespaceMigrate',
'SBNamespaceUpdateParameters',
'SBQueue',
'SBSku',
'SBSubscription',
'SBTopic',
'SqlFilter',
'SqlRuleAction',
'Subnet',
'TrackedResource',
'OperationPaged',
'SBNamespacePaged',
'SBAuthorizationRulePaged',
'NetworkRuleSetPaged',
'ArmDisasterRecoveryPaged',
'MigrationConfigPropertiesPaged',
'SBQueuePaged',
Expand Down
Loading

0 comments on commit a6cc1da

Please sign in to comment.