/// <summary> /// Gets the list of Service Fabric cluster code versions available for the /// specified OS type. /// </summary> /// <remarks> /// Gets all available code versions for Service Fabric cluster resources by OS /// type. /// </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='osType'> /// The operating system of the cluster. Possible values include: 'Windows', /// 'Ubuntu', 'RedHat', 'Ubuntu18_04' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <ManagedClusterVersionDetails> > ListByOSAsync(this IManagedClusterVersionsOperations operations, string location, string osType, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByOSWithHttpMessagesAsync(location, osType, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the list of Service Fabric cluster code versions available for the /// specified OS type. /// </summary> /// <remarks> /// Gets all available code versions for Service Fabric cluster resources by OS /// type. /// </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='osType'> /// The operating system of the cluster. Possible values include: 'Windows', /// 'Ubuntu', 'RedHat', 'Ubuntu18_04' /// </param> public static IList <ManagedClusterVersionDetails> ListByOS(this IManagedClusterVersionsOperations operations, string location, string osType) { return(operations.ListByOSAsync(location, osType).GetAwaiter().GetResult()); }