Esempio n. 1
0
 /// <summary>
 /// Get all the Kubernetes Environments in a resource group.
 /// </summary>
 /// <remarks>
 /// Description for Get all the Kubernetes Environments in a resource group.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <KubeEnvironment> > ListByResourceGroupAsync(this IKubeEnvironmentsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Get all Kubernetes Environments for a subscription.
 /// </summary>
 /// <remarks>
 /// Description for Get all Kubernetes Environments for a subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <KubeEnvironment> > ListBySubscriptionAsync(this IKubeEnvironmentsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Creates or updates a Kubernetes Environment.
 /// </summary>
 /// <remarks>
 /// Description for Creates or updates a Kubernetes Environment.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Kubernetes Environment.
 /// </param>
 /// <param name='kubeEnvironmentEnvelope'>
 /// Configuration details of the Kubernetes Environment.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <KubeEnvironment> BeginCreateOrUpdateAsync(this IKubeEnvironmentsOperations operations, string resourceGroupName, string name, KubeEnvironment kubeEnvironmentEnvelope, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, name, kubeEnvironmentEnvelope, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Get all the Kubernetes Environments in a resource group.
 /// </summary>
 /// <remarks>
 /// Description for Get all the Kubernetes Environments in a resource group.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 public static IPage <KubeEnvironment> ListByResourceGroup(this IKubeEnvironmentsOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Get all the Kubernetes Environments in a resource group.
 /// </summary>
 /// <remarks>
 /// Description for Get all the Kubernetes Environments in a resource group.
 /// </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 <KubeEnvironment> ListByResourceGroupNext(this IKubeEnvironmentsOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <summary>
 /// Delete a Kubernetes Environment.
 /// </summary>
 /// <remarks>
 /// Description for Delete a Kubernetes Environment.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Kubernetes Environment.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IKubeEnvironmentsOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Esempio n. 7
0
 /// <summary>
 /// Delete a Kubernetes Environment.
 /// </summary>
 /// <remarks>
 /// Description for Delete a Kubernetes Environment.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Kubernetes Environment.
 /// </param>
 public static void BeginDelete(this IKubeEnvironmentsOperations operations, string resourceGroupName, string name)
 {
     operations.BeginDeleteAsync(resourceGroupName, name).GetAwaiter().GetResult();
 }
Esempio n. 8
0
 /// <summary>
 /// Get all Kubernetes Environments for a subscription.
 /// </summary>
 /// <remarks>
 /// Description for Get all Kubernetes Environments for a subscription.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <KubeEnvironment> ListBySubscription(this IKubeEnvironmentsOperations operations)
 {
     return(operations.ListBySubscriptionAsync().GetAwaiter().GetResult());
 }
Esempio n. 9
0
 /// <summary>
 /// Creates or updates a Kubernetes Environment.
 /// </summary>
 /// <remarks>
 /// Description for Creates or updates a Kubernetes Environment.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Kubernetes Environment.
 /// </param>
 /// <param name='kubeEnvironmentEnvelope'>
 /// Configuration details of the Kubernetes Environment.
 /// </param>
 public static KubeEnvironment BeginCreateOrUpdate(this IKubeEnvironmentsOperations operations, string resourceGroupName, string name, KubeEnvironment kubeEnvironmentEnvelope)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, name, kubeEnvironmentEnvelope).GetAwaiter().GetResult());
 }
Esempio n. 10
0
 /// <summary>
 /// Get the properties of a Kubernetes Environment.
 /// </summary>
 /// <remarks>
 /// Description for Get the properties of a Kubernetes Environment.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='name'>
 /// Name of the Kubernetes Environment.
 /// </param>
 public static KubeEnvironment Get(this IKubeEnvironmentsOperations operations, string resourceGroupName, string name)
 {
     return(operations.GetAsync(resourceGroupName, name).GetAwaiter().GetResult());
 }