Skip to content

Commit

Permalink
Generating SDK for websites (#4688)
Browse files Browse the repository at this point in the history
* Generating SDK for websites

* Adding the generated files

* Undo NuGet.config changes & updating version

* Updating to use the latest Microsoft.Rest.ClientRuntime.Azure & re-enabling a test

* Version update

* Updating with the swagger update for deletedSites
  • Loading branch information
panchagnula authored and shahabhijeet committed Aug 29, 2018
1 parent 13e92ad commit 32a66cd
Show file tree
Hide file tree
Showing 191 changed files with 42,202 additions and 19,146 deletions.
2 changes: 1 addition & 1 deletion src/SDKs/WebSites/AzSdk.RP.props
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>CertificateRegistration_2015-08-01;DomainRegistration_2015-04-01;Web_2016-09-01;Web_2016-03-01;Web_2016-08-01;WebSiteManagementClient_2016-03-01;</AzureApiTag>
<AzureApiTag>CertificateRegistration_2018-02-01;DomainRegistration_2018-02-01;Web_2018-02-01;WebSiteManagementClient_2018-02-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ public static IPage<ResourceMetricDefinition> ListMetricDefintions(this IAppServ
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq
/// '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'.
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
public static IPage<ResourceMetric> ListMetrics(this IAppServicePlansOperations operations, string resourceGroupName, string name, bool? details = default(bool?), string filter = default(string))
{
Expand Down Expand Up @@ -775,8 +775,8 @@ public static IPage<ResourceMetricDefinition> ListMetricDefintions(this IAppServ
/// <param name='filter'>
/// Return only usages/metrics specified in the filter. Filter conforms to
/// odata syntax. Example: $filter=(name.value eq 'Metric1' or name.value eq
/// 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq
/// '2014-12-31T23:59:59Z' and timeGrain eq duration'[Hour|Minute|Day]'.
/// 'Metric2') and startTime eq 2014-01-01T00:00:00Z and endTime eq
/// 2014-12-31T23:59:59Z and timeGrain eq duration'[Hour|Minute|Day]'.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
// <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.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for CertificateRegistrationProviderOperations.
/// </summary>
public static partial class CertificateRegistrationProviderOperationsExtensions
{
/// <summary>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </summary>
/// <remarks>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static IPage<CsmOperationDescription> ListOperations(this ICertificateRegistrationProviderOperations operations)
{
return operations.ListOperationsAsync().GetAwaiter().GetResult();
}

/// <summary>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </summary>
/// <remarks>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<CsmOperationDescription>> ListOperationsAsync(this ICertificateRegistrationProviderOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListOperationsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </summary>
/// <remarks>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
public static IPage<CsmOperationDescription> ListOperationsNext(this ICertificateRegistrationProviderOperations operations, string nextPageLink)
{
return operations.ListOperationsNextAsync(nextPageLink).GetAwaiter().GetResult();
}

/// <summary>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </summary>
/// <remarks>
/// Implements Csm operations Api to exposes the list of available Csm Apis
/// under the resource provider
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IPage<CsmOperationDescription>> ListOperationsNextAsync(this ICertificateRegistrationProviderOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListOperationsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

}
}
Loading

0 comments on commit 32a66cd

Please sign in to comment.