Skip to content

Commit

Permalink
Updated Management.ServiceFabric for API version 2018-02-01
Browse files Browse the repository at this point in the history
  • Loading branch information
dsgouda authored May 18, 2018
2 parents 6b2dd99 + 0b90c1d commit 260fab8
Show file tree
Hide file tree
Showing 107 changed files with 13,495 additions and 1,915 deletions.
12 changes: 6 additions & 6 deletions src/SDKs/ServiceFabric/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 />
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
<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>ServiceFabric_2017-07-01-preview;ServiceFabric_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.

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

/// <summary>
/// Extension methods for ApplicationTypesOperations.
/// </summary>
public static partial class ApplicationTypesOperationsExtensions
{
/// <summary>
/// Gets a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Get a Service Fabric application type name resource created or in the
/// process of being created in the Service Fabric cluster resource.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
public static ApplicationTypeResource Get(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName)
{
return operations.GetAsync(resourceGroupName, clusterName, applicationTypeName).GetAwaiter().GetResult();
}

/// <summary>
/// Gets a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Get a Service Fabric application type name resource created or in the
/// process of being created in the Service Fabric cluster resource.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ApplicationTypeResource> GetAsync(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, clusterName, applicationTypeName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Creates or updates a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Create or update a Service Fabric application type name resource with the
/// specified name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
/// <param name='location'>
/// Azure resource location.
/// </param>
public static ApplicationTypeResource Create(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string location = default(string))
{
return operations.CreateAsync(resourceGroupName, clusterName, applicationTypeName, location).GetAwaiter().GetResult();
}

/// <summary>
/// Creates or updates a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Create or update a Service Fabric application type name resource with the
/// specified name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
/// <param name='location'>
/// Azure resource location.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ApplicationTypeResource> CreateAsync(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string location = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, clusterName, applicationTypeName, location, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Deletes a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Delete a Service Fabric application type name resource with the specified
/// name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
public static void Delete(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName)
{
operations.DeleteAsync(resourceGroupName, clusterName, applicationTypeName).GetAwaiter().GetResult();
}

/// <summary>
/// Deletes a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Delete a Service Fabric application type name resource with the specified
/// name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task DeleteAsync(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, applicationTypeName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Gets the list of application type name resources created in the specified
/// Service Fabric cluster resource.
/// </summary>
/// <remarks>
/// Gets all application type name resources created or in the process of being
/// created in the Service Fabric cluster resource.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
public static ApplicationTypeResourceList List(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName)
{
return operations.ListAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
}

/// <summary>
/// Gets the list of application type name resources created in the specified
/// Service Fabric cluster resource.
/// </summary>
/// <remarks>
/// Gets all application type name resources created or in the process of being
/// created in the Service Fabric cluster resource.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ApplicationTypeResourceList> ListAsync(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}

/// <summary>
/// Deletes a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Delete a Service Fabric application type name resource with the specified
/// name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
public static void BeginDelete(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName)
{
operations.BeginDeleteAsync(resourceGroupName, clusterName, applicationTypeName).GetAwaiter().GetResult();
}

/// <summary>
/// Deletes a Service Fabric application type name resource.
/// </summary>
/// <remarks>
/// Delete a Service Fabric application type name resource with the specified
/// name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='clusterName'>
/// The name of the cluster resource.
/// </param>
/// <param name='applicationTypeName'>
/// The name of the application type name resource.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task BeginDeleteAsync(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, applicationTypeName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

}
}
Loading

0 comments on commit 260fab8

Please sign in to comment.