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

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

Bases: object

Operations 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: Any) → Iterable[‘models.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

ItemPaged[OperationListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.links.v2016_09_01.models' from '/home/vsts/work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/resource/links/v2016_09_01/models/__init__.py'>
class azure.mgmt.resource.links.v2016_09_01.operations.ResourceLinksOperations(client, config, serializer, deserializer)[source]

Bases: object

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

create_or_update(link_id: str, parameters: ‘models.ResourceLink’, **kwargs: Any) → ’models.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

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.

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

get(link_id: str, **kwargs: Any) → ’models.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: Any) → Iterable[‘models.ResourceLinkResult’][source]

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

param scope

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.

type scope

str

param filter

The filter to apply when getting resource links. To get links only at the

specified scope (not below the scope), use Filter.atScope().
type filter

str

keyword callable cls

A custom type or function that will be passed the direct response

return

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

rtype

~azure.core.paging.ItemPaged[~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkResult]

raises

~azure.core.exceptions.HttpResponseError

list_at_subscription(filter: Optional[str] = None, **kwargs: Any) → Iterable[‘models.ResourceLinkResult’][source]

Gets all the linked resources for the subscription.

param filter

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}.
type filter

str

keyword callable cls

A custom type or function that will be passed the direct response

return

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

rtype

~azure.core.paging.ItemPaged[~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkResult]

raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.links.v2016_09_01.models' from '/home/vsts/work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/resource/links/v2016_09_01/models/__init__.py'>