| @@ 43-65 (lines=23) @@ | ||
| 40 | PROTOCOL_VERSION = (20, 8) |
|
| 41 | ||
| 42 | ||
| 43 | class Gmp(GmpV208Mixin, GmpV9Mixin, GmpV8Mixin, GmpV7Mixin): |
|
| 44 | ||
| 45 | types = types |
|
| 46 | ||
| 47 | def __init__( |
|
| 48 | self, |
|
| 49 | connection: GvmConnection, |
|
| 50 | *, |
|
| 51 | transform: Optional[Callable[[str], Any]] = None |
|
| 52 | ): |
|
| 53 | super().__init__(connection, transform=transform) |
|
| 54 | ||
| 55 | # Is authenticated on gvmd |
|
| 56 | self._authenticated = False |
|
| 57 | ||
| 58 | @staticmethod |
|
| 59 | def get_protocol_version() -> tuple: |
|
| 60 | """Determine the Greenbone Management Protocol version. |
|
| 61 | ||
| 62 | Returns: |
|
| 63 | tuple: Implemented version of the Greenbone Management Protocol |
|
| 64 | """ |
|
| 65 | return PROTOCOL_VERSION |
|
| 66 | ||
| @@ 42-64 (lines=23) @@ | ||
| 39 | PROTOCOL_VERSION = (9,) |
|
| 40 | ||
| 41 | ||
| 42 | class Gmp(GmpV9Mixin, GmpV8Mixin, GmpV7Mixin): |
|
| 43 | ||
| 44 | types = types |
|
| 45 | ||
| 46 | def __init__( |
|
| 47 | self, |
|
| 48 | connection: GvmConnection, |
|
| 49 | *, |
|
| 50 | transform: Optional[Callable[[str], Any]] = None |
|
| 51 | ): |
|
| 52 | super().__init__(connection, transform=transform) |
|
| 53 | ||
| 54 | # Is authenticated on gvmd |
|
| 55 | self._authenticated = False |
|
| 56 | ||
| 57 | @staticmethod |
|
| 58 | def get_protocol_version() -> tuple: |
|
| 59 | """Determine the Greenbone Management Protocol version. |
|
| 60 | ||
| 61 | Returns: |
|
| 62 | tuple: Implemented version of the Greenbone Management Protocol |
|
| 63 | """ |
|
| 64 | return PROTOCOL_VERSION |
|
| 65 | ||
| @@ 45-67 (lines=23) @@ | ||
| 42 | PROTOCOL_VERSION = (21, 4) |
|
| 43 | ||
| 44 | ||
| 45 | class Gmp(GmpV214Mixin, GmpV208Mixin, GmpV9Mixin, GmpV8Mixin, GmpV7Mixin): |
|
| 46 | ||
| 47 | types = types |
|
| 48 | ||
| 49 | def __init__( |
|
| 50 | self, |
|
| 51 | connection: GvmConnection, |
|
| 52 | *, |
|
| 53 | transform: Optional[Callable[[str], Any]] = None |
|
| 54 | ): |
|
| 55 | super().__init__(connection, transform=transform) |
|
| 56 | ||
| 57 | # Is authenticated on gvmd |
|
| 58 | self._authenticated = False |
|
| 59 | ||
| 60 | @staticmethod |
|
| 61 | def get_protocol_version() -> tuple: |
|
| 62 | """Determine the Greenbone Management Protocol version. |
|
| 63 | ||
| 64 | Returns: |
|
| 65 | tuple: Implemented version of the Greenbone Management Protocol |
|
| 66 | """ |
|
| 67 | return PROTOCOL_VERSION |
|
| 68 | ||