예제 #1
0
 /// <summary>
 /// Delete an ComputeType instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IComputeTypeOperations.
 /// </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='computeTypeName'>
 /// Required. The name of the computeType.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> DeleteAsync(
     this IComputeTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string computeTypeName)
 {
     return(operations.DeleteAsync(resourceGroupName, dataFactoryName, computeTypeName, CancellationToken.None));
 }
예제 #2
0
 /// <summary>
 /// Gets the first page of ComputeType instances with the link to the
 /// next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IComputeTypeOperations.
 /// </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. Parameters specifying how to return a list of
 /// ComputeType definitions.
 /// </param>
 /// <returns>
 /// The List ComputeType operation response.
 /// </returns>
 public static Task <ComputeTypeListResponse> ListAsync(
     this IComputeTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     ComputeTypeListParameters parameters)
 {
     return(operations.ListAsync(resourceGroupName, dataFactoryName, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Delete a ComputeType instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IComputeTypeOperations.
 /// </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='computeTypeName'>
 /// Required. The name of the computeType.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static LongRunningOperationResponse BeginDelete(this IComputeTypeOperations operations, string resourceGroupName, string dataFactoryName, string computeTypeName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IComputeTypeOperations)s).BeginDeleteAsync(resourceGroupName, dataFactoryName, computeTypeName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the next page of ComputeType instances with the link to the
 /// next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IComputeTypeOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next ComputeTypes page.
 /// </param>
 /// <returns>
 /// The List ComputeType operation response.
 /// </returns>
 public static ComputeTypeListResponse ListNext(this IComputeTypeOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IComputeTypeOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a ComputeType instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.IComputeTypeOperations.
 /// </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. Parameters specifying how to return a list of ComputeType
 /// definitions for a List operation.
 /// </param>
 /// <returns>
 /// The List ComputeType operation response.
 /// </returns>
 public static ComputeTypeListResponse List(this IComputeTypeOperations operations, string resourceGroupName, string dataFactoryName, ComputeTypeListParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IComputeTypeOperations)s).ListAsync(resourceGroupName, dataFactoryName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
예제 #6
0
 /// <summary>
 /// Create or update an ComputeType.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IComputeTypeOperations.
 /// </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='computeTypeName'>
 /// Required. An ComputeType name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update an
 /// ComputeType definition.
 /// </param>
 /// <returns>
 /// The create or update ComputeType operation response.
 /// </returns>
 public static Task <ComputeTypeCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(
     this IComputeTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string computeTypeName,
     ComputeTypeCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return(operations.CreateOrUpdateWithRawJsonContentAsync(
                resourceGroupName,
                dataFactoryName,
                computeTypeName,
                parameters,
                CancellationToken.None));
 }
예제 #7
0
 /// <summary>
 /// Create or update an ComputeType.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IComputeTypeOperations.
 /// </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 an
 /// ComputeType definition.
 /// </param>
 /// <returns>
 /// The create or update ComputeType operation response.
 /// </returns>
 public static ComputeTypeCreateOrUpdateResponse CreateOrUpdate(
     this IComputeTypeOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     ComputeTypeCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew(
                s =>
                ((IComputeTypeOperations)s).CreateOrUpdateAsync(resourceGroupName, dataFactoryName, parameters),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
예제 #8
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);
 }
예제 #9
0
 /// <summary>
 /// Gets the next page of ComputeType instances with the link to the
 /// next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.IComputeTypeOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next ComputeTypes page.
 /// </param>
 /// <returns>
 /// The List ComputeType operation response.
 /// </returns>
 public static Task <ComputeTypeListResponse> ListNextAsync(
     this IComputeTypeOperations operations,
     string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }