azure.mgmt.hanaonazure.operations module

class azure.mgmt.hanaonazure.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 – Client API version. Constant value: “2017-11-03-preview”.

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

Gets a list of SAP HANA management 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:

ErrorResponseException

models = <module 'azure.mgmt.hanaonazure.models' from '/usr/lib/python3/dist-packages/azure/mgmt/hanaonazure/models/__init__.py'>
class azure.mgmt.hanaonazure.operations.HanaInstancesOperations(client, config, serializer, deserializer)[source]

Bases: object

HanaInstancesOperations 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 – Client API version. Constant value: “2017-11-03-preview”.

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

Gets properties of a SAP HANA instance.

Gets properties of a SAP HANA instance for the specified subscription, resource group, and instance name.

Parameters:
  • resource_group_name (str) – Name of the resource group.
  • hana_instance_name (str) – Name of the SAP HANA on Azure instance.
  • 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:

HanaInstance or ClientRawResponse if raw=true

Return type:

HanaInstance or ClientRawResponse

Raises:

ErrorResponseException

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

Gets a list of SAP HANA instances in the specified subscription.

Gets a list of SAP HANA instances in the specified subscription. The operations returns various properties of each SAP HANA on Azure instance.

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 HanaInstance

Return type:

HanaInstancePaged[HanaInstance]

Raises:

ErrorResponseException

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

Gets a list of SAP HANA instances in the specified subscription and the resource group.

Gets a list of SAP HANA instances in the specified subscription and the resource group. The operations returns various properties of each SAP HANA on Azure instance.

Parameters:
  • resource_group_name (str) – Name of the resource group.
  • 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 HanaInstance

Return type:

HanaInstancePaged[HanaInstance]

Raises:

ErrorResponseException

restart(resource_group_name, hana_instance_name, custom_headers=None, raw=False, **operation_config)[source]

The operation to restart a SAP HANA instance.

Parameters:
  • resource_group_name (str) – Name of the resource group.
  • hana_instance_name (str) – Name of the SAP HANA on Azure instance.
  • 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:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

models = <module 'azure.mgmt.hanaonazure.models' from '/usr/lib/python3/dist-packages/azure/mgmt/hanaonazure/models/__init__.py'>