/// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ILinkedServiceOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// The create or update data factory linkedService operation response.
 /// </returns>
 public static LinkedServiceCreateOrUpdateResponse GetCreateOrUpdateStatus(this ILinkedServiceOperations operations, string operationStatusLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ILinkedServiceOperations)s).GetCreateOrUpdateStatusAsync(operationStatusLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a data factory linkedService instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ILinkedServiceOperations.
 /// </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='linkedServiceName'>
 /// Required. A unique data factory linkedService name.
 /// </param>
 /// <returns>
 /// The Get data factory linkedService operation response.
 /// </returns>
 public static LinkedServiceGetResponse Get(this ILinkedServiceOperations operations, string resourceGroupName, string dataFactoryName, string linkedServiceName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ILinkedServiceOperations)s).GetAsync(resourceGroupName, dataFactoryName, linkedServiceName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the next page of linked service instances with the link to the
 /// next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next linked services page.
 /// </param>
 /// <returns>
 /// The List data factory linkedServices operation response.
 /// </returns>
 public static LinkedServiceListResponse ListNext(this ILinkedServiceOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew(
                s => ((ILinkedServiceOperations)s).ListNextAsync(nextLink),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 4
0
 /// <summary>
 /// Delete a data factory linkedService instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </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='linkedServiceName'>
 /// Required. A unique data factory linkedService name.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> BeginDeleteAsync(
     this ILinkedServiceOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string linkedServiceName)
 {
     return(operations.BeginDeleteAsync(
                resourceGroupName,
                dataFactoryName,
                linkedServiceName,
                CancellationToken.None));
 }
Esempio n. 5
0
 /// <summary>
 /// Create or update a data factory linkedService.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </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 data
 /// factory linkedService.
 /// </param>
 /// <returns>
 /// The create or update data factory linkedService operation response.
 /// </returns>
 public static Task <LinkedServiceCreateOrUpdateResponse> BeginCreateOrUpdateAsync(
     this ILinkedServiceOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     LinkedServiceCreateOrUpdateParameters parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(
                resourceGroupName,
                dataFactoryName,
                parameters,
                CancellationToken.None));
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the
 /// OperationalInsightsManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public OperationalInsightsManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._dataSources     = new DataSourceOperations(this);
     this._linkedServices  = new LinkedServiceOperations(this);
     this._search          = new SearchOperations(this);
     this._storageInsights = new StorageInsightOperations(this);
     this._workspaces      = new WorkspaceOperations(this);
     this._apiVersion      = "2015-03-20";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(120);
 }
 /// <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);
 }
Esempio n. 8
0
 /// <summary>
 /// Create or update a data factory linkedService with raw json content.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </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='linkedServiceName'>
 /// Required. The name of the data factory table to be created or
 /// updated.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a data
 /// factory linkedService.
 /// </param>
 /// <returns>
 /// The create or update data factory linkedService operation response.
 /// </returns>
 public static Task <LinkedServiceCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(
     this ILinkedServiceOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string linkedServiceName,
     LinkedServiceCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return(operations.CreateOrUpdateWithRawJsonContentAsync(
                resourceGroupName,
                dataFactoryName,
                linkedServiceName,
                parameters,
                CancellationToken.None));
 }
Esempio n. 9
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);
 }
Esempio n. 10
0
 /// <summary>
 /// Create or update a data factory linkedService.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </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 data
 /// factory linkedService.
 /// </param>
 /// <returns>
 /// The create or update data factory linkedService operation response.
 /// </returns>
 public static LinkedServiceCreateOrUpdateResponse BeginCreateOrUpdate(
     this ILinkedServiceOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     LinkedServiceCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew(
                s => ((ILinkedServiceOperations)s).BeginCreateOrUpdateAsync(
                    resourceGroupName,
                    dataFactoryName,
                    parameters),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 11
0
 /// <summary>
 /// Delete a data factory linkedService instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </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='linkedServiceName'>
 /// Required. A unique data factory linkedService name.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static LongRunningOperationResponse Delete(
     this ILinkedServiceOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string linkedServiceName)
 {
     return(Task.Factory.StartNew(
                s => ((ILinkedServiceOperations)s).DeleteAsync(
                    resourceGroupName,
                    dataFactoryName,
                    linkedServiceName),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 12
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);
 }
Esempio n. 13
0
 /// <summary>
 /// Gets the next page of linked service instances with the link to the
 /// next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next linked services page.
 /// </param>
 /// <returns>
 /// The List data factory linkedServices operation response.
 /// </returns>
 public static Task <LinkedServiceListResponse> ListNextAsync(this ILinkedServiceOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
Esempio n. 14
0
 /// <summary>
 /// Gets the first page of linked service instances with the link to
 /// the next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </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 data factory linkedServices operation response.
 /// </returns>
 public static Task <LinkedServiceListResponse> ListAsync(this ILinkedServiceOperations operations, string resourceGroupName, string dataFactoryName)
 {
     return(operations.ListAsync(resourceGroupName, dataFactoryName, CancellationToken.None));
 }
Esempio n. 15
0
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// The create or update data factory linkedService operation response.
 /// </returns>
 public static Task <LinkedServiceCreateOrUpdateResponse> GetCreateOrUpdateStatusAsync(this ILinkedServiceOperations operations, string operationStatusLink)
 {
     return(operations.GetCreateOrUpdateStatusAsync(operationStatusLink, CancellationToken.None));
 }
Esempio n. 16
0
 /// <summary>
 /// Create or update a data factory linkedService with raw json content.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ILinkedServiceOperations.
 /// </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='linkedServiceName'>
 /// Required. The name of the data factory table to be created or
 /// updated.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a data
 /// factory linkedService.
 /// </param>
 /// <returns>
 /// The create or update data factory linkedService operation response.
 /// </returns>
 public static LinkedServiceCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent(this ILinkedServiceOperations operations, string resourceGroupName, string dataFactoryName, string linkedServiceName, LinkedServiceCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ILinkedServiceOperations)s).CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, dataFactoryName, linkedServiceName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 17
0
 /// <summary>
 /// Create or update a linked service.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.OperationalInsights.ILinkedServiceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the linked service.
 /// </param>
 /// <param name='workspaceName'>
 /// Required. The name of the parent workspace that will contain the
 /// linked service
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a linked
 /// service.
 /// </param>
 /// <returns>
 /// The create or update linked service operation response.
 /// </returns>
 public static Task <LinkedServiceCreateOrUpdateResponse> CreateOrUpdateAsync(this ILinkedServiceOperations operations, string resourceGroupName, string workspaceName, LinkedServiceCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, parameters, CancellationToken.None));
 }
Esempio n. 18
0
 /// <summary>
 /// Gets a linked service instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.OperationalInsights.ILinkedServiceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the linked service.
 /// </param>
 /// <param name='workspaceName'>
 /// Required. The name of the workspace that contains the linked
 /// service.
 /// </param>
 /// <param name='linkedServiceName'>
 /// Required. Name of the linked service.
 /// </param>
 /// <returns>
 /// The get linked service operation response.
 /// </returns>
 public static Task <LinkedServiceGetResponse> GetAsync(this ILinkedServiceOperations operations, string resourceGroupName, string workspaceName, string linkedServiceName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName, linkedServiceName, CancellationToken.None));
 }