-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'marksull:master' into master
- Loading branch information
Showing
10 changed files
with
353 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Health Classes.""" | ||
|
||
import logging | ||
from .terminateravpnsessions import TerminateRAVPNSessions | ||
|
||
logging.debug("In the health __init__.py file.") | ||
|
||
__all__ = ["Health"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
from fmcapi.api_objects.apiclasstemplate import APIClassTemplate | ||
import logging | ||
|
||
|
||
class TerminateRAVPNSessions(APIClassTemplate): | ||
"""The TerminateRAVPNSessions Object in the FMC.""" | ||
|
||
FIRST_SUPPORTED_FMC_VERSION = "7.3" | ||
VALID_JSON_DATA = [ | ||
"id", | ||
"name", | ||
"description", | ||
"usernames", | ||
"type", | ||
"deviceId", | ||
"terminateBy", | ||
"sessionIds", | ||
"version", | ||
] | ||
VALID_FOR_KWARGS = VALID_JSON_DATA + [] | ||
REQUIRED_FOR_POST = ["terminateBy"] | ||
|
||
URL_SUFFIX = "/health/ravpnsessions/operational/terminateravpnsessions" | ||
|
||
def __init__(self, fmc, **kwargs): | ||
""" | ||
Initialize TerminateRAVPNSessions object. | ||
:param fmc (object): FMC object | ||
:param **kwargs: Any other values passed during instantiation. | ||
:return: requests response | ||
""" | ||
super().__init__(fmc, **kwargs) | ||
logging.debug("In __init__() for TerminateRAVPNSessions class.") | ||
self.parse_kwargs(**kwargs) | ||
|
||
def get(self, **kwargs): | ||
"""GET method for API for TerminateRAVPNSessions not supported.""" | ||
logging.info("GET method for API for TerminateRAVPNSessions not supported.") | ||
pass | ||
|
||
def delete(self, **kwargs): | ||
"""DELETE method for API for TerminateRAVPNSessions not supported.""" | ||
logging.info("DELETE method for API for TerminateRAVPNSessions not supported.") | ||
pass | ||
|
||
def put(self): | ||
"""PUT method for API for TerminateRAVPNSessions not supported.""" | ||
logging.info("PUT method for API for TerminateRAVPNSessions not supported.") | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.