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

Services class

表示服务的类。

构造函数

Services(AzureDeploymentManagerContext)

创建服务。

方法

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase)

同步创建新的服务或更新现有服务。

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase, ServiceCallback<ServiceResource>)
createOrUpdate(string, string, string, ServiceResource, ServiceCallback<ServiceResource>)
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<ServiceResource>)
get(string, string, string, ServiceCallback<ServiceResource>)
list(string, string, RequestOptionsBase)
list(string, string, RequestOptionsBase, ServiceCallback<ServiceResource[]>)
list(string, string, ServiceCallback<ServiceResource[]>)

构造函数详细信息

Services(AzureDeploymentManagerContext)

创建服务。

new Services(client: AzureDeploymentManagerContext)

参数

client
AzureDeploymentManagerContext

对服务客户端的引用。

方法详细信息

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase)

同步创建新的服务或更新现有服务。

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, options?: RequestOptionsBase): Promise<ServicesCreateOrUpdateResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

serviceInfo
ServiceResource

服务对象

options
RequestOptionsBase

可选参数

返回

承诺<Models.ServicesCreateOrUpdateResponse>

createOrUpdate(string, string, string, ServiceResource, RequestOptionsBase, ServiceCallback<ServiceResource>)

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

serviceInfo
ServiceResource

服务对象

options
RequestOptionsBase

可选参数

callback

ServiceCallback<ServiceResource>

回调

createOrUpdate(string, string, string, ServiceResource, ServiceCallback<ServiceResource>)

function createOrUpdate(resourceGroupName: string, serviceTopologyName: string, serviceName: string, serviceInfo: ServiceResource, callback: ServiceCallback<ServiceResource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

serviceInfo
ServiceResource

服务对象

callback

ServiceCallback<ServiceResource>

回调

deleteMethod(string, string, string, RequestOptionsBase)

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: RequestOptionsBase): Promise<RestResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

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

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

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

function deleteMethod(resourceGroupName: string, serviceTopologyName: string, serviceName: string, callback: ServiceCallback<void>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

callback

ServiceCallback<void>

回调

get(string, string, string, RequestOptionsBase)

function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options?: RequestOptionsBase): Promise<ServicesGetResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ServicesGetResponse>

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

function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<ServiceResource>

回调

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

function get(resourceGroupName: string, serviceTopologyName: string, serviceName: string, callback: ServiceCallback<ServiceResource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

serviceName

string

服务资源的名称。

callback

ServiceCallback<ServiceResource>

回调

list(string, string, RequestOptionsBase)

function list(resourceGroupName: string, serviceTopologyName: string, options?: RequestOptionsBase): Promise<ServicesListResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ServicesListResponse>

list(string, string, RequestOptionsBase, ServiceCallback<ServiceResource[]>)

function list(resourceGroupName: string, serviceTopologyName: string, options: RequestOptionsBase, callback: ServiceCallback<ServiceResource[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<ServiceResource[]>

回调

list(string, string, ServiceCallback<ServiceResource[]>)

function list(resourceGroupName: string, serviceTopologyName: string, callback: ServiceCallback<ServiceResource[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

serviceTopologyName

string

服务拓扑的名称。

callback

ServiceCallback<ServiceResource[]>

回调