models_v2.sql_server module

class models_v2.sql_server.SQLServer(id=None, resource_info=None, agent_info=None, error=None, is_primary=None, instances=None, is_selected_by_default=None)[source]

Bases: object

Implementation of the ‘SQLServer’ model.

Specifies the details of a SQL server.

Attributes:

id (string): Specifies the unique identifier of the SQL server host. resource_info (AppResource): Specifies the details about App

Resource.

agent_info (AgentInformation): Specifies the agent details. error (Error): Specifies the error object with error code and a

message.

is_primary (bool): Indicates whether this is a active node of a FCI

cluster or hosts primary replica of a AAG group.

instances (list of SQLServerInstance): Specifies the list of all sql

instances running inside the current SQL host.

is_selected_by_default (bool): Indicates to the UI whether this server

should be selected by default

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.