azure.mgmt.hybridcompute.operations module

class azure.mgmt.hybridcompute.operations.MachinesOperations(client, config, serializer, deserializer)[source]

Bases: object

MachinesOperations 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 – Client Api Version. Constant value: “2020-08-02”.

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

The operation to remove a hybrid machine identity in Azure.

Parameters
  • resource_group_name (str) – The name of the resource group.

  • name (str) – The name of the hybrid machine.

  • 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

ErrorResponseException

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

Retrieves information about the model view or the instance view of a hybrid machine.

Parameters
  • resource_group_name (str) – The name of the resource group.

  • name (str) – The name of the hybrid machine.

  • expand (str or InstanceViewTypes) – The expand expression to apply on the operation. Possible values include: ‘instanceView’

  • 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

Machine or ClientRawResponse if raw=true

Return type

Machine or ClientRawResponse

Raises

ErrorResponseException

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

Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.

Parameters
  • resource_group_name (str) – The 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 Machine

Return type

MachinePaged[Machine]

Raises

ErrorResponseException

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

Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.

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 Machine

Return type

MachinePaged[Machine]

Raises

ErrorResponseException

models = <module 'azure.mgmt.hybridcompute.models' from '/home/vsts/work/1/s/sdk/hybridcompute/azure-mgmt-hybridcompute/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/hybridcompute/models/__init__.py'>
class azure.mgmt.hybridcompute.operations.MachineExtensionsOperations(client, config, serializer, deserializer)[source]

Bases: object

MachineExtensionsOperations 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 – Client Api Version. Constant value: “2020-08-02”.

create_or_update(resource_group_name, name, extension_name, extension_parameters, custom_headers=None, raw=False, polling=True, **operation_config)[source]

The operation to create or update the extension.

Parameters
  • resource_group_name (str) – The name of the resource group.

  • name (str) – The name of the machine where the extension should be created or updated.

  • extension_name (str) – The name of the machine extension.

  • extension_parameters (MachineExtension) – Parameters supplied to the Create Machine Extension operation.

  • 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 MachineExtension or ClientRawResponse<MachineExtension> if raw==True

Return type

AzureOperationPoller[MachineExtension] or AzureOperationPoller[ClientRawResponse[MachineExtension]]

Raises

CloudError

delete(resource_group_name, name, extension_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]

The operation to delete the extension.

Parameters
  • resource_group_name (str) – The name of the resource group.

  • name (str) – The name of the machine where the extension should be deleted.

  • extension_name (str) – The name of the machine extension.

  • 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 None or ClientRawResponse<None> if raw==True

Return type

AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]

Raises

CloudError

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

The operation to get the extension.

Parameters
  • resource_group_name (str) – The name of the resource group.

  • name (str) – The name of the machine containing the extension.

  • extension_name (str) – The name of the machine extension.

  • 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

MachineExtension or ClientRawResponse if raw=true

Return type

MachineExtension or ClientRawResponse

Raises

CloudError

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

The operation to get all extensions of a non-Azure machine.

Parameters
  • resource_group_name (str) – The name of the resource group.

  • name (str) – The name of the machine containing the extension.

  • expand (str) – The expand expression to apply on the operation.

  • 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 MachineExtension

Return type

MachineExtensionPaged[MachineExtension]

Raises

CloudError

update(resource_group_name, name, extension_name, extension_parameters, custom_headers=None, raw=False, polling=True, **operation_config)[source]

The operation to create or update the extension.

Parameters
  • resource_group_name (str) – The name of the resource group.

  • name (str) – The name of the machine where the extension should be created or updated.

  • extension_name (str) – The name of the machine extension.

  • extension_parameters (MachineExtensionUpdate) – Parameters supplied to the Create Machine Extension operation.

  • 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 MachineExtension or ClientRawResponse<MachineExtension> if raw==True

Return type

AzureOperationPoller[MachineExtension] or AzureOperationPoller[ClientRawResponse[MachineExtension]]

Raises

CloudError

models = <module 'azure.mgmt.hybridcompute.models' from '/home/vsts/work/1/s/sdk/hybridcompute/azure-mgmt-hybridcompute/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/hybridcompute/models/__init__.py'>
class azure.mgmt.hybridcompute.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 – Client Api Version. Constant value: “2020-08-02”.

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

Gets a list of hybrid compute 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 OperationValue

Return type

OperationValuePaged[OperationValue]

Raises

ErrorResponseException

models = <module 'azure.mgmt.hybridcompute.models' from '/home/vsts/work/1/s/sdk/hybridcompute/azure-mgmt-hybridcompute/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/hybridcompute/models/__init__.py'>