你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ModuleOperations class

表示 ModuleOperations 的类。

构造函数

ModuleOperations(AutomationClientContext)

创建 ModuleOperations。

方法

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

创建或更新由模块名称标识的模块。

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

按名称删除模块。

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

检索由模块名称标识的模块。

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

检索模块列表。

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

检索模块列表。

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

更新由模块名称标识的模块。

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

构造函数详细信息

ModuleOperations(AutomationClientContext)

创建 ModuleOperations。

new ModuleOperations(client: AutomationClientContext)

参数

client
AutomationClientContext

对服务客户端的引用。

方法详细信息

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

创建或更新由模块名称标识的模块。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块的名称。

parameters
ModuleCreateOrUpdateParameters

模块的创建或更新参数。

options
RequestOptionsBase

可选参数

返回

承诺<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>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块的名称。

parameters
ModuleCreateOrUpdateParameters

模块的创建或更新参数。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Module>

回调

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块的名称。

parameters
ModuleCreateOrUpdateParameters

模块的创建或更新参数。

callback

ServiceCallback<Module>

回调

deleteMethod(string, string, string, RequestOptionsBase)

按名称删除模块。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块名称。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块名称。

callback

ServiceCallback<void>

回调

get(string, string, string, RequestOptionsBase)

检索由模块名称标识的模块。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ModuleGetResponse>

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Module>

回调

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块名称。

callback

ServiceCallback<Module>

回调

listByAutomationAccount(string, string, RequestOptionsBase)

检索模块列表。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ModuleListByAutomationAccountResponse>

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

options
RequestOptionsBase

可选参数

listByAutomationAccount(string, string, ServiceCallback<ModuleListResult>)

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

listByAutomationAccountNext(string, RequestOptionsBase)

检索模块列表。

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ModuleListByAutomationAccountNextResponse>

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<ModuleListResult>)

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

options
RequestOptionsBase

可选参数

listByAutomationAccountNext(string, ServiceCallback<ModuleListResult>)

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

参数

nextPageLink

string

上一次成功调用 List作的 NextLink。

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

更新由模块名称标识的模块。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块的名称。

parameters
ModuleUpdateParameters

模块的更新参数。

options
RequestOptionsBase

可选参数

返回

承诺<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>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块的名称。

parameters
ModuleUpdateParameters

模块的更新参数。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Module>

回调

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

moduleName

string

模块的名称。

parameters
ModuleUpdateParameters

模块的更新参数。

callback

ServiceCallback<Module>

回调