/// <summary> /// Lists all the Template Specs within the specified subscriptions. /// </summary> /// <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 <TemplateSpec> > ListBySubscriptionNextAsync(this ITemplateSpecsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates a Template Spec. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='templateSpecName'> /// Name of the Template Spec. /// </param> /// <param name='templateSpec'> /// Template Spec supplied to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TemplateSpec> CreateOrUpdateAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, TemplateSpec templateSpec, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, templateSpecName, templateSpec, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all the Template Specs within the specified resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='expand'> /// Allows for expansion of additional Template Spec details in the response. /// Optional. Possible values include: 'versions' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <TemplateSpec> > ListByResourceGroupAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates Template Spec tags with specified values. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='templateSpecName'> /// Name of the Template Spec. /// </param> /// <param name='templateSpec'> /// Template Spec resource with the tags to be updated. /// </param> public static TemplateSpec Update(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, TemplateSpecUpdateModel templateSpec = default(TemplateSpecUpdateModel)) { return(operations.UpdateAsync(resourceGroupName, templateSpecName, templateSpec).GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates a Template Spec. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='templateSpecName'> /// Name of the Template Spec. /// </param> /// <param name='templateSpec'> /// Template Spec supplied to the operation. /// </param> public static TemplateSpec CreateOrUpdate(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, TemplateSpec templateSpec) { return(operations.CreateOrUpdateAsync(resourceGroupName, templateSpecName, templateSpec).GetAwaiter().GetResult()); }
/// <summary> /// Lists all the Template Specs within the specified resource group. /// </summary> /// <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 <TemplateSpec> ListByResourceGroupNext(this ITemplateSpecsOperations operations, string nextPageLink) { return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Lists all the Template Specs within the specified resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='expand'> /// Allows for expansion of additional Template Spec details in the response. /// Optional. Possible values include: 'versions' /// </param> public static IPage <TemplateSpec> ListByResourceGroup(this ITemplateSpecsOperations operations, string resourceGroupName, string expand = default(string)) { return(operations.ListByResourceGroupAsync(resourceGroupName, expand).GetAwaiter().GetResult()); }
/// <summary> /// Lists all the Template Specs within the specified subscriptions. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Allows for expansion of additional Template Spec details in the response. /// Optional. Possible values include: 'versions' /// </param> public static IPage <TemplateSpec> ListBySubscription(this ITemplateSpecsOperations operations, string expand = default(string)) { return(operations.ListBySubscriptionAsync(expand).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a Template Spec by name. When operation completes, status code 200 /// returned without content. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='templateSpecName'> /// Name of the Template Spec. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, templateSpecName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes a Template Spec by name. When operation completes, status code 200 /// returned without content. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='templateSpecName'> /// Name of the Template Spec. /// </param> public static void Delete(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName) { operations.DeleteAsync(resourceGroupName, templateSpecName).GetAwaiter().GetResult(); }
/// <summary> /// Gets a Template Spec with a given name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='templateSpecName'> /// Name of the Template Spec. /// </param> /// <param name='expand'> /// Allows for expansion of additional Template Spec details in the response. /// Optional. Possible values include: 'versions' /// </param> public static TemplateSpec Get(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, string expand = default(string)) { return(operations.GetAsync(resourceGroupName, templateSpecName, expand).GetAwaiter().GetResult()); }
/// <summary> /// Lists all the Template Specs within the specified subscriptions. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <TemplateSpec> ListBySubscription(this ITemplateSpecsOperations operations) { return(operations.ListBySubscriptionAsync().GetAwaiter().GetResult()); }