Projects class
表示 Projects 的类。
方法
构造函数详细信息
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(这些 ID 对应于 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>
承诺<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(这些 ID 对应于 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>
承诺<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>
承诺<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>
承诺<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>
承诺<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>
承诺<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
回调