/// <summary> /// Test the connectivity of an input for a stream analytics job. /// Asynchronous call. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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='inputName'> /// Required. The input name of the stream analytics job. /// </param> /// <returns> /// The test result of the input or output data source. /// </returns> public static DataSourceTestConnectionResponse BeginTestConnection(this IInputOperations operations, string resourceGroupName, string jobName, string inputName) { return(Task.Factory.StartNew((object s) => { return ((IInputOperations)s).BeginTestConnectionAsync(resourceGroupName, jobName, inputName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Update an input for a stream analytics job. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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='inputName'> /// Required. The name of the input for the stream analytics job. /// </param> /// <param name='parameters'> /// Required. The parameters required to update an input for a stream /// analytics job. /// </param> /// <returns> /// The response of the input patch operation. /// </returns> public static InputPatchResponse Patch(this IInputOperations operations, string resourceGroupName, string jobName, string inputName, InputPatchParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IInputOperations)s).PatchAsync(resourceGroupName, jobName, inputName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Get a list of the inputs defined in a stream analytics job. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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> /// <returns> /// The response of the input list operation. /// </returns> public static InputListResponse ListInputInJob(this IInputOperations operations, string resourceGroupName, string jobName) { return(Task.Factory.StartNew((object s) => { return ((IInputOperations)s).ListInputInJobAsync(resourceGroupName, jobName); } , 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); }
/// <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> /// Test the connectivity of an input for a stream analytics job. /// Asynchronous call. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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='inputName'> /// Required. The input name of the stream analytics job. /// </param> /// <returns> /// The test result of the input or output data source. /// </returns> public static Task <DataSourceTestConnectionResponse> BeginTestConnectionAsync(this IInputOperations operations, string resourceGroupName, string jobName, string inputName) { return(operations.BeginTestConnectionAsync(resourceGroupName, jobName, inputName, CancellationToken.None)); }
/// <summary> /// Update an input for a stream analytics job. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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='inputName'> /// Required. The name of the input for the stream analytics job. /// </param> /// <param name='parameters'> /// Required. The parameters required to update an input for a stream /// analytics job. /// </param> /// <returns> /// The response of the input patch operation. /// </returns> public static Task <InputPatchResponse> PatchAsync(this IInputOperations operations, string resourceGroupName, string jobName, string inputName, InputPatchParameters parameters) { return(operations.PatchAsync(resourceGroupName, jobName, inputName, parameters, CancellationToken.None)); }
/// <summary> /// Get a list of the inputs defined in a stream analytics job. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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> /// <returns> /// The response of the input list operation. /// </returns> public static Task <InputListResponse> ListInputInJobAsync(this IInputOperations operations, string resourceGroupName, string jobName) { return(operations.ListInputInJobAsync(resourceGroupName, jobName, CancellationToken.None)); }
/// <summary> /// Get an input for a stream analytics job. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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='inputName'> /// Required. The name of the input for the stream analytics job. /// </param> /// <returns> /// The response of the get stream analytics intput operation. /// </returns> public static Task <InputGetResponse> GetAsync(this IInputOperations operations, string resourceGroupName, string jobName, string inputName) { return(operations.GetAsync(resourceGroupName, jobName, inputName, CancellationToken.None)); }
/// <summary> /// Delete an input for a stream analytics job. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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='inputName'> /// Required. The name of the input for the stream analytics job. /// </param> /// <returns> /// The common operation response. /// </returns> public static Task <CommonOperationResponse> DeleteAsync(this IInputOperations operations, string resourceGroupName, string jobName, string inputName) { return(operations.DeleteAsync(resourceGroupName, jobName, inputName, CancellationToken.None)); }
/// <summary> /// Create or update an input for a stream analytics job. The raw json /// content will be used. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IInputOperations. /// </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='inputName'> /// Required. The name of the input for the stream analytics job. /// </param> /// <param name='parameters'> /// Required. The parameters required to create or update an input for /// a stream analytics job. /// </param> /// <returns> /// The response of the input CreateOrUpdate operation. /// </returns> public static Task <InputCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(this IInputOperations operations, string resourceGroupName, string jobName, string inputName, InputCreateOrUpdateWithRawJsonContentParameters parameters) { return(operations.CreateOrUpdateWithRawJsonContentAsync(resourceGroupName, jobName, inputName, parameters, CancellationToken.None)); }