Ejemplo n.º 1
0
 /// <summary>
 /// Retrieve the watcher stream identified by watcher stream ID.  (see
 /// http://aka.ms/azureautomationsdk/watcherstreamoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWatcherStreamOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='watcherName'>
 /// Required. The watcher name.
 /// </param>
 /// <param name='watcherStreamId'>
 /// Required. The watcher stream id.
 /// </param>
 /// <returns>
 /// The response model for the get watcher stream operation.
 /// </returns>
 public static WatcherStreamGetResponse Get(this IWatcherStreamOperations operations, string resourceGroupName, string automationAccount, string watcherName, string watcherStreamId)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IWatcherStreamOperations)s).GetAsync(resourceGroupName, automationAccount, watcherName, watcherStreamId);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the next page of watcher streams using next link.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWatcherStreamOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// The response model for the list watcher stream operation.
 /// </returns>
 public static WatcherStreamListResponse ListNext(this IWatcherStreamOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IWatcherStreamOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the AutomationManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public AutomationManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._activities = new ActivityOperations(this);
     this._agentRegistrationInformation = new AgentRegistrationOperation(this);
     this._automationAccounts           = new AutomationAccountOperations(this);
     this._certificates       = new CertificateOperations(this);
     this._connections        = new ConnectionOperations(this);
     this._connectionTypes    = new ConnectionTypeOperations(this);
     this._psCredentials      = new CredentialOperations(this);
     this._compilationJobs    = new DscCompilationJobOperations(this);
     this._configurations     = new DscConfigurationOperations(this);
     this._nodeConfigurations = new DscNodeConfigurationOperations(this);
     this._nodes       = new DscNodeOperations(this);
     this._nodeReports = new DscNodeReportsOperations(this);
     this._hybridRunbookWorkerGroups = new HybridRunbookWorkerGroupOperations(this);
     this._jobs              = new JobOperations(this);
     this._jobSchedules      = new JobScheduleOperations(this);
     this._jobStreams        = new JobStreamOperations(this);
     this._linkedWorkspace   = new LinkedWorkspaceOperations(this);
     this._modules           = new ModuleOperations(this);
     this._objectDataTypes   = new ObjectDataTypeOperations(this);
     this._runbookDraft      = new RunbookDraftOperations(this);
     this._runbooks          = new RunbookOperations(this);
     this._schedules         = new ScheduleOperations(this);
     this._statistics        = new StatisticsOperations(this);
     this._testJobs          = new TestJobOperations(this);
     this._typeFields        = new TypeFieldOperations(this);
     this._usages            = new UsageOperations(this);
     this._variables         = new VariableOperations(this);
     this._watcherActions    = new WatcherActionOperations(this);
     this._watchers          = new WatcherOperations(this);
     this._watcherStreams    = new WatcherStreamOperations(this);
     this._webhooks          = new WebhookOperations(this);
     this._resourceNamespace = "Microsoft.Automation";
     this._apiVersion        = "2014-06-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Retrieve the watcher stream identified by watcher stream ID.  (see
 /// http://aka.ms/azureautomationsdk/watcherstreamoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWatcherStreamOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='watcherName'>
 /// Required. The watcher name.
 /// </param>
 /// <param name='watcherStreamId'>
 /// Required. The watcher stream id.
 /// </param>
 /// <returns>
 /// The response model for the get watcher stream operation.
 /// </returns>
 public static Task <WatcherStreamGetResponse> GetAsync(this IWatcherStreamOperations operations, string resourceGroupName, string automationAccount, string watcherName, string watcherStreamId)
 {
     return(operations.GetAsync(resourceGroupName, automationAccount, watcherName, watcherStreamId, CancellationToken.None));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the next page of watcher streams using next link.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWatcherStreamOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// The response model for the list watcher stream operation.
 /// </returns>
 public static Task <WatcherStreamListResponse> ListNextAsync(this IWatcherStreamOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Retrieve a list of watcher streams identified by watcher name.
 /// (see http://aka.ms/azureautomationsdk/watcherstreamoperations for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWatcherStreamOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='watcherName'>
 /// Required. The watcher name.
 /// </param>
 /// <param name='parameters'>
 /// Optional. The parameters supplied to the list watcher's stream
 /// items operation.
 /// </param>
 /// <returns>
 /// The response model for the list watcher stream operation.
 /// </returns>
 public static Task <WatcherStreamListResponse> ListAsync(this IWatcherStreamOperations operations, string resourceGroupName, string automationAccount, string watcherName, WatcherStreamListParameters parameters)
 {
     return(operations.ListAsync(resourceGroupName, automationAccount, watcherName, parameters, CancellationToken.None));
 }