/// <summary>
 /// List cluster code versions by location
 /// </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 <ClusterCodeVersionsResult> > ListNextAsync(this IClusterVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets information about a Service Fabric cluster code version available in
 /// the specified location.
 /// </summary>
 /// <remarks>
 /// Gets information about an available Service Fabric cluster code version.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location for the cluster code versions. This is different from cluster
 /// location.
 /// </param>
 /// <param name='clusterVersion'>
 /// The cluster code version.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ClusterCodeVersionsListResult> GetAsync(this IClusterVersionsOperations operations, string location, string clusterVersion, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(location, clusterVersion, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Gets information about a Service Fabric cluster code version available for
 /// the specified environment.
 /// </summary>
 /// <remarks>
 /// Gets information about an available Service Fabric cluster code version by
 /// environment.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location for the cluster code versions. This is different from cluster
 /// location.
 /// </param>
 /// <param name='environment'>
 /// The operating system of the cluster. The default means all. Possible values
 /// include: 'Windows', 'Linux'
 /// </param>
 /// <param name='clusterVersion'>
 /// The cluster code version.
 /// </param>
 public static ClusterCodeVersionsListResult GetByEnvironment(this IClusterVersionsOperations operations, string location, string environment, string clusterVersion)
 {
     return(operations.GetByEnvironmentAsync(location, environment, clusterVersion).GetAwaiter().GetResult());
 }
Esempio n. 4
0
 /// <summary>
 /// Gets the list of Service Fabric cluster code versions available for the
 /// specified location.
 /// </summary>
 /// <remarks>
 /// Gets all available code versions for Service Fabric cluster resources by
 /// location.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The location for the cluster code versions. This is different from cluster
 /// location.
 /// </param>
 public static ClusterCodeVersionsListResult List(this IClusterVersionsOperations operations, string location)
 {
     return(operations.ListAsync(location).GetAwaiter().GetResult());
 }