azure.mgmt.subscription.operations module¶
-
class
azure.mgmt.subscription.operations.
Operations
(client, config, serializer, deserializer)[source]¶ Bases:
object
Operations operations.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
Variables: api_version – Version of the API to be used with the client request. Current version is 2015-06-01. Constant value: “2018-03-01-preview”.
-
list
(custom_headers=None, raw=False, **operation_config)[source]¶ Lists all of the available Microsoft.Subscription 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_config – Operation configuration overrides.
Returns: OperationListResult or ClientRawResponse if raw=true
Return type: OperationListResult or ClientRawResponse
Raises:
-
models
= <module 'azure.mgmt.subscription.models' from '/usr/lib/python3/dist-packages/azure/mgmt/subscription/models/__init__.py'>¶
-
class
azure.mgmt.subscription.operations.
SubscriptionOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
SubscriptionOperations operations.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
Variables: api_version – Version of the API to be used with the client request. Current version is 2015-06-01. Constant value: “2018-03-01-preview”.
-
list
(custom_headers=None, raw=False, **operation_config)[source]¶ Lists all of the available pending Microsoft.Subscription 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_config – Operation configuration overrides.
Returns: SubscriptionOperationListResult or ClientRawResponse if raw=true
Return type: SubscriptionOperationListResult or ClientRawResponse
Raises:
-
models
= <module 'azure.mgmt.subscription.models' from '/usr/lib/python3/dist-packages/azure/mgmt/subscription/models/__init__.py'>¶
-
class
azure.mgmt.subscription.operations.
SubscriptionFactoryOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
SubscriptionFactoryOperations operations.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
Variables: api_version – Version of the API to be used with the client request. Current version is 2015-06-01. Constant value: “2018-03-01-preview”.
-
create_subscription_in_enrollment_account
(enrollment_account_name, body, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Creates an Azure subscription.
Parameters: - enrollment_account_name (str) – The name of the enrollment account to which the subscription will be billed.
- body (SubscriptionCreationParameters) – The subscription creation parameters.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response
- polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy
Returns: An instance of LROPoller that returns SubscriptionCreationResult or ClientRawResponse<SubscriptionCreationResult> if raw==True
Return type: AzureOperationPoller[SubscriptionCreationResult] or AzureOperationPoller[ClientRawResponse[SubscriptionCreationResult]]
Raises:
-
models
= <module 'azure.mgmt.subscription.models' from '/usr/lib/python3/dist-packages/azure/mgmt/subscription/models/__init__.py'>¶
-
class
azure.mgmt.subscription.operations.
SubscriptionsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
SubscriptionsOperations operations.
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_config – Operation 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_config – Operation configuration overrides.
Returns: An iterator like instance of Subscription
Return type: 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_config – Operation configuration overrides.
Returns: An iterator like instance of Location
Return type: Raises: CloudError
-
models
= <module 'azure.mgmt.subscription.models' from '/usr/lib/python3/dist-packages/azure/mgmt/subscription/models/__init__.py'>¶
-
class
azure.mgmt.subscription.operations.
TenantsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
TenantsOperations operations.
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_config – Operation configuration overrides.
Returns: An iterator like instance of TenantIdDescription
Return type: Raises: CloudError
-
models
= <module 'azure.mgmt.subscription.models' from '/usr/lib/python3/dist-packages/azure/mgmt/subscription/models/__init__.py'>¶