共用方式為


Projects interface

代表專案的介面。

方法

beginCreate(string, string, string, ProjectResource, ProjectsCreateOptionalParams)

在集合中建立具有指定名稱的 Team Services 專案。 必須在資源屬性中指定 'VersionControlOption' 和 'ProcessTemplateId'。 VersionControlOption 的有效值:Git、Tfvc。 ProcessTemplateId 的有效值:6B724908-EF14-45CF-84F8-768B5384DA45、 ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (這些識別碼會對應至 Scrum、Agile 和 CMMI 進程範本) 。

beginCreateAndWait(string, string, string, ProjectResource, ProjectsCreateOptionalParams)

在集合中建立具有指定名稱的 Team Services 專案。 必須在資源屬性中指定 'VersionControlOption' 和 'ProcessTemplateId'。 VersionControlOption 的有效值:Git、Tfvc。 ProcessTemplateId 的有效值:6B724908-EF14-45CF-84F8-768B5384DA45、 ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (這些識別碼會對應至 Scrum、Agile 和 CMMI 進程範本) 。

get(string, string, string, ProjectsGetOptionalParams)

取得 Team Services 專案資源的詳細資料。

getJobStatus(string, string, string, string, string, ProjectsGetJobStatusOptionalParams)

取得專案資源建立作業的狀態。

listByResourceGroup(string, string, ProjectsListByResourceGroupOptionalParams)

取得在指定的 Team Services 帳戶中建立的所有Visual Studio Team Services專案資源。

update(string, string, string, ProjectResource, ProjectsUpdateOptionalParams)

更新指定 Team Services 專案的標記。

方法詳細資料

beginCreate(string, string, string, ProjectResource, ProjectsCreateOptionalParams)

在集合中建立具有指定名稱的 Team Services 專案。 必須在資源屬性中指定 'VersionControlOption' 和 'ProcessTemplateId'。 VersionControlOption 的有效值:Git、Tfvc。 ProcessTemplateId 的有效值:6B724908-EF14-45CF-84F8-768B5384DA45、 ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (這些識別碼會對應至 Scrum、Agile 和 CMMI 進程範本) 。

function beginCreate(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<PollerLike<PollOperationState<ProjectResource>, ProjectResource>>

參數

resourceGroupName

string

Azure 訂用帳戶內的資源組名。

rootResourceName

string

Team Services 帳戶的名稱。

resourceName

string

Team Services 專案的名稱。

body
ProjectResource

要求資料。

options
ProjectsCreateOptionalParams

選項參數。

傳回

Promise<PollerLike<@azure/core-lro.PollOperationState<ProjectResource>, ProjectResource>>

beginCreateAndWait(string, string, string, ProjectResource, ProjectsCreateOptionalParams)

在集合中建立具有指定名稱的 Team Services 專案。 必須在資源屬性中指定 'VersionControlOption' 和 'ProcessTemplateId'。 VersionControlOption 的有效值:Git、Tfvc。 ProcessTemplateId 的有效值:6B724908-EF14-45CF-84F8-768B5384DA45、 ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (這些識別碼會對應至 Scrum、Agile 和 CMMI 進程範本) 。

function beginCreateAndWait(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsCreateOptionalParams): Promise<ProjectResource>

參數

resourceGroupName

string

Azure 訂用帳戶內的資源組名。

rootResourceName

string

Team Services 帳戶的名稱。

resourceName

string

Team Services 專案的名稱。

body
ProjectResource

要求資料。

options
ProjectsCreateOptionalParams

選項參數。

傳回

Promise<ProjectResource>

get(string, string, string, ProjectsGetOptionalParams)

取得 Team Services 專案資源的詳細資料。

function get(resourceGroupName: string, rootResourceName: string, resourceName: string, options?: ProjectsGetOptionalParams): Promise<ProjectResource>

參數

resourceGroupName

string

Azure 訂用帳戶內的資源組名。

rootResourceName

string

Team Services 帳戶的名稱。

resourceName

string

Team Services 專案的名稱。

options
ProjectsGetOptionalParams

選項參數。

傳回

Promise<ProjectResource>

getJobStatus(string, string, string, string, string, ProjectsGetJobStatusOptionalParams)

取得專案資源建立作業的狀態。

function getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options?: ProjectsGetJobStatusOptionalParams): Promise<ProjectResource>

參數

resourceGroupName

string

Azure 訂用帳戶內的資源組名。

rootResourceName

string

Team Services 帳戶的名稱。

resourceName

string

Team Services 專案的名稱。

subContainerName

string

此參數應該設定為 resourceName。

operation

string

運算類型。 唯一支援的值是 'put'。

options
ProjectsGetJobStatusOptionalParams

選項參數。

傳回

Promise<ProjectResource>

listByResourceGroup(string, string, ProjectsListByResourceGroupOptionalParams)

取得在指定的 Team Services 帳戶中建立的所有Visual Studio Team Services專案資源。

function listByResourceGroup(resourceGroupName: string, rootResourceName: string, options?: ProjectsListByResourceGroupOptionalParams): Promise<ProjectResourceListResult>

參數

resourceGroupName

string

Azure 訂用帳戶內的資源組名。

rootResourceName

string

Team Services 帳戶的名稱。

傳回

update(string, string, string, ProjectResource, ProjectsUpdateOptionalParams)

更新指定 Team Services 專案的標記。

function update(resourceGroupName: string, rootResourceName: string, resourceName: string, body: ProjectResource, options?: ProjectsUpdateOptionalParams): Promise<ProjectResource>

參數

resourceGroupName

string

Azure 訂用帳戶內的資源組名。

rootResourceName

string

Team Services 帳戶的名稱。

resourceName

string

Team Services 專案的名稱。

body
ProjectResource

要求資料。

options
ProjectsUpdateOptionalParams

選項參數。

傳回

Promise<ProjectResource>