/// <summary>
 /// Lists all pipelines.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <JobPipelineInformation> > ListNextAsync(this IPipelineOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Gets the first page of pipeline instances with the link to the next
 /// page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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 pipeline operation response.
 /// </returns>
 public static Task <PipelineListResponse> ListAsync(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName)
 {
     return(operations.ListAsync(resourceGroupName, dataFactoryName, CancellationToken.None));
 }
 /// <summary>
 /// Lists all pipelines.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountName'>
 /// The Azure Data Lake Analytics account to execute job operations on.
 /// </param>
 /// <param name='startDateTime'>
 /// The start date for when to get the list of pipelines. The startDateTime and
 /// endDateTime can be no more than 30 days apart.
 /// </param>
 /// <param name='endDateTime'>
 /// The end date for when to get the list of pipelines. The startDateTime and
 /// endDateTime can be no more than 30 days apart.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <JobPipelineInformation> > ListAsync(this IPipelineOperations operations, string accountName, System.DateTimeOffset?startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?endDateTime = default(System.DateTimeOffset?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(accountName, startDateTime, endDateTime, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Suspend a running pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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='dataPipelineName'>
 /// Required. Name of the data pipeline.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> SuspendAsync(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string dataPipelineName)
 {
     return(operations.SuspendAsync(resourceGroupName, dataFactoryName, dataPipelineName, CancellationToken.None));
 }
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static PipelineCreateOrUpdateResponse GetCreateOrUpdateStatus(this IPipelineOperations operations, string operationStatusLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPipelineOperations)s).GetCreateOrUpdateStatusAsync(operationStatusLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Beispiel #6
0
 /// <summary>
 /// Delete a pipeline instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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='dataPipelineName'>
 /// Required. Name of the data pipeline.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> DeleteAsync(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string dataPipelineName)
 {
     return(operations.DeleteAsync(resourceGroupName, dataFactoryName, dataPipelineName, CancellationToken.None));
 }
 /// <summary>
 /// Gets the next page of pipeline instances with the link to the next
 /// page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next pipelines page.
 /// </param>
 /// <returns>
 /// The List pipeline operation response.
 /// </returns>
 public static PipelineListResponse ListNext(this IPipelineOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPipelineOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create or update a pipeline instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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 pipeline.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static PipelineCreateOrUpdateResponse BeginCreateOrUpdate(this IPipelineOperations operations, string resourceGroupName, string dataFactoryName, PipelineCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPipelineOperations)s).BeginCreateOrUpdateAsync(resourceGroupName, dataFactoryName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Suspend a running pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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='dataPipelineName'>
 /// Required. Name of the data pipeline.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse Suspend(this IPipelineOperations operations, string resourceGroupName, string dataFactoryName, string dataPipelineName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IPipelineOperations)s).SuspendAsync(resourceGroupName, dataFactoryName, dataPipelineName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Beispiel #10
0
 /// <summary>
 /// Create or update a pipeline instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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 pipeline.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static Task <PipelineCreateOrUpdateResponse> BeginCreateOrUpdateAsync(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     PipelineCreateOrUpdateParameters parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(
                resourceGroupName,
                dataFactoryName,
                parameters,
                CancellationToken.None));
 }
Beispiel #11
0
 /// <summary>
 /// Gets the first page of pipeline instances with the link to the next
 /// page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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 pipeline operation response.
 /// </returns>
 public static PipelineListResponse List(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName)
 {
     return(Task.Factory.StartNew(
                s => ((IPipelineOperations)s).ListAsync(resourceGroupName, dataFactoryName),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Beispiel #12
0
 /// <summary>
 /// Create a new pipeline instance with raw JSON content.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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='dataPipelineName'>
 /// Required. A unique pipeline instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a pipeline.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static Task <PipelineCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string dataPipelineName,
     PipelineCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return(operations.CreateOrUpdateWithRawJsonContentAsync(
                resourceGroupName,
                dataFactoryName,
                dataPipelineName,
                parameters,
                CancellationToken.None));
 }
 /// <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);
 }
Beispiel #14
0
 /// <summary>
 /// Sets the active period of a pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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='dataPipelineName'>
 /// Required. Name of the data pipeline.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters required to set the active period of a
 /// pipeline.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> SetActivePeriodAsync(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string dataPipelineName,
     PipelineSetActivePeriodParameters parameters)
 {
     return(operations.SetActivePeriodAsync(
                resourceGroupName,
                dataFactoryName,
                dataPipelineName,
                parameters,
                CancellationToken.None));
 }
Beispiel #15
0
 /// <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);
 }
Beispiel #16
0
 /// <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);
 }
Beispiel #17
0
 /// <summary>
 /// Create a new pipeline instance with raw JSON content.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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='dataPipelineName'>
 /// Required. A unique pipeline instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a pipeline.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static PipelineCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string dataPipelineName,
     PipelineCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return(Task.Factory.StartNew(
                s => ((IPipelineOperations)s).CreateOrUpdateWithRawJsonContentAsync(
                    resourceGroupName,
                    dataFactoryName,
                    dataPipelineName,
                    parameters),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Beispiel #18
0
 /// <summary>
 /// Sets the active period of a pipeline.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </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>ume
 /// <param name='dataPipelineName'>
 /// Required. Name of the data pipeline.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters required to set the active period of a
 /// pipeline.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse SetActivePeriod(
     this IPipelineOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string dataPipelineName,
     PipelineSetActivePeriodParameters parameters)
 {
     return(Task.Factory.StartNew(
                s => ((IPipelineOperations)s).SetActivePeriodAsync(
                    resourceGroupName,
                    dataFactoryName,
                    dataPipelineName,
                    parameters),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all pipelines.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <JobPipelineInformation> ListNext(this IPipelineOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all pipelines.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountName'>
 /// The Azure Data Lake Analytics account to execute job operations on.
 /// </param>
 /// <param name='startDateTime'>
 /// The start date for when to get the list of pipelines. The startDateTime and
 /// endDateTime can be no more than 30 days apart.
 /// </param>
 /// <param name='endDateTime'>
 /// The end date for when to get the list of pipelines. The startDateTime and
 /// endDateTime can be no more than 30 days apart.
 /// </param>
 public static IPage <JobPipelineInformation> List(this IPipelineOperations operations, string accountName, System.DateTimeOffset?startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?endDateTime = default(System.DateTimeOffset?))
 {
     return(operations.ListAsync(accountName, startDateTime, endDateTime).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the next page of pipeline instances with the link to the next
 /// page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next pipelines page.
 /// </param>
 /// <returns>
 /// The List pipeline operation response.
 /// </returns>
 public static Task <PipelineListResponse> ListNextAsync(this IPipelineOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
 /// <summary>
 /// Gets the Pipeline information for the specified pipeline ID.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountName'>
 /// The Azure Data Lake Analytics account to execute job operations on.
 /// </param>
 /// <param name='pipelineIdentity'>
 /// Pipeline ID.
 /// </param>
 /// <param name='startDateTime'>
 /// The start date for when to get the pipeline and aggregate its data. The
 /// startDateTime and endDateTime can be no more than 30 days apart.
 /// </param>
 /// <param name='endDateTime'>
 /// The end date for when to get the pipeline and aggregate its data. The
 /// startDateTime and endDateTime can be no more than 30 days apart.
 /// </param>
 public static JobPipelineInformation Get(this IPipelineOperations operations, string accountName, System.Guid pipelineIdentity, System.DateTimeOffset?startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?endDateTime = default(System.DateTimeOffset?))
 {
     return(operations.GetAsync(accountName, pipelineIdentity, startDateTime, endDateTime).GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IPipelineOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// The create or update pipeline operation response.
 /// </returns>
 public static Task <PipelineCreateOrUpdateResponse> GetCreateOrUpdateStatusAsync(this IPipelineOperations operations, string operationStatusLink)
 {
     return(operations.GetCreateOrUpdateStatusAsync(operationStatusLink, CancellationToken.None));
 }