Projects class
代表 Projects 的類別。
建構函式
Projects(Visual |
建立專案。 |
方法
建構函式詳細資料
Projects(VisualStudioResourceProviderClientContext)
建立專案。
new Projects(client: VisualStudioResourceProviderClientContext)
參數
服務客戶端的參考。
方法詳細資料
beginCreate(ProjectResource, string, string, string, ProjectsBeginCreateOptionalParams)
在集合中建立具有指定名稱的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(body: ProjectResource, resourceGroupName: string, rootResourceName: string, resourceName: string, options?: ProjectsBeginCreateOptionalParams): Promise<LROPoller>
參數
- body
- ProjectResource
要求數據。
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
選擇性參數
傳回
Promise<@azure/ms-rest-azure-js.LROPoller>
Promise<msRestAzure.LROPoller>
create(ProjectResource, string, string, string, 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 create(body: ProjectResource, resourceGroupName: string, rootResourceName: string, resourceName: string, options?: ProjectsCreateOptionalParams): Promise<ProjectsCreateResponse>
參數
- body
- ProjectResource
要求數據。
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- options
- ProjectsCreateOptionalParams
選擇性參數
傳回
Promise<ProjectsCreateResponse>
Promise<Models.ProjectsCreateResponse>
get(string, string, string, RequestOptionsBase)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
取得 Team Services 專案資源的詳細數據。
function get(resourceGroupName: string, rootResourceName: string, resourceName: string, options?: RequestOptionsBase): Promise<ProjectsGetResponse>
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<ProjectsGetResponse>
Promise<Models.ProjectsGetResponse>
get(string, string, string, RequestOptionsBase, ServiceCallback<ProjectResource>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function get(resourceGroupName: string, rootResourceName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectResource>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
get(string, string, string, ServiceCallback<ProjectResource>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function get(resourceGroupName: string, rootResourceName: string, resourceName: string, callback: ServiceCallback<ProjectResource>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- callback
回呼
getJobStatus(string, string, string, string, string, ProjectsGetJobStatusOptionalParams)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
取得項目資源建立作業的狀態。
function getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options?: ProjectsGetJobStatusOptionalParams): Promise<ProjectsGetJobStatusResponse>
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- subContainerName
-
string
此參數應該設定為 resourceName。
- operation
-
string
作業類型。 唯一支援的值是 『put』。
選擇性參數
傳回
Promise<ProjectsGetJobStatusResponse>
Promise<Models.ProjectsGetJobStatusResponse>
getJobStatus(string, string, string, string, string, ProjectsGetJobStatusOptionalParams, ServiceCallback<ProjectResource>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, options: ProjectsGetJobStatusOptionalParams, callback: ServiceCallback<ProjectResource>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- subContainerName
-
string
此參數應該設定為 resourceName。
- operation
-
string
作業類型。 唯一支援的值是 『put』。
選擇性參數
- callback
回呼
getJobStatus(string, string, string, string, string, ServiceCallback<ProjectResource>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function getJobStatus(resourceGroupName: string, rootResourceName: string, resourceName: string, subContainerName: string, operation: string, callback: ServiceCallback<ProjectResource>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- subContainerName
-
string
此參數應該設定為 resourceName。
- operation
-
string
作業類型。 唯一支援的值是 『put』。
- callback
回呼
listByResourceGroup(string, string, RequestOptionsBase)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
取得在指定的 Team Services 帳戶中建立的所有 Visual Studio Team Services 專案資源。
function listByResourceGroup(resourceGroupName: string, rootResourceName: string, options?: RequestOptionsBase): Promise<ProjectsListByResourceGroupResponse>
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<ProjectsListByResourceGroupResponse>
Promise<Models.ProjectsListByResourceGroupResponse>
listByResourceGroup(string, string, RequestOptionsBase, ServiceCallback<ProjectResourceListResult>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function listByResourceGroup(resourceGroupName: string, rootResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectResourceListResult>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
listByResourceGroup(string, string, ServiceCallback<ProjectResourceListResult>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function listByResourceGroup(resourceGroupName: string, rootResourceName: string, callback: ServiceCallback<ProjectResourceListResult>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- callback
回呼
update(string, ProjectResource, string, string, RequestOptionsBase)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
更新指定之 Team Services 項目的標記。
function update(resourceGroupName: string, body: ProjectResource, rootResourceName: string, resourceName: string, options?: RequestOptionsBase): Promise<ProjectsUpdateResponse>
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- body
- ProjectResource
要求數據。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- options
- RequestOptionsBase
選擇性參數
傳回
Promise<ProjectsUpdateResponse>
Promise<Models.ProjectsUpdateResponse>
update(string, ProjectResource, string, string, RequestOptionsBase, ServiceCallback<ProjectResource>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function update(resourceGroupName: string, body: ProjectResource, rootResourceName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectResource>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- body
- ProjectResource
要求數據。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- options
- RequestOptionsBase
選擇性參數
- callback
回呼
update(string, ProjectResource, string, string, ServiceCallback<ProjectResource>)
警告
此 API 現已淘汰。
This operation is deprecated. Please do not use it any longer.
function update(resourceGroupName: string, body: ProjectResource, rootResourceName: string, resourceName: string, callback: ServiceCallback<ProjectResource>)
參數
- resourceGroupName
-
string
Azure 訂用帳戶內的資源組名。
- body
- ProjectResource
要求數據。
- rootResourceName
-
string
Team Services 帳戶的名稱。
- resourceName
-
string
Team Services 項目的名稱。
- callback
回呼