/// <summary>
 /// Create or update a transformation for a stream analytics job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.StreamAnalytics.ITransformationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the stream analytics job.
 /// </param>
 /// <param name='jobName'>
 /// Required. The name of the stream analytics job.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a
 /// transformation for the stream analytics job.
 /// </param>
 /// <returns>
 /// The response of the transformation create operation.
 /// </returns>
 public static TransformationCreateOrUpdateResponse CreateOrUpdate(this ITransformationOperations operations, string resourceGroupName, string jobName, TransformationCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITransformationOperations)s).CreateOrUpdateAsync(resourceGroupName, jobName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get the transformation for a stream analytics job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.StreamAnalytics.ITransformationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the stream analytics job.
 /// </param>
 /// <param name='jobName'>
 /// Required. The name of the stream analytics job.
 /// </param>
 /// <param name='transformationName'>
 /// Required. The name of the transformation for the stream analytics
 /// job.
 /// </param>
 /// <returns>
 /// The response of the transformation get operation.
 /// </returns>
 public static TransformationsGetResponse Get(this ITransformationOperations operations, string resourceGroupName, string jobName, string transformationName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITransformationOperations)s).GetAsync(resourceGroupName, jobName, transformationName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the StreamAnalyticsManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public StreamAnalyticsManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._inputs = new InputOperations(this);
     this._streamingJobs = new JobOperations(this);
     this._outputs = new OutputOperations(this);
     this._subscriptions = new SubscriptionOperations(this);
     this._transformations = new TransformationOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the StreamAnalyticsManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public StreamAnalyticsManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._inputs          = new InputOperations(this);
     this._streamingJobs   = new JobOperations(this);
     this._outputs         = new OutputOperations(this);
     this._subscriptions   = new SubscriptionOperations(this);
     this._transformations = new TransformationOperations(this);
     this._apiVersion      = "2015-09-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
 /// <summary>
 /// Create or update a transformation for a stream analytics job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.StreamAnalytics.ITransformationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the stream analytics job.
 /// </param>
 /// <param name='jobName'>
 /// Required. The name of the stream analytics job.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a
 /// transformation for the stream analytics job.
 /// </param>
 /// <returns>
 /// The response of the transformation create operation.
 /// </returns>
 public static Task <TransformationCreateOrUpdateResponse> CreateOrUpdateAsync(this ITransformationOperations operations, string resourceGroupName, string jobName, TransformationCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, jobName, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Update an transformation for a stream analytics job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.StreamAnalytics.ITransformationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the stream analytics job.
 /// </param>
 /// <param name='jobName'>
 /// Required. The name of the stream analytics job.
 /// </param>
 /// <param name='transformationName'>
 /// Required. The name of the transformation for the stream analytics
 /// job.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to update an transformation for
 /// the stream analytics job.
 /// </param>
 /// <returns>
 /// The response of the transformation patch operation.
 /// </returns>
 public static Task <TransformationPatchResponse> PatchAsync(this ITransformationOperations operations, string resourceGroupName, string jobName, string transformationName, TransformationPatchParameters parameters)
 {
     return(operations.PatchAsync(resourceGroupName, jobName, transformationName, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Get the transformation for a stream analytics job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.StreamAnalytics.ITransformationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the stream analytics job.
 /// </param>
 /// <param name='jobName'>
 /// Required. The name of the stream analytics job.
 /// </param>
 /// <param name='transformationName'>
 /// Required. The name of the transformation for the stream analytics
 /// job.
 /// </param>
 /// <returns>
 /// The response of the transformation get operation.
 /// </returns>
 public static Task <TransformationsGetResponse> GetAsync(this ITransformationOperations operations, string resourceGroupName, string jobName, string transformationName)
 {
     return(operations.GetAsync(resourceGroupName, jobName, transformationName, CancellationToken.None));
 }