azure.mgmt.resource.links.v2016_09_01.operations package¶
-
class
azure.mgmt.resource.links.v2016_09_01.operations.
Operations
(client, config, serializer, deserializer)[source]¶ 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
- 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.operations.
ResourceLinksOperations
(client, config, serializer, deserializer)[source]¶ 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
- 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
- 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
- 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.
- 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
- 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.
- 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
- 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'>¶