Skip to content

Commit

Permalink
.NET SDK Resource Provider:'RecoveryServices'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5496'
REST Spec PR Author 'amchandn'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Mar 29, 2019
1 parent 8bcae04 commit f51fb6e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ public partial interface IRecoveryServicesOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<CheckNameAvailabilityResultResource>> CheckNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string location, ResourceNameAvailabilityParameters input, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<CheckNameAvailabilityResultResource>> CheckNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string location, CheckNameAvailabilityParameters input, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ namespace Microsoft.Azure.Management.RecoveryServices.Models
/// Resource Name availability input parameters - Resource type and
/// resource name
/// </summary>
public partial class ResourceNameAvailabilityParameters
public partial class CheckNameAvailabilityParameters
{
/// <summary>
/// Initializes a new instance of the
/// ResourceNameAvailabilityParameters class.
/// Initializes a new instance of the CheckNameAvailabilityParameters
/// class.
/// </summary>
public ResourceNameAvailabilityParameters()
public CheckNameAvailabilityParameters()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// ResourceNameAvailabilityParameters class.
/// Initializes a new instance of the CheckNameAvailabilityParameters
/// class.
/// </summary>
/// <param name="type">Describes the Resource type:
/// Microsoft.RecoveryServices/Vaults</param>
/// <param name="name">Resource name for which availability needs to be
/// checked</param>
public ResourceNameAvailabilityParameters(string type = default(string), string name = default(string))
public CheckNameAvailabilityParameters(string type = default(string), string name = default(string))
{
Type = type;
Name = name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ internal RecoveryServicesOperations(RecoveryServicesClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<CheckNameAvailabilityResultResource>> CheckNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string location, ResourceNameAvailabilityParameters input, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<CheckNameAvailabilityResultResource>> CheckNameAvailabilityWithHttpMessagesAsync(string resourceGroupName, string location, CheckNameAvailabilityParameters input, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static partial class RecoveryServicesOperationsExtensions
/// <param name='input'>
/// Contains information about Resource type and Resource name
/// </param>
public static CheckNameAvailabilityResultResource CheckNameAvailability(this IRecoveryServicesOperations operations, string resourceGroupName, string location, ResourceNameAvailabilityParameters input)
public static CheckNameAvailabilityResultResource CheckNameAvailability(this IRecoveryServicesOperations operations, string resourceGroupName, string location, CheckNameAvailabilityParameters input)
{
return operations.CheckNameAvailabilityAsync(resourceGroupName, location, input).GetAwaiter().GetResult();
}
Expand Down Expand Up @@ -69,7 +69,7 @@ public static CheckNameAvailabilityResultResource CheckNameAvailability(this IRe
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<CheckNameAvailabilityResultResource> CheckNameAvailabilityAsync(this IRecoveryServicesOperations operations, string resourceGroupName, string location, ResourceNameAvailabilityParameters input, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<CheckNameAvailabilityResultResource> CheckNameAvailabilityAsync(this IRecoveryServicesOperations operations, string resourceGroupName, string location, CheckNameAvailabilityParameters input, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(resourceGroupName, location, input, null, cancellationToken).ConfigureAwait(false))
{
Expand Down

0 comments on commit f51fb6e

Please sign in to comment.