MeshApplication class

代表 MeshApplication 的類別。

建構函式

MeshApplication(ServiceFabricClientContext)

建立 MeshApplication。

方法

createOrUpdate(string, ApplicationResourceDescription, RequestOptionsBase)

建立具有指定名稱、描述和屬性的應用程序資源。 如果具有相同名稱的應用程式資源存在,則會使用指定的描述和屬性來更新它。

createOrUpdate(string, ApplicationResourceDescription, RequestOptionsBase, ServiceCallback<ApplicationResourceDescription>)
createOrUpdate(string, ApplicationResourceDescription, ServiceCallback<ApplicationResourceDescription>)
deleteMethod(string, RequestOptionsBase)

刪除名稱所識別的應用程式資源。

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

取得具有指定名稱之應用程式資源的相關信息。 此資訊包括應用程式的描述和其他屬性。

get(string, RequestOptionsBase, ServiceCallback<ApplicationResourceDescription>)
get(string, ServiceCallback<ApplicationResourceDescription>)
getUpgradeProgress(string, RequestOptionsBase)

取得具有指定名稱之應用程式資源的升級進度資訊。 此資訊包括完成百分比,以及應用程式資源的其他升級狀態資訊。

getUpgradeProgress(string, RequestOptionsBase, ServiceCallback<ApplicationResourceUpgradeProgressInfo>)
getUpgradeProgress(string, ServiceCallback<ApplicationResourceUpgradeProgressInfo>)
list(RequestOptionsBase)

取得指定資源群組中所有應用程式資源的相關信息。 此資訊包括應用程式的描述和其他屬性。

list(RequestOptionsBase, ServiceCallback<PagedApplicationResourceDescriptionList>)
list(ServiceCallback<PagedApplicationResourceDescriptionList>)

建構函式詳細資料

MeshApplication(ServiceFabricClientContext)

建立 MeshApplication。

new MeshApplication(client: ServiceFabricClientContext)

參數

client
ServiceFabricClientContext

服務客戶端的參考。

方法詳細資料

createOrUpdate(string, ApplicationResourceDescription, RequestOptionsBase)

建立具有指定名稱、描述和屬性的應用程序資源。 如果具有相同名稱的應用程式資源存在,則會使用指定的描述和屬性來更新它。

function createOrUpdate(applicationResourceName: string, applicationResourceDescription: ApplicationResourceDescription, options?: RequestOptionsBase): Promise<MeshApplicationCreateOrUpdateResponse>

參數

applicationResourceName

string

應用程式的身分識別。

applicationResourceDescription
ApplicationResourceDescription

建立應用程式資源的描述。

options
RequestOptionsBase

選擇性參數

傳回

承諾<Models.MeshApplicationCreateOrUpdateResponse>

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

function createOrUpdate(applicationResourceName: string, applicationResourceDescription: ApplicationResourceDescription, options: RequestOptionsBase, callback: ServiceCallback<ApplicationResourceDescription>)

參數

applicationResourceName

string

應用程式的身分識別。

applicationResourceDescription
ApplicationResourceDescription

建立應用程式資源的描述。

options
RequestOptionsBase

選擇性參數

createOrUpdate(string, ApplicationResourceDescription, ServiceCallback<ApplicationResourceDescription>)

function createOrUpdate(applicationResourceName: string, applicationResourceDescription: ApplicationResourceDescription, callback: ServiceCallback<ApplicationResourceDescription>)

參數

applicationResourceName

string

應用程式的身分識別。

applicationResourceDescription
ApplicationResourceDescription

建立應用程式資源的描述。

deleteMethod(string, RequestOptionsBase)

刪除名稱所識別的應用程式資源。

function deleteMethod(applicationResourceName: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

applicationResourceName

string

應用程式的身分識別。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

承諾<msRest.RestResponse>

deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(applicationResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

applicationResourceName

string

應用程式的身分識別。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteMethod(string, ServiceCallback<void>)

function deleteMethod(applicationResourceName: string, callback: ServiceCallback<void>)

參數

applicationResourceName

string

應用程式的身分識別。

callback

ServiceCallback<void>

回呼

get(string, RequestOptionsBase)

取得具有指定名稱之應用程式資源的相關信息。 此資訊包括應用程式的描述和其他屬性。

function get(applicationResourceName: string, options?: RequestOptionsBase): Promise<MeshApplicationGetResponse>

參數

applicationResourceName

string

應用程式的身分識別。

options
RequestOptionsBase

選擇性參數

傳回

承諾<Models.MeshApplicationGetResponse>

get(string, RequestOptionsBase, ServiceCallback<ApplicationResourceDescription>)

function get(applicationResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationResourceDescription>)

參數

applicationResourceName

string

應用程式的身分識別。

options
RequestOptionsBase

選擇性參數

get(string, ServiceCallback<ApplicationResourceDescription>)

function get(applicationResourceName: string, callback: ServiceCallback<ApplicationResourceDescription>)

參數

applicationResourceName

string

應用程式的身分識別。

getUpgradeProgress(string, RequestOptionsBase)

取得具有指定名稱之應用程式資源的升級進度資訊。 此資訊包括完成百分比,以及應用程式資源的其他升級狀態資訊。

function getUpgradeProgress(applicationResourceName: string, options?: RequestOptionsBase): Promise<MeshApplicationGetUpgradeProgressResponse>

參數

applicationResourceName

string

應用程式的身分識別。

options
RequestOptionsBase

選擇性參數

傳回

承諾<Models.MeshApplicationGetUpgradeProgressResponse>

getUpgradeProgress(string, RequestOptionsBase, ServiceCallback<ApplicationResourceUpgradeProgressInfo>)

function getUpgradeProgress(applicationResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationResourceUpgradeProgressInfo>)

參數

applicationResourceName

string

應用程式的身分識別。

options
RequestOptionsBase

選擇性參數

getUpgradeProgress(string, ServiceCallback<ApplicationResourceUpgradeProgressInfo>)

function getUpgradeProgress(applicationResourceName: string, callback: ServiceCallback<ApplicationResourceUpgradeProgressInfo>)

參數

applicationResourceName

string

應用程式的身分識別。

list(RequestOptionsBase)

取得指定資源群組中所有應用程式資源的相關信息。 此資訊包括應用程式的描述和其他屬性。

function list(options?: RequestOptionsBase): Promise<MeshApplicationListResponse>

參數

options
RequestOptionsBase

選擇性參數

傳回

承諾<Models.MeshApplicationListResponse>

list(RequestOptionsBase, ServiceCallback<PagedApplicationResourceDescriptionList>)

function list(options: RequestOptionsBase, callback: ServiceCallback<PagedApplicationResourceDescriptionList>)

參數

options
RequestOptionsBase

選擇性參數

list(ServiceCallback<PagedApplicationResourceDescriptionList>)

function list(callback: ServiceCallback<PagedApplicationResourceDescriptionList>)

參數