共用方式為


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

選擇性參數

傳回

Promise < 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>

Promise < 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

選擇性參數

傳回

Promise < 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

選擇性參數

傳回

Promise < 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[]>

回呼