예제 #1
0
 /// <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);
     }
 }
예제 #2
0
 /// <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);
     }
 }
예제 #3
0
 /// <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);
     }
 }
예제 #4
0
 /// <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());
 }
예제 #5
0
 /// <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());
 }
예제 #6
0
 /// <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());
 }
예제 #7
0
 /// <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());
 }
예제 #8
0
 /// <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());
 }
예제 #9
0
 /// <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();
 }
예제 #10
0
 /// <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();
 }
예제 #11
0
 /// <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());
 }