Links interface

Interface representing a Links.

Methods

beginCreateOrUpdate(string, string, string, LinkResourceFormat, LinksCreateOrUpdateOptionalParams)

Creates a link or updates an existing link in the hub.

beginCreateOrUpdateAndWait(string, string, string, LinkResourceFormat, LinksCreateOrUpdateOptionalParams)

Creates a link or updates an existing link in the hub.

delete(string, string, string, LinksDeleteOptionalParams)

Deletes a link in the hub.

get(string, string, string, LinksGetOptionalParams)

Gets a link in the hub.

listByHub(string, string, LinksListByHubOptionalParams)

Gets all the links in the specified hub.

Method Details

Creates a link or updates an existing link in the hub.

function beginCreateOrUpdate(resourceGroupName: string, hubName: string, linkName: string, parameters: LinkResourceFormat, options?: LinksCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<LinkResourceFormat>, LinkResourceFormat>>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

linkName

string

The name of the link.

parameters
LinkResourceFormat

Parameters supplied to the CreateOrUpdate Link operation.

options
LinksCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<LinkResourceFormat>, LinkResourceFormat>>

Creates a link or updates an existing link in the hub.

function beginCreateOrUpdateAndWait(resourceGroupName: string, hubName: string, linkName: string, parameters: LinkResourceFormat, options?: LinksCreateOrUpdateOptionalParams): Promise<LinkResourceFormat>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

linkName

string

The name of the link.

parameters
LinkResourceFormat

Parameters supplied to the CreateOrUpdate Link operation.

options
LinksCreateOrUpdateOptionalParams

The options parameters.

Returns

Deletes a link in the hub.

function delete(resourceGroupName: string, hubName: string, linkName: string, options?: LinksDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

linkName

string

The name of the link.

options
LinksDeleteOptionalParams

The options parameters.

Returns

Promise<void>

Gets a link in the hub.

function get(resourceGroupName: string, hubName: string, linkName: string, options?: LinksGetOptionalParams): Promise<LinkResourceFormat>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

linkName

string

The name of the link.

options
LinksGetOptionalParams

The options parameters.

Returns

Gets all the links in the specified hub.

function listByHub(resourceGroupName: string, hubName: string, options?: LinksListByHubOptionalParams): PagedAsyncIterableIterator<LinkResourceFormat, LinkResourceFormat[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group.

hubName

string

The name of the hub.

options
LinksListByHubOptionalParams

The options parameters.

Returns