Skip to content
Merged
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
7 changes: 7 additions & 0 deletions src/SDKs/NetApp/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>NetApp_2017-08-15;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
1,058 changes: 1,058 additions & 0 deletions src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperations.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,313 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.NetApp
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for AccountsOperations.
/// </summary>
public static partial class AccountsOperationsExtensions
{
/// <summary>
/// Lists all NetApp accounts in the resource group
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
public static IEnumerable<NetAppAccount> List(this IAccountsOperations operations, string resourceGroup)
{
return operations.ListAsync(resourceGroup).GetAwaiter().GetResult();
}

/// <summary>
/// Lists all NetApp accounts in the resource group
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IEnumerable<NetAppAccount>> ListAsync(this IAccountsOperations operations, string resourceGroup, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Get the NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
public static NetAppAccount Get(this IAccountsOperations operations, string resourceGroup, string accountName)
{
return operations.GetAsync(resourceGroup, accountName).GetAwaiter().GetResult();
}

/// <summary>
/// Get the NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<NetAppAccount> GetAsync(this IAccountsOperations operations, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Create or update a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// NetApp Account object supplied in the body of the operation.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
public static NetAppAccount CreateOrUpdate(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName)
{
return operations.CreateOrUpdateAsync(body, resourceGroup, accountName).GetAwaiter().GetResult();
}

/// <summary>
/// Create or update a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// NetApp Account object supplied in the body of the operation.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<NetAppAccount> CreateOrUpdateAsync(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Delete a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
public static void Delete(this IAccountsOperations operations, string resourceGroup, string accountName)
{
operations.DeleteAsync(resourceGroup, accountName).GetAwaiter().GetResult();
}

/// <summary>
/// Delete a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task DeleteAsync(this IAccountsOperations operations, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.DeleteWithHttpMessagesAsync(resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Patch a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// NetApp Account object supplied in the body of the operation.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
public static NetAppAccount Update(this IAccountsOperations operations, NetAppAccountPatch body, string resourceGroup, string accountName)
{
return operations.UpdateAsync(body, resourceGroup, accountName).GetAwaiter().GetResult();
}

/// <summary>
/// Patch a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// NetApp Account object supplied in the body of the operation.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<NetAppAccount> UpdateAsync(this IAccountsOperations operations, NetAppAccountPatch body, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Create or update a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// NetApp Account object supplied in the body of the operation.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
public static NetAppAccount BeginCreateOrUpdate(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName)
{
return operations.BeginCreateOrUpdateAsync(body, resourceGroup, accountName).GetAwaiter().GetResult();
}

/// <summary>
/// Create or update a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='body'>
/// NetApp Account object supplied in the body of the operation.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<NetAppAccount> BeginCreateOrUpdateAsync(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Delete a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
public static void BeginDelete(this IAccountsOperations operations, string resourceGroup, string accountName)
{
operations.BeginDeleteAsync(resourceGroup, accountName).GetAwaiter().GetResult();
}

/// <summary>
/// Delete a NetApp account
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroup'>
/// The name of the resource group.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task BeginDeleteAsync(this IAccountsOperations operations, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

}
}
Loading