/// <summary> /// Lists managed clusters in the specified subscription and resource group. /// </summary> /// <remarks> /// Lists managed clusters in the specified subscription and resource group. /// The operation returns properties of each managed cluster. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ManagedClusterInner> > ListByResourceGroupAsync(this IManagedClustersOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Stop Managed Cluster /// </summary> /// <remarks> /// Stops a Running Managed Cluster /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginStopAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginStopWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Gets cluster monitoring user credential of a managed cluster. /// </summary> /// <remarks> /// Gets cluster monitoring user credential of the managed cluster with a /// specified resource group and name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CredentialResultsInner> ListClusterMonitoringUserCredentialsAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListClusterMonitoringUserCredentialsWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Reset Service Principal Profile of a managed cluster. /// </summary> /// <remarks> /// Update the service principal Profile for a managed cluster. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> /// <param name='parameters'> /// Parameters supplied to the Reset Service Principal Profile operation for a /// Managed Cluster. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginResetServicePrincipalProfileAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, ManagedClusterServicePrincipalProfile parameters, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginResetServicePrincipalProfileWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Lists managed clusters in the specified subscription and resource group. /// </summary> /// <remarks> /// Lists managed clusters in the specified subscription and resource group. /// The operation returns properties of each managed cluster. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> public static IPage <ManagedCluster> ListByResourceGroup(this IManagedClustersOperations operations, string resourceGroupName) { return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult()); }
public static async Task <ManagedClusterAccessProfileInner> GetAccessProfileAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, string roleName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetAccessProfileWithHttpMessagesAsync(resourceGroupName, resourceName, roleName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Deletes a managed cluster. /// </summary> /// <remarks> /// Deletes the managed cluster with a specified resource group and name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> public static void BeginDelete(this IManagedClustersOperations operations, string resourceGroupName, string resourceName) { operations.BeginDeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult(); }
/// <summary> /// Lists managed clusters in the specified subscription and resource group. /// </summary> /// <remarks> /// Lists managed clusters in the specified subscription and resource group. /// The operation returns properties of each managed cluster. /// </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 <ManagedCluster> ListByResourceGroupNext(this IManagedClustersOperations operations, string nextPageLink) { return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of managed clusters in the specified subscription. /// </summary> /// <remarks> /// Gets a list of managed clusters in the specified subscription. The /// operation returns properties of each managed cluster. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <ManagedCluster> List(this IManagedClustersOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// Creates or updates a managed cluster. /// </summary> /// <remarks> /// Creates or updates a managed cluster with the specified configuration for /// agents and Kubernetes version. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> /// <param name='parameters'> /// Parameters supplied to the Create or Update a Managed Cluster operation. /// </param> public static ManagedCluster BeginCreateOrUpdate(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, ManagedCluster parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets a managed cluster. /// </summary> /// <remarks> /// Gets the details of the managed cluster with a specified resource group and /// name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> public static ManagedCluster Get(this IManagedClustersOperations operations, string resourceGroupName, string resourceName) { return(operations.GetAsync(resourceGroupName, resourceName).GetAwaiter().GetResult()); }
/// <summary> /// Gets access profile of a managed cluster. /// </summary> /// <remarks> /// Gets the accessProfile for the specified role name of the managed cluster /// with a specified resource group and name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the managed cluster resource. /// </param> /// <param name='roleName'> /// The name of the role for managed cluster accessProfile resource. /// </param> public static ManagedClusterAccessProfile GetAccessProfiles(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, string roleName) { return(operations.GetAccessProfilesAsync(resourceGroupName, resourceName, roleName).GetAwaiter().GetResult()); }
/// <summary> /// Gets the list of Service Fabric cluster resources created in the specified /// subscription. /// </summary> /// <remarks> /// Gets all Service Fabric cluster resources created or in the process of /// being created in the subscription. /// </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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ManagedCluster> > ListBySubscriptionNextAsync(this IManagedClustersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates the tags of of a Service Fabric managed cluster resource. /// </summary> /// <remarks> /// Update the tags of of a Service Fabric managed cluster resource with the /// specified name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterName'> /// The name of the cluster resource. /// </param> /// <param name='tags'> /// Managed cluster update parameters /// </param> public static ManagedCluster Update(this IManagedClustersOperations operations, string resourceGroupName, string clusterName, IDictionary <string, string> tags = default(IDictionary <string, string>)) { return(operations.UpdateAsync(resourceGroupName, clusterName, tags).GetAwaiter().GetResult()); }
/// <summary> /// Updates the configuration of a Service Fabric managed cluster resource. /// </summary> /// <remarks> /// Update the configuration of a Service Fabric managed cluster resource with /// the specified name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterName'> /// The name of the cluster resource. /// </param> /// <param name='parameters'> /// The parameters to update the managed cluster configuration. /// </param> public static ManagedCluster Update(this IManagedClustersOperations operations, string resourceGroupName, string clusterName, ManagedClusterUpdateParameters parameters) { return(operations.UpdateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult()); }