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

Generating SDK for websites #4688

Merged
merged 6 commits into from
Aug 29, 2018
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
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