/// <summary> /// Gets a Service Fabric application type version resource. /// </summary> /// <remarks> /// Get a Service Fabric application type version resource created or in the /// process of being created in the Service Fabric application type name /// 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='version'> /// The application type version. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApplicationTypeVersionResource> GetAsync(this IApplicationTypeVersionsOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string version, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, clusterName, applicationTypeName, version, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a Service Fabric application type version resource. /// </summary> /// <remarks> /// Get a Service Fabric application type version resource created or in the /// process of being created in the Service Fabric application type name /// 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='version'> /// The application type version. /// </param> public static ApplicationTypeVersionResource Get(this IApplicationTypeVersionsOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string version) { return(operations.GetAsync(resourceGroupName, clusterName, applicationTypeName, version).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a Service Fabric application type version resource. /// </summary> /// <remarks> /// Delete a Service Fabric application type version 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='version'> /// The application type version. /// </param> public static void BeginDelete(this IApplicationTypeVersionsOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string version) { operations.BeginDeleteAsync(resourceGroupName, clusterName, applicationTypeName, version).GetAwaiter().GetResult(); }
/// <summary> /// Deletes a Service Fabric application type version resource. /// </summary> /// <remarks> /// Delete a Service Fabric application type version 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='version'> /// The application type version. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IApplicationTypeVersionsOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string version, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, applicationTypeName, version, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Creates or updates a Service Fabric application type version resource. /// </summary> /// <remarks> /// Create or update a Service Fabric application type version 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='version'> /// The application type version. /// </param> /// <param name='parameters'> /// The application type version resource. /// </param> public static ApplicationTypeVersionResource BeginCreateOrUpdate(this IApplicationTypeVersionsOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string version, ApplicationTypeVersionResource parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, clusterName, applicationTypeName, version, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of application type version resources created in the /// specified Service Fabric managed application type name resource. /// </summary> /// <remarks> /// Gets all application type version resources created or in the process of /// being created in the Service Fabric managed application type name 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 <ApplicationTypeVersionResource> > ListByApplicationTypesNextAsync(this IApplicationTypeVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByApplicationTypesNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the list of application type version resources created in the /// specified Service Fabric managed application type name resource. /// </summary> /// <remarks> /// Gets all application type version resources created or in the process of /// being created in the Service Fabric managed application type name 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 <ApplicationTypeVersionResource> ListByApplicationTypesNext(this IApplicationTypeVersionsOperations operations, string nextPageLink) { return(operations.ListByApplicationTypesNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of application type version resources created in the /// specified Service Fabric managed application type name resource. /// </summary> /// <remarks> /// Gets all application type version resources created or in the process of /// being created in the Service Fabric managed application type name 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 IPage <ApplicationTypeVersionResource> ListByApplicationTypes(this IApplicationTypeVersionsOperations operations, string resourceGroupName, string clusterName, string applicationTypeName) { return(operations.ListByApplicationTypesAsync(resourceGroupName, clusterName, applicationTypeName).GetAwaiter().GetResult()); }
/// <summary> /// Updates the tags of an application type version resource of a given managed /// cluster. /// </summary> /// <remarks> /// Updates the tags of an application type version 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='version'> /// The application type version. /// </param> /// <param name='tags'> /// Application type version update parameters /// </param> public static ApplicationTypeVersionResource Update(this IApplicationTypeVersionsOperations operations, string resourceGroupName, string clusterName, string applicationTypeName, string version, IDictionary <string, string> tags = default(IDictionary <string, string>)) { return(operations.UpdateAsync(resourceGroupName, clusterName, applicationTypeName, version, tags).GetAwaiter().GetResult()); }