Example #1
0
 /// <summary>
 /// Creates or updates the rollout details.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='rolloutName'>
 /// The rollout name.
 /// </param>
 /// <param name='properties'>
 /// Properties of the rollout.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DefaultRollout> BeginCreateOrUpdateAsync(this IDefaultRolloutsOperations operations, string providerNamespace, string rolloutName, DefaultRolloutPropertiesModel properties = default(DefaultRolloutPropertiesModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(providerNamespace, rolloutName, properties, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Gets the default rollout details.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='rolloutName'>
 /// The rollout name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DefaultRollout> GetAsync(this IDefaultRolloutsOperations operations, string providerNamespace, string rolloutName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(providerNamespace, rolloutName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #3
0
 /// <summary>
 /// Deletes the rollout resource. Rollout must be in terminal state.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='rolloutName'>
 /// The rollout name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IDefaultRolloutsOperations operations, string providerNamespace, string rolloutName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(providerNamespace, rolloutName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Example #4
0
 /// <summary>
 /// Deletes the rollout resource. Rollout must be in terminal state.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='rolloutName'>
 /// The rollout name.
 /// </param>
 public static void Delete(this IDefaultRolloutsOperations operations, string providerNamespace, string rolloutName)
 {
     operations.DeleteAsync(providerNamespace, rolloutName).GetAwaiter().GetResult();
 }
Example #5
0
 /// <summary>
 /// Gets the default rollout details.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='rolloutName'>
 /// The rollout name.
 /// </param>
 public static DefaultRollout Get(this IDefaultRolloutsOperations operations, string providerNamespace, string rolloutName)
 {
     return(operations.GetAsync(providerNamespace, rolloutName).GetAwaiter().GetResult());
 }
Example #6
0
 /// <summary>
 /// Gets the list of the rollouts for the given provider.
 /// </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 <DefaultRollout> > ListByProviderRegistrationNextAsync(this IDefaultRolloutsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByProviderRegistrationNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #7
0
 /// <summary>
 /// Gets the list of the rollouts for the given provider.
 /// </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 <DefaultRollout> ListByProviderRegistrationNext(this IDefaultRolloutsOperations operations, string nextPageLink)
 {
     return(operations.ListByProviderRegistrationNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Example #8
0
 /// <summary>
 /// Creates or updates the rollout details.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='rolloutName'>
 /// The rollout name.
 /// </param>
 /// <param name='properties'>
 /// Properties of the rollout.
 /// </param>
 public static DefaultRollout BeginCreateOrUpdate(this IDefaultRolloutsOperations operations, string providerNamespace, string rolloutName, DefaultRolloutPropertiesModel properties = default(DefaultRolloutPropertiesModel))
 {
     return(operations.BeginCreateOrUpdateAsync(providerNamespace, rolloutName, properties).GetAwaiter().GetResult());
 }
Example #9
0
 /// <summary>
 /// Gets the list of the rollouts for the given provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 public static IPage <DefaultRollout> ListByProviderRegistration(this IDefaultRolloutsOperations operations, string providerNamespace)
 {
     return(operations.ListByProviderRegistrationAsync(providerNamespace).GetAwaiter().GetResult());
 }