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 directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – The API version to use for the operation. Constant value: “2016-06-01”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available Microsoft.Resources REST API operations.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Operation

Return type:

OperationPaged[Operation]

Raises:

CloudError

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.SubscriptionsOperations(client, config, serializer, deserializer)[source]

Bases: object

SubscriptionsOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – The API version to use for the operation. Constant value: “2016-06-01”.

get(subscription_id, custom_headers=None, raw=False, **operation_config)[source]

Gets details about a specified subscription.

Parameters:
  • subscription_id (str) – The ID of the target subscription.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Subscription or ClientRawResponse if raw=true

Return type:

Subscription or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Gets all subscriptions for a tenant.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Subscription

Return type:

SubscriptionPaged[Subscription]

Raises:

CloudError

list_locations(subscription_id, custom_headers=None, raw=False, **operation_config)[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.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Location

Return type:

LocationPaged[Location]

Raises:

CloudError

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 directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An object model deserializer.
Variables:

api_version – The API version to use for the operation. Constant value: “2016-06-01”.

list(custom_headers=None, raw=False, **operation_config)[source]

Gets the tenants for your account.

Parameters:
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of TenantIdDescription

Return type:

TenantIdDescriptionPaged[TenantIdDescription]

Raises:

CloudError

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'>