Skip to content
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static partial class AccountsOperationsExtensions
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -52,7 +52,7 @@ public static MapsAccount CreateOrUpdate(this IAccountsOperations operations, st
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -79,7 +79,7 @@ public static MapsAccount CreateOrUpdate(this IAccountsOperations operations, st
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -100,7 +100,7 @@ public static MapsAccount Update(this IAccountsOperations operations, string res
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -126,7 +126,7 @@ public static MapsAccount Update(this IAccountsOperations operations, string res
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -143,7 +143,7 @@ public static void Delete(this IAccountsOperations operations, string resourceGr
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -163,7 +163,7 @@ public static void Delete(this IAccountsOperations operations, string resourceGr
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -180,7 +180,7 @@ public static MapsAccount Get(this IAccountsOperations operations, string resour
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -203,7 +203,7 @@ public static MapsAccount Get(this IAccountsOperations operations, string resour
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
public static IEnumerable<MapsAccount> ListByResourceGroup(this IAccountsOperations operations, string resourceGroupName)
{
Expand All @@ -217,7 +217,7 @@ public static IEnumerable<MapsAccount> ListByResourceGroup(this IAccountsOperati
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand Down Expand Up @@ -258,43 +258,6 @@ public static IEnumerable<MapsAccount> ListBySubscription(this IAccountsOperatio
}
}

/// <summary>
/// Moves Maps Accounts from one ResourceGroup (or Subscription) to another
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains Maps Account to move.
/// </param>
/// <param name='moveRequest'>
/// The details of the Maps Account move.
/// </param>
public static void Move(this IAccountsOperations operations, string resourceGroupName, MapsAccountsMoveRequest moveRequest)
{
operations.MoveAsync(resourceGroupName, moveRequest).GetAwaiter().GetResult();
}

/// <summary>
/// Moves Maps Accounts from one ResourceGroup (or Subscription) to another
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains Maps Account to move.
/// </param>
/// <param name='moveRequest'>
/// The details of the Maps Account move.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task MoveAsync(this IAccountsOperations operations, string resourceGroupName, MapsAccountsMoveRequest moveRequest, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.MoveWithHttpMessagesAsync(resourceGroupName, moveRequest, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Get the keys to use with the Maps APIs. A key is used to authenticate and
/// authorize access to the Maps REST APIs. Only one key is needed at a time;
Expand All @@ -304,7 +267,7 @@ public static void Move(this IAccountsOperations operations, string resourceGrou
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -323,7 +286,7 @@ public static MapsAccountKeys ListKeys(this IAccountsOperations operations, stri
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -347,7 +310,7 @@ public static MapsAccountKeys ListKeys(this IAccountsOperations operations, stri
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -368,7 +331,7 @@ public static MapsAccountKeys RegenerateKeys(this IAccountsOperations operations
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -387,33 +350,5 @@ public static MapsAccountKeys RegenerateKeys(this IAccountsOperations operations
}
}

/// <summary>
/// List operations available for the Maps Resource Provider
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static IEnumerable<MapsOperationsValueItem> ListOperations(this IAccountsOperations operations)
{
return operations.ListOperationsAsync().GetAwaiter().GetResult();
}

/// <summary>
/// List operations available for the Maps Resource Provider
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IEnumerable<MapsOperationsValueItem>> ListOperationsAsync(this IAccountsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListOperationsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public partial interface IAccountsOperations
/// which allow access to the Maps REST APIs.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -42,7 +42,7 @@ public partial interface IAccountsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
Expand All @@ -57,7 +57,7 @@ public partial interface IAccountsOperations
/// updated after creation, such as Sku and Tags.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -71,7 +71,7 @@ public partial interface IAccountsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
Expand All @@ -85,7 +85,7 @@ public partial interface IAccountsOperations
/// Delete a Maps Account.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -96,7 +96,7 @@ public partial interface IAccountsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
Expand All @@ -107,7 +107,7 @@ public partial interface IAccountsOperations
/// Get a Maps Account.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -118,7 +118,7 @@ public partial interface IAccountsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
Expand All @@ -132,15 +132,15 @@ public partial interface IAccountsOperations
/// Get all Maps Accounts in a Resource Group
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
Expand All @@ -159,7 +159,7 @@ public partial interface IAccountsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
Expand All @@ -170,36 +170,13 @@ public partial interface IAccountsOperations
/// </exception>
Task<AzureOperationResponse<IEnumerable<MapsAccount>>> ListBySubscriptionWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Moves Maps Accounts from one ResourceGroup (or Subscription) to
/// another
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains Maps Account to move.
/// </param>
/// <param name='moveRequest'>
/// The details of the Maps Account move.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> MoveWithHttpMessagesAsync(string resourceGroupName, MapsAccountsMoveRequest moveRequest, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get the keys to use with the Maps APIs. A key is used to
/// authenticate and authorize access to the Maps REST APIs. Only one
/// key is needed at a time; two are given to provide seamless key
/// regeneration.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -210,7 +187,7 @@ public partial interface IAccountsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
Expand All @@ -225,7 +202,7 @@ public partial interface IAccountsOperations
/// Maps APIs. The old key will stop working immediately.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the Azure Resource Group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the Maps Account.
Expand All @@ -239,7 +216,7 @@ public partial interface IAccountsOperations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
Expand All @@ -249,24 +226,5 @@ public partial interface IAccountsOperations
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<MapsAccountKeys>> RegenerateKeysWithHttpMessagesAsync(string resourceGroupName, string accountName, MapsKeySpecification keySpecification, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// List operations available for the Maps Resource Provider
/// </summary>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// 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<IEnumerable<MapsOperationsValueItem>>> ListOperationsWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Loading