-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v1.0.5 * v1.0.6 * v1.0.7 Co-authored-by: Oliver Kaiser <[email protected]>
- Loading branch information
Showing
57 changed files
with
592 additions
and
10 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,6 @@ | ||
from fireREST.fmc import Resource | ||
|
||
|
||
class FmcHaStatus(Resource): | ||
PATH = '/integration/fmchastatuses/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' |
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 @@ | ||
from fireREST.fmc import Resource | ||
|
||
|
||
class SecurexConfig(Resource): | ||
PATH = '/integration/securexconfigs/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' | ||
MINIMUM_VERSION_REQUIRED_UPDATE = '7.0.0' | ||
|
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,19 @@ | ||
from fireREST import utils | ||
from fireREST.fmc import Resource, Connection | ||
from fireREST.fmc.object.anyconnectcustomattribute.override import Override | ||
|
||
|
||
class AnyconnectCustomAttribute(Resource): | ||
PATH = '/object/anyconnectcustomattributes/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' | ||
|
||
SUPPORTED_FILTERS = ['name_or_value', 'unused_only'] | ||
SUPPORTED_PARAMS = ['override_target_id'] | ||
|
||
def __init__(self, conn: Connection): | ||
super().__init__(conn) | ||
self.override = Override(conn) | ||
|
||
@utils.support_params | ||
def get(self, uuid=None, name=None, name_or_value=None, unused_only=None, override_target_id=None, params=None): | ||
return super().get(uuid=uuid, name=name, params=params) |
8 changes: 8 additions & 0 deletions
8
fireREST/fmc/object/anyconnectcustomattribute/override/__init__.py
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 @@ | ||
from fireREST.fmc import ChildResource | ||
|
||
|
||
class Override(ChildResource): | ||
CONTAINER_NAME = 'AnyconnectCustomAttribute' | ||
CONTAINER_PATH = '/object/anyconnectcustomattributes/{uuid}' | ||
PATH = '/object/anyconnectcustomattributes/{container_uuid}/overrides/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' |
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,16 @@ | ||
from fireREST import utils | ||
from fireREST.fmc import Resource, Connection | ||
|
||
|
||
class AnyconnectPackage(Resource): | ||
PATH = '/object/anyconnectpackages/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' | ||
|
||
SUPPORTED_FILTERS = ['name_or_value', 'unused_only'] | ||
|
||
def __init__(self, conn: Connection): | ||
super().__init__(conn) | ||
|
||
@utils.support_params | ||
def get(self, uuid=None, name=None, name_or_value=None, unused_only=None, params=None): | ||
return super().get(uuid=uuid, name=name, params=params) |
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,16 @@ | ||
from fireREST import utils | ||
from fireREST.fmc import Resource, Connection | ||
|
||
|
||
class AnyconnectProfile(Resource): | ||
PATH = '/object/anyconnectprofiles/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' | ||
|
||
SUPPORTED_FILTERS = ['name_or_value', 'unused_only'] | ||
|
||
def __init__(self, conn: Connection): | ||
super().__init__(conn) | ||
|
||
@utils.support_params | ||
def get(self, uuid=None, name=None, name_or_value=None, unused_only=None, params=None): | ||
return super().get(uuid=uuid, name=name, params=params) |
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,6 @@ | ||
from fireREST.fmc import Resource | ||
|
||
|
||
class CertificateMap(Resource): | ||
PATH = '/object/certificatemaps/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' |
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 @@ | ||
from fireREST.fmc import ChildResource | ||
|
||
|
||
class Override(ChildResource): | ||
CONTAINER_NAME = 'DnsServerGroup' | ||
CONTAINER_PATH = '/object/dnsservergroups/{uuid}' | ||
PATH = '/object/dnsservergroups/{container_uuid}/overrides/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' |
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,15 @@ | ||
from fireREST import utils | ||
from fireREST.fmc import Resource, Connection | ||
from fireREST.fmc.object.dynamicobject.mapping import Mapping | ||
|
||
|
||
class DynamicObject(Resource): | ||
PATH = '/object/dynamicobjects/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_CREATE = '7.0.0' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' | ||
MINIMUM_VERSION_REQUIRED_UPDATE = '7.0.0' | ||
MINIMUM_VERSION_REQUIRED_DELETE = '7.0.0' | ||
|
||
def __init__(self, conn: Connection): | ||
super().__init__(conn) | ||
self.mapping = Mapping(conn) |
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,11 @@ | ||
from fireREST.fmc import ChildResource | ||
|
||
|
||
class Mapping(ChildResource): | ||
CONTAINER_NAME = 'DynamicObject' | ||
CONTAINER_PATH = '/object/dynamicobjects/{uuid}' | ||
PATH = '/object/dynamicobjects/{container_uuid}/overrides/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' | ||
MINIMUM_VERSION_REQUIRED_UPDATE = '7.0.0' | ||
MINIMUM_VERSION_REQUIRED_DELETE = '7.0.0' | ||
|
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,6 @@ | ||
from fireREST.fmc import Resource | ||
|
||
|
||
class GroupPolicy(Resource): | ||
PATH = '/object/grouppolicies/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' |
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,6 @@ | ||
from fireREST.fmc import Resource | ||
|
||
|
||
class HostscanPackage(Resource): | ||
PATH = '/object/hostscanpackages/{uuid}' | ||
MINIMUM_VERSION_REQUIRED_GET = '7.0.0' |
Oops, something went wrong.