/// <summary> /// This method gets all the jobs of a data service type in a given resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='dataServiceName'> /// The name of the data service of interest. /// </param> /// <param name='resourceGroupName'> /// The Resource Group Name /// </param> /// <param name='dataManagerName'> /// The name of the DataManager Resource within the specified resource group. /// DataManager names must be between 3 and 24 characters in length and use any /// alphanumeric and underscore only /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <Job> ListByDataService(this IJobsOperations operations, string dataServiceName, string resourceGroupName, string dataManagerName, ODataQuery <JobFilter> odataQuery = default(ODataQuery <JobFilter>)) { return(operations.ListByDataServiceAsync(dataServiceName, resourceGroupName, dataManagerName, odataQuery).GetAwaiter().GetResult()); }