你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArtifactSources class

表示 ArtifactSources 的类。

构造函数

ArtifactSources(AzureDeploymentManagerContext)

创建 ArtifactSources。

方法

createOrUpdate(string, string, ArtifactSourcesCreateOrUpdateOptionalParams)

同步创建新的项目源或更新现有项目源。

createOrUpdate(string, string, ArtifactSourcesCreateOrUpdateOptionalParams, ServiceCallback<ArtifactSource>)
createOrUpdate(string, string, ServiceCallback<ArtifactSource>)
deleteMethod(string, string, RequestOptionsBase)
deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, ServiceCallback<void>)
get(string, string, RequestOptionsBase)
get(string, string, RequestOptionsBase, ServiceCallback<ArtifactSource>)
get(string, string, ServiceCallback<ArtifactSource>)
list(string, RequestOptionsBase)
list(string, RequestOptionsBase, ServiceCallback<ArtifactSource[]>)
list(string, ServiceCallback<ArtifactSource[]>)

构造函数详细信息

ArtifactSources(AzureDeploymentManagerContext)

创建 ArtifactSources。

new ArtifactSources(client: AzureDeploymentManagerContext)

参数

client
AzureDeploymentManagerContext

对服务客户端的引用。

方法详细信息

createOrUpdate(string, string, ArtifactSourcesCreateOrUpdateOptionalParams)

同步创建新的项目源或更新现有项目源。

function createOrUpdate(resourceGroupName: string, artifactSourceName: string, options?: ArtifactSourcesCreateOrUpdateOptionalParams): Promise<ArtifactSourcesCreateOrUpdateResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

返回

承诺<Models.ArtifactSourcesCreateOrUpdateResponse>

createOrUpdate(string, string, ArtifactSourcesCreateOrUpdateOptionalParams, ServiceCallback<ArtifactSource>)

function createOrUpdate(resourceGroupName: string, artifactSourceName: string, options: ArtifactSourcesCreateOrUpdateOptionalParams, callback: ServiceCallback<ArtifactSource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

callback

ServiceCallback<ArtifactSource>

回调

createOrUpdate(string, string, ServiceCallback<ArtifactSource>)

function createOrUpdate(resourceGroupName: string, artifactSourceName: string, callback: ServiceCallback<ArtifactSource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

callback

ServiceCallback<ArtifactSource>

回调

deleteMethod(string, string, RequestOptionsBase)

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

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

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

deleteMethod(string, string, ServiceCallback<void>)

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

callback

ServiceCallback<void>

回调

get(string, string, RequestOptionsBase)

function get(resourceGroupName: string, artifactSourceName: string, options?: RequestOptionsBase): Promise<ArtifactSourcesGetResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ArtifactSourcesGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<ArtifactSource>)

function get(resourceGroupName: string, artifactSourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ArtifactSource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<ArtifactSource>

回调

get(string, string, ServiceCallback<ArtifactSource>)

function get(resourceGroupName: string, artifactSourceName: string, callback: ServiceCallback<ArtifactSource>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

artifactSourceName

string

项目源的名称。

callback

ServiceCallback<ArtifactSource>

回调

list(string, RequestOptionsBase)

function list(resourceGroupName: string, options?: RequestOptionsBase): Promise<ArtifactSourcesListResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ArtifactSourcesListResponse>

list(string, RequestOptionsBase, ServiceCallback<ArtifactSource[]>)

function list(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<ArtifactSource[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<ArtifactSource[]>

回调

list(string, ServiceCallback<ArtifactSource[]>)

function list(resourceGroupName: string, callback: ServiceCallback<ArtifactSource[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

callback

ServiceCallback<ArtifactSource[]>

回调