示例#1
0
 /// <summary>
 /// Updates an Email Template.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 /// <param name='parameters'>
 /// Email Template update parameters.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. Not required when creating an entity, but required when
 /// updating an entity.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EmailTemplateContract> CreateOrUpdateAsync(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName, EmailTemplateUpdateParameters parameters, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, templateName, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <summary>
 /// Lists a collection of properties defined within a service instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='top'>
 /// Number of records to return.
 /// </param>
 /// <param name='skip'>
 /// Number of records to skip.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <EmailTemplateContract> > ListByServiceAsync(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, int?top = default(int?), int?skip = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, top, skip, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#3
0
 /// <summary>
 /// Gets the details of the email template specified by its identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EmailTemplateContract> GetAsync(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serviceName, templateName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#4
0
 /// <summary>
 /// Gets the entity state (Etag) version of the email template specified by its
 /// identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 public static EmailTemplateGetEntityTagHeaders GetEntityTag(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName)
 {
     return(operations.GetEntityTagAsync(resourceGroupName, serviceName, templateName).GetAwaiter().GetResult());
 }
示例#5
0
 /// <summary>
 /// Lists a collection of properties defined within a service instance.
 /// </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 <EmailTemplateContract> > ListByServiceNextAsync(this IEmailTemplateOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServiceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#6
0
 /// <summary>
 /// Lists a collection of properties defined within a service instance.
 /// </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 <EmailTemplateContract> ListByServiceNext(this IEmailTemplateOperations operations, string nextPageLink)
 {
     return(operations.ListByServiceNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
示例#7
0
 /// <summary>
 /// Lists a collection of properties defined within a service instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='top'>
 /// Number of records to return.
 /// </param>
 /// <param name='skip'>
 /// Number of records to skip.
 /// </param>
 public static IPage <EmailTemplateContract> ListByService(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, int?top = default(int?), int?skip = default(int?))
 {
     return(operations.ListByServiceAsync(resourceGroupName, serviceName, top, skip).GetAwaiter().GetResult());
 }
示例#8
0
 /// <summary>
 /// Reset the Email Template to default template provided by the API Management
 /// service instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. ETag should match the current entity state from the
 /// header response of the GET request or it should be * for unconditional
 /// update.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName, string ifMatch, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, templateName, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
示例#9
0
 /// <summary>
 /// Reset the Email Template to default template provided by the API Management
 /// service instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. ETag should match the current entity state from the
 /// header response of the GET request or it should be * for unconditional
 /// update.
 /// </param>
 public static void Delete(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName, string ifMatch)
 {
     operations.DeleteAsync(resourceGroupName, serviceName, templateName, ifMatch).GetAwaiter().GetResult();
 }
示例#10
0
 /// <summary>
 /// Updates the specific Email Template.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 /// <param name='parameters'>
 /// Update parameters.
 /// </param>
 public static void Update(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName, EmailTemplateUpdateParameters parameters)
 {
     operations.UpdateAsync(resourceGroupName, serviceName, templateName, parameters).GetAwaiter().GetResult();
 }
示例#11
0
 /// <summary>
 /// Updates an Email Template.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 /// <param name='parameters'>
 /// Email Template update parameters.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. Not required when creating an entity, but required when
 /// updating an entity.
 /// </param>
 public static EmailTemplateContract CreateOrUpdate(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName, EmailTemplateUpdateParameters parameters, string ifMatch = default(string))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, templateName, parameters, ifMatch).GetAwaiter().GetResult());
 }
示例#12
0
 /// <summary>
 /// Gets the details of the email template specified by its identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='templateName'>
 /// Email Template Name Identifier. Possible values include:
 /// 'applicationApprovedNotificationMessage', 'accountClosedDeveloper',
 /// 'quotaLimitApproachingDeveloperNotificationMessage',
 /// 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault',
 /// 'inviteUserNotificationMessage', 'newCommentNotificationMessage',
 /// 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage',
 /// 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault',
 /// 'passwordResetByAdminNotificationMessage',
 /// 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage'
 /// </param>
 public static EmailTemplateContract Get(this IEmailTemplateOperations operations, string resourceGroupName, string serviceName, string templateName)
 {
     return(operations.GetAsync(resourceGroupName, serviceName, templateName).GetAwaiter().GetResult());
 }