ModuleOperations class

Class representing a ModuleOperations.

Constructors

ModuleOperations(AutomationClientContext)

Create a ModuleOperations.

Methods

createOrUpdate(string, string, string, ModuleCreateOrUpdateParameters, RequestOptionsBase)

Create or Update the module identified by module name.

createOrUpdate(string, string, string, ModuleCreateOrUpdateParameters, RequestOptionsBase, ServiceCallback<Module>)
createOrUpdate(string, string, string, ModuleCreateOrUpdateParameters, ServiceCallback<Module>)
deleteMethod(string, string, string, RequestOptionsBase)

Delete the module by name.

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, RequestOptionsBase)

Retrieve the module identified by module name.

get(string, string, string, RequestOptionsBase, ServiceCallback<Module>)
get(string, string, string, ServiceCallback<Module>)
listByAutomationAccount(string, string, RequestOptionsBase)

Retrieve a list of modules.

listByAutomationAccount(string, string, RequestOptionsBase, ServiceCallback<ModuleListResult>)
listByAutomationAccount(string, string, ServiceCallback<ModuleListResult>)
listByAutomationAccountNext(string, RequestOptionsBase)

Retrieve a list of modules.

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<ModuleListResult>)
listByAutomationAccountNext(string, ServiceCallback<ModuleListResult>)
update(string, string, string, ModuleUpdateParameters, RequestOptionsBase)

Update the module identified by module name.

update(string, string, string, ModuleUpdateParameters, RequestOptionsBase, ServiceCallback<Module>)
update(string, string, string, ModuleUpdateParameters, ServiceCallback<Module>)

Constructor Details

ModuleOperations(AutomationClientContext)

Create a ModuleOperations.

new ModuleOperations(client: AutomationClientContext)

Parameters

client
AutomationClientContext

Reference to the service client.

Method Details

createOrUpdate(string, string, string, ModuleCreateOrUpdateParameters, RequestOptionsBase)

Create or Update the module identified by module name.

function createOrUpdate(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: ModuleCreateOrUpdateParameters, options?: RequestOptionsBase): Promise<ModuleCreateOrUpdateResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The name of module.

parameters
ModuleCreateOrUpdateParameters

The create or update parameters for module.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ModuleCreateOrUpdateResponse>

createOrUpdate(string, string, string, ModuleCreateOrUpdateParameters, RequestOptionsBase, ServiceCallback<Module>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: ModuleCreateOrUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<Module>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The name of module.

parameters
ModuleCreateOrUpdateParameters

The create or update parameters for module.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Module>

The callback

createOrUpdate(string, string, string, ModuleCreateOrUpdateParameters, ServiceCallback<Module>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: ModuleCreateOrUpdateParameters, callback: ServiceCallback<Module>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The name of module.

parameters
ModuleCreateOrUpdateParameters

The create or update parameters for module.

callback

ServiceCallback<Module>

The callback

deleteMethod(string, string, string, RequestOptionsBase)

Delete the module by name.

function deleteMethod(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The module name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, automationAccountName: string, moduleName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The module name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, automationAccountName: string, moduleName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The module name.

callback

ServiceCallback<void>

The callback

get(string, string, string, RequestOptionsBase)

Retrieve the module identified by module name.

function get(resourceGroupName: string, automationAccountName: string, moduleName: string, options?: RequestOptionsBase): Promise<ModuleGetResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The module name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ModuleGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<Module>)

function get(resourceGroupName: string, automationAccountName: string, moduleName: string, options: RequestOptionsBase, callback: ServiceCallback<Module>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The module name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Module>

The callback

get(string, string, string, ServiceCallback<Module>)

function get(resourceGroupName: string, automationAccountName: string, moduleName: string, callback: ServiceCallback<Module>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The module name.

callback

ServiceCallback<Module>

The callback

listByAutomationAccount(string, string, RequestOptionsBase)

Retrieve a list of modules.

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: RequestOptionsBase): Promise<ModuleListByAutomationAccountResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ModuleListByAutomationAccountResponse>

listByAutomationAccount(string, string, RequestOptionsBase, ServiceCallback<ModuleListResult>)

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: RequestOptionsBase, callback: ServiceCallback<ModuleListResult>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ModuleListResult>

The callback

listByAutomationAccount(string, string, ServiceCallback<ModuleListResult>)

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback<ModuleListResult>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

callback

ServiceCallback<ModuleListResult>

The callback

listByAutomationAccountNext(string, RequestOptionsBase)

Retrieve a list of modules.

function listByAutomationAccountNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ModuleListByAutomationAccountNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ModuleListByAutomationAccountNextResponse>

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<ModuleListResult>)

function listByAutomationAccountNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ModuleListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ModuleListResult>

The callback

listByAutomationAccountNext(string, ServiceCallback<ModuleListResult>)

function listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback<ModuleListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<ModuleListResult>

The callback

update(string, string, string, ModuleUpdateParameters, RequestOptionsBase)

Update the module identified by module name.

function update(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: ModuleUpdateParameters, options?: RequestOptionsBase): Promise<ModuleUpdateResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The name of module.

parameters
ModuleUpdateParameters

The update parameters for module.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ModuleUpdateResponse>

update(string, string, string, ModuleUpdateParameters, RequestOptionsBase, ServiceCallback<Module>)

function update(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: ModuleUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<Module>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The name of module.

parameters
ModuleUpdateParameters

The update parameters for module.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Module>

The callback

update(string, string, string, ModuleUpdateParameters, ServiceCallback<Module>)

function update(resourceGroupName: string, automationAccountName: string, moduleName: string, parameters: ModuleUpdateParameters, callback: ServiceCallback<Module>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

moduleName

string

The name of module.

parameters
ModuleUpdateParameters

The update parameters for module.

callback

ServiceCallback<Module>

The callback