Skip to content

Commit

Permalink
Merge pull request #3820 from Nking92/appserviceant65
Browse files Browse the repository at this point in the history
[WebSites] Fixes to HTTP response codes, missing enum properties
  • Loading branch information
markcowl authored Nov 7, 2017
2 parents 29762d3 + a2e0e83 commit 99834e2
Show file tree
Hide file tree
Showing 274 changed files with 14,488 additions and 6,056 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// <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.WebSites
{
using Microsoft.Azure;
using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
Expand Down Expand Up @@ -275,6 +275,58 @@ public static void Delete(this IAppServiceCertificateOrdersOperations operations
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, certificateOrderName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Create or update a certificate purchase order.
/// </summary>
/// <remarks>
/// Create or update a certificate purchase order.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='certificateOrderName'>
/// Name of the certificate order.
/// </param>
/// <param name='certificateDistinguishedName'>
/// Distinguished name to to use for the certificate order.
/// </param>
public static AppServiceCertificateOrder Update(this IAppServiceCertificateOrdersOperations operations, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatchResource certificateDistinguishedName)
{
return operations.UpdateAsync(resourceGroupName, certificateOrderName, certificateDistinguishedName).GetAwaiter().GetResult();
}

/// <summary>
/// Create or update a certificate purchase order.
/// </summary>
/// <remarks>
/// Create or update a certificate purchase order.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='certificateOrderName'>
/// Name of the certificate order.
/// </param>
/// <param name='certificateDistinguishedName'>
/// Distinguished name to to use for the certificate order.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AppServiceCertificateOrder> UpdateAsync(this IAppServiceCertificateOrdersOperations operations, string resourceGroupName, string certificateOrderName, AppServiceCertificateOrderPatchResource certificateDistinguishedName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, certificateOrderName, certificateDistinguishedName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// List all certificates associated with a certificate order.
/// </summary>
Expand Down Expand Up @@ -480,6 +532,64 @@ public static void DeleteCertificate(this IAppServiceCertificateOrdersOperations
(await operations.DeleteCertificateWithHttpMessagesAsync(resourceGroupName, certificateOrderName, name, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Creates or updates a certificate and associates with key vault secret.
/// </summary>
/// <remarks>
/// Creates or updates a certificate and associates with key vault secret.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='certificateOrderName'>
/// Name of the certificate order.
/// </param>
/// <param name='name'>
/// Name of the certificate.
/// </param>
/// <param name='keyVaultCertificate'>
/// Key vault certificate resource Id.
/// </param>
public static AppServiceCertificateResource UpdateCertificate(this IAppServiceCertificateOrdersOperations operations, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatchResource keyVaultCertificate)
{
return operations.UpdateCertificateAsync(resourceGroupName, certificateOrderName, name, keyVaultCertificate).GetAwaiter().GetResult();
}

/// <summary>
/// Creates or updates a certificate and associates with key vault secret.
/// </summary>
/// <remarks>
/// Creates or updates a certificate and associates with key vault secret.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// Name of the resource group to which the resource belongs.
/// </param>
/// <param name='certificateOrderName'>
/// Name of the certificate order.
/// </param>
/// <param name='name'>
/// Name of the certificate.
/// </param>
/// <param name='keyVaultCertificate'>
/// Key vault certificate resource Id.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AppServiceCertificateResource> UpdateCertificateAsync(this IAppServiceCertificateOrdersOperations operations, string resourceGroupName, string certificateOrderName, string name, AppServiceCertificatePatchResource keyVaultCertificate, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.UpdateCertificateWithHttpMessagesAsync(resourceGroupName, certificateOrderName, name, keyVaultCertificate, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Reissue an existing certificate order.
/// </summary>
Expand Down
Loading

0 comments on commit 99834e2

Please sign in to comment.