-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.py
36 lines (28 loc) · 818 Bytes
/
macros.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
# ******** macros definition *******
class LcdnContentdClient:
def get_content_provider(self, account):
"""return the content provider ID by querying its account
Args:
account (str): content provider account
"""
return {
'account': account,
#'base_path': base_path,
}
def post_content_provider(self, account):
"""post the content provider ID by querying its account
Args:
account (str): content provider account
"""
return {
"posted account": account
}
class LcdnSecretClient:
def get_secret(self, secret_id):
"""
Args:
secret_id (int):
Returns:
AMCSecret:
"""
return {secret_id: 'top-secret'}