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

Microsoft.AzureStackHCI new api preview - 2021-01-01-preview #21880

Merged
merged 4 commits into from
Jul 26, 2021
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: 4 additions & 3 deletions eng/mgmt/mgmtmetadata/azurestackhci_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/azurestackhci/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=F:\repos\azure-sdk-for-net\sdk
2020-10-08 01:23:51 UTC
Autorest CSharp Version: 2.3.84
2021-06-25 21:34:02 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 27cc07ddd294d98e05cb301e07a72378df9f87e8
Commit: 8dff86df71bee429af84ea4713288ef3cdd1db2f
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
Bootstrapper version: autorest@3.2.3
Original file line number Diff line number Diff line change
@@ -1,7 +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>AzureStackHCI_2020-10-01;</AzureApiTag>
<AzureApiTag>AzureStackHCI_2021-01-01-preview;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
namespace Microsoft.Azure.Management.AzureStackHCI
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ClustersOperations operations.
/// </summary>
internal partial class ClustersOperations : IServiceOperations<AzureStackHCIClient>, IClustersOperations
{
/// <summary>
/// Update an HCI cluster.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster.
/// </param>
/// <param name='tags'>
/// Resource tags.
/// </param>
/// <param name='customHeaders'>
/// 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="SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="ValidationException">
/// Thrown when a required parameter is null
/// </exception>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<Cluster>> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, IDictionary<string, string> tags = default(IDictionary<string, string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
var clusterPatch = new ClusterPatch();
if (tags != null)
{
clusterPatch.Tags = tags;
}

return await UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, clusterPatch, customHeaders, cancellationToken);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
namespace Microsoft.Azure.Management.AzureStackHCI
{
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 ClustersOperations.
/// </summary>
public static partial class ClustersOperationsExtensions
{
/// <summary>
/// Update an HCI cluster.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster.
/// </param>
/// <param name='tags'>
/// Resource tags.
/// </param>
public static Cluster Update(this IClustersOperations operations, string resourceGroupName, string clusterName, IDictionary<string, string> tags = default(IDictionary<string, string>))
{
var clusterPatch = new ClusterPatch();
if (tags != null)
{
clusterPatch.Tags = tags;
}

return operations.Update(resourceGroupName, clusterName, clusterPatch);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
namespace Microsoft.Azure.Management.AzureStackHCI
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ClustersOperations operations.
/// </summary>
public partial interface IClustersOperations
{
/// <summary>
/// Update an HCI cluster.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster.
/// </param>
/// <param name='tags'>
/// Resource tags.
/// </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<Cluster>> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, IDictionary<string, string> tags = default(IDictionary<string, string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Loading