/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='operationStatusLink'> /// Required. Location value returned by the Begin operation. /// </param> /// <returns> /// The create or update hub operation response. /// </returns> public static HubCreateOrUpdateResponse GetCreateOrUpdateStatus(this IHubOperations operations, string operationStatusLink) { return(Task.Factory.StartNew((object s) => { return ((IHubOperations)s).GetCreateOrUpdateStatusAsync(operationStatusLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Create a new hub instance or update an existing instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a hub. /// </param> /// <returns> /// The create or update hub operation response. /// </returns> public static HubCreateOrUpdateResponse BeginCreateOrUpdate(this IHubOperations operations, string resourceGroupName, string dataFactoryName, HubCreateOrUpdateParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IHubOperations)s).BeginCreateOrUpdateAsync(resourceGroupName, dataFactoryName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets the next page of data factory hub instances with the link to /// the next page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='nextLink'> /// Required. The url to the next data factory hubs page. /// </param> /// <returns> /// The list hub operation response. /// </returns> public static HubListResponse ListNext(this IHubOperations operations, string nextLink) { return(Task.Factory.StartNew((object s) => { return ((IHubOperations)s).ListNextAsync(nextLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets the first page of data factory hub instances with the link to /// the next page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <returns> /// The list hub operation response. /// </returns> public static HubListResponse List(this IHubOperations operations, string resourceGroupName, string dataFactoryName) { return(Task.Factory.StartNew((object s) => { return ((IHubOperations)s).ListAsync(resourceGroupName, dataFactoryName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Delete a hub instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='hubName'> /// Required. The name of the hub. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static LongRunningOperationResponse BeginDelete(this IHubOperations operations, string resourceGroupName, string dataFactoryName, string hubName) { return Task.Factory.StartNew((object s) => { return ((IHubOperations)s).BeginDeleteAsync(resourceGroupName, dataFactoryName, hubName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Initializes a new instance of the DataPipelineManagementClient /// class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public DataPipelineManagementClient(HttpClient httpClient) : base(httpClient) { this._dataFactories = new DataFactoryOperations(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._pipelines = new PipelineOperations(this); this._pipelineRuns = new PipelineRunOperations(this); this._tables = new TableOperations(this); this.HttpClient.Timeout = TimeSpan.FromSeconds(60); }
/// <summary> /// Initializes a new instance of the DataPipelineManagementClient /// class. /// </summary> private DataPipelineManagementClient() : base() { this._dataFactories = new DataFactoryOperations(this); this._dataSlices = new DataSliceOperations(this); this._dataSliceRuns = new DataSliceRunOperations(this); this._encryptionCertificate = new EncryptionCertificateOperations(this); this._gateways = new GatewayOperations(this); this._hubs = new HubOperations(this); this._linkedServices = new LinkedServiceOperations(this); this._pipelines = new PipelineOperations(this); this._pipelineRuns = new PipelineRunOperations(this); this._tables = new TableOperations(this); this.HttpClient.Timeout = TimeSpan.FromSeconds(60); }
/// <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._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._pipelines = new PipelineOperations(this); this._tables = new TableOperations(this); this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(60); }
/// <summary> /// Create a new hub instance or update an existing instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a hub. /// </param> /// <returns> /// The create or update hub operation response. /// </returns> public static Task <HubCreateOrUpdateResponse> BeginCreateOrUpdateAsync(this IHubOperations operations, string resourceGroupName, string dataFactoryName, HubCreateOrUpdateParameters parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, dataFactoryName, parameters, CancellationToken.None)); }
/// <summary> /// Gets the next page of data factory hub instances with the link to /// the next page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='nextLink'> /// Required. The url to the next data factory hubs page. /// </param> /// <returns> /// The list hub operation response. /// </returns> public static Task <HubListResponse> ListNextAsync(this IHubOperations operations, string nextLink) { return(operations.ListNextAsync(nextLink, CancellationToken.None)); }
/// <summary> /// Gets the first page of data factory hub instances with the link to /// the next page. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <returns> /// The list hub operation response. /// </returns> public static Task <HubListResponse> ListAsync(this IHubOperations operations, string resourceGroupName, string dataFactoryName) { return(operations.ListAsync(resourceGroupName, dataFactoryName, CancellationToken.None)); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='operationStatusLink'> /// Required. Location value returned by the Begin operation. /// </param> /// <returns> /// The create or update hub operation response. /// </returns> public static Task <HubCreateOrUpdateResponse> GetCreateOrUpdateStatusAsync(this IHubOperations operations, string operationStatusLink) { return(operations.GetCreateOrUpdateStatusAsync(operationStatusLink, CancellationToken.None)); }
/// <summary> /// Delete a hub instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='hubName'> /// Required. The name of the hub. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task <LongRunningOperationResponse> DeleteAsync(this IHubOperations operations, string resourceGroupName, string dataFactoryName, string hubName) { return(operations.DeleteAsync(resourceGroupName, dataFactoryName, hubName, CancellationToken.None)); }
/// <summary> /// Create a new hub instance or update an existing instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='hubName'> /// Required. The name of the data factory hub to be created or updated. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update a hub. /// </param> /// <returns> /// The create or update hub operation response. /// </returns> public static Task <HubCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(this IHubOperations operations, string resourceGroupName, string dataFactoryName, string hubName, HubCreateOrUpdateWithRawJsonContentParameters parameters) { return(operations.CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, dataFactoryName, hubName, parameters, CancellationToken.None)); }
/// <summary> /// Gets a hub instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. The name of the data factory. /// </param> /// <param name='hubName'> /// Required. The name of the hub. /// </param> /// <returns> /// The get hub operation response. /// </returns> public static Task<HubGetResponse> GetAsync(this IHubOperations operations, string resourceGroupName, string dataFactoryName, string hubName) { return operations.GetAsync(resourceGroupName, dataFactoryName, hubName, CancellationToken.None); }