/// <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._automationAccounts = new AutomationAccountOperations(this); this._certificates = new CertificateOperations(this); this._cloudServices = new CloudServiceOperations(this); this._connections = new ConnectionOperations(this); this._connectionTypes = new ConnectionTypeOperations(this); this._psCredentials = new CredentialOperations(this); this._jobs = new JobOperations(this); this._jobSchedules = new JobScheduleOperations(this); this._jobStreams = new JobStreamOperations(this); this._modules = new ModuleOperations(this); this._runbookDraft = new RunbookDraftOperations(this); this._runbooks = new RunbookOperations(this); this._schedules = new ScheduleOperations(this); this._testJobs = new TestJobOperations(this); this._variables = new VariableOperations(this); this._resourceNamespace = "automation"; this._apiVersion = "2013-06-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// Retrieve the activity in the module identified by module name and activity /// name. /// <see href="http://aka.ms/azureautomationsdk/activityoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='moduleName'> /// The name of module. /// </param> /// <param name='activityName'> /// The name of activity. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Activity> GetAsync(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, activityName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve a list of activities in the module identified by module name. /// <see href="http://aka.ms/azureautomationsdk/activityoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Activity> > ListByModuleNextAsync(this IActivityOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByModuleNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <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._modules = new ModuleOperations(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._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); }
/// <summary> /// Retrieve next list of activities in the module identified by module /// name. (see http://aka.ms/azureautomationsdk/activityoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IActivityOperations. /// </param> /// <param name='nextLink'> /// Required. The link to retrieve next set of items. /// </param> /// <returns> /// The response model for the list activity operation. /// </returns> public static ActivityListResponse ListNext(this IActivityOperations operations, string nextLink) { return(Task.Factory.StartNew((object s) => { return ((IActivityOperations)s).ListNextAsync(nextLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the activity in the module identified by module name and /// activity name. (see /// http://aka.ms/azureautomationsdk/activityoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IActivityOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='moduleName'> /// Required. The name of module. /// </param> /// <param name='activityName'> /// Required. The name of activity. /// </param> /// <returns> /// The response model for the get activity operation. /// </returns> public static ActivityGetResponse Get(this IActivityOperations operations, string resourceGroupName, string automationAccount, string moduleName, string activityName) { return(Task.Factory.StartNew((object s) => { return ((IActivityOperations)s).GetAsync(resourceGroupName, automationAccount, moduleName, activityName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
private void InitSubApis() { _userOperations = new UserTemplate(RestTemplate, IsAuthorized); _cardOperations = new CardTemplate(RestTemplate, IsAuthorized); _microOperations = new MicroTemplate(RestTemplate, IsAuthorized); _followerOperations = new FollowerTemplate(RestTemplate, IsAuthorized); _followingOperations = new FollowingTemplate(RestTemplate, IsAuthorized); _activityOperations = new ActivityTemplate(RestTemplate, IsAuthorized); _highfiveOperations = new HighfiveTemplate(RestTemplate, IsAuthorized); }
/// <summary> /// Retrieve a list of activities in the module identified by module name. /// <see href="http://aka.ms/azureautomationsdk/activityoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='moduleName'> /// The name of module. /// </param> public static IPage <Activity> ListByModule(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName) { return(operations.ListByModuleAsync(resourceGroupName, automationAccountName, moduleName).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the activity in the module identified by module name and activity /// name. /// <see href="http://aka.ms/azureautomationsdk/activityoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='moduleName'> /// The name of module. /// </param> /// <param name='activityName'> /// The name of activity. /// </param> public static Activity Get(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string activityName) { return(operations.GetAsync(resourceGroupName, automationAccountName, moduleName, activityName).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of activities in the module identified by module name. /// <see href="http://aka.ms/azureautomationsdk/activityoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <Activity> ListByModuleNext(this IActivityOperations operations, string nextPageLink) { return(operations.ListByModuleNextAsync(nextPageLink).GetAwaiter().GetResult()); }
public ActivitiesController(IActivityOperations activityOperations) { _activityOperations = activityOperations; }
/// <summary> /// Retrieve the activity in the module identified by module name and /// activity name. (see /// http://aka.ms/azureautomationsdk/activityoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IActivityOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='moduleName'> /// Required. The name of module. /// </param> /// <param name='activityName'> /// Required. The name of activity. /// </param> /// <returns> /// The response model for the get activity operation. /// </returns> public static Task <ActivityGetResponse> GetAsync(this IActivityOperations operations, string resourceGroupName, string automationAccount, string moduleName, string activityName) { return(operations.GetAsync(resourceGroupName, automationAccount, moduleName, activityName, CancellationToken.None)); }
/// <summary> /// Retrieve next list of activities in the module identified by module /// name. (see http://aka.ms/azureautomationsdk/activityoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IActivityOperations. /// </param> /// <param name='nextLink'> /// Required. The link to retrieve next set of items. /// </param> /// <returns> /// The response model for the list activity operation. /// </returns> public static Task <ActivityListResponse> ListNextAsync(this IActivityOperations operations, string nextLink) { return(operations.ListNextAsync(nextLink, CancellationToken.None)); }
/// <summary> /// Retrieve a list of activities in the module identified by module /// name. (see http://aka.ms/azureautomationsdk/activityoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IActivityOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='moduleName'> /// Required. The name of module. /// </param> /// <returns> /// The response model for the list activity operation. /// </returns> public static Task <ActivityListResponse> ListAsync(this IActivityOperations operations, string automationAccount, string moduleName) { return(operations.ListAsync(automationAccount, moduleName, CancellationToken.None)); }
public UserManagementController(IUserOperations operations, IActivityOperations activityOperations) { _operations = operations; _activityOperations = activityOperations; }