azure.mgmt.resource.links.v2016_09_01.operations module

class azure.mgmt.resource.links.v2016_09_01.operations.Operations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ManagementLinkClient’s operations attribute.

list(**kwargs: Any)Iterable[azure.mgmt.resource.links.v2016_09_01.models._models_py3.Operation][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 Operation or the result of cls(response)

Return type

ItemPaged[Operation]

Raises

HttpResponseError

models = <module 'azure.mgmt.resource.links.v2016_09_01.models' from '/mnt/vss/_work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/resource/links/v2016_09_01/models/__init__.py'>
class azure.mgmt.resource.links.v2016_09_01.operations.ResourceLinksOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ManagementLinkClient’s resource_links attribute.

create_or_update(link_id: str, parameters: _models.ResourceLink, *, content_type: str = "'application/json'", **kwargs: Any)_models.ResourceLink[source]
create_or_update(link_id: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.ResourceLink

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. Required.

  • parameters (ResourceLink or IO) – Parameters for creating or updating a resource link. Is either a ResourceLink type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • 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

HttpResponseError

delete(link_id: str, **kwargs: Any)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. Required.

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

HttpResponseError

get(link_id: str, **kwargs: Any)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. Required.

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

HttpResponseError

list_at_source_scope(scope: str, filter: Literal[atScope()] = 'atScope()', **kwargs: Any)Iterable[azure.mgmt.resource.links.v2016_09_01.models._models_py3.ResourceLink][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. Required.

  • 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(). Known values are “atScope()” and None. Default value is “atScope()”.

Keyword Arguments

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

Returns

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

Return type

ItemPaged[ResourceLink]

Raises

HttpResponseError

list_at_subscription(filter: Optional[str] = None, **kwargs: Any)Iterable[azure.mgmt.resource.links.v2016_09_01.models._models_py3.ResourceLink][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}. Default value is None.

Keyword Arguments

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

Returns

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

Return type

ItemPaged[ResourceLink]

Raises

HttpResponseError

models = <module 'azure.mgmt.resource.links.v2016_09_01.models' from '/mnt/vss/_work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/resource/links/v2016_09_01/models/__init__.py'>