From 380f11ac7e03c08c68514b4d85df7ca5bf93748f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 26 Apr 2018 13:51:03 -0700 Subject: [PATCH] [AutoPR servicebus/resource-manager] Service Bus: added $skip and $top to list commands (#1704) * Generated from 8dcd1fb891075f38d26f230c0d3078629ba6b34f added $skip and $top to list commands * Generated from 69e26f29dd3395f76d8b5cc8852f25506e9d7697 removed skip and top for namespaces --- .../mgmt/2015-08-01/servicebus/namespaces.go | 78 ++++++------- .../mgmt/2015-08-01/servicebus/queues.go | 87 ++++++-------- .../2015-08-01/servicebus/subscriptions.go | 33 +++--- .../mgmt/2015-08-01/servicebus/topics.go | 87 ++++++-------- .../servicebus/disasterrecoveryconfigs.go | 73 +++++------- .../mgmt/2017-04-01/servicebus/eventhubs.go | 6 +- .../2017-04-01/servicebus/migrationconfigs.go | 37 +++--- .../mgmt/2017-04-01/servicebus/namespaces.go | 78 ++++++------- .../mgmt/2017-04-01/servicebus/queues.go | 110 +++++++++--------- .../mgmt/2017-04-01/servicebus/regions.go | 4 +- .../mgmt/2017-04-01/servicebus/rules.go | 68 ++++++----- .../2017-04-01/servicebus/subscriptions.go | 64 +++++----- .../mgmt/2017-04-01/servicebus/topics.go | 110 +++++++++--------- 13 files changed, 397 insertions(+), 438 deletions(-) diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go b/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go index a498476862eb..e5ce972da343 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/namespaces.go @@ -41,8 +41,8 @@ func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) Names } // CheckNameAvailabilityMethod check the give namespace name availability. -// Parameters: -// parameters - parameters to check availability of the given namespace name +// +// parameters is parameters to check availability of the given namespace name func (client NamespacesClient) CheckNameAvailabilityMethod(ctx context.Context, parameters CheckNameAvailability) (result CheckNameAvailabilityResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -114,10 +114,9 @@ func (client NamespacesClient) CheckNameAvailabilityMethodResponder(resp *http.R // CreateOrUpdate creates or updates a service namespace. Once created, this namespace's resource manifest is // immutable. This operation is idempotent. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name. -// parameters - parameters supplied to create a namespace resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name. parameters is parameters supplied to create a namespace resource. func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceCreateOrUpdateParameters) (result NamespacesCreateOrUpdateFuture, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -195,11 +194,9 @@ func (client NamespacesClient) CreateOrUpdateResponder(resp *http.Response) (res } // CreateOrUpdateAuthorizationRule creates or updates an authorization rule for a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. -// parameters - the shared access authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. parameters is the shared access authorization rule. func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -283,9 +280,9 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *ht } // Delete deletes an existing namespace. This operation also removes all associated resources under the namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client NamespacesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespacesDeleteFuture, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -361,10 +358,9 @@ func (client NamespacesClient) DeleteResponder(resp *http.Response) (result auto } // DeleteAuthorizationRule deletes a namespace authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -442,9 +438,9 @@ func (client NamespacesClient) DeleteAuthorizationRuleResponder(resp *http.Respo } // Get gets a description for the specified namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespaceResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -519,10 +515,9 @@ func (client NamespacesClient) GetResponder(resp *http.Response) (result Namespa } // GetAuthorizationRule gets an authorization rule for a namespace by rule name. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -601,9 +596,9 @@ func (client NamespacesClient) GetAuthorizationRuleResponder(resp *http.Response } // ListAuthorizationRules gets the authorization rules for a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -706,8 +701,8 @@ func (client NamespacesClient) ListAuthorizationRulesComplete(ctx context.Contex } // ListByResourceGroup gets the available namespaces within a resource group. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. +// +// resourceGroupName is name of the Resource group within the Azure subscription. func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result NamespaceListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -896,10 +891,9 @@ func (client NamespacesClient) ListBySubscriptionComplete(ctx context.Context) ( } // ListKeys gets the primary and secondary connection strings for the namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result ResourceListKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -978,11 +972,10 @@ func (client NamespacesClient) ListKeysResponder(resp *http.Response) (result Re } // RegenerateKeys regenerates the primary or secondary connection strings for the namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. -// parameters - parameters supplied to regenerate the authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. parameters is parameters supplied to regenerate the +// authorization rule. func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters RegenerateKeysParameters) (result ResourceListKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -1064,10 +1057,9 @@ func (client NamespacesClient) RegenerateKeysResponder(resp *http.Response) (res // Update updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is // idempotent. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// parameters - parameters supplied to update a namespace resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name parameters is parameters supplied to update a namespace resource. func (client NamespacesClient) Update(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceUpdateParameters) (result NamespaceResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/queues.go b/services/servicebus/mgmt/2015-08-01/servicebus/queues.go index e4ef96a481aa..58f303db7dcb 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/queues.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/queues.go @@ -41,11 +41,9 @@ func NewQueuesClientWithBaseURI(baseURI string, subscriptionID string) QueuesCli } // CreateOrUpdate creates or updates a Service Bus queue. This operation is idempotent. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// parameters - parameters supplied to create or update a queue resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. parameters is parameters supplied to create or update a queue resource. func (client QueuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, parameters QueueCreateOrUpdateParameters) (result QueueResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -128,12 +126,10 @@ func (client QueuesClient) CreateOrUpdateResponder(resp *http.Response) (result } // CreateOrUpdateAuthorizationRule creates an authorization rule for a queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. -// parameters - the shared access authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. parameters is the shared +// access authorization rule. func (client QueuesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -221,10 +217,9 @@ func (client QueuesClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.R } // Delete deletes a queue from the specified namespace in a resource group. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. func (client QueuesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, queueName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -302,11 +297,9 @@ func (client QueuesClient) DeleteResponder(resp *http.Response) (result autorest } // DeleteAuthorizationRule deletes a queue authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. func (client QueuesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -388,10 +381,9 @@ func (client QueuesClient) DeleteAuthorizationRuleResponder(resp *http.Response) } // Get returns a description for the specified queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. func (client QueuesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, queueName string) (result QueueResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -470,11 +462,9 @@ func (client QueuesClient) GetResponder(resp *http.Response) (result QueueResour } // GetAuthorizationRule gets an authorization rule for a queue by rule name. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. func (client QueuesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -557,9 +547,9 @@ func (client QueuesClient) GetAuthorizationRuleResponder(resp *http.Response) (r } // ListAll gets the queues within a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client QueuesClient) ListAll(ctx context.Context, resourceGroupName string, namespaceName string) (result QueueListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -662,10 +652,9 @@ func (client QueuesClient) ListAllComplete(ctx context.Context, resourceGroupNam } // ListAuthorizationRules gets all authorization rules for a queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. func (client QueuesClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, queueName string) (result SharedAccessAuthorizationRuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -772,11 +761,9 @@ func (client QueuesClient) ListAuthorizationRulesComplete(ctx context.Context, r } // ListKeys primary and secondary connection strings to the queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. func (client QueuesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string) (result ResourceListKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -859,11 +846,9 @@ func (client QueuesClient) ListKeysResponder(resp *http.Response) (result Resour } // PostAuthorizationRule gets an authorization rule for a queue by rule name. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. func (client QueuesClient) PostAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -946,12 +931,10 @@ func (client QueuesClient) PostAuthorizationRuleResponder(resp *http.Response) ( } // RegenerateKeys regenerates the primary or secondary connection strings to the queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. -// parameters - parameters supplied to regenerate the authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. parameters is parameters +// supplied to regenerate the authorization rule. func (client QueuesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, parameters RegenerateKeysParameters) (result ResourceListKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go b/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go index 0a9b1ed28f60..a059b48e0636 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/subscriptions.go @@ -41,12 +41,10 @@ func NewSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) Su } // CreateOrUpdate creates a topic subscription. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. -// parameters - parameters supplied to create a subscription resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. parameters is parameters supplied +// to create a subscription resource. func (client SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, parameters SubscriptionCreateOrUpdateParameters) (result SubscriptionResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -133,11 +131,9 @@ func (client SubscriptionsClient) CreateOrUpdateResponder(resp *http.Response) ( } // Delete deletes a subscription from the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. func (client SubscriptionsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -219,11 +215,9 @@ func (client SubscriptionsClient) DeleteResponder(resp *http.Response) (result a } // Get returns a subscription description for the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. func (client SubscriptionsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string) (result SubscriptionResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -306,10 +300,9 @@ func (client SubscriptionsClient) GetResponder(resp *http.Response) (result Subs } // ListAll list all the subscriptions under a specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. func (client SubscriptionsClient) ListAll(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result SubscriptionListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2015-08-01/servicebus/topics.go b/services/servicebus/mgmt/2015-08-01/servicebus/topics.go index c10e67429e19..bdd53bc94253 100644 --- a/services/servicebus/mgmt/2015-08-01/servicebus/topics.go +++ b/services/servicebus/mgmt/2015-08-01/servicebus/topics.go @@ -41,11 +41,9 @@ func NewTopicsClientWithBaseURI(baseURI string, subscriptionID string) TopicsCli } // CreateOrUpdate creates a topic in the specified namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// parameters - parameters supplied to create a topic resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. parameters is parameters supplied to create a topic resource. func (client TopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, parameters TopicCreateOrUpdateParameters) (result TopicResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -128,12 +126,10 @@ func (client TopicsClient) CreateOrUpdateResponder(resp *http.Response) (result } // CreateOrUpdateAuthorizationRule creates an authorizatio rule for the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. -// parameters - the shared access authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. parameters is the shared +// access authorization rule. func (client TopicsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -221,10 +217,9 @@ func (client TopicsClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.R } // Delete deletes a topic from the specified namespace and resource group. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. func (client TopicsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -302,11 +297,9 @@ func (client TopicsClient) DeleteResponder(resp *http.Response) (result autorest } // DeleteAuthorizationRule deletes a topic authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. func (client TopicsClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -388,10 +381,9 @@ func (client TopicsClient) DeleteAuthorizationRuleResponder(resp *http.Response) } // Get returns a description for the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result TopicResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -470,11 +462,9 @@ func (client TopicsClient) GetResponder(resp *http.Response) (result TopicResour } // GetAuthorizationRule returns the specified authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. func (client TopicsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -557,9 +547,9 @@ func (client TopicsClient) GetAuthorizationRuleResponder(resp *http.Response) (r } // ListAll gets all the topics in a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client TopicsClient) ListAll(ctx context.Context, resourceGroupName string, namespaceName string) (result TopicListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -662,10 +652,9 @@ func (client TopicsClient) ListAllComplete(ctx context.Context, resourceGroupNam } // ListAuthorizationRules gets authorization rules for a topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. func (client TopicsClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result SharedAccessAuthorizationRuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -772,11 +761,9 @@ func (client TopicsClient) ListAuthorizationRulesComplete(ctx context.Context, r } // ListKeys gets the primary and secondary connection strings for the topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. func (client TopicsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) (result ResourceListKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -859,11 +846,9 @@ func (client TopicsClient) ListKeysResponder(resp *http.Response) (result Resour } // PostAuthorizationRule returns the specified authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. func (client TopicsClient) PostAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -946,12 +931,10 @@ func (client TopicsClient) PostAuthorizationRuleResponder(resp *http.Response) ( } // RegenerateKeys regenerates primary or secondary connection strings for the topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. -// parameters - parameters supplied to regenerate the authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. parameters is parameters +// supplied to regenerate the authorization rule. func (client TopicsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, parameters RegenerateKeysParameters) (result ResourceListKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go b/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go index 5c5ea8b847e3..385acea7ea44 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/disasterrecoveryconfigs.go @@ -42,10 +42,9 @@ func NewDisasterRecoveryConfigsClientWithBaseURI(baseURI string, subscriptionID // BreakPairing this operation disables the Disaster Recovery and stops replicating changes from primary to secondary // namespaces -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name func (client DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, resourceGroupName string, namespaceName string, alias string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -123,10 +122,9 @@ func (client DisasterRecoveryConfigsClient) BreakPairingResponder(resp *http.Res } // CheckNameAvailabilityMethod check the give namespace name availability. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// parameters - parameters to check availability of the given namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name parameters is parameters to check availability of the given namespace name func (client DisasterRecoveryConfigsClient) CheckNameAvailabilityMethod(ctx context.Context, resourceGroupName string, namespaceName string, parameters CheckNameAvailability) (result CheckNameAvailabilityResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -205,11 +203,10 @@ func (client DisasterRecoveryConfigsClient) CheckNameAvailabilityMethodResponder } // CreateOrUpdate creates or updates a new Alias(Disaster Recovery configuration) -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name -// parameters - parameters required to create an Alias(Disaster Recovery configuration) +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name parameters is parameters required to create an +// Alias(Disaster Recovery configuration) func (client DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, alias string, parameters ArmDisasterRecovery) (result ArmDisasterRecovery, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -290,10 +287,9 @@ func (client DisasterRecoveryConfigsClient) CreateOrUpdateResponder(resp *http.R } // Delete deletes an Alias(Disaster Recovery configuration) -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name func (client DisasterRecoveryConfigsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, alias string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -371,10 +367,9 @@ func (client DisasterRecoveryConfigsClient) DeleteResponder(resp *http.Response) } // FailOver envokes GEO DR failover and reconfigure the alias to point to the secondary namespace -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name func (client DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resourceGroupName string, namespaceName string, alias string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -452,10 +447,9 @@ func (client DisasterRecoveryConfigsClient) FailOverResponder(resp *http.Respons } // Get retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name func (client DisasterRecoveryConfigsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, alias string) (result ArmDisasterRecovery, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -534,11 +528,9 @@ func (client DisasterRecoveryConfigsClient) GetResponder(resp *http.Response) (r } // GetAuthorizationRule gets an authorization rule for a namespace by rule name. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name authorizationRuleName is the authorizationrule name. func (client DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, alias string, authorizationRuleName string) (result SBAuthorizationRule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -621,9 +613,9 @@ func (client DisasterRecoveryConfigsClient) GetAuthorizationRuleResponder(resp * } // List gets all Alias(Disaster Recovery configurations) -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client DisasterRecoveryConfigsClient) List(ctx context.Context, resourceGroupName string, namespaceName string) (result ArmDisasterRecoveryListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -726,10 +718,9 @@ func (client DisasterRecoveryConfigsClient) ListComplete(ctx context.Context, re } // ListAuthorizationRules gets the authorization rules for a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name func (client DisasterRecoveryConfigsClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, alias string) (result SBAuthorizationRuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -836,11 +827,9 @@ func (client DisasterRecoveryConfigsClient) ListAuthorizationRulesComplete(ctx c } // ListKeys gets the primary and secondary connection strings for the namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// alias - the Disaster Recovery configuration name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name alias is the Disaster Recovery configuration name authorizationRuleName is the authorizationrule name. func (client DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, alias string, authorizationRuleName string) (result AccessKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go b/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go index c0b9ea632162..c1cabbfc1027 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/eventhubs.go @@ -41,9 +41,9 @@ func NewEventHubsClientWithBaseURI(baseURI string, subscriptionID string) EventH } // ListByNamespace gets all the Event Hubs in a service bus Namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client EventHubsClient) ListByNamespace(ctx context.Context, resourceGroupName string, namespaceName string) (result EventHubListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go b/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go index cb865975dfda..77e55845d36a 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/migrationconfigs.go @@ -43,9 +43,9 @@ func NewMigrationConfigsClientWithBaseURI(baseURI string, subscriptionID string) // CompleteMigration this operation Completes Migration of entities by pointing the connection strings to Premium // namespace and any enties created after the operation will be under Premium Namespace. CompleteMigration operation // will fail when entity migration is in-progress. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client MigrationConfigsClient) CompleteMigration(ctx context.Context, resourceGroupName string, namespaceName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -121,10 +121,9 @@ func (client MigrationConfigsClient) CompleteMigrationResponder(resp *http.Respo // CreateAndStartMigration creates Migration configuration and starts migration of enties from Standard to Premium // namespace -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// parameters - parameters required to create Migration Configuration +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name parameters is parameters required to create Migration Configuration func (client MigrationConfigsClient) CreateAndStartMigration(ctx context.Context, resourceGroupName string, namespaceName string, parameters MigrationConfigProperties) (result MigrationConfigsCreateAndStartMigrationFuture, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -209,9 +208,9 @@ func (client MigrationConfigsClient) CreateAndStartMigrationResponder(resp *http } // Delete deletes a MigrationConfiguration -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client MigrationConfigsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -286,9 +285,9 @@ func (client MigrationConfigsClient) DeleteResponder(resp *http.Response) (resul } // Get retrieves Migration Config -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client MigrationConfigsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string) (result MigrationConfigProperties, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -364,9 +363,9 @@ func (client MigrationConfigsClient) GetResponder(resp *http.Response) (result M } // List gets all migrationConfigurations -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client MigrationConfigsClient) List(ctx context.Context, resourceGroupName string, namespaceName string) (result MigrationConfigListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -469,9 +468,9 @@ func (client MigrationConfigsClient) ListComplete(ctx context.Context, resourceG } // Revert this operation reverts Migration -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client MigrationConfigsClient) Revert(ctx context.Context, resourceGroupName string, namespaceName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go b/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go index 6ff40a7ffb13..9ccdc5e617c5 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/namespaces.go @@ -41,8 +41,8 @@ func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) Names } // CheckNameAvailabilityMethod check the give namespace name availability. -// Parameters: -// parameters - parameters to check availability of the given namespace name +// +// parameters is parameters to check availability of the given namespace name func (client NamespacesClient) CheckNameAvailabilityMethod(ctx context.Context, parameters CheckNameAvailability) (result CheckNameAvailabilityResult, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, @@ -114,10 +114,9 @@ func (client NamespacesClient) CheckNameAvailabilityMethodResponder(resp *http.R // CreateOrUpdate creates or updates a service namespace. Once created, this namespace's resource manifest is // immutable. This operation is idempotent. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name. -// parameters - parameters supplied to create a namespace resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name. parameters is parameters supplied to create a namespace resource. func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters SBNamespace) (result NamespacesCreateOrUpdateFuture, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -193,11 +192,9 @@ func (client NamespacesClient) CreateOrUpdateResponder(resp *http.Response) (res } // CreateOrUpdateAuthorizationRule creates or updates an authorization rule for a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. -// parameters - the shared access authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. parameters is the shared access authorization rule. func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SBAuthorizationRule) (result SBAuthorizationRule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -281,9 +278,9 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *ht } // Delete deletes an existing namespace. This operation also removes all associated resources under the namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client NamespacesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespacesDeleteFuture, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -359,10 +356,9 @@ func (client NamespacesClient) DeleteResponder(resp *http.Response) (result auto } // DeleteAuthorizationRule deletes a namespace authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -440,9 +436,9 @@ func (client NamespacesClient) DeleteAuthorizationRuleResponder(resp *http.Respo } // Get gets a description for the specified namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string) (result SBNamespace, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -517,10 +513,9 @@ func (client NamespacesClient) GetResponder(resp *http.Response) (result SBNames } // GetAuthorizationRule gets an authorization rule for a namespace by rule name. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result SBAuthorizationRule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -689,9 +684,9 @@ func (client NamespacesClient) ListComplete(ctx context.Context) (result SBNames } // ListAuthorizationRules gets the authorization rules for a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string) (result SBAuthorizationRuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -794,8 +789,8 @@ func (client NamespacesClient) ListAuthorizationRulesComplete(ctx context.Contex } // ListByResourceGroup gets the available namespaces within a resource group. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. +// +// resourceGroupName is name of the Resource group within the Azure subscription. func (client NamespacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result SBNamespaceListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -894,10 +889,9 @@ func (client NamespacesClient) ListByResourceGroupComplete(ctx context.Context, } // ListKeys gets the primary and secondary connection strings for the namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result AccessKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -976,11 +970,10 @@ func (client NamespacesClient) ListKeysResponder(resp *http.Response) (result Ac } // RegenerateKeys regenerates the primary or secondary connection strings for the namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// authorizationRuleName - the authorizationrule name. -// parameters - parameters supplied to regenerate the authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name authorizationRuleName is the authorizationrule name. parameters is parameters supplied to regenerate the +// authorization rule. func (client NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters) (result AccessKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -1062,10 +1055,9 @@ func (client NamespacesClient) RegenerateKeysResponder(resp *http.Response) (res // Update updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is // idempotent. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// parameters - parameters supplied to update a namespace resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name parameters is parameters supplied to update a namespace resource. func (client NamespacesClient) Update(ctx context.Context, resourceGroupName string, namespaceName string, parameters SBNamespaceUpdateParameters) (result SBNamespace, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/queues.go b/services/servicebus/mgmt/2017-04-01/servicebus/queues.go index 96e38fcd852a..ae350d9f38e4 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/queues.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/queues.go @@ -41,11 +41,9 @@ func NewQueuesClientWithBaseURI(baseURI string, subscriptionID string) QueuesCli } // CreateOrUpdate creates or updates a Service Bus queue. This operation is idempotent. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// parameters - parameters supplied to create or update a queue resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. parameters is parameters supplied to create or update a queue resource. func (client QueuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, parameters SBQueue) (result SBQueue, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -125,12 +123,10 @@ func (client QueuesClient) CreateOrUpdateResponder(resp *http.Response) (result } // CreateOrUpdateAuthorizationRule creates an authorization rule for a queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. -// parameters - the shared access authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. parameters is the shared +// access authorization rule. func (client QueuesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, parameters SBAuthorizationRule) (result SBAuthorizationRule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -217,10 +213,9 @@ func (client QueuesClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.R } // Delete deletes a queue from the specified namespace in a resource group. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. func (client QueuesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, queueName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -297,11 +292,9 @@ func (client QueuesClient) DeleteResponder(resp *http.Response) (result autorest } // DeleteAuthorizationRule deletes a queue authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. func (client QueuesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -382,10 +375,9 @@ func (client QueuesClient) DeleteAuthorizationRuleResponder(resp *http.Response) } // Get returns a description for the specified queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. func (client QueuesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, queueName string) (result SBQueue, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -463,11 +455,9 @@ func (client QueuesClient) GetResponder(resp *http.Response) (result SBQueue, er } // GetAuthorizationRule gets an authorization rule for a queue by rule name. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. func (client QueuesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string) (result SBAuthorizationRule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -549,10 +539,9 @@ func (client QueuesClient) GetAuthorizationRuleResponder(resp *http.Response) (r } // ListAuthorizationRules gets all authorization rules for a queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. func (client QueuesClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, queueName string) (result SBAuthorizationRuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -658,22 +647,35 @@ func (client QueuesClient) ListAuthorizationRulesComplete(ctx context.Context, r } // ListByNamespace gets the queues within a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -func (client QueuesClient) ListByNamespace(ctx context.Context, resourceGroupName string, namespaceName string) (result SBQueueListResultPage, err error) { +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name skip is skip is only used if a previous operation returned a partial result. If a previous response +// contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a +// starting point to use for subsequent calls. top is may be used to limit the number of results to the most recent +// N usageDetails. +func (client QueuesClient) ListByNamespace(ctx context.Context, resourceGroupName string, namespaceName string, skip *int32, top *int32) (result SBQueueListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: namespaceName, Constraints: []validation.Constraint{{Target: "namespaceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}}); err != nil { + {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}, + {TargetValue: skip, + Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, + }}}}, + {TargetValue: top, + Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, + }}}}}); err != nil { return result, validation.NewError("servicebus.QueuesClient", "ListByNamespace", err.Error()) } result.fn = client.listByNamespaceNextResults - req, err := client.ListByNamespacePreparer(ctx, resourceGroupName, namespaceName) + req, err := client.ListByNamespacePreparer(ctx, resourceGroupName, namespaceName, skip, top) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.QueuesClient", "ListByNamespace", nil, "Failure preparing request") return @@ -695,7 +697,7 @@ func (client QueuesClient) ListByNamespace(ctx context.Context, resourceGroupNam } // ListByNamespacePreparer prepares the ListByNamespace request. -func (client QueuesClient) ListByNamespacePreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error) { +func (client QueuesClient) ListByNamespacePreparer(ctx context.Context, resourceGroupName string, namespaceName string, skip *int32, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "namespaceName": autorest.Encode("path", namespaceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -706,6 +708,12 @@ func (client QueuesClient) ListByNamespacePreparer(ctx context.Context, resource queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if skip != nil { + queryParameters["$skip"] = autorest.Encode("query", *skip) + } + if top != nil { + queryParameters["$top"] = autorest.Encode("query", *top) + } preparer := autorest.CreatePreparer( autorest.AsGet(), @@ -757,17 +765,15 @@ func (client QueuesClient) listByNamespaceNextResults(lastResults SBQueueListRes } // ListByNamespaceComplete enumerates all values, automatically crossing page boundaries as required. -func (client QueuesClient) ListByNamespaceComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result SBQueueListResultIterator, err error) { - result.page, err = client.ListByNamespace(ctx, resourceGroupName, namespaceName) +func (client QueuesClient) ListByNamespaceComplete(ctx context.Context, resourceGroupName string, namespaceName string, skip *int32, top *int32) (result SBQueueListResultIterator, err error) { + result.page, err = client.ListByNamespace(ctx, resourceGroupName, namespaceName, skip, top) return } // ListKeys primary and secondary connection strings to the queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. func (client QueuesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string) (result AccessKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -849,12 +855,10 @@ func (client QueuesClient) ListKeysResponder(resp *http.Response) (result Access } // RegenerateKeys regenerates the primary or secondary connection strings to the queue. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// queueName - the queue name. -// authorizationRuleName - the authorizationrule name. -// parameters - parameters supplied to regenerate the authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name queueName is the queue name. authorizationRuleName is the authorizationrule name. parameters is parameters +// supplied to regenerate the authorization rule. func (client QueuesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters) (result AccessKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/regions.go b/services/servicebus/mgmt/2017-04-01/servicebus/regions.go index ac86b2c6d748..cacff1f5f776 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/regions.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/regions.go @@ -41,8 +41,8 @@ func NewRegionsClientWithBaseURI(baseURI string, subscriptionID string) RegionsC } // ListBySku gets the available Regions for a given sku -// Parameters: -// sku - the sku type. +// +// sku is the sku type. func (client RegionsClient) ListBySku(ctx context.Context, sku string) (result PremiumMessagingRegionsListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: sku, diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/rules.go b/services/servicebus/mgmt/2017-04-01/servicebus/rules.go index 26ec68d27c16..26a8be20a468 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/rules.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/rules.go @@ -41,13 +41,10 @@ func NewRulesClientWithBaseURI(baseURI string, subscriptionID string) RulesClien } // CreateOrUpdate creates a new rule and updates an existing rule -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. -// ruleName - the rule name. -// parameters - parameters supplied to create a rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. ruleName is the rule name. +// parameters is parameters supplied to create a rule. func (client RulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, ruleName string, parameters Rule) (result Rule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -135,12 +132,9 @@ func (client RulesClient) CreateOrUpdateResponder(resp *http.Response) (result R } // Delete deletes an existing rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. -// ruleName - the rule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. ruleName is the rule name. func (client RulesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, ruleName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -225,12 +219,9 @@ func (client RulesClient) DeleteResponder(resp *http.Response) (result autorest. } // Get retrieves the description for the specified rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. -// ruleName - the rule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. ruleName is the rule name. func (client RulesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, ruleName string) (result Rule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -316,12 +307,13 @@ func (client RulesClient) GetResponder(resp *http.Response) (result Rule, err er } // ListBySubscriptions list all the rules within given topic-subscription -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. -func (client RulesClient) ListBySubscriptions(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string) (result RuleListResultPage, err error) { +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. skip is skip is only used if a +// previous operation returned a partial result. If a previous response contains a nextLink element, the value of +// the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls. +// top is may be used to limit the number of results to the most recent N usageDetails. +func (client RulesClient) ListBySubscriptions(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, skip *int32, top *int32) (result RuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, @@ -333,12 +325,22 @@ func (client RulesClient) ListBySubscriptions(ctx context.Context, resourceGroup Constraints: []validation.Constraint{{Target: "topicName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: subscriptionName, Constraints: []validation.Constraint{{Target: "subscriptionName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "subscriptionName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + {Target: "subscriptionName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: skip, + Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, + }}}}, + {TargetValue: top, + Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, + }}}}}); err != nil { return result, validation.NewError("servicebus.RulesClient", "ListBySubscriptions", err.Error()) } result.fn = client.listBySubscriptionsNextResults - req, err := client.ListBySubscriptionsPreparer(ctx, resourceGroupName, namespaceName, topicName, subscriptionName) + req, err := client.ListBySubscriptionsPreparer(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, skip, top) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.RulesClient", "ListBySubscriptions", nil, "Failure preparing request") return @@ -360,7 +362,7 @@ func (client RulesClient) ListBySubscriptions(ctx context.Context, resourceGroup } // ListBySubscriptionsPreparer prepares the ListBySubscriptions request. -func (client RulesClient) ListBySubscriptionsPreparer(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string) (*http.Request, error) { +func (client RulesClient) ListBySubscriptionsPreparer(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, skip *int32, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "namespaceName": autorest.Encode("path", namespaceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -373,6 +375,12 @@ func (client RulesClient) ListBySubscriptionsPreparer(ctx context.Context, resou queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if skip != nil { + queryParameters["$skip"] = autorest.Encode("query", *skip) + } + if top != nil { + queryParameters["$top"] = autorest.Encode("query", *top) + } preparer := autorest.CreatePreparer( autorest.AsGet(), @@ -424,7 +432,7 @@ func (client RulesClient) listBySubscriptionsNextResults(lastResults RuleListRes } // ListBySubscriptionsComplete enumerates all values, automatically crossing page boundaries as required. -func (client RulesClient) ListBySubscriptionsComplete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string) (result RuleListResultIterator, err error) { - result.page, err = client.ListBySubscriptions(ctx, resourceGroupName, namespaceName, topicName, subscriptionName) +func (client RulesClient) ListBySubscriptionsComplete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, skip *int32, top *int32) (result RuleListResultIterator, err error) { + result.page, err = client.ListBySubscriptions(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, skip, top) return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go b/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go index 51546fe26edd..e1bb84bb7779 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/subscriptions.go @@ -41,12 +41,10 @@ func NewSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) Su } // CreateOrUpdate creates a topic subscription. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. -// parameters - parameters supplied to create a subscription resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. parameters is parameters supplied +// to create a subscription resource. func (client SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, parameters SBSubscription) (result SBSubscription, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -130,11 +128,9 @@ func (client SubscriptionsClient) CreateOrUpdateResponder(resp *http.Response) ( } // Delete deletes a subscription from the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. func (client SubscriptionsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -215,11 +211,9 @@ func (client SubscriptionsClient) DeleteResponder(resp *http.Response) (result a } // Get returns a subscription description for the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// subscriptionName - the subscription name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. subscriptionName is the subscription name. func (client SubscriptionsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string) (result SBSubscription, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -301,11 +295,13 @@ func (client SubscriptionsClient) GetResponder(resp *http.Response) (result SBSu } // ListByTopic list all the subscriptions under a specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -func (client SubscriptionsClient) ListByTopic(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result SBSubscriptionListResultPage, err error) { +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. skip is skip is only used if a previous operation returned a partial result. +// If a previous response contains a nextLink element, the value of the nextLink element will include a skip +// parameter that specifies a starting point to use for subsequent calls. top is may be used to limit the number of +// results to the most recent N usageDetails. +func (client SubscriptionsClient) ListByTopic(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, skip *int32, top *int32) (result SBSubscriptionListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, @@ -314,12 +310,22 @@ func (client SubscriptionsClient) ListByTopic(ctx context.Context, resourceGroup Constraints: []validation.Constraint{{Target: "namespaceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}, {TargetValue: topicName, - Constraints: []validation.Constraint{{Target: "topicName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + Constraints: []validation.Constraint{{Target: "topicName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, + {TargetValue: skip, + Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, + }}}}, + {TargetValue: top, + Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, + }}}}}); err != nil { return result, validation.NewError("servicebus.SubscriptionsClient", "ListByTopic", err.Error()) } result.fn = client.listByTopicNextResults - req, err := client.ListByTopicPreparer(ctx, resourceGroupName, namespaceName, topicName) + req, err := client.ListByTopicPreparer(ctx, resourceGroupName, namespaceName, topicName, skip, top) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.SubscriptionsClient", "ListByTopic", nil, "Failure preparing request") return @@ -341,7 +347,7 @@ func (client SubscriptionsClient) ListByTopic(ctx context.Context, resourceGroup } // ListByTopicPreparer prepares the ListByTopic request. -func (client SubscriptionsClient) ListByTopicPreparer(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (*http.Request, error) { +func (client SubscriptionsClient) ListByTopicPreparer(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, skip *int32, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "namespaceName": autorest.Encode("path", namespaceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -353,6 +359,12 @@ func (client SubscriptionsClient) ListByTopicPreparer(ctx context.Context, resou queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if skip != nil { + queryParameters["$skip"] = autorest.Encode("query", *skip) + } + if top != nil { + queryParameters["$top"] = autorest.Encode("query", *top) + } preparer := autorest.CreatePreparer( autorest.AsGet(), @@ -404,7 +416,7 @@ func (client SubscriptionsClient) listByTopicNextResults(lastResults SBSubscript } // ListByTopicComplete enumerates all values, automatically crossing page boundaries as required. -func (client SubscriptionsClient) ListByTopicComplete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result SBSubscriptionListResultIterator, err error) { - result.page, err = client.ListByTopic(ctx, resourceGroupName, namespaceName, topicName) +func (client SubscriptionsClient) ListByTopicComplete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, skip *int32, top *int32) (result SBSubscriptionListResultIterator, err error) { + result.page, err = client.ListByTopic(ctx, resourceGroupName, namespaceName, topicName, skip, top) return } diff --git a/services/servicebus/mgmt/2017-04-01/servicebus/topics.go b/services/servicebus/mgmt/2017-04-01/servicebus/topics.go index 63b2b6ca44be..93c4f6e6de21 100644 --- a/services/servicebus/mgmt/2017-04-01/servicebus/topics.go +++ b/services/servicebus/mgmt/2017-04-01/servicebus/topics.go @@ -41,11 +41,9 @@ func NewTopicsClientWithBaseURI(baseURI string, subscriptionID string) TopicsCli } // CreateOrUpdate creates a topic in the specified namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// parameters - parameters supplied to create a topic resource. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. parameters is parameters supplied to create a topic resource. func (client TopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, parameters SBTopic) (result SBTopic, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -125,12 +123,10 @@ func (client TopicsClient) CreateOrUpdateResponder(resp *http.Response) (result } // CreateOrUpdateAuthorizationRule creates an authorizatio rule for the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. -// parameters - the shared access authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. parameters is the shared +// access authorization rule. func (client TopicsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, parameters SBAuthorizationRule) (result SBAuthorizationRule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -217,10 +213,9 @@ func (client TopicsClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.R } // Delete deletes a topic from the specified namespace and resource group. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. func (client TopicsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -297,11 +292,9 @@ func (client TopicsClient) DeleteResponder(resp *http.Response) (result autorest } // DeleteAuthorizationRule deletes a topic authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. func (client TopicsClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) (result autorest.Response, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -382,10 +375,9 @@ func (client TopicsClient) DeleteAuthorizationRuleResponder(resp *http.Response) } // Get returns a description for the specified topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. func (client TopicsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result SBTopic, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -463,11 +455,9 @@ func (client TopicsClient) GetResponder(resp *http.Response) (result SBTopic, er } // GetAuthorizationRule returns the specified authorization rule. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. func (client TopicsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) (result SBAuthorizationRule, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -549,10 +539,9 @@ func (client TopicsClient) GetAuthorizationRuleResponder(resp *http.Response) (r } // ListAuthorizationRules gets authorization rules for a topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. func (client TopicsClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, topicName string) (result SBAuthorizationRuleListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -658,22 +647,35 @@ func (client TopicsClient) ListAuthorizationRulesComplete(ctx context.Context, r } // ListByNamespace gets all the topics in a namespace. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -func (client TopicsClient) ListByNamespace(ctx context.Context, resourceGroupName string, namespaceName string) (result SBTopicListResultPage, err error) { +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name skip is skip is only used if a previous operation returned a partial result. If a previous response +// contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a +// starting point to use for subsequent calls. top is may be used to limit the number of results to the most recent +// N usageDetails. +func (client TopicsClient) ListByNamespace(ctx context.Context, resourceGroupName string, namespaceName string, skip *int32, top *int32) (result SBTopicListResultPage, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: namespaceName, Constraints: []validation.Constraint{{Target: "namespaceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, - {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}}); err != nil { + {Target: "namespaceName", Name: validation.MinLength, Rule: 6, Chain: nil}}}, + {TargetValue: skip, + Constraints: []validation.Constraint{{Target: "skip", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "skip", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "skip", Name: validation.InclusiveMinimum, Rule: 0, Chain: nil}, + }}}}, + {TargetValue: top, + Constraints: []validation.Constraint{{Target: "top", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "top", Name: validation.InclusiveMaximum, Rule: 1000, Chain: nil}, + {Target: "top", Name: validation.InclusiveMinimum, Rule: 1, Chain: nil}, + }}}}}); err != nil { return result, validation.NewError("servicebus.TopicsClient", "ListByNamespace", err.Error()) } result.fn = client.listByNamespaceNextResults - req, err := client.ListByNamespacePreparer(ctx, resourceGroupName, namespaceName) + req, err := client.ListByNamespacePreparer(ctx, resourceGroupName, namespaceName, skip, top) if err != nil { err = autorest.NewErrorWithError(err, "servicebus.TopicsClient", "ListByNamespace", nil, "Failure preparing request") return @@ -695,7 +697,7 @@ func (client TopicsClient) ListByNamespace(ctx context.Context, resourceGroupNam } // ListByNamespacePreparer prepares the ListByNamespace request. -func (client TopicsClient) ListByNamespacePreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error) { +func (client TopicsClient) ListByNamespacePreparer(ctx context.Context, resourceGroupName string, namespaceName string, skip *int32, top *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ "namespaceName": autorest.Encode("path", namespaceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -706,6 +708,12 @@ func (client TopicsClient) ListByNamespacePreparer(ctx context.Context, resource queryParameters := map[string]interface{}{ "api-version": APIVersion, } + if skip != nil { + queryParameters["$skip"] = autorest.Encode("query", *skip) + } + if top != nil { + queryParameters["$top"] = autorest.Encode("query", *top) + } preparer := autorest.CreatePreparer( autorest.AsGet(), @@ -757,17 +765,15 @@ func (client TopicsClient) listByNamespaceNextResults(lastResults SBTopicListRes } // ListByNamespaceComplete enumerates all values, automatically crossing page boundaries as required. -func (client TopicsClient) ListByNamespaceComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result SBTopicListResultIterator, err error) { - result.page, err = client.ListByNamespace(ctx, resourceGroupName, namespaceName) +func (client TopicsClient) ListByNamespaceComplete(ctx context.Context, resourceGroupName string, namespaceName string, skip *int32, top *int32) (result SBTopicListResultIterator, err error) { + result.page, err = client.ListByNamespace(ctx, resourceGroupName, namespaceName, skip, top) return } // ListKeys gets the primary and secondary connection strings for the topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. func (client TopicsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) (result AccessKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, @@ -849,12 +855,10 @@ func (client TopicsClient) ListKeysResponder(resp *http.Response) (result Access } // RegenerateKeys regenerates primary or secondary connection strings for the topic. -// Parameters: -// resourceGroupName - name of the Resource group within the Azure subscription. -// namespaceName - the namespace name -// topicName - the topic name. -// authorizationRuleName - the authorizationrule name. -// parameters - parameters supplied to regenerate the authorization rule. +// +// resourceGroupName is name of the Resource group within the Azure subscription. namespaceName is the namespace +// name topicName is the topic name. authorizationRuleName is the authorizationrule name. parameters is parameters +// supplied to regenerate the authorization rule. func (client TopicsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters) (result AccessKeys, err error) { if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName,