azure.mgmt.resource.subscriptions.v2018_06_01.operations package

class azure.mgmt.resource.subscriptions.v2018_06_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

ItemPaged[OperationListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.subscriptions.v2018_06_01.models' from 'c:\\repo\\azure-sdk-for-python\\sdk\\resources\\azure-mgmt-resource\\.tox\\sphinx\\lib\\site-packages\\azure\\mgmt\\resource\\subscriptions\\v2018_06_01\\models\\__init__.py'>
class azure.mgmt.resource.subscriptions.v2018_06_01.operations.SubscriptionsOperations(client, config, serializer, deserializer)[source]

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.

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

Subscription, or the result of cls(response)

Return type

Subscription

Raises

~azure.core.exceptions.HttpResponseError

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

ItemPaged[SubscriptionListResult]

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

ItemPaged[LocationListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.subscriptions.v2018_06_01.models' from 'c:\\repo\\azure-sdk-for-python\\sdk\\resources\\azure-mgmt-resource\\.tox\\sphinx\\lib\\site-packages\\azure\\mgmt\\resource\\subscriptions\\v2018_06_01\\models\\__init__.py'>
class azure.mgmt.resource.subscriptions.v2018_06_01.operations.TenantsOperations(client, config, serializer, deserializer)[source]

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

ItemPaged[TenantListResult]

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.subscriptions.v2018_06_01.models' from 'c:\\repo\\azure-sdk-for-python\\sdk\\resources\\azure-mgmt-resource\\.tox\\sphinx\\lib\\site-packages\\azure\\mgmt\\resource\\subscriptions\\v2018_06_01\\models\\__init__.py'>
class azure.mgmt.resource.subscriptions.v2018_06_01.operations.SubscriptionClientOperationsMixin[source]
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

CheckResourceNameResult

Raises

~azure.core.exceptions.HttpResponseError