azure.mgmt.resource.links.v2016_09_01.aio.operations package

class azure.mgmt.resource.links.v2016_09_01.aio.operations.Operations(client, config, serializer, deserializer)[source]

Operations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

list(**kwargs) → AsyncIterable[azure.mgmt.resource.features.v2015_12_01.models._models_py3.OperationListResult][source]

Lists all of the available Microsoft.Resources REST API operations.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either OperationListResult or the result of cls(response)

Return type

AsyncItemPaged[OperationListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.links.v2016_09_01.models' from 'c:\\repo\\azure-sdk-for-python\\sdk\\resources\\azure-mgmt-resource\\.tox\\sphinx\\lib\\site-packages\\azure\\mgmt\\resource\\links\\v2016_09_01\\models\\__init__.py'>
class azure.mgmt.resource.links.v2016_09_01.aio.operations.ResourceLinksOperations(client, config, serializer, deserializer)[source]

ResourceLinksOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

async create_or_update(link_id: str, parameters: azure.mgmt.resource.links.v2016_09_01.models._models_py3.ResourceLink, **kwargs) → azure.mgmt.resource.links.v2016_09_01.models._models_py3.ResourceLink[source]

Creates or updates a resource link between the specified resources.

Parameters
  • link_id (str) – The fully qualified ID of the resource link. Use the format, /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider- namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink.

  • parameters (ResourceLink) – Parameters for creating or updating a resource link.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ResourceLink, or the result of cls(response)

Return type

ResourceLink

Raises

~azure.core.exceptions.HttpResponseError

async delete(link_id: str, **kwargs)None[source]

Deletes a resource link with the specified ID.

Parameters

link_id (str) – The fully qualified ID of the resource link. Use the format, /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider- namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

None

Raises

~azure.core.exceptions.HttpResponseError

async get(link_id: str, **kwargs) → azure.mgmt.resource.links.v2016_09_01.models._models_py3.ResourceLink[source]

Gets a resource link with the specified ID.

Parameters

link_id (str) – The fully qualified Id of the resource link. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ResourceLink, or the result of cls(response)

Return type

ResourceLink

Raises

~azure.core.exceptions.HttpResponseError

list_at_source_scope(scope: str, filter: Optional[str] = 'atScope()', **kwargs) → AsyncIterable[azure.mgmt.resource.links.v2016_09_01.models._models_py3.ResourceLinkResult][source]

Gets a list of resource links at and below the specified source scope.

Parameters
  • scope (str) – The fully qualified ID of the scope for getting the resource links. For example, to list resource links at and under a resource group, set the scope to /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup.

  • filter (str) – The filter to apply when getting resource links. To get links only at the specified scope (not below the scope), use Filter.atScope().

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ResourceLinkResult or the result of cls(response)

Return type

AsyncItemPaged[ResourceLinkResult]

Raises

~azure.core.exceptions.HttpResponseError

list_at_subscription(filter: Optional[str] = None, **kwargs) → AsyncIterable[azure.mgmt.resource.links.v2016_09_01.models._models_py3.ResourceLinkResult][source]

Gets all the linked resources for the subscription.

Parameters

filter (str) – The filter to apply on the list resource links operation. The supported filter for list resource links is targetId. For example, $filter=targetId eq {value}.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ResourceLinkResult or the result of cls(response)

Return type

AsyncItemPaged[ResourceLinkResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.links.v2016_09_01.models' from 'c:\\repo\\azure-sdk-for-python\\sdk\\resources\\azure-mgmt-resource\\.tox\\sphinx\\lib\\site-packages\\azure\\mgmt\\resource\\links\\v2016_09_01\\models\\__init__.py'>