mirror of
https://github.com/ansible/awx.git
synced 2026-09-16 00:40:11 -02:30
add subscriptions endpoint to awxkit
This commit is contained in:
@@ -38,3 +38,4 @@ from .instances import * # NOQA
|
||||
from .instance_groups import * # NOQA
|
||||
from .credential_input_sources import * # NOQA
|
||||
from .metrics import * # NOQA
|
||||
from .subscriptions import * # NOQA
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
from awxkit.api.resources import resources
|
||||
from . import base
|
||||
from . import page
|
||||
|
||||
|
||||
class Subscriptions(page.Page):
|
||||
|
||||
def get_possible_licenses(self, **kwargs):
|
||||
return self.post(json=kwargs).json
|
||||
|
||||
page.register_page(resources.subscriptions, Subscriptions)
|
||||
Reference in New Issue
Block a user