/// <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); } }
/// <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); } }
/// <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); } }
/// <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()); }
/// <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()); }
/// <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(); }
/// <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(); }
/// <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()); }
/// <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()); }
/// <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()); }