Beispiel #1
0
 /// <summary>
 /// Gets information about a Service Fabric managed cluster code version
 /// available in the specified location.
 /// </summary>
 /// <remarks>
 /// Gets information about an available Service Fabric managed 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 <ManagedClusterCodeVersionResult> GetAsync(this IManagedClusterVersionOperations operations, string location, string clusterVersion, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(location, clusterVersion, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
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='clusterVersion'>
 /// The cluster code version.
 /// </param>
 public static ManagedClusterCodeVersionResult GetByEnvironment(this IManagedClusterVersionOperations operations, string location, string clusterVersion)
 {
     return(operations.GetByEnvironmentAsync(location, clusterVersion).GetAwaiter().GetResult());
 }
Beispiel #3
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 IList <ManagedClusterCodeVersionResult> List(this IManagedClusterVersionOperations operations, string location)
 {
     return(operations.ListAsync(location).GetAwaiter().GetResult());
 }