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

VariableOperations class

表示 VariableOperations 的类。

构造函数

VariableOperations(AutomationClientContext)

创建 VariableOperations。

方法

createOrUpdate(string, string, string, VariableCreateOrUpdateParameters, RequestOptionsBase)

创建变量。

createOrUpdate(string, string, string, VariableCreateOrUpdateParameters, RequestOptionsBase, ServiceCallback<Variable>)
createOrUpdate(string, string, string, VariableCreateOrUpdateParameters, ServiceCallback<Variable>)
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<Variable>)
get(string, string, string, ServiceCallback<Variable>)
listByAutomationAccount(string, string, RequestOptionsBase)

检索变量列表。

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

检索变量列表。

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<VariableListResult>)
listByAutomationAccountNext(string, ServiceCallback<VariableListResult>)
update(string, string, string, VariableUpdateParameters, RequestOptionsBase)

更新变量。

update(string, string, string, VariableUpdateParameters, RequestOptionsBase, ServiceCallback<Variable>)
update(string, string, string, VariableUpdateParameters, ServiceCallback<Variable>)

构造函数详细信息

VariableOperations(AutomationClientContext)

创建 VariableOperations。

new VariableOperations(client: AutomationClientContext)

参数

client
AutomationClientContext

对服务客户端的引用。

方法详细信息

createOrUpdate(string, string, string, VariableCreateOrUpdateParameters, RequestOptionsBase)

创建变量。

function createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: VariableCreateOrUpdateParameters, options?: RequestOptionsBase): Promise<VariableCreateOrUpdateResponse>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量名称。

parameters
VariableCreateOrUpdateParameters

提供给创建或更新变量作的参数。

options
RequestOptionsBase

可选参数

返回

Promise<Models.VariableCreateOrUpdateResponse>

createOrUpdate(string, string, string, VariableCreateOrUpdateParameters, RequestOptionsBase, ServiceCallback<Variable>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: VariableCreateOrUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<Variable>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量名称。

parameters
VariableCreateOrUpdateParameters

提供给创建或更新变量作的参数。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Variable>

回调

createOrUpdate(string, string, string, VariableCreateOrUpdateParameters, ServiceCallback<Variable>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: VariableCreateOrUpdateParameters, callback: ServiceCallback<Variable>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量名称。

parameters
VariableCreateOrUpdateParameters

提供给创建或更新变量作的参数。

callback

ServiceCallback<Variable>

回调

deleteMethod(string, string, string, RequestOptionsBase)

删除变量。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量的名称。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量的名称。

callback

ServiceCallback<void>

回调

get(string, string, string, RequestOptionsBase)

检索由变量名称标识的变量。

function get(resourceGroupName: string, automationAccountName: string, variableName: string, options?: RequestOptionsBase): Promise<VariableGetResponse>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量的名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.VariableGetResponse>

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

function get(resourceGroupName: string, automationAccountName: string, variableName: string, options: RequestOptionsBase, callback: ServiceCallback<Variable>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Variable>

回调

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

function get(resourceGroupName: string, automationAccountName: string, variableName: string, callback: ServiceCallback<Variable>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量的名称。

callback

ServiceCallback<Variable>

回调

listByAutomationAccount(string, string, RequestOptionsBase)

检索变量列表。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.VariableListByAutomationAccountResponse>

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

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

options
RequestOptionsBase

可选参数

listByAutomationAccount(string, string, ServiceCallback<VariableListResult>)

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

listByAutomationAccountNext(string, RequestOptionsBase)

检索变量列表。

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

参数

nextPageLink

string

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

options
RequestOptionsBase

可选参数

返回

Promise<Models.VariableListByAutomationAccountNext响应>

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<VariableListResult>)

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

参数

nextPageLink

string

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

options
RequestOptionsBase

可选参数

listByAutomationAccountNext(string, ServiceCallback<VariableListResult>)

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

参数

nextPageLink

string

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

update(string, string, string, VariableUpdateParameters, RequestOptionsBase)

更新变量。

function update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: VariableUpdateParameters, options?: RequestOptionsBase): Promise<VariableUpdateResponse>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量名称。

parameters
VariableUpdateParameters

提供给更新变量作的参数。

options
RequestOptionsBase

可选参数

返回

承诺<Models.VariableUpdateResponse>

update(string, string, string, VariableUpdateParameters, RequestOptionsBase, ServiceCallback<Variable>)

function update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: VariableUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<Variable>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量名称。

parameters
VariableUpdateParameters

提供给更新变量作的参数。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Variable>

回调

update(string, string, string, VariableUpdateParameters, ServiceCallback<Variable>)

function update(resourceGroupName: string, automationAccountName: string, variableName: string, parameters: VariableUpdateParameters, callback: ServiceCallback<Variable>)

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

variableName

string

变量名称。

parameters
VariableUpdateParameters

提供给更新变量作的参数。

callback

ServiceCallback<Variable>

回调