models.sql_source_id module

class models.sql_source_id.SqlSourceId(created_date_msecs=None, database_id=None, instance_id=None)[source]

Bases: object

Implementation of the ‘SqlSourceId’ model.

Specifies a unique id for a SQL Protection Source.

Attributes:
created_date_msecs (long|int): Specifies a unique identifier generated

from the date the database is created or renamed. Cohesity uses this identifier in combination with the databaseId to uniquely identify a database.

database_id (long|int): Specifies a unique id of the database but only

for the life of the database. SQL Server may reuse database ids. Cohesity uses the createDateMsecs in combination with this databaseId to uniquely identify a database.

instance_id (list of int): Array of bytes that stores the SQL Server

Instance id. Specifies unique id for the SQL Server instance. This id does not change during the life of the instance.

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.