catocli 1.0.5__py3-none-any.whl → 1.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of catocli might be problematic. Click here for more details.

Files changed (95) hide show
  1. catocli/Utils/clidriver.py +2 -2
  2. catocli/__init__.py +1 -1
  3. catocli/parsers/custom/README.md +288 -8
  4. catocli/parsers/custom/__init__.py +24 -19
  5. {catocli-1.0.5.dist-info → catocli-1.0.6.dist-info}/METADATA +1 -1
  6. {catocli-1.0.5.dist-info → catocli-1.0.6.dist-info}/RECORD +11 -95
  7. {catocli-1.0.5.dist-info → catocli-1.0.6.dist-info}/top_level.txt +0 -1
  8. schema/catolib.py +2 -2
  9. build/lib/catocli/Utils/clidriver.py +0 -103
  10. build/lib/catocli/__init__.py +0 -2
  11. build/lib/catocli/__main__.py +0 -12
  12. build/lib/catocli/parsers/custom/__init__.py +0 -42
  13. build/lib/catocli/parsers/custom/customLib.py +0 -71
  14. build/lib/catocli/parsers/mutation_admin/__init__.py +0 -51
  15. build/lib/catocli/parsers/mutation_container/__init__.py +0 -23
  16. build/lib/catocli/parsers/mutation_policy/__init__.py +0 -357
  17. build/lib/catocli/parsers/mutation_site/__init__.py +0 -219
  18. build/lib/catocli/parsers/mutation_sites/__init__.py +0 -219
  19. build/lib/catocli/parsers/parserApiClient.py +0 -312
  20. build/lib/catocli/parsers/query_accountBySubdomain/__init__.py +0 -17
  21. build/lib/catocli/parsers/query_accountMetrics/__init__.py +0 -17
  22. build/lib/catocli/parsers/query_accountRoles/__init__.py +0 -17
  23. build/lib/catocli/parsers/query_accountSnapshot/__init__.py +0 -17
  24. build/lib/catocli/parsers/query_admin/__init__.py +0 -17
  25. build/lib/catocli/parsers/query_admins/__init__.py +0 -17
  26. build/lib/catocli/parsers/query_appStats/__init__.py +0 -17
  27. build/lib/catocli/parsers/query_appStatsTimeSeries/__init__.py +0 -17
  28. build/lib/catocli/parsers/query_auditFeed/__init__.py +0 -17
  29. build/lib/catocli/parsers/query_container/__init__.py +0 -17
  30. build/lib/catocli/parsers/query_entityLookup/__init__.py +0 -17
  31. build/lib/catocli/parsers/query_events/__init__.py +0 -17
  32. build/lib/catocli/parsers/query_eventsFeed/__init__.py +0 -17
  33. build/lib/catocli/parsers/query_eventsTimeSeries/__init__.py +0 -17
  34. build/lib/catocli/parsers/query_hardwareManagement/__init__.py +0 -17
  35. build/lib/catocli/parsers/query_licensing/__init__.py +0 -17
  36. build/lib/catocli/parsers/query_policy/__init__.py +0 -17
  37. build/lib/catocli/parsers/query_siteLocation/__init__.py +0 -17
  38. build/lib/catocli/parsers/query_subDomains/__init__.py +0 -17
  39. build/lib/catocli/parsers/query_xdr/__init__.py +0 -37
  40. build/lib/catocli/parsers/raw/__init__.py +0 -9
  41. build/lib/graphql_client/__init__.py +0 -11
  42. build/lib/graphql_client/api/__init__.py +0 -3
  43. build/lib/graphql_client/api/call_api.py +0 -73
  44. build/lib/graphql_client/api_client.py +0 -192
  45. build/lib/graphql_client/api_client_types.py +0 -404
  46. build/lib/graphql_client/configuration.py +0 -230
  47. build/lib/graphql_client/models/__init__.py +0 -13
  48. build/lib/graphql_client/models/no_schema.py +0 -71
  49. build/lib/schema/catolib.py +0 -1002
  50. build/lib/schema/importSchema.py +0 -60
  51. build/lib/vendor/certifi/__init__.py +0 -4
  52. build/lib/vendor/certifi/__main__.py +0 -12
  53. build/lib/vendor/certifi/core.py +0 -114
  54. build/lib/vendor/certifi/py.typed +0 -0
  55. build/lib/vendor/six.py +0 -998
  56. build/lib/vendor/urllib3/__init__.py +0 -211
  57. build/lib/vendor/urllib3/_base_connection.py +0 -172
  58. build/lib/vendor/urllib3/_collections.py +0 -483
  59. build/lib/vendor/urllib3/_request_methods.py +0 -278
  60. build/lib/vendor/urllib3/_version.py +0 -16
  61. build/lib/vendor/urllib3/connection.py +0 -1033
  62. build/lib/vendor/urllib3/connectionpool.py +0 -1182
  63. build/lib/vendor/urllib3/contrib/__init__.py +0 -0
  64. build/lib/vendor/urllib3/contrib/emscripten/__init__.py +0 -18
  65. build/lib/vendor/urllib3/contrib/emscripten/connection.py +0 -254
  66. build/lib/vendor/urllib3/contrib/emscripten/fetch.py +0 -418
  67. build/lib/vendor/urllib3/contrib/emscripten/request.py +0 -22
  68. build/lib/vendor/urllib3/contrib/emscripten/response.py +0 -285
  69. build/lib/vendor/urllib3/contrib/pyopenssl.py +0 -552
  70. build/lib/vendor/urllib3/contrib/socks.py +0 -228
  71. build/lib/vendor/urllib3/exceptions.py +0 -321
  72. build/lib/vendor/urllib3/fields.py +0 -341
  73. build/lib/vendor/urllib3/filepost.py +0 -89
  74. build/lib/vendor/urllib3/http2/__init__.py +0 -53
  75. build/lib/vendor/urllib3/http2/connection.py +0 -356
  76. build/lib/vendor/urllib3/http2/probe.py +0 -87
  77. build/lib/vendor/urllib3/poolmanager.py +0 -637
  78. build/lib/vendor/urllib3/py.typed +0 -2
  79. build/lib/vendor/urllib3/response.py +0 -1265
  80. build/lib/vendor/urllib3/util/__init__.py +0 -42
  81. build/lib/vendor/urllib3/util/connection.py +0 -137
  82. build/lib/vendor/urllib3/util/proxy.py +0 -43
  83. build/lib/vendor/urllib3/util/request.py +0 -256
  84. build/lib/vendor/urllib3/util/response.py +0 -101
  85. build/lib/vendor/urllib3/util/retry.py +0 -533
  86. build/lib/vendor/urllib3/util/ssl_.py +0 -513
  87. build/lib/vendor/urllib3/util/ssl_match_hostname.py +0 -159
  88. build/lib/vendor/urllib3/util/ssltransport.py +0 -276
  89. build/lib/vendor/urllib3/util/timeout.py +0 -275
  90. build/lib/vendor/urllib3/util/url.py +0 -471
  91. build/lib/vendor/urllib3/util/util.py +0 -42
  92. build/lib/vendor/urllib3/util/wait.py +0 -124
  93. {catocli-1.0.5.dist-info → catocli-1.0.6.dist-info}/LICENSE +0 -0
  94. {catocli-1.0.5.dist-info → catocli-1.0.6.dist-info}/WHEEL +0 -0
  95. {catocli-1.0.5.dist-info → catocli-1.0.6.dist-info}/entry_points.txt +0 -0
@@ -1,312 +0,0 @@
1
- import codecs
2
- import json
3
- import os
4
- import sys
5
- from graphql_client import ApiClient, CallApi
6
- from graphql_client.api_client import ApiException
7
- import logging
8
- import pprint
9
-
10
- def createRequest(args, configuration):
11
- params = vars(args)
12
- instance = CallApi(ApiClient(configuration))
13
- operationName = params["operation_name"]
14
- operation = loadJSON("models/"+operationName+".json")
15
- try:
16
- variablesObj = json.loads(params["json"])
17
- except ValueError as e:
18
- print("ERROR: Query argument must be valid json in quotes. ",e,'\n\nExample: \'{"yourKey":"yourValue"}\'')
19
- exit()
20
- if "accountID" in operation["operationArgs"]:
21
- variablesObj["accountID"] = params["accountID"]
22
- elif "accountId" in operation["args"]:
23
- variablesObj["accountId"] = params["accountID"]
24
- isOk, invalidVars, message = validateArgs(variablesObj,operation)
25
- if isOk==True:
26
- body = generateGraphqlPayload(variablesObj,operation,operationName)
27
- if params["t"]==True:
28
- if params["p"]==True:
29
- print(json.dumps(body,indent=2,sort_keys=True).replace("\\n", "\n").replace("\\t", " "))
30
- else:
31
- print(json.dumps(body).replace("\\n", " ").replace("\\t", " ").replace(" "," ").replace(" "," "))
32
- return None
33
- else:
34
- try:
35
- return instance.call_api(body,params)
36
- except ApiException as e:
37
- return e
38
- else:
39
- print("ERROR: "+message,", ".join(invalidVars))
40
-
41
- def querySiteLocation(args, configuration):
42
- params = vars(args)
43
- operationName = params["operation_name"]
44
- operation = loadJSON("models/"+operationName+".json")
45
- try:
46
- variablesObj = json.loads(params["json"])
47
- except ValueError as e:
48
- print("ERROR: Query argument must be valid json in quotes. ",e,'\n\nExample: \'{filters:[{"search": "Your city here","field":"city","opeation":"exact"}}\'')
49
- exit()
50
- if not variablesObj.get("filters"):
51
- print("ERROR: Missing argument, must include filters array. ",e,'\n\nExample: \'{filters:[{"search": "Your city here","field":"city","opeation":"exact"}}\'')
52
- exit()
53
- if not isinstance(variablesObj.get("filters"), list):
54
- print("ERROR: Invalid argument, must include filters array. ",e,'\n\nExample: \'{filters:[{"search": "Your city here","field":"city","opeation":"exact"}}\'')
55
- exit()
56
- requiredFields = ["search","field","operation"]
57
- for filter in variablesObj["filters"]:
58
- if not isinstance(filter, dict):
59
- print("ERROR: Invalid filter '"+str(filter)+"', filters must be valid json and include 'search', 'field', and 'operation'. ",'\n\nExample: \'{filters:[{"search": "Your city here","field":"city","opeation":"exact"}}\'',type(filter))
60
- exit()
61
- for param in filter:
62
- if param not in requiredFields:
63
- print("ERROR: Invalid field '"+param+"', filters must include 'search', 'field', and 'operation'. ",'\n\nExample: \'{filters:[{"search": "Your city here","field":"city","opeation":"exact"}}\'')
64
- exit()
65
- for filter in variablesObj["filters"]:
66
- for param in filter:
67
- val = filter.get(param)
68
- if param=="search" and (not isinstance(val, str) or len(val)<3):
69
- print("ERROR: Invalid search '"+val+"', must be a string value and at least 3 characters in lengh. ",'\n\nExample: \'{filters:[{"search": "Your city here","field":"city","opeation":"exact"}}\'')
70
- exit()
71
- if param=="field" and (not isinstance(val, str) or val not in [ 'countryName', 'stateName', 'city']):
72
- print("ERROR: Invalid field '"+val+"', must be one of the following: 'countryName', 'stateName', or 'city'.",'\n\nExample: \'{"search":"your query here","field":"city"}\'')
73
- exit()
74
- if param=="operation" and (not isinstance(val, str) or val not in [ 'startsWith', 'endsWith', 'exact', 'contains' ]):
75
- print("ERROR: Invalid operation '"+val+"', must be one of the following: 'startsWith', 'endsWith', 'exact', 'contains'.",'\n\nExample: \'{"search": "Your search here","field":"city","operation":"exact"}\'')
76
- exit()
77
- response = {"data":[]}
78
- for key, siteObj in operation.items():
79
- isOk = True
80
- for filter in variablesObj["filters"]:
81
- search = filter.get("search")
82
- field = filter.get("field")
83
- operation = filter.get("operation")
84
- if field in siteObj:
85
- if operation=="startsWith" and not siteObj[field].startswith(search):
86
- isOk = False
87
- break
88
- elif operation=="endsWith" and not siteObj[field].endswith(search):
89
- isOk = False
90
- break
91
- elif operation=="exact" and not siteObj[field]==search:
92
- isOk = False
93
- break
94
- elif operation=="contains" and not search in siteObj[field]:
95
- isOk = False
96
- break
97
- else:
98
- isOk = False
99
- break
100
- if isOk==False:
101
- break
102
- if isOk==True:
103
- response["data"].append(siteObj)
104
- if params["p"]==True:
105
- responseStr = json.dumps(response,indent=2,sort_keys=True,ensure_ascii=False).encode('utf8')
106
- print(responseStr.decode())
107
- else:
108
- responseStr = json.dumps(response,ensure_ascii=False).encode('utf8')
109
- print(responseStr.decode())
110
-
111
- def createRawRequest(args, configuration):
112
- params = vars(args)
113
- instance = CallApi(ApiClient(configuration))
114
- isOk = False
115
- try:
116
- body = json.loads(params["json"])
117
- isOk = True
118
- except ValueError as e:
119
- print("ERROR: Argument must be valid json. ",e)
120
- isOk=False
121
- except Exception as e:
122
- isOk=False
123
- print("ERROR: ",e)
124
- if isOk==True:
125
- if params["t"]==True:
126
- if params["p"]==True:
127
- print(json.dumps(body,indent=2,sort_keys=True).replace("\\n", "\n").replace("\\t", "\t"))
128
- else:
129
- print(json.dumps(body).replace("\\n", " ").replace("\\t", " ").replace(" "," ").replace(" "," "))
130
- return None
131
- else:
132
- try:
133
- return instance.call_api(body,params)
134
- except ApiException as e:
135
- print(e)
136
- exit()
137
-
138
- def generateGraphqlPayload(variablesObj,operation,operationName):
139
- indent = " "
140
- queryStr = ""
141
- variableStr = ""
142
- for varName in variablesObj:
143
- if (varName in operation["operationArgs"]):
144
- variableStr += operation["operationArgs"][varName]["requestStr"]
145
- operationAry = operationName.split(".")
146
- operationType = operationAry.pop(0)
147
- queryStr = operationType + " "
148
- queryStr += renderCamelCase(".".join(operationAry))
149
- queryStr += " ( " + variableStr + ") {\n"
150
- queryStr += indent + operation["name"] + " ( "
151
- for argName in operation["args"]:
152
- arg = operation["args"][argName]
153
- if arg["varName"] in variablesObj:
154
- queryStr += arg["responseStr"]
155
- queryStr += ") {\n" + renderArgsAndFields("", variablesObj, operation, operation["type"]["definition"], " ") + " }"
156
- queryStr += indent + "\n}";
157
- body = {
158
- "query":queryStr,
159
- "variables":variablesObj,
160
- "operationName":renderCamelCase(".".join(operationAry)),
161
- }
162
- return body
163
-
164
- def get_help(path):
165
- matchCmd = "catocli "+path.replace("_"," ")
166
- import os
167
- pwd = os.path.dirname(__file__)
168
- doc = path+"/README.md"
169
- abs_path = os.path.join(pwd, doc)
170
- new_line = "\nEXAMPLES:\n"
171
- lines = open(abs_path, "r").readlines()
172
- for line in lines:
173
- if f"{matchCmd}" in line:
174
- clean_line = line.replace("<br /><br />", "").replace("`","")
175
- new_line += f"{clean_line}\n"
176
- # matchArg = path.replace("_",".")
177
- # for line in lines:
178
- # if f"`{matchArg}" in line:
179
- # clean_line = line.replace("<br /><br />", "").replace("`","")
180
- # new_line += f"{clean_line}\n"
181
- return new_line
182
-
183
- def validateArgs(variablesObj,operation):
184
- isOk = True
185
- invalidVars = []
186
- message = "Arguments are missing or have invalid values: "
187
- for varName in variablesObj:
188
- if varName not in operation["operationArgs"]:
189
- isOk = False
190
- invalidVars.append('"'+varName+'"')
191
- message = "Invalid argument names: "
192
- if isOk==True:
193
- for varName in operation["operationArgs"]:
194
- if operation["operationArgs"][varName]["required"] and varName not in variablesObj:
195
- isOk = False
196
- invalidVars.append('"'+varName+'"')
197
- else:
198
- if varName in variablesObj:
199
- value = variablesObj[varName]
200
- if operation["operationArgs"][varName]["required"] and value=="":
201
- isOk = False
202
- invalidVars.append('"'+varName+'":"'+str(value)+'"')
203
- return isOk, invalidVars, message
204
-
205
- def loadJSON(file):
206
- CONFIG = {}
207
- module_dir_ary = os.path.dirname(__file__).split("/")
208
- del module_dir_ary[-1]
209
- del module_dir_ary[-1]
210
- module_dir = "/".join(module_dir_ary)
211
- try:
212
- with open(module_dir+'/'+file, 'r') as data:
213
- CONFIG = json.load(data)
214
- return CONFIG
215
- except:
216
- logging.warning("File \""+module_dir+'/'+file+"\" not found.")
217
- exit()
218
-
219
- def renderCamelCase(pathStr):
220
- str = "";
221
- pathAry = pathStr.split(".")
222
- for i, path in enumerate(pathAry):
223
- if i == 0:
224
- str += path
225
- else:
226
- str += path[0].upper() + path[1:]
227
- return str
228
-
229
- def renderArgsAndFields(responseArgStr, variablesObj, curOperation, definition, indent):
230
- for fieldName in definition['fields']:
231
- field = definition['fields'][fieldName]
232
- field_name = field['alias'] if 'alias' in field else field['name']
233
- responseArgStr += indent + field_name
234
- if field.get("args") and not isinstance(field['args'], list):
235
- if (len(list(field['args'].keys()))>0):
236
- argsPresent = False
237
- argStr = " ( "
238
- for argName in field['args']:
239
- arg = field['args'][argName]
240
- if arg["varName"] in variablesObj:
241
- argStr += arg['responseStr'] + " "
242
- argsPresent = True
243
- argStr += ") "
244
- if argsPresent==True:
245
- responseArgStr += argStr
246
- if field.get("type") and field['type'].get('definition') and field['type']['definition']['fields'] is not None:
247
- responseArgStr += " {\n"
248
- for subfieldIndex in field['type']['definition']['fields']:
249
- subfield = field['type']['definition']['fields'][subfieldIndex]
250
- subfield_name = subfield['alias'] if 'alias' in subfield else subfield['name']
251
- responseArgStr += indent + " " + subfield_name
252
- if subfield.get("args") and len(list(subfield["args"].keys()))>0:
253
- argsPresent = False
254
- subArgStr = " ( "
255
- for argName in subfield['args']:
256
- arg = subfield['args'][argName]
257
- if arg["varName"] in variablesObj:
258
- argsPresent = True
259
- subArgStr += arg['responseStr'] + " "
260
- subArgStr += " )"
261
- if argsPresent==True:
262
- responseArgStr += subArgStr
263
- if subfield.get("type") and subfield['type'].get("definition") and (subfield['type']['definition'].get("fields") or subfield['type']['definition'].get('inputFields')):
264
- responseArgStr += " {\n"
265
- responseArgStr = renderArgsAndFields(responseArgStr, variablesObj, curOperation, subfield['type']['definition'], indent + " ")
266
- if subfield['type']['definition'].get('possibleTypes'):
267
- for possibleTypeName in subfield['type']['definition']['possibleTypes']:
268
- possibleType = subfield['type']['definition']['possibleTypes'][possibleTypeName]
269
- responseArgStr += indent + " ... on " + possibleType['name'] + " {\n"
270
- if possibleType.get('fields') or possibleType.get('inputFields'):
271
- responseArgStr = renderArgsAndFields(responseArgStr, variablesObj, curOperation, possibleType, indent + " ")
272
- responseArgStr += indent + " }\n"
273
- responseArgStr += indent + " }"
274
- elif subfield.get('type') and subfield['type'].get('definition') and subfield['type']['definition'].get('possibleTypes'):
275
- responseArgStr += " {\n"
276
- responseArgStr += indent + " __typename\n"
277
- for possibleTypeName in subfield['type']['definition']['possibleTypes']:
278
- possibleType = subfield['type']['definition']['possibleTypes'][possibleTypeName]
279
- responseArgStr += indent + " ... on " + possibleType['name'] + " {\n"
280
- if possibleType.get('fields') or possibleType.get('inputFields'):
281
- responseArgStr = renderArgsAndFields(responseArgStr, variablesObj, curOperation, possibleType, indent + " ")
282
- responseArgStr += indent + " }\n"
283
- responseArgStr += indent + " }\n"
284
- responseArgStr += "\n"
285
- if field['type']['definition'].get('possibleTypes'):
286
- for possibleTypeName in field['type']['definition']['possibleTypes']:
287
- possibleType = field['type']['definition']['possibleTypes'][possibleTypeName]
288
- responseArgStr += indent + " ... on " + possibleType['name'] + " {\n"
289
- if possibleType.get('fields') or possibleType.get('inputFields'):
290
- responseArgStr = renderArgsAndFields(responseArgStr, variablesObj, curOperation, possibleType, indent + " ")
291
- responseArgStr += indent + " }\n"
292
- responseArgStr += indent + "}\n"
293
- if field.get('type') and field['type'].get('definition') and field['type']['definition'].get('inputFields'):
294
- responseArgStr += " {\n"
295
- for subfieldName in field['type']['definition'].get('inputFields'):
296
- subfield = field['type']['definition']['inputFields'][subfieldName]
297
- subfield_name = subfield['alias'] if 'alias' in subfield else subfield['name']
298
- responseArgStr += indent + " " + subfield_name
299
- if subfield.get('type') and subfield['type'].get('definition') and (subfield['type']['definition'].get('fields') or subfield['type']['definition'].get('inputFields')):
300
- responseArgStr += " {\n"
301
- responseArgStr = renderArgsAndFields(responseArgStr, variablesObj, curOperation, subfield['type']['definition'], indent + " ")
302
- responseArgStr += indent + " }\n"
303
- if field['type']['definition'].get('possibleTypes'):
304
- for possibleTypeName in field['type']['definition']['possibleTypes']:
305
- possibleType = field['type']['definition']['possibleTypes'][possibleTypeName]
306
- responseArgStr += indent + "... on " + possibleType['name'] + " {\n"
307
- if possibleType.get('fields') or possibleType.get('inputFields'):
308
- responseArgStr = renderArgsAndFields(responseArgStr, variablesObj, curOperation, possibleType, indent + " ")
309
- responseArgStr += indent + " }\n"
310
- responseArgStr += indent + "}\n"
311
- responseArgStr += "\n"
312
- return responseArgStr
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_accountBySubdomain_parse(query_subparsers):
5
- query_accountBySubdomain_parser = query_subparsers.add_parser('accountBySubdomain',
6
- help='accountBySubdomain() query operation',
7
- usage=get_help("query_accountBySubdomain"))
8
-
9
- query_accountBySubdomain_parser.add_argument('accountID', help='The Account ID.')
10
- query_accountBySubdomain_parser.add_argument('json', help='Variables in JSON format.')
11
- query_accountBySubdomain_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_accountBySubdomain_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountBySubdomain_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_accountBySubdomain_parser.set_defaults(func=createRequest,operation_name='query.accountBySubdomain')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_accountMetrics_parse(query_subparsers):
5
- query_accountMetrics_parser = query_subparsers.add_parser('accountMetrics',
6
- help='accountMetrics() query operation',
7
- usage=get_help("query_accountMetrics"))
8
-
9
- query_accountMetrics_parser.add_argument('accountID', help='The Account ID.')
10
- query_accountMetrics_parser.add_argument('json', help='Variables in JSON format.')
11
- query_accountMetrics_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_accountMetrics_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountMetrics_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_accountMetrics_parser.set_defaults(func=createRequest,operation_name='query.accountMetrics')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_accountRoles_parse(query_subparsers):
5
- query_accountRoles_parser = query_subparsers.add_parser('accountRoles',
6
- help='accountRoles() query operation',
7
- usage=get_help("query_accountRoles"))
8
-
9
- query_accountRoles_parser.add_argument('accountID', help='The Account ID.')
10
- query_accountRoles_parser.add_argument('json', help='Variables in JSON format.')
11
- query_accountRoles_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_accountRoles_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountRoles_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_accountRoles_parser.set_defaults(func=createRequest,operation_name='query.accountRoles')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_accountSnapshot_parse(query_subparsers):
5
- query_accountSnapshot_parser = query_subparsers.add_parser('accountSnapshot',
6
- help='accountSnapshot() query operation',
7
- usage=get_help("query_accountSnapshot"))
8
-
9
- query_accountSnapshot_parser.add_argument('accountID', help='The Account ID.')
10
- query_accountSnapshot_parser.add_argument('json', help='Variables in JSON format.')
11
- query_accountSnapshot_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_accountSnapshot_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountSnapshot_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_accountSnapshot_parser.set_defaults(func=createRequest,operation_name='query.accountSnapshot')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_admin_parse(query_subparsers):
5
- query_admin_parser = query_subparsers.add_parser('admin',
6
- help='admin() query operation',
7
- usage=get_help("query_admin"))
8
-
9
- query_admin_parser.add_argument('accountID', help='The Account ID.')
10
- query_admin_parser.add_argument('json', help='Variables in JSON format.')
11
- query_admin_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_admin_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_admin_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_admin_parser.set_defaults(func=createRequest,operation_name='query.admin')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_admins_parse(query_subparsers):
5
- query_admins_parser = query_subparsers.add_parser('admins',
6
- help='admins() query operation',
7
- usage=get_help("query_admins"))
8
-
9
- query_admins_parser.add_argument('accountID', help='The Account ID.')
10
- query_admins_parser.add_argument('json', help='Variables in JSON format.')
11
- query_admins_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_admins_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_admins_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_admins_parser.set_defaults(func=createRequest,operation_name='query.admins')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_appStats_parse(query_subparsers):
5
- query_appStats_parser = query_subparsers.add_parser('appStats',
6
- help='appStats() query operation',
7
- usage=get_help("query_appStats"))
8
-
9
- query_appStats_parser.add_argument('accountID', help='The Account ID.')
10
- query_appStats_parser.add_argument('json', help='Variables in JSON format.')
11
- query_appStats_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_appStats_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_appStats_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_appStats_parser.set_defaults(func=createRequest,operation_name='query.appStats')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_appStatsTimeSeries_parse(query_subparsers):
5
- query_appStatsTimeSeries_parser = query_subparsers.add_parser('appStatsTimeSeries',
6
- help='appStatsTimeSeries() query operation',
7
- usage=get_help("query_appStatsTimeSeries"))
8
-
9
- query_appStatsTimeSeries_parser.add_argument('accountID', help='The Account ID.')
10
- query_appStatsTimeSeries_parser.add_argument('json', help='Variables in JSON format.')
11
- query_appStatsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_appStatsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_appStatsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_appStatsTimeSeries_parser.set_defaults(func=createRequest,operation_name='query.appStatsTimeSeries')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_auditFeed_parse(query_subparsers):
5
- query_auditFeed_parser = query_subparsers.add_parser('auditFeed',
6
- help='auditFeed() query operation',
7
- usage=get_help("query_auditFeed"))
8
-
9
- query_auditFeed_parser.add_argument('accountID', help='The Account ID.')
10
- query_auditFeed_parser.add_argument('json', help='Variables in JSON format.')
11
- query_auditFeed_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_auditFeed_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_auditFeed_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_auditFeed_parser.set_defaults(func=createRequest,operation_name='query.auditFeed')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_container_parse(query_subparsers):
5
- query_container_parser = query_subparsers.add_parser('container',
6
- help='container() query operation',
7
- usage=get_help("query_container"))
8
-
9
- query_container_parser.add_argument('accountID', help='The Account ID.')
10
- query_container_parser.add_argument('json', help='Variables in JSON format.')
11
- query_container_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_container_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_container_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_container_parser.set_defaults(func=createRequest,operation_name='query.container')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_entityLookup_parse(query_subparsers):
5
- query_entityLookup_parser = query_subparsers.add_parser('entityLookup',
6
- help='entityLookup() query operation',
7
- usage=get_help("query_entityLookup"))
8
-
9
- query_entityLookup_parser.add_argument('accountID', help='The Account ID.')
10
- query_entityLookup_parser.add_argument('json', help='Variables in JSON format.')
11
- query_entityLookup_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_entityLookup_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_entityLookup_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_entityLookup_parser.set_defaults(func=createRequest,operation_name='query.entityLookup')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_events_parse(query_subparsers):
5
- query_events_parser = query_subparsers.add_parser('events',
6
- help='events() query operation',
7
- usage=get_help("query_events"))
8
-
9
- query_events_parser.add_argument('accountID', help='The Account ID.')
10
- query_events_parser.add_argument('json', help='Variables in JSON format.')
11
- query_events_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_events_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_events_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_events_parser.set_defaults(func=createRequest,operation_name='query.events')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_eventsFeed_parse(query_subparsers):
5
- query_eventsFeed_parser = query_subparsers.add_parser('eventsFeed',
6
- help='eventsFeed() query operation',
7
- usage=get_help("query_eventsFeed"))
8
-
9
- query_eventsFeed_parser.add_argument('accountID', help='The Account ID.')
10
- query_eventsFeed_parser.add_argument('json', help='Variables in JSON format.')
11
- query_eventsFeed_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_eventsFeed_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_eventsFeed_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_eventsFeed_parser.set_defaults(func=createRequest,operation_name='query.eventsFeed')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_eventsTimeSeries_parse(query_subparsers):
5
- query_eventsTimeSeries_parser = query_subparsers.add_parser('eventsTimeSeries',
6
- help='eventsTimeSeries() query operation',
7
- usage=get_help("query_eventsTimeSeries"))
8
-
9
- query_eventsTimeSeries_parser.add_argument('accountID', help='The Account ID.')
10
- query_eventsTimeSeries_parser.add_argument('json', help='Variables in JSON format.')
11
- query_eventsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_eventsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_eventsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_eventsTimeSeries_parser.set_defaults(func=createRequest,operation_name='query.eventsTimeSeries')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_hardwareManagement_parse(query_subparsers):
5
- query_hardwareManagement_parser = query_subparsers.add_parser('hardwareManagement',
6
- help='hardwareManagement() query operation',
7
- usage=get_help("query_hardwareManagement"))
8
-
9
- query_hardwareManagement_parser.add_argument('accountID', help='The Account ID.')
10
- query_hardwareManagement_parser.add_argument('json', help='Variables in JSON format.')
11
- query_hardwareManagement_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_hardwareManagement_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_hardwareManagement_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_hardwareManagement_parser.set_defaults(func=createRequest,operation_name='query.hardwareManagement')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_licensing_parse(query_subparsers):
5
- query_licensing_parser = query_subparsers.add_parser('licensing',
6
- help='licensing() query operation',
7
- usage=get_help("query_licensing"))
8
-
9
- query_licensing_parser.add_argument('accountID', help='The Account ID.')
10
- query_licensing_parser.add_argument('json', help='Variables in JSON format.')
11
- query_licensing_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_licensing_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_licensing_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_licensing_parser.set_defaults(func=createRequest,operation_name='query.licensing')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import createRequest, get_help
3
-
4
- def query_policy_parse(query_subparsers):
5
- query_policy_parser = query_subparsers.add_parser('policy',
6
- help='policy() query operation',
7
- usage=get_help("query_policy"))
8
-
9
- query_policy_parser.add_argument('accountID', help='The Account ID.')
10
- query_policy_parser.add_argument('json', help='Variables in JSON format.')
11
- query_policy_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_policy_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_policy_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_policy_parser.set_defaults(func=createRequest,operation_name='query.policy')
@@ -1,17 +0,0 @@
1
-
2
- from ..parserApiClient import querySiteLocation, get_help
3
-
4
- def query_siteLocation_parse(query_subparsers):
5
- query_siteLocation_parser = query_subparsers.add_parser('siteLocation',
6
- help='siteLocation local cli query',
7
- usage=get_help("query_siteLocation"))
8
-
9
- query_siteLocation_parser.add_argument('accountID', help='The Account ID.')
10
- query_siteLocation_parser.add_argument('json', help='Variables in JSON format.')
11
- query_siteLocation_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_siteLocation_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_siteLocation_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
17
- query_siteLocation_parser.set_defaults(func=querySiteLocation,operation_name='query.siteLocation')