-
Notifications
You must be signed in to change notification settings - Fork 71
/
avi_sdk.py
82 lines (53 loc) · 1.42 KB
/
avi_sdk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache License 2.0
class AviSdk(object):
def __init__(self, controller_ip, username, password=None, tenant=None):
pass
def resource(self, resource_name):
'''
return the AviResource
'''
pass
class AviResource(object):
'''
Note headers and authentication are done via sdk.
returns AviObject class
'''
def __init__(self, sdk):
pass
def get(self, avi_obj_type, **kwargs):
pass
def get_by_name(self, avi_obj_type, obj_name, **kwargs):
pass
def get_inventory(self, avi_obj_type, **kwargs):
pass
def post(self, pb_object, **kwargs):
pass
def put(self, pb_object, **kwargs):
pass
def delete(self, avi_obj_type, uuid, **kwargs):
pass
def delete_by_name(self, avi_obj_type, name, **kwargs):
pass
class VirtualserviceResource(AviResource):
pass
class AviObject(object):
def protobuf(self):
pass
def get(self, **kwargs):
pass
def get_inventory(self, **kwargs):
raise Exception("Not supported")
class VirtualserviceObject(AviObject):
def scaleout(self):
pass
def scalein(self):
pass
def migrate(self):
pass
def restart(self):
pass
def get_inventory(self):
AviObject.get_inventory(self)
class PoolObject(AviObject):
pass