Links interface
表示链接的接口。
方法
方法详细信息
beginCreateOrUpdate(string, string, string, LinkResourceFormat, LinksCreateOrUpdateOptionalParams)
创建链接或更新中心中的现有链接。
function beginCreateOrUpdate(resourceGroupName: string, hubName: string, linkName: string, parameters: LinkResourceFormat, options?: LinksCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<LinkResourceFormat>, LinkResourceFormat>>
参数
- resourceGroupName
-
string
资源组的名称。
- hubName
-
string
中心的名称。
- linkName
-
string
链接的名称。
- parameters
- LinkResourceFormat
提供给 CreateOrUpdate 链接作的参数。
选项参数。
返回
Promise<PollerLike<@azure/core-lro.PollOperationState<LinkResourceFormat>, LinkResourceFormat>>
beginCreateOrUpdateAndWait(string, string, string, LinkResourceFormat, LinksCreateOrUpdateOptionalParams)
创建链接或更新中心中的现有链接。
function beginCreateOrUpdateAndWait(resourceGroupName: string, hubName: string, linkName: string, parameters: LinkResourceFormat, options?: LinksCreateOrUpdateOptionalParams): Promise<LinkResourceFormat>
参数
- resourceGroupName
-
string
资源组的名称。
- hubName
-
string
中心的名称。
- linkName
-
string
链接的名称。
- parameters
- LinkResourceFormat
提供给 CreateOrUpdate 链接作的参数。
选项参数。
返回
Promise<LinkResourceFormat>
delete(string, string, string, LinksDeleteOptionalParams)
删除中心中的链接。
function delete(resourceGroupName: string, hubName: string, linkName: string, options?: LinksDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
资源组的名称。
- hubName
-
string
中心的名称。
- linkName
-
string
链接的名称。
- options
- LinksDeleteOptionalParams
选项参数。
返回
Promise<void>
get(string, string, string, LinksGetOptionalParams)
获取中心中的链接。
function get(resourceGroupName: string, hubName: string, linkName: string, options?: LinksGetOptionalParams): Promise<LinkResourceFormat>
参数
- resourceGroupName
-
string
资源组的名称。
- hubName
-
string
中心的名称。
- linkName
-
string
链接的名称。
- options
- LinksGetOptionalParams
选项参数。
返回
Promise<LinkResourceFormat>
listByHub(string, string, LinksListByHubOptionalParams)
获取指定中心中的所有链接。
function listByHub(resourceGroupName: string, hubName: string, options?: LinksListByHubOptionalParams): PagedAsyncIterableIterator<LinkResourceFormat, LinkResourceFormat[], PageSettings>
参数
- resourceGroupName
-
string
资源组的名称。
- hubName
-
string
中心的名称。
- options
- LinksListByHubOptionalParams
选项参数。