/// <summary>
 /// Gets a list of OpenShift managed clusters in the specified subscription.
 /// </summary>
 /// <remarks>
 /// Gets a list of OpenShift managed clusters in the specified subscription.
 /// The operation returns properties of each OpenShift managed cluster.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <OpenShiftManagedCluster> > ListAsync(this IOpenShiftManagedClustersOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Updates tags on an OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Updates an OpenShift managed cluster with the specified tags.
 /// </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 OpenShift managed cluster resource.
 /// </param>
 /// <param name='tags'>
 /// Resource tags.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OpenShiftManagedCluster> BeginUpdateTagsAsync(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, IDictionary <string, string> tags = default(IDictionary <string, string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateTagsWithHttpMessagesAsync(resourceGroupName, resourceName, tags, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates or updates an OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Creates or updates a OpenShift managed cluster with the specified
 /// configuration for agents and OpenShift 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 OpenShift managed cluster resource.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Create or Update an OpenShift Managed Cluster
 /// operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OpenShiftManagedCluster> BeginCreateOrUpdateAsync(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, OpenShiftManagedCluster parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets a OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Gets the details of the managed OpenShift 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 OpenShift managed cluster resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OpenShiftManagedClusterInner> GetAsync(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists OpenShift managed clusters in the specified subscription and resource
 /// group.
 /// </summary>
 /// <remarks>
 /// Lists OpenShift managed clusters in the specified subscription and resource
 /// group. The operation returns properties of each OpenShift 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 <OpenShiftManagedCluster> ListByResourceGroup(this IOpenShiftManagedClustersOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists OpenShift managed clusters in the specified subscription and resource
 /// group.
 /// </summary>
 /// <remarks>
 /// Lists OpenShift managed clusters in the specified subscription and resource
 /// group. The operation returns properties of each OpenShift 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 <OpenShiftManagedCluster> ListByResourceGroupNext(this IOpenShiftManagedClustersOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes an OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Deletes the OpenShift 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 OpenShift managed cluster resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deletes an OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Deletes the OpenShift 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 OpenShift managed cluster resource.
 /// </param>
 public static void BeginDelete(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName)
 {
     operations.BeginDeleteAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Updates tags on an OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Updates an OpenShift managed cluster with the specified tags.
 /// </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 OpenShift managed cluster resource.
 /// </param>
 /// <param name='tags'>
 /// Resource tags.
 /// </param>
 public static OpenShiftManagedCluster BeginUpdateTags(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     return(operations.BeginUpdateTagsAsync(resourceGroupName, resourceName, tags).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a list of OpenShift managed clusters in the specified subscription.
 /// </summary>
 /// <remarks>
 /// Gets a list of OpenShift managed clusters in the specified subscription.
 /// The operation returns properties of each OpenShift managed cluster.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <OpenShiftManagedCluster> List(this IOpenShiftManagedClustersOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates or updates an OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Creates or updates a OpenShift managed cluster with the specified
 /// configuration for agents and OpenShift 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 OpenShift managed cluster resource.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Create or Update an OpenShift Managed Cluster
 /// operation.
 /// </param>
 public static OpenShiftManagedCluster BeginCreateOrUpdate(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName, OpenShiftManagedCluster parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a OpenShift managed cluster.
 /// </summary>
 /// <remarks>
 /// Gets the details of the managed OpenShift 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 OpenShift managed cluster resource.
 /// </param>
 public static OpenShiftManagedCluster Get(this IOpenShiftManagedClustersOperations operations, string resourceGroupName, string resourceName)
 {
     return(operations.GetAsync(resourceGroupName, resourceName).GetAwaiter().GetResult());
 }
Exemplo n.º 13
0
 /// <summary>
 /// Lists OpenShift managed clusters in the specified subscription and resource
 /// group.
 /// </summary>
 /// <remarks>
 /// Lists OpenShift managed clusters in the specified subscription and resource
 /// group. The operation returns properties of each OpenShift 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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <OpenShiftManagedClusterInner> > ListByResourceGroupNextAsync(this IOpenShiftManagedClustersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }