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 '/usr/lib/python3/dist-packages/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py'>¶
-
class
azure.mgmt.resource.subscriptions.v2016_06_01.operations.
SubscriptionClientOperationsMixin
[source]¶ Bases:
object
-
check_resource_name
(resource_name_definition: Optional[models.ResourceName] = None, **kwargs: Any) → models.CheckResourceNameResult[source]¶ Checks resource name validity.
A resource name is valid if it is not a reserved word, does not contains a reserved word and does not start with a reserved word.
- Parameters
resource_name_definition (ResourceName) – Resource object with values for resource name and resource type.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
CheckResourceNameResult, or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
-
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.
- Parameters
subscription_id (str) – The ID of the target subscription.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either LocationListResult or the result of cls(response)
- Return type
- Raises
~azure.core.exceptions.HttpResponseError
-
models
= <module 'azure.mgmt.resource.subscriptions.v2016_06_01.models' from '/usr/lib/python3/dist-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 '/usr/lib/python3/dist-packages/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py'>¶