Exemplo n.º 1
0
 /// <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>
 /// Gets the list of application type name resources created in the specified
 /// Service Fabric managed cluster resource.
 /// </summary>
 /// <remarks>
 /// Gets all application type name resources created or in the process of being
 /// created in the Service Fabric managed cluster resource.
 /// </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 <ApplicationTypeResource> > ListNextAsync(this IApplicationTypesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <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='parameters'>
 /// The application type name resource.
 /// </param>
 public static ApplicationTypeResource CreateOrUpdate(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, ApplicationTypeResource parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, clusterName, applicationTypeName, parameters).GetAwaiter().GetResult());
 }
Exemplo n.º 4
0
 /// <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());
 }
Exemplo n.º 5
0
 /// <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();
 }
Exemplo n.º 6
0
 /// <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();
 }
Exemplo n.º 7
0
 /// <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>
 /// Gets the list of application type name resources created in the specified
 /// Service Fabric managed cluster resource.
 /// </summary>
 /// <remarks>
 /// Gets all application type name resources created or in the process of being
 /// created in the Service Fabric managed cluster resource.
 /// </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 <ApplicationTypeResource> ListNext(this IApplicationTypesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates the tags of an application type resource of a given managed
 /// cluster.
 /// </summary>
 /// <remarks>
 /// Updates the tags of an application type resource of a given managed
 /// cluster.
 /// </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='tags'>
 /// Application type update parameters
 /// </param>
 public static ApplicationTypeResource Update(this IApplicationTypesOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     return(operations.UpdateAsync(resourceGroupName, clusterName, applicationTypeName, tags).GetAwaiter().GetResult());
 }