IServerLicence¶
- class IServerLicence¶
Bases:
ImpactCOMWrapperBase- Summary:
Represents a licence installed on the Licence Server.
- Remarks:
Introduced in Impact 7.0.0.10.
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- property count¶
Gets Count.
- Summary:
The number of installed licences.
- Returns:
The value of Count.
- Return type:
count (int)
- property created_date_time¶
Gets created_date_time.
- Summary:
The datetime the licence was issued.
- Returns:
The value of created_date_time.
- Return type:
created_date_time (datetime)
- property description¶
Gets Description.
- Summary:
Description of the licence or user defined licence comments.
- Remarks:
Licence Server administrators may set user defined comments to distinguish licences.
- Returns:
The value of Description.
- Return type:
description (str)
- property enabled¶
Gets Enabled.
- Summary:
Determines if the licence is currently enabled.
- Returns:
The value of Enabled.
- Return type:
enabled (bool)
- property expiration¶
Gets Expiration.
- Summary:
Description of the licence expiration.
- Returns:
The value of Expiration.
- Return type:
expiration (str)
- property guid¶
Gets GUID.
- Summary:
An associated GUID for nServer licences.
- Remarks:
Only applicable to ‘n_server Open’ and ‘n_server Application’ licences.
- Returns:
The value of GUID.
- Return type:
guid (str)
- property id¶
Gets ID.
- Summary:
The unique licence number.
- Returns:
The value of ID.
- Return type:
id (int)
- property library_objects¶
Gets library_objects.
- Summary:
Gets an ILibraryObjects collection representing all the library objects available for this server licence.
- Remarks:
Both Impact and nServer Application licences support library objects. nServer Open licences do not support library objects. Introduced in Impact 8.0.0.27.
- Returns:
The value of library_objects.
- Return type:
- property licences_in_use¶
Gets licences_in_use.
- Summary:
Returns a IServerLicenceUsers collection representing all licences currently in use.
- Returns:
The value of licences_in_use.
- Return type:
- property type¶
Gets Type.
- Summary:
The type of licence.
- Remarks:
A string representing the licence type. Either ‘Impact Primary’, ‘Impact Secondary’, ‘nServer Open’, or ‘nServer Application’.
- Returns:
The value of Type.
- Return type:
type (str)
- isNone()¶
Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.