/// <summary> /// Returns information about the Azure SQL capabilities available for /// the specified region. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Sql.ICapabilitiesOperations. /// </param> /// <param name='locationName'> /// Required. The name of the region for which the Azure SQL /// capabilities are retrieved. /// </param> /// <returns> /// Represents the response to a Get Azure Sql capabilities request /// </returns> public static Task <LocationCapabilitiesGetResponse> GetAsync(this ICapabilitiesOperations operations, string locationName) { return(operations.GetAsync(locationName, CancellationToken.None)); }
/// <summary> /// Get a Capability resource that extends a Target resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='parentProviderNamespace'> /// String that represents a resource provider namespace. /// </param> /// <param name='parentResourceType'> /// String that represents a resource type. /// </param> /// <param name='parentResourceName'> /// String that represents a resource name. /// </param> /// <param name='targetName'> /// String that represents a Target resource name. /// </param> /// <param name='capabilityName'> /// String that represents a Capability resource name. /// </param> public static Capability Get(this ICapabilitiesOperations operations, string resourceGroupName, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, string capabilityName) { return(operations.GetAsync(resourceGroupName, parentProviderNamespace, parentResourceType, parentResourceName, targetName, capabilityName).GetAwaiter().GetResult()); }