Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[AutoPR Microsoft.Azure.Management.EventHub] Update EventHub.json #186

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ internal ConsumerGroupsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -385,6 +389,10 @@ internal ConsumerGroupsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -616,6 +624,10 @@ internal ConsumerGroupsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -873,6 +885,10 @@ internal ConsumerGroupsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -614,6 +618,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -825,6 +833,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -1054,6 +1066,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -1214,6 +1230,8 @@ internal EventHubsOperations(EventHubManagementClient client)

/// <summary>
/// Creates or updates an AuthorizationRule for the specified Event Hub.
/// Creation/update of the AuthorizationRule will take a few seconds to take
/// effect.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group within the azure subscription.
Expand Down Expand Up @@ -1289,6 +1307,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -1549,6 +1571,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -1791,6 +1817,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -2018,6 +2048,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down Expand Up @@ -2267,6 +2301,10 @@ internal EventHubsOperations(EventHubManagementClient client)
}
if (eventHubName != null)
{
if (eventHubName.Length > 50)
{
throw new ValidationException(ValidationRules.MaxLength, "eventHubName", 50);
}
if (eventHubName.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "eventHubName", 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ public static IPage<AuthorizationRule> ListAuthorizationRules(this IEventHubsOpe

/// <summary>
/// Creates or updates an AuthorizationRule for the specified Event Hub.
/// Creation/update of the AuthorizationRule will take a few seconds to take
/// effect.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -296,6 +298,8 @@ public static AuthorizationRule CreateOrUpdateAuthorizationRule(this IEventHubsO

/// <summary>
/// Creates or updates an AuthorizationRule for the specified Event Hub.
/// Creation/update of the AuthorizationRule will take a few seconds to take
/// effect.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ public partial interface IEventHubsOperations
Task<AzureOperationResponse<IPage<AuthorizationRule>>> ListAuthorizationRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string eventHubName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates or updates an AuthorizationRule for the specified Event
/// Hub.
/// Hub. Creation/update of the AuthorizationRule will take a few
/// seconds to take effect.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group within the azure subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,31 @@ public partial interface INamespacesOperations
/// </exception>
Task<AzureOperationResponse<NetworkRuleSet>> GetNetworkRuleSetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets list of NetworkRuleSet for a Namespace.
/// </summary>
/// <param name='resourceGroupName'>
/// Name of the resource group within the azure subscription.
/// </param>
/// <param name='namespaceName'>
/// The Namespace name
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<NetworkRuleSet>>> ListNetworkRuleSetsWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates or updates a namespace. Once created, this namespace's
/// resource manifest is immutable. This operation is idempotent.
/// </summary>
Expand Down Expand Up @@ -560,5 +585,27 @@ public partial interface INamespacesOperations
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<AuthorizationRule>>> ListAuthorizationRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets list of NetworkRuleSet for a Namespace.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<NetworkRuleSet>>> ListNetworkRuleSetsNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Loading