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

Factories interface

表示工厂的接口。

方法

configureFactoryRepo(string, FactoryRepoUpdate, FactoriesConfigureFactoryRepoOptionalParams)

更新工厂的存储库信息。

createOrUpdate(string, string, Factory, FactoriesCreateOrUpdateOptionalParams)

创建或更新工厂。

delete(string, string, FactoriesDeleteOptionalParams)

删除工厂。

get(string, string, FactoriesGetOptionalParams)

获取工厂。

getDataPlaneAccess(string, string, UserAccessPolicy, FactoriesGetDataPlaneAccessOptionalParams)

获取数据平面访问权限。

getGitHubAccessToken(string, string, GitHubAccessTokenRequest, FactoriesGetGitHubAccessTokenOptionalParams)

获取 GitHub 访问令牌。

list(FactoriesListOptionalParams)

列出指定订阅下的工厂。

listByResourceGroup(string, FactoriesListByResourceGroupOptionalParams)

列出工厂。

update(string, string, FactoryUpdateParameters, FactoriesUpdateOptionalParams)

更新工厂。

方法详细信息

configureFactoryRepo(string, FactoryRepoUpdate, FactoriesConfigureFactoryRepoOptionalParams)

更新工厂的存储库信息。

function configureFactoryRepo(locationId: string, factoryRepoUpdate: FactoryRepoUpdate, options?: FactoriesConfigureFactoryRepoOptionalParams): Promise<Factory>

参数

locationId

string

位置标识符。

factoryRepoUpdate
FactoryRepoUpdate

更新工厂存储库请求定义。

返回

Promise<Factory>

createOrUpdate(string, string, Factory, FactoriesCreateOrUpdateOptionalParams)

创建或更新工厂。

function createOrUpdate(resourceGroupName: string, factoryName: string, factory: Factory, options?: FactoriesCreateOrUpdateOptionalParams): Promise<Factory>

参数

resourceGroupName

string

资源组名称。

factoryName

string

工厂名称。

factory
Factory

工厂资源定义。

options
FactoriesCreateOrUpdateOptionalParams

选项参数。

返回

Promise<Factory>

delete(string, string, FactoriesDeleteOptionalParams)

删除工厂。

function delete(resourceGroupName: string, factoryName: string, options?: FactoriesDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

资源组名称。

factoryName

string

工厂名称。

options
FactoriesDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, FactoriesGetOptionalParams)

获取工厂。

function get(resourceGroupName: string, factoryName: string, options?: FactoriesGetOptionalParams): Promise<Factory>

参数

resourceGroupName

string

资源组名称。

factoryName

string

工厂名称。

options
FactoriesGetOptionalParams

选项参数。

返回

Promise<Factory>

getDataPlaneAccess(string, string, UserAccessPolicy, FactoriesGetDataPlaneAccessOptionalParams)

获取数据平面访问权限。

function getDataPlaneAccess(resourceGroupName: string, factoryName: string, policy: UserAccessPolicy, options?: FactoriesGetDataPlaneAccessOptionalParams): Promise<AccessPolicyResponse>

参数

resourceGroupName

string

资源组名称。

factoryName

string

工厂名称。

policy
UserAccessPolicy

数据平面用户访问策略定义。

返回

getGitHubAccessToken(string, string, GitHubAccessTokenRequest, FactoriesGetGitHubAccessTokenOptionalParams)

获取 GitHub 访问令牌。

function getGitHubAccessToken(resourceGroupName: string, factoryName: string, gitHubAccessTokenRequest: GitHubAccessTokenRequest, options?: FactoriesGetGitHubAccessTokenOptionalParams): Promise<GitHubAccessTokenResponse>

参数

resourceGroupName

string

资源组名称。

factoryName

string

工厂名称。

gitHubAccessTokenRequest
GitHubAccessTokenRequest

获取 GitHub 访问令牌请求定义。

返回

list(FactoriesListOptionalParams)

列出指定订阅下的工厂。

function list(options?: FactoriesListOptionalParams): PagedAsyncIterableIterator<Factory, Factory[], PageSettings>

参数

options
FactoriesListOptionalParams

选项参数。

返回

listByResourceGroup(string, FactoriesListByResourceGroupOptionalParams)

列出工厂。

function listByResourceGroup(resourceGroupName: string, options?: FactoriesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Factory, Factory[], PageSettings>

参数

resourceGroupName

string

资源组名称。

返回

update(string, string, FactoryUpdateParameters, FactoriesUpdateOptionalParams)

更新工厂。

function update(resourceGroupName: string, factoryName: string, factoryUpdateParameters: FactoryUpdateParameters, options?: FactoriesUpdateOptionalParams): Promise<Factory>

参数

resourceGroupName

string

资源组名称。

factoryName

string

工厂名称。

factoryUpdateParameters
FactoryUpdateParameters

用于更新工厂的参数。

options
FactoriesUpdateOptionalParams

选项参数。

返回

Promise<Factory>