azure.mgmt.serialconsole.models module

class azure.mgmt.serialconsole.models.CloudErrorBody(*, code: Optional[str] = None, message: Optional[str] = None, target: Optional[str] = None, details: Optional[List[_models.CloudErrorBody]] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

An error response from the Batch service.

Variables
  • code (str) – An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

  • message (str) – A message describing the error, intended to be suitable for display in a user interface.

  • target (str) – The target of the particular error. For example, the name of the property in error.

  • details (list[CloudErrorBody]) – A list of additional details about the error.

Keyword Arguments
  • code (str) – An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

  • message (str) – A message describing the error, intended to be suitable for display in a user interface.

  • target (str) – The target of the particular error. For example, the name of the property in error.

  • details (list[CloudErrorBody]) – A list of additional details about the error.

class azure.mgmt.serialconsole.models.DisableSerialConsoleResult(*, disabled: Optional[bool] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

Returns whether or not Serial Console is disabled.

Variables

disabled (bool) – Whether or not Serial Console is disabled.

Keyword Arguments

disabled (bool) – Whether or not Serial Console is disabled.

class azure.mgmt.serialconsole.models.EnableSerialConsoleResult(*, disabled: Optional[bool] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

Returns whether or not Serial Console is disabled (enabled).

Variables

disabled (bool) – Whether or not Serial Console is disabled (enabled).

Keyword Arguments

disabled (bool) – Whether or not Serial Console is disabled (enabled).

class azure.mgmt.serialconsole.models.GetSerialConsoleSubscriptionNotFound(*, code: Optional[str] = None, message: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

Error saying that the provided subscription could not be found.

Variables
  • code (str) – Error code.

  • message (str) – Subscription not found message.

Keyword Arguments
  • code (str) – Error code.

  • message (str) – Subscription not found message.

class azure.mgmt.serialconsole.models.ProxyResource(**kwargs)[source]

Bases: azure.mgmt.serialconsole.models._models_py3.Resource

The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Resource Id.

  • name (str) – Resource name.

  • type (str) – Resource type.

class azure.mgmt.serialconsole.models.Resource(**kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

The Resource model definition.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Resource Id.

  • name (str) – Resource name.

  • type (str) – Resource type.

class azure.mgmt.serialconsole.models.SerialConsoleOperations(*, value: Optional[List[_models.SerialConsoleOperationsValueItem]] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

Serial Console operations.

Variables

value (list[SerialConsoleOperationsValueItem]) – A list of Serial Console operations.

Keyword Arguments

value (list[SerialConsoleOperationsValueItem]) – A list of Serial Console operations.

class azure.mgmt.serialconsole.models.SerialConsoleOperationsValueItem(*, name: Optional[str] = None, is_data_action: Optional[str] = None, display: Optional[_models.SerialConsoleOperationsValueItemDisplay] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

SerialConsoleOperationsValueItem.

Variables
Keyword Arguments
class azure.mgmt.serialconsole.models.SerialConsoleOperationsValueItemDisplay(*, provider: Optional[str] = None, resource: Optional[str] = None, operation: Optional[str] = None, description: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

SerialConsoleOperationsValueItemDisplay.

Variables
Keyword Arguments
  • provider (str) –

  • resource (str) –

  • operation (str) –

  • description (str) –

class azure.mgmt.serialconsole.models.SerialConsoleStatus(*, disabled: Optional[bool] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

Returns whether or not Serial Console is disabled.

Variables

disabled (bool) – Whether or not Serial Console is disabled.

Keyword Arguments

disabled (bool) – Whether or not Serial Console is disabled.

class azure.mgmt.serialconsole.models.SerialPort(*, state: Optional[Union[str, _models.SerialPortState]] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole.models._models_py3.ProxyResource

Represents the serial port of the parent resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – Resource Id.

  • name (str) – Resource name.

  • type (str) – Resource type.

  • state (str or SerialPortState) – Specifies whether the port is enabled for a serial console connection. Known values are: “enabled” and “disabled”.

Keyword Arguments

state (str or SerialPortState) – Specifies whether the port is enabled for a serial console connection. Known values are: “enabled” and “disabled”.

class azure.mgmt.serialconsole.models.SerialPortConnectResult(*, connection_string: Optional[str] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

Returns a connection string to the serial port of the resource.

Variables

connection_string (str) – Connection string to the serial port of the resource.

Keyword Arguments

connection_string (str) – Connection string to the serial port of the resource.

class azure.mgmt.serialconsole.models.SerialPortListResult(*, value: Optional[List[_models.SerialPort]] = None, **kwargs)[source]

Bases: azure.mgmt.serialconsole._serialization.Model

The list serial ports operation response.

Variables

value (list[SerialPort]) – The list of serial ports.

Keyword Arguments

value (list[SerialPort]) – The list of serial ports.

class azure.mgmt.serialconsole.models.SerialPortState(value)[source]

Bases: str, enum.Enum

Specifies whether the port is enabled for a serial console connection.

DISABLED = 'disabled'
ENABLED = 'enabled'