azure.mgmt.resource.subscriptions.v2016_06_01.operations module¶
-
class
azure.mgmt.resource.subscriptions.v2016_06_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
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.resource.subscriptions.v2016_06_01.models' from '/home/vsts/work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py'>¶
-
class
azure.mgmt.resource.subscriptions.v2016_06_01.operations.
SubscriptionsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
SubscriptionsOperations 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.
-
get
(subscription_id: str, **kwargs: Any) → ’models.Subscription’[source]¶ Gets details about a specified subscription.
-
list
(**kwargs: Any) → Iterable[‘models.SubscriptionListResult’][source]¶ Gets all subscriptions for a tenant.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either SubscriptionListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
list_locations
(subscription_id: str, **kwargs: Any) → Iterable[‘models.LocationListResult’][source]¶ Gets all available geo-locations.
This operation provides all the locations that are available for resource providers; however,
each resource provider may support a subset of this list.
- param subscription_id
The ID of the target subscription.
- type subscription_id
str
- keyword callable cls
A custom type or function that will be passed the direct response
- return
An iterator like instance of either LocationListResult or the result of cls(response)
- rtype
~azure.core.paging.ItemPaged[~azure.mgmt.resource.subscriptions.v2016_06_01.models.LocationListResult]
- raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.resource.subscriptions.v2016_06_01.models' from '/home/vsts/work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py'>¶
-
class
azure.mgmt.resource.subscriptions.v2016_06_01.operations.
TenantsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
TenantsOperations 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.TenantListResult’][source]¶ Gets the tenants for your account.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either TenantListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.resource.subscriptions.v2016_06_01.models' from '/home/vsts/work/1/s/sdk/resources/azure-mgmt-resource/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py'>¶