/// <summary> /// Gets all the Dataset instances in a data factory with the link to the /// next page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <returns> /// The List Datasets operation response. /// </returns> public static Task <DatasetListResponse> ListAsync( this IDatasetOperations operations, string resourceGroupName, string dataFactoryName) { return(operations.ListAsync(resourceGroupName, dataFactoryName, CancellationToken.None)); }
/// <summary> /// Create a new dataset instance or update an existing instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a dataset. /// </param> /// <returns> /// The CreateOrUpdate dataset operation response. /// </returns> public static DatasetCreateOrUpdateResponse BeginCreateOrUpdate(this IDatasetOperations operations, string resourceGroupName, string dataFactoryName, DatasetCreateOrUpdateParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IDatasetOperations)s).BeginCreateOrUpdateAsync(resourceGroupName, dataFactoryName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets the next page of dataset instances with the link to the next /// page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IDatasetOperations. /// </param> /// <param name='nextLink'> /// Required. The url to the next datasets page. /// </param> /// <returns> /// The List datasets operation response. /// </returns> public static DatasetListResponse ListNext(this IDatasetOperations operations, string nextLink) { return(Task.Factory.StartNew((object s) => { return ((IDatasetOperations)s).ListNextAsync(nextLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets all the dataset instances in a data factory with the link to /// the next page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <returns> /// The List datasets operation response. /// </returns> public static DatasetListResponse List(this IDatasetOperations operations, string resourceGroupName, string dataFactoryName) { return(Task.Factory.StartNew((object s) => { return ((IDatasetOperations)s).ListAsync(resourceGroupName, dataFactoryName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IDatasetOperations. /// </param> /// <param name='operationStatusLink'> /// Required. Location value returned by the Begin operation. /// </param> /// <returns> /// The CreateOrUpdate dataset operation response. /// </returns> public static DatasetCreateOrUpdateResponse GetCreateOrUpdateStatus(this IDatasetOperations operations, string operationStatusLink) { return(Task.Factory.StartNew((object s) => { return ((IDatasetOperations)s).GetCreateOrUpdateStatusAsync(operationStatusLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Delete a Dataset instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <param name='datasetName'> /// Required. Name of the Dataset. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task <LongRunningOperationResponse> DeleteAsync( this IDatasetOperations operations, string resourceGroupName, string dataFactoryName, string datasetName) { return(operations.DeleteAsync(resourceGroupName, dataFactoryName, datasetName, CancellationToken.None)); }
/// <summary> /// Create a new Dataset instance or update an existing instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a Dataset. /// </param> /// <returns> /// The CreateOrUpdate Dataset operation response. /// </returns> public static Task <DatasetCreateOrUpdateResponse> BeginCreateOrUpdateAsync( this IDatasetOperations operations, string resourceGroupName, string dataFactoryName, DatasetCreateOrUpdateParameters parameters) { return(operations.BeginCreateOrUpdateAsync( resourceGroupName, dataFactoryName, parameters, CancellationToken.None)); }
/// <summary> /// Delete a Dataset instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <param name='datasetName'> /// Required. Name of the Dataset. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static LongRunningOperationResponse Delete( this IDatasetOperations operations, string resourceGroupName, string dataFactoryName, string datasetName) { return(Task.Factory.StartNew( s => ((IDatasetOperations)s).DeleteAsync(resourceGroupName, dataFactoryName, datasetName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Create a new Dataset instance or update an existing instance with raw /// json content. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <param name='datasetName'> /// Required. A unique Dataset instance name. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a Dataset. /// </param> /// <returns> /// The CreateOrUpdate Dataset operation response. /// </returns> public static Task <DatasetCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync( this IDatasetOperations operations, string resourceGroupName, string dataFactoryName, string datasetName, DatasetCreateOrUpdateWithRawJsonContentParameters parameters) { return(operations.CreateOrUpdateWithRawJsonContentAsync( resourceGroupName, dataFactoryName, datasetName, parameters, CancellationToken.None)); }
/// <summary> /// Create a new Dataset instance or update an existing instance with raw /// json content. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IDatasetOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <param name='datasetName'> /// Required. A unique Dataset instance name. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a Dataset. /// </param> /// <returns> /// The CreateOrUpdate Dataset operation response. /// </returns> public static DatasetCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent( this IDatasetOperations operations, string resourceGroupName, string dataFactoryName, string datasetName, DatasetCreateOrUpdateWithRawJsonContentParameters parameters) { return(Task.Factory.StartNew( s => ((IDatasetOperations)s).CreateOrUpdateWithRawJsonContentAsync( resourceGroupName, dataFactoryName, datasetName, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the DataFactoryManagementClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public DataFactoryManagementClient(HttpClient httpClient) : base(httpClient) { this._activityTypes = new ActivityTypeOperations(this); this._computeTypes = new ComputeTypeOperations(this); this._dataFactories = new DataFactoryOperations(this); this._datasets = new DatasetOperations(this); this._dataSlices = new DataSliceOperations(this); this._dataSliceRuns = new DataSliceRunOperations(this); this._gateways = new GatewayOperations(this); this._hubs = new HubOperations(this); this._linkedServices = new LinkedServiceOperations(this); this._oAuth = new OAuthOperations(this); this._pipelines = new PipelineOperations(this); this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(60); }
/// <summary> /// Gets the next page of dataset instances with the link to the next /// page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IDatasetOperations. /// </param> /// <param name='nextLink'> /// Required. The url to the next datasets page. /// </param> /// <returns> /// The List datasets operation response. /// </returns> public static Task <DatasetListResponse> ListNextAsync(this IDatasetOperations operations, string nextLink) { return(operations.ListNextAsync(nextLink, CancellationToken.None)); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IDatasetOperations. /// </param> /// <param name='operationStatusLink'> /// Required. Location value returned by the Begin operation. /// </param> /// <returns> /// The CreateOrUpdate dataset operation response. /// </returns> public static Task <DatasetCreateOrUpdateResponse> GetCreateOrUpdateStatusAsync(this IDatasetOperations operations, string operationStatusLink) { return(operations.GetCreateOrUpdateStatusAsync(operationStatusLink, CancellationToken.None)); }
public DataSetUnitTests() { _dataAccessDataSetOperations = new DataAccessDatasetOperations(); }