Update exceptions
[osm/N2VC.git] / modules / libjuju / juju / client / _client8.py
1 # DO NOT CHANGE THIS FILE! This file is auto-generated by facade.py.
2 # Changes will be overwritten/lost when the file is regenerated.
3
4 from juju.client.facade import Type, ReturnMapping
5 from juju.client._definitions import *
6
7
8 class ApplicationFacade(Type):
9 name = 'Application'
10 version = 8
11 schema = {'definitions': {'AddApplicationUnits': {'additionalProperties': False,
12 'properties': {'application': {'type': 'string'},
13 'attach-storage': {'items': {'type': 'string'},
14 'type': 'array'},
15 'num-units': {'type': 'integer'},
16 'placement': {'items': {'$ref': '#/definitions/Placement'},
17 'type': 'array'},
18 'policy': {'type': 'string'}},
19 'required': ['application',
20 'num-units',
21 'placement'],
22 'type': 'object'},
23 'AddApplicationUnitsResults': {'additionalProperties': False,
24 'properties': {'units': {'items': {'type': 'string'},
25 'type': 'array'}},
26 'required': ['units'],
27 'type': 'object'},
28 'AddRelation': {'additionalProperties': False,
29 'properties': {'endpoints': {'items': {'type': 'string'},
30 'type': 'array'},
31 'via-cidrs': {'items': {'type': 'string'},
32 'type': 'array'}},
33 'required': ['endpoints'],
34 'type': 'object'},
35 'AddRelationResults': {'additionalProperties': False,
36 'properties': {'endpoints': {'patternProperties': {'.*': {'$ref': '#/definitions/CharmRelation'}},
37 'type': 'object'}},
38 'required': ['endpoints'],
39 'type': 'object'},
40 'ApplicationCharmRelations': {'additionalProperties': False,
41 'properties': {'application': {'type': 'string'}},
42 'required': ['application'],
43 'type': 'object'},
44 'ApplicationCharmRelationsResults': {'additionalProperties': False,
45 'properties': {'charm-relations': {'items': {'type': 'string'},
46 'type': 'array'}},
47 'required': ['charm-relations'],
48 'type': 'object'},
49 'ApplicationConfigSet': {'additionalProperties': False,
50 'properties': {'application': {'type': 'string'},
51 'config': {'patternProperties': {'.*': {'type': 'string'}},
52 'type': 'object'}},
53 'required': ['application', 'config'],
54 'type': 'object'},
55 'ApplicationConfigSetArgs': {'additionalProperties': False,
56 'properties': {'Args': {'items': {'$ref': '#/definitions/ApplicationConfigSet'},
57 'type': 'array'}},
58 'required': ['Args'],
59 'type': 'object'},
60 'ApplicationConfigUnsetArgs': {'additionalProperties': False,
61 'properties': {'Args': {'items': {'$ref': '#/definitions/ApplicationUnset'},
62 'type': 'array'}},
63 'required': ['Args'],
64 'type': 'object'},
65 'ApplicationConstraint': {'additionalProperties': False,
66 'properties': {'constraints': {'$ref': '#/definitions/Value'},
67 'error': {'$ref': '#/definitions/Error'}},
68 'required': ['constraints'],
69 'type': 'object'},
70 'ApplicationDeploy': {'additionalProperties': False,
71 'properties': {'application': {'type': 'string'},
72 'attach-storage': {'items': {'type': 'string'},
73 'type': 'array'},
74 'channel': {'type': 'string'},
75 'charm-url': {'type': 'string'},
76 'config': {'patternProperties': {'.*': {'type': 'string'}},
77 'type': 'object'},
78 'config-yaml': {'type': 'string'},
79 'constraints': {'$ref': '#/definitions/Value'},
80 'devices': {'patternProperties': {'.*': {'$ref': '#/definitions/Constraints'}},
81 'type': 'object'},
82 'endpoint-bindings': {'patternProperties': {'.*': {'type': 'string'}},
83 'type': 'object'},
84 'num-units': {'type': 'integer'},
85 'placement': {'items': {'$ref': '#/definitions/Placement'},
86 'type': 'array'},
87 'policy': {'type': 'string'},
88 'resources': {'patternProperties': {'.*': {'type': 'string'}},
89 'type': 'object'},
90 'series': {'type': 'string'},
91 'storage': {'patternProperties': {'.*': {'$ref': '#/definitions/Constraints'}},
92 'type': 'object'}},
93 'required': ['application',
94 'series',
95 'charm-url',
96 'channel',
97 'num-units',
98 'config-yaml',
99 'constraints'],
100 'type': 'object'},
101 'ApplicationDestroy': {'additionalProperties': False,
102 'properties': {'application': {'type': 'string'}},
103 'required': ['application'],
104 'type': 'object'},
105 'ApplicationExpose': {'additionalProperties': False,
106 'properties': {'application': {'type': 'string'}},
107 'required': ['application'],
108 'type': 'object'},
109 'ApplicationGet': {'additionalProperties': False,
110 'properties': {'application': {'type': 'string'}},
111 'required': ['application'],
112 'type': 'object'},
113 'ApplicationGetConfigResults': {'additionalProperties': False,
114 'properties': {'Results': {'items': {'$ref': '#/definitions/ConfigResult'},
115 'type': 'array'}},
116 'required': ['Results'],
117 'type': 'object'},
118 'ApplicationGetConstraintsResults': {'additionalProperties': False,
119 'properties': {'results': {'items': {'$ref': '#/definitions/ApplicationConstraint'},
120 'type': 'array'}},
121 'required': ['results'],
122 'type': 'object'},
123 'ApplicationGetResults': {'additionalProperties': False,
124 'properties': {'application': {'type': 'string'},
125 'application-config': {'patternProperties': {'.*': {'additionalProperties': True,
126 'type': 'object'}},
127 'type': 'object'},
128 'charm': {'type': 'string'},
129 'config': {'patternProperties': {'.*': {'additionalProperties': True,
130 'type': 'object'}},
131 'type': 'object'},
132 'constraints': {'$ref': '#/definitions/Value'},
133 'series': {'type': 'string'}},
134 'required': ['application',
135 'charm',
136 'config',
137 'constraints',
138 'series'],
139 'type': 'object'},
140 'ApplicationMetricCredential': {'additionalProperties': False,
141 'properties': {'application': {'type': 'string'},
142 'metrics-credentials': {'items': {'type': 'integer'},
143 'type': 'array'}},
144 'required': ['application',
145 'metrics-credentials'],
146 'type': 'object'},
147 'ApplicationMetricCredentials': {'additionalProperties': False,
148 'properties': {'creds': {'items': {'$ref': '#/definitions/ApplicationMetricCredential'},
149 'type': 'array'}},
150 'required': ['creds'],
151 'type': 'object'},
152 'ApplicationOfferDetails': {'additionalProperties': False,
153 'properties': {'application-description': {'type': 'string'},
154 'bindings': {'patternProperties': {'.*': {'type': 'string'}},
155 'type': 'object'},
156 'endpoints': {'items': {'$ref': '#/definitions/RemoteEndpoint'},
157 'type': 'array'},
158 'offer-name': {'type': 'string'},
159 'offer-url': {'type': 'string'},
160 'offer-uuid': {'type': 'string'},
161 'source-model-tag': {'type': 'string'},
162 'spaces': {'items': {'$ref': '#/definitions/RemoteSpace'},
163 'type': 'array'},
164 'users': {'items': {'$ref': '#/definitions/OfferUserDetails'},
165 'type': 'array'}},
166 'required': ['source-model-tag',
167 'offer-uuid',
168 'offer-url',
169 'offer-name',
170 'application-description'],
171 'type': 'object'},
172 'ApplicationSet': {'additionalProperties': False,
173 'properties': {'application': {'type': 'string'},
174 'options': {'patternProperties': {'.*': {'type': 'string'}},
175 'type': 'object'}},
176 'required': ['application', 'options'],
177 'type': 'object'},
178 'ApplicationSetCharm': {'additionalProperties': False,
179 'properties': {'application': {'type': 'string'},
180 'channel': {'type': 'string'},
181 'charm-url': {'type': 'string'},
182 'config-settings': {'patternProperties': {'.*': {'type': 'string'}},
183 'type': 'object'},
184 'config-settings-yaml': {'type': 'string'},
185 'force': {'type': 'boolean'},
186 'force-series': {'type': 'boolean'},
187 'force-units': {'type': 'boolean'},
188 'resource-ids': {'patternProperties': {'.*': {'type': 'string'}},
189 'type': 'object'},
190 'storage-constraints': {'patternProperties': {'.*': {'$ref': '#/definitions/StorageConstraints'}},
191 'type': 'object'}},
192 'required': ['application',
193 'charm-url',
194 'channel',
195 'force',
196 'force-units',
197 'force-series'],
198 'type': 'object'},
199 'ApplicationSetCharmProfile': {'additionalProperties': False,
200 'properties': {'application': {'type': 'string'},
201 'charm-url': {'type': 'string'}},
202 'required': ['application',
203 'charm-url'],
204 'type': 'object'},
205 'ApplicationUnexpose': {'additionalProperties': False,
206 'properties': {'application': {'type': 'string'}},
207 'required': ['application'],
208 'type': 'object'},
209 'ApplicationUnset': {'additionalProperties': False,
210 'properties': {'application': {'type': 'string'},
211 'options': {'items': {'type': 'string'},
212 'type': 'array'}},
213 'required': ['application', 'options'],
214 'type': 'object'},
215 'ApplicationUpdate': {'additionalProperties': False,
216 'properties': {'application': {'type': 'string'},
217 'charm-url': {'type': 'string'},
218 'constraints': {'$ref': '#/definitions/Value'},
219 'force': {'type': 'boolean'},
220 'force-charm-url': {'type': 'boolean'},
221 'force-series': {'type': 'boolean'},
222 'min-units': {'type': 'integer'},
223 'settings': {'patternProperties': {'.*': {'type': 'string'}},
224 'type': 'object'},
225 'settings-yaml': {'type': 'string'}},
226 'required': ['application',
227 'charm-url',
228 'force-charm-url',
229 'force-series',
230 'force',
231 'settings-yaml'],
232 'type': 'object'},
233 'ApplicationsDeploy': {'additionalProperties': False,
234 'properties': {'applications': {'items': {'$ref': '#/definitions/ApplicationDeploy'},
235 'type': 'array'}},
236 'required': ['applications'],
237 'type': 'object'},
238 'CharmRelation': {'additionalProperties': False,
239 'properties': {'interface': {'type': 'string'},
240 'limit': {'type': 'integer'},
241 'name': {'type': 'string'},
242 'optional': {'type': 'boolean'},
243 'role': {'type': 'string'},
244 'scope': {'type': 'string'}},
245 'required': ['name',
246 'role',
247 'interface',
248 'optional',
249 'limit',
250 'scope'],
251 'type': 'object'},
252 'ConfigResult': {'additionalProperties': False,
253 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
254 'type': 'object'}},
255 'type': 'object'},
256 'error': {'$ref': '#/definitions/Error'}},
257 'required': ['config'],
258 'type': 'object'},
259 'Constraints': {'additionalProperties': False,
260 'properties': {'Count': {'type': 'integer'},
261 'Pool': {'type': 'string'},
262 'Size': {'type': 'integer'}},
263 'required': ['Pool', 'Size', 'Count'],
264 'type': 'object'},
265 'ConsumeApplicationArg': {'additionalProperties': False,
266 'properties': {'ApplicationOfferDetails': {'$ref': '#/definitions/ApplicationOfferDetails'},
267 'application-alias': {'type': 'string'},
268 'external-controller': {'$ref': '#/definitions/ExternalControllerInfo'},
269 'macaroon': {'$ref': '#/definitions/Macaroon'}},
270 'required': ['ApplicationOfferDetails'],
271 'type': 'object'},
272 'ConsumeApplicationArgs': {'additionalProperties': False,
273 'properties': {'args': {'items': {'$ref': '#/definitions/ConsumeApplicationArg'},
274 'type': 'array'}},
275 'type': 'object'},
276 'DestroyApplicationInfo': {'additionalProperties': False,
277 'properties': {'destroyed-storage': {'items': {'$ref': '#/definitions/Entity'},
278 'type': 'array'},
279 'destroyed-units': {'items': {'$ref': '#/definitions/Entity'},
280 'type': 'array'},
281 'detached-storage': {'items': {'$ref': '#/definitions/Entity'},
282 'type': 'array'}},
283 'type': 'object'},
284 'DestroyApplicationParams': {'additionalProperties': False,
285 'properties': {'application-tag': {'type': 'string'},
286 'destroy-storage': {'type': 'boolean'}},
287 'required': ['application-tag'],
288 'type': 'object'},
289 'DestroyApplicationResult': {'additionalProperties': False,
290 'properties': {'error': {'$ref': '#/definitions/Error'},
291 'info': {'$ref': '#/definitions/DestroyApplicationInfo'}},
292 'type': 'object'},
293 'DestroyApplicationResults': {'additionalProperties': False,
294 'properties': {'results': {'items': {'$ref': '#/definitions/DestroyApplicationResult'},
295 'type': 'array'}},
296 'type': 'object'},
297 'DestroyApplicationUnits': {'additionalProperties': False,
298 'properties': {'unit-names': {'items': {'type': 'string'},
299 'type': 'array'}},
300 'required': ['unit-names'],
301 'type': 'object'},
302 'DestroyApplicationsParams': {'additionalProperties': False,
303 'properties': {'applications': {'items': {'$ref': '#/definitions/DestroyApplicationParams'},
304 'type': 'array'}},
305 'required': ['applications'],
306 'type': 'object'},
307 'DestroyConsumedApplicationParams': {'additionalProperties': False,
308 'properties': {'application-tag': {'type': 'string'}},
309 'required': ['application-tag'],
310 'type': 'object'},
311 'DestroyConsumedApplicationsParams': {'additionalProperties': False,
312 'properties': {'applications': {'items': {'$ref': '#/definitions/DestroyConsumedApplicationParams'},
313 'type': 'array'}},
314 'required': ['applications'],
315 'type': 'object'},
316 'DestroyRelation': {'additionalProperties': False,
317 'properties': {'endpoints': {'items': {'type': 'string'},
318 'type': 'array'},
319 'relation-id': {'type': 'integer'}},
320 'required': ['relation-id'],
321 'type': 'object'},
322 'DestroyUnitInfo': {'additionalProperties': False,
323 'properties': {'destroyed-storage': {'items': {'$ref': '#/definitions/Entity'},
324 'type': 'array'},
325 'detached-storage': {'items': {'$ref': '#/definitions/Entity'},
326 'type': 'array'}},
327 'type': 'object'},
328 'DestroyUnitParams': {'additionalProperties': False,
329 'properties': {'destroy-storage': {'type': 'boolean'},
330 'unit-tag': {'type': 'string'}},
331 'required': ['unit-tag'],
332 'type': 'object'},
333 'DestroyUnitResult': {'additionalProperties': False,
334 'properties': {'error': {'$ref': '#/definitions/Error'},
335 'info': {'$ref': '#/definitions/DestroyUnitInfo'}},
336 'type': 'object'},
337 'DestroyUnitResults': {'additionalProperties': False,
338 'properties': {'results': {'items': {'$ref': '#/definitions/DestroyUnitResult'},
339 'type': 'array'}},
340 'type': 'object'},
341 'DestroyUnitsParams': {'additionalProperties': False,
342 'properties': {'units': {'items': {'$ref': '#/definitions/DestroyUnitParams'},
343 'type': 'array'}},
344 'required': ['units'],
345 'type': 'object'},
346 'Entities': {'additionalProperties': False,
347 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
348 'type': 'array'}},
349 'required': ['entities'],
350 'type': 'object'},
351 'Entity': {'additionalProperties': False,
352 'properties': {'tag': {'type': 'string'}},
353 'required': ['tag'],
354 'type': 'object'},
355 'Error': {'additionalProperties': False,
356 'properties': {'code': {'type': 'string'},
357 'info': {'$ref': '#/definitions/ErrorInfo'},
358 'message': {'type': 'string'}},
359 'required': ['message', 'code'],
360 'type': 'object'},
361 'ErrorInfo': {'additionalProperties': False,
362 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
363 'macaroon-path': {'type': 'string'}},
364 'type': 'object'},
365 'ErrorResult': {'additionalProperties': False,
366 'properties': {'error': {'$ref': '#/definitions/Error'}},
367 'type': 'object'},
368 'ErrorResults': {'additionalProperties': False,
369 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
370 'type': 'array'}},
371 'required': ['results'],
372 'type': 'object'},
373 'ExternalControllerInfo': {'additionalProperties': False,
374 'properties': {'addrs': {'items': {'type': 'string'},
375 'type': 'array'},
376 'ca-cert': {'type': 'string'},
377 'controller-alias': {'type': 'string'},
378 'controller-tag': {'type': 'string'}},
379 'required': ['controller-tag',
380 'controller-alias',
381 'addrs',
382 'ca-cert'],
383 'type': 'object'},
384 'LXDProfileUpgradeMessages': {'additionalProperties': False,
385 'properties': {'application': {'$ref': '#/definitions/Entity'},
386 'watcher-id': {'type': 'string'}},
387 'required': ['application',
388 'watcher-id'],
389 'type': 'object'},
390 'LXDProfileUpgradeMessagesResult': {'additionalProperties': False,
391 'properties': {'error': {'$ref': '#/definitions/Error'},
392 'message': {'type': 'string'},
393 'unit-name': {'type': 'string'}},
394 'required': ['unit-name',
395 'message'],
396 'type': 'object'},
397 'LXDProfileUpgradeMessagesResults': {'additionalProperties': False,
398 'properties': {'args': {'items': {'$ref': '#/definitions/LXDProfileUpgradeMessagesResult'},
399 'type': 'array'}},
400 'required': ['args'],
401 'type': 'object'},
402 'Macaroon': {'additionalProperties': False, 'type': 'object'},
403 'NotifyWatchResult': {'additionalProperties': False,
404 'properties': {'NotifyWatcherId': {'type': 'string'},
405 'error': {'$ref': '#/definitions/Error'}},
406 'required': ['NotifyWatcherId'],
407 'type': 'object'},
408 'OfferUserDetails': {'additionalProperties': False,
409 'properties': {'access': {'type': 'string'},
410 'display-name': {'type': 'string'},
411 'user': {'type': 'string'}},
412 'required': ['user',
413 'display-name',
414 'access'],
415 'type': 'object'},
416 'Placement': {'additionalProperties': False,
417 'properties': {'directive': {'type': 'string'},
418 'scope': {'type': 'string'}},
419 'required': ['scope', 'directive'],
420 'type': 'object'},
421 'RelationSuspendedArg': {'additionalProperties': False,
422 'properties': {'message': {'type': 'string'},
423 'relation-id': {'type': 'integer'},
424 'suspended': {'type': 'boolean'}},
425 'required': ['relation-id',
426 'message',
427 'suspended'],
428 'type': 'object'},
429 'RelationSuspendedArgs': {'additionalProperties': False,
430 'properties': {'args': {'items': {'$ref': '#/definitions/RelationSuspendedArg'},
431 'type': 'array'}},
432 'required': ['args'],
433 'type': 'object'},
434 'RemoteEndpoint': {'additionalProperties': False,
435 'properties': {'interface': {'type': 'string'},
436 'limit': {'type': 'integer'},
437 'name': {'type': 'string'},
438 'role': {'type': 'string'}},
439 'required': ['name',
440 'role',
441 'interface',
442 'limit'],
443 'type': 'object'},
444 'RemoteSpace': {'additionalProperties': False,
445 'properties': {'cloud-type': {'type': 'string'},
446 'name': {'type': 'string'},
447 'provider-attributes': {'patternProperties': {'.*': {'additionalProperties': True,
448 'type': 'object'}},
449 'type': 'object'},
450 'provider-id': {'type': 'string'},
451 'subnets': {'items': {'$ref': '#/definitions/Subnet'},
452 'type': 'array'}},
453 'required': ['cloud-type',
454 'name',
455 'provider-id',
456 'provider-attributes',
457 'subnets'],
458 'type': 'object'},
459 'ScaleApplicationInfo': {'additionalProperties': False,
460 'properties': {'num-units': {'type': 'integer'}},
461 'required': ['num-units'],
462 'type': 'object'},
463 'ScaleApplicationParams': {'additionalProperties': False,
464 'properties': {'application-tag': {'type': 'string'},
465 'scale': {'type': 'integer'},
466 'scale-change': {'type': 'integer'}},
467 'required': ['application-tag',
468 'scale'],
469 'type': 'object'},
470 'ScaleApplicationResult': {'additionalProperties': False,
471 'properties': {'error': {'$ref': '#/definitions/Error'},
472 'info': {'$ref': '#/definitions/ScaleApplicationInfo'}},
473 'type': 'object'},
474 'ScaleApplicationResults': {'additionalProperties': False,
475 'properties': {'results': {'items': {'$ref': '#/definitions/ScaleApplicationResult'},
476 'type': 'array'}},
477 'type': 'object'},
478 'ScaleApplicationsParams': {'additionalProperties': False,
479 'properties': {'applications': {'items': {'$ref': '#/definitions/ScaleApplicationParams'},
480 'type': 'array'}},
481 'required': ['applications'],
482 'type': 'object'},
483 'SetConstraints': {'additionalProperties': False,
484 'properties': {'application': {'type': 'string'},
485 'constraints': {'$ref': '#/definitions/Value'}},
486 'required': ['application', 'constraints'],
487 'type': 'object'},
488 'StorageConstraints': {'additionalProperties': False,
489 'properties': {'count': {'type': 'integer'},
490 'pool': {'type': 'string'},
491 'size': {'type': 'integer'}},
492 'type': 'object'},
493 'StringResult': {'additionalProperties': False,
494 'properties': {'error': {'$ref': '#/definitions/Error'},
495 'result': {'type': 'string'}},
496 'required': ['result'],
497 'type': 'object'},
498 'Subnet': {'additionalProperties': False,
499 'properties': {'cidr': {'type': 'string'},
500 'life': {'type': 'string'},
501 'provider-id': {'type': 'string'},
502 'provider-network-id': {'type': 'string'},
503 'provider-space-id': {'type': 'string'},
504 'space-tag': {'type': 'string'},
505 'status': {'type': 'string'},
506 'vlan-tag': {'type': 'integer'},
507 'zones': {'items': {'type': 'string'},
508 'type': 'array'}},
509 'required': ['cidr',
510 'vlan-tag',
511 'life',
512 'space-tag',
513 'zones'],
514 'type': 'object'},
515 'UnitsResolved': {'additionalProperties': False,
516 'properties': {'all': {'type': 'boolean'},
517 'retry': {'type': 'boolean'},
518 'tags': {'$ref': '#/definitions/Entities'}},
519 'type': 'object'},
520 'UpdateSeriesArg': {'additionalProperties': False,
521 'properties': {'force': {'type': 'boolean'},
522 'series': {'type': 'string'},
523 'tag': {'$ref': '#/definitions/Entity'}},
524 'required': ['tag', 'force', 'series'],
525 'type': 'object'},
526 'UpdateSeriesArgs': {'additionalProperties': False,
527 'properties': {'args': {'items': {'$ref': '#/definitions/UpdateSeriesArg'},
528 'type': 'array'}},
529 'required': ['args'],
530 'type': 'object'},
531 'Value': {'additionalProperties': False,
532 'properties': {'arch': {'type': 'string'},
533 'container': {'type': 'string'},
534 'cores': {'type': 'integer'},
535 'cpu-power': {'type': 'integer'},
536 'instance-type': {'type': 'string'},
537 'mem': {'type': 'integer'},
538 'root-disk': {'type': 'integer'},
539 'spaces': {'items': {'type': 'string'},
540 'type': 'array'},
541 'tags': {'items': {'type': 'string'},
542 'type': 'array'},
543 'virt-type': {'type': 'string'},
544 'zones': {'items': {'type': 'string'},
545 'type': 'array'}},
546 'type': 'object'}},
547 'properties': {'AddRelation': {'properties': {'Params': {'$ref': '#/definitions/AddRelation'},
548 'Result': {'$ref': '#/definitions/AddRelationResults'}},
549 'type': 'object'},
550 'AddUnits': {'properties': {'Params': {'$ref': '#/definitions/AddApplicationUnits'},
551 'Result': {'$ref': '#/definitions/AddApplicationUnitsResults'}},
552 'type': 'object'},
553 'CharmConfig': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
554 'Result': {'$ref': '#/definitions/ApplicationGetConfigResults'}},
555 'type': 'object'},
556 'CharmRelations': {'properties': {'Params': {'$ref': '#/definitions/ApplicationCharmRelations'},
557 'Result': {'$ref': '#/definitions/ApplicationCharmRelationsResults'}},
558 'type': 'object'},
559 'Consume': {'properties': {'Params': {'$ref': '#/definitions/ConsumeApplicationArgs'},
560 'Result': {'$ref': '#/definitions/ErrorResults'}},
561 'type': 'object'},
562 'Deploy': {'properties': {'Params': {'$ref': '#/definitions/ApplicationsDeploy'},
563 'Result': {'$ref': '#/definitions/ErrorResults'}},
564 'type': 'object'},
565 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/ApplicationDestroy'}},
566 'type': 'object'},
567 'DestroyApplication': {'properties': {'Params': {'$ref': '#/definitions/DestroyApplicationsParams'},
568 'Result': {'$ref': '#/definitions/DestroyApplicationResults'}},
569 'type': 'object'},
570 'DestroyConsumedApplications': {'properties': {'Params': {'$ref': '#/definitions/DestroyConsumedApplicationsParams'},
571 'Result': {'$ref': '#/definitions/ErrorResults'}},
572 'type': 'object'},
573 'DestroyRelation': {'properties': {'Params': {'$ref': '#/definitions/DestroyRelation'}},
574 'type': 'object'},
575 'DestroyUnit': {'properties': {'Params': {'$ref': '#/definitions/DestroyUnitsParams'},
576 'Result': {'$ref': '#/definitions/DestroyUnitResults'}},
577 'type': 'object'},
578 'DestroyUnits': {'properties': {'Params': {'$ref': '#/definitions/DestroyApplicationUnits'}},
579 'type': 'object'},
580 'Expose': {'properties': {'Params': {'$ref': '#/definitions/ApplicationExpose'}},
581 'type': 'object'},
582 'Get': {'properties': {'Params': {'$ref': '#/definitions/ApplicationGet'},
583 'Result': {'$ref': '#/definitions/ApplicationGetResults'}},
584 'type': 'object'},
585 'GetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/ApplicationGet'},
586 'Result': {'$ref': '#/definitions/StringResult'}},
587 'type': 'object'},
588 'GetConfig': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
589 'Result': {'$ref': '#/definitions/ApplicationGetConfigResults'}},
590 'type': 'object'},
591 'GetConstraints': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
592 'Result': {'$ref': '#/definitions/ApplicationGetConstraintsResults'}},
593 'type': 'object'},
594 'GetLXDProfileUpgradeMessages': {'properties': {'Params': {'$ref': '#/definitions/LXDProfileUpgradeMessages'},
595 'Result': {'$ref': '#/definitions/LXDProfileUpgradeMessagesResults'}},
596 'type': 'object'},
597 'ResolveUnitErrors': {'properties': {'Params': {'$ref': '#/definitions/UnitsResolved'},
598 'Result': {'$ref': '#/definitions/ErrorResults'}},
599 'type': 'object'},
600 'ScaleApplications': {'properties': {'Params': {'$ref': '#/definitions/ScaleApplicationsParams'},
601 'Result': {'$ref': '#/definitions/ScaleApplicationResults'}},
602 'type': 'object'},
603 'Set': {'properties': {'Params': {'$ref': '#/definitions/ApplicationSet'}},
604 'type': 'object'},
605 'SetApplicationsConfig': {'properties': {'Params': {'$ref': '#/definitions/ApplicationConfigSetArgs'},
606 'Result': {'$ref': '#/definitions/ErrorResults'}},
607 'type': 'object'},
608 'SetCharm': {'properties': {'Params': {'$ref': '#/definitions/ApplicationSetCharm'}},
609 'type': 'object'},
610 'SetCharmProfile': {'properties': {'Params': {'$ref': '#/definitions/ApplicationSetCharmProfile'}},
611 'type': 'object'},
612 'SetConstraints': {'properties': {'Params': {'$ref': '#/definitions/SetConstraints'}},
613 'type': 'object'},
614 'SetMetricCredentials': {'properties': {'Params': {'$ref': '#/definitions/ApplicationMetricCredentials'},
615 'Result': {'$ref': '#/definitions/ErrorResults'}},
616 'type': 'object'},
617 'SetRelationsSuspended': {'properties': {'Params': {'$ref': '#/definitions/RelationSuspendedArgs'},
618 'Result': {'$ref': '#/definitions/ErrorResults'}},
619 'type': 'object'},
620 'Unexpose': {'properties': {'Params': {'$ref': '#/definitions/ApplicationUnexpose'}},
621 'type': 'object'},
622 'Unset': {'properties': {'Params': {'$ref': '#/definitions/ApplicationUnset'}},
623 'type': 'object'},
624 'UnsetApplicationsConfig': {'properties': {'Params': {'$ref': '#/definitions/ApplicationConfigUnsetArgs'},
625 'Result': {'$ref': '#/definitions/ErrorResults'}},
626 'type': 'object'},
627 'Update': {'properties': {'Params': {'$ref': '#/definitions/ApplicationUpdate'}},
628 'type': 'object'},
629 'UpdateApplicationSeries': {'properties': {'Params': {'$ref': '#/definitions/UpdateSeriesArgs'},
630 'Result': {'$ref': '#/definitions/ErrorResults'}},
631 'type': 'object'},
632 'WatchLXDProfileUpgradeNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entity'},
633 'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
634 'type': 'object'}},
635 'type': 'object'}
636
637
638 @ReturnMapping(AddRelationResults)
639 async def AddRelation(self, endpoints):
640 '''
641 endpoints : typing.Sequence[str]
642 Returns -> typing.Mapping[str, ~CharmRelation]
643 '''
644 # map input types to rpc msg
645 _params = dict()
646 msg = dict(type='Application',
647 request='AddRelation',
648 version=8,
649 params=_params)
650 _params['endpoints'] = endpoints
651 reply = await self.rpc(msg)
652 return reply
653
654
655
656 @ReturnMapping(AddApplicationUnitsResults)
657 async def AddUnits(self, application, num_units, placement):
658 '''
659 application : str
660 num_units : int
661 placement : typing.Sequence[~Placement]
662 Returns -> typing.Sequence[str]
663 '''
664 # map input types to rpc msg
665 _params = dict()
666 msg = dict(type='Application',
667 request='AddUnits',
668 version=8,
669 params=_params)
670 _params['application'] = application
671 _params['num-units'] = num_units
672 _params['placement'] = placement
673 reply = await self.rpc(msg)
674 return reply
675
676
677
678 @ReturnMapping(ApplicationGetConfigResults)
679 async def CharmConfig(self, entities):
680 '''
681 entities : typing.Sequence[~Entity]
682 Returns -> typing.Sequence[~ConfigResult]
683 '''
684 # map input types to rpc msg
685 _params = dict()
686 msg = dict(type='Application',
687 request='CharmConfig',
688 version=8,
689 params=_params)
690 _params['entities'] = entities
691 reply = await self.rpc(msg)
692 return reply
693
694
695
696 @ReturnMapping(ApplicationCharmRelationsResults)
697 async def CharmRelations(self, application):
698 '''
699 application : str
700 Returns -> typing.Sequence[str]
701 '''
702 # map input types to rpc msg
703 _params = dict()
704 msg = dict(type='Application',
705 request='CharmRelations',
706 version=8,
707 params=_params)
708 _params['application'] = application
709 reply = await self.rpc(msg)
710 return reply
711
712
713
714 @ReturnMapping(ErrorResults)
715 async def Consume(self, args):
716 '''
717 args : typing.Sequence[~ConsumeApplicationArg]
718 Returns -> typing.Sequence[~ErrorResult]
719 '''
720 # map input types to rpc msg
721 _params = dict()
722 msg = dict(type='Application',
723 request='Consume',
724 version=8,
725 params=_params)
726 _params['args'] = args
727 reply = await self.rpc(msg)
728 return reply
729
730
731
732 @ReturnMapping(ErrorResults)
733 async def Deploy(self, applications):
734 '''
735 applications : typing.Sequence[~ApplicationDeploy]
736 Returns -> typing.Sequence[~ErrorResult]
737 '''
738 # map input types to rpc msg
739 _params = dict()
740 msg = dict(type='Application',
741 request='Deploy',
742 version=8,
743 params=_params)
744 _params['applications'] = applications
745 reply = await self.rpc(msg)
746 return reply
747
748
749
750 @ReturnMapping(None)
751 async def Destroy(self, application):
752 '''
753 application : str
754 Returns -> None
755 '''
756 # map input types to rpc msg
757 _params = dict()
758 msg = dict(type='Application',
759 request='Destroy',
760 version=8,
761 params=_params)
762 _params['application'] = application
763 reply = await self.rpc(msg)
764 return reply
765
766
767
768 @ReturnMapping(DestroyApplicationResults)
769 async def DestroyApplication(self, applications):
770 '''
771 applications : typing.Sequence[~DestroyApplicationParams]
772 Returns -> typing.Sequence[~DestroyApplicationResult]
773 '''
774 # map input types to rpc msg
775 _params = dict()
776 msg = dict(type='Application',
777 request='DestroyApplication',
778 version=8,
779 params=_params)
780 _params['applications'] = applications
781 reply = await self.rpc(msg)
782 return reply
783
784
785
786 @ReturnMapping(ErrorResults)
787 async def DestroyConsumedApplications(self, applications):
788 '''
789 applications : typing.Sequence[~DestroyConsumedApplicationParams]
790 Returns -> typing.Sequence[~ErrorResult]
791 '''
792 # map input types to rpc msg
793 _params = dict()
794 msg = dict(type='Application',
795 request='DestroyConsumedApplications',
796 version=8,
797 params=_params)
798 _params['applications'] = applications
799 reply = await self.rpc(msg)
800 return reply
801
802
803
804 @ReturnMapping(None)
805 async def DestroyRelation(self, endpoints):
806 '''
807 endpoints : typing.Sequence[str]
808 Returns -> None
809 '''
810 # map input types to rpc msg
811 _params = dict()
812 msg = dict(type='Application',
813 request='DestroyRelation',
814 version=8,
815 params=_params)
816 _params['endpoints'] = endpoints
817 reply = await self.rpc(msg)
818 return reply
819
820
821
822 @ReturnMapping(DestroyUnitResults)
823 async def DestroyUnit(self, units):
824 '''
825 units : typing.Sequence[~DestroyUnitParams]
826 Returns -> typing.Sequence[~DestroyUnitResult]
827 '''
828 # map input types to rpc msg
829 _params = dict()
830 msg = dict(type='Application',
831 request='DestroyUnit',
832 version=8,
833 params=_params)
834 _params['units'] = units
835 reply = await self.rpc(msg)
836 return reply
837
838
839
840 @ReturnMapping(None)
841 async def DestroyUnits(self, unit_names):
842 '''
843 unit_names : typing.Sequence[str]
844 Returns -> None
845 '''
846 # map input types to rpc msg
847 _params = dict()
848 msg = dict(type='Application',
849 request='DestroyUnits',
850 version=8,
851 params=_params)
852 _params['unit-names'] = unit_names
853 reply = await self.rpc(msg)
854 return reply
855
856
857
858 @ReturnMapping(None)
859 async def Expose(self, application):
860 '''
861 application : str
862 Returns -> None
863 '''
864 # map input types to rpc msg
865 _params = dict()
866 msg = dict(type='Application',
867 request='Expose',
868 version=8,
869 params=_params)
870 _params['application'] = application
871 reply = await self.rpc(msg)
872 return reply
873
874
875
876 @ReturnMapping(ApplicationGetResults)
877 async def Get(self, application):
878 '''
879 application : str
880 Returns -> typing.Union[str, typing.Mapping[str, typing.Any], _ForwardRef('Value')]
881 '''
882 # map input types to rpc msg
883 _params = dict()
884 msg = dict(type='Application',
885 request='Get',
886 version=8,
887 params=_params)
888 _params['application'] = application
889 reply = await self.rpc(msg)
890 return reply
891
892
893
894 @ReturnMapping(StringResult)
895 async def GetCharmURL(self, application):
896 '''
897 application : str
898 Returns -> typing.Union[_ForwardRef('Error'), str]
899 '''
900 # map input types to rpc msg
901 _params = dict()
902 msg = dict(type='Application',
903 request='GetCharmURL',
904 version=8,
905 params=_params)
906 _params['application'] = application
907 reply = await self.rpc(msg)
908 return reply
909
910
911
912 @ReturnMapping(ApplicationGetConfigResults)
913 async def GetConfig(self, entities):
914 '''
915 entities : typing.Sequence[~Entity]
916 Returns -> typing.Sequence[~ConfigResult]
917 '''
918 # map input types to rpc msg
919 _params = dict()
920 msg = dict(type='Application',
921 request='GetConfig',
922 version=8,
923 params=_params)
924 _params['entities'] = entities
925 reply = await self.rpc(msg)
926 return reply
927
928
929
930 @ReturnMapping(ApplicationGetConstraintsResults)
931 async def GetConstraints(self, entities):
932 '''
933 entities : typing.Sequence[~Entity]
934 Returns -> typing.Sequence[~ApplicationConstraint]
935 '''
936 # map input types to rpc msg
937 _params = dict()
938 msg = dict(type='Application',
939 request='GetConstraints',
940 version=8,
941 params=_params)
942 _params['entities'] = entities
943 reply = await self.rpc(msg)
944 return reply
945
946
947
948 @ReturnMapping(LXDProfileUpgradeMessagesResults)
949 async def GetLXDProfileUpgradeMessages(self, application, watcher_id):
950 '''
951 application : Entity
952 watcher_id : str
953 Returns -> typing.Sequence[~LXDProfileUpgradeMessagesResult]
954 '''
955 # map input types to rpc msg
956 _params = dict()
957 msg = dict(type='Application',
958 request='GetLXDProfileUpgradeMessages',
959 version=8,
960 params=_params)
961 _params['application'] = application
962 _params['watcher-id'] = watcher_id
963 reply = await self.rpc(msg)
964 return reply
965
966
967
968 @ReturnMapping(ErrorResults)
969 async def ResolveUnitErrors(self, all_, retry, tags):
970 '''
971 all_ : bool
972 retry : bool
973 tags : Entities
974 Returns -> typing.Sequence[~ErrorResult]
975 '''
976 # map input types to rpc msg
977 _params = dict()
978 msg = dict(type='Application',
979 request='ResolveUnitErrors',
980 version=8,
981 params=_params)
982 _params['all'] = all_
983 _params['retry'] = retry
984 _params['tags'] = tags
985 reply = await self.rpc(msg)
986 return reply
987
988
989
990 @ReturnMapping(ScaleApplicationResults)
991 async def ScaleApplications(self, applications):
992 '''
993 applications : typing.Sequence[~ScaleApplicationParams]
994 Returns -> typing.Sequence[~ScaleApplicationResult]
995 '''
996 # map input types to rpc msg
997 _params = dict()
998 msg = dict(type='Application',
999 request='ScaleApplications',
1000 version=8,
1001 params=_params)
1002 _params['applications'] = applications
1003 reply = await self.rpc(msg)
1004 return reply
1005
1006
1007
1008 @ReturnMapping(None)
1009 async def Set(self, application, options):
1010 '''
1011 application : str
1012 options : typing.Mapping[str, str]
1013 Returns -> None
1014 '''
1015 # map input types to rpc msg
1016 _params = dict()
1017 msg = dict(type='Application',
1018 request='Set',
1019 version=8,
1020 params=_params)
1021 _params['application'] = application
1022 _params['options'] = options
1023 reply = await self.rpc(msg)
1024 return reply
1025
1026
1027
1028 @ReturnMapping(ErrorResults)
1029 async def SetApplicationsConfig(self, args):
1030 '''
1031 args : typing.Sequence[~ApplicationConfigSet]
1032 Returns -> typing.Sequence[~ErrorResult]
1033 '''
1034 # map input types to rpc msg
1035 _params = dict()
1036 msg = dict(type='Application',
1037 request='SetApplicationsConfig',
1038 version=8,
1039 params=_params)
1040 _params['Args'] = args
1041 reply = await self.rpc(msg)
1042 return reply
1043
1044
1045
1046 @ReturnMapping(None)
1047 async def SetCharm(self, application, channel, charm_url, config_settings, config_settings_yaml, force_series, force_units, resource_ids, storage_constraints):
1048 '''
1049 application : str
1050 channel : str
1051 charm_url : str
1052 config_settings : typing.Mapping[str, str]
1053 config_settings_yaml : str
1054 force_series : bool
1055 force_units : bool
1056 resource_ids : typing.Mapping[str, str]
1057 storage_constraints : typing.Mapping[str, ~StorageConstraints]
1058 Returns -> None
1059 '''
1060 # map input types to rpc msg
1061 _params = dict()
1062 msg = dict(type='Application',
1063 request='SetCharm',
1064 version=8,
1065 params=_params)
1066 _params['application'] = application
1067 _params['channel'] = channel
1068 _params['charm-url'] = charm_url
1069 _params['config-settings'] = config_settings
1070 _params['config-settings-yaml'] = config_settings_yaml
1071 _params['force-series'] = force_series
1072 _params['force-units'] = force_units
1073 _params['resource-ids'] = resource_ids
1074 _params['storage-constraints'] = storage_constraints
1075 reply = await self.rpc(msg)
1076 return reply
1077
1078
1079
1080 @ReturnMapping(None)
1081 async def SetCharmProfile(self, application, charm_url):
1082 '''
1083 application : str
1084 charm_url : str
1085 Returns -> None
1086 '''
1087 # map input types to rpc msg
1088 _params = dict()
1089 msg = dict(type='Application',
1090 request='SetCharmProfile',
1091 version=8,
1092 params=_params)
1093 _params['application'] = application
1094 _params['charm-url'] = charm_url
1095 reply = await self.rpc(msg)
1096 return reply
1097
1098
1099
1100 @ReturnMapping(None)
1101 async def SetConstraints(self, application, constraints):
1102 '''
1103 application : str
1104 constraints : Value
1105 Returns -> None
1106 '''
1107 # map input types to rpc msg
1108 _params = dict()
1109 msg = dict(type='Application',
1110 request='SetConstraints',
1111 version=8,
1112 params=_params)
1113 _params['application'] = application
1114 _params['constraints'] = constraints
1115 reply = await self.rpc(msg)
1116 return reply
1117
1118
1119
1120 @ReturnMapping(ErrorResults)
1121 async def SetMetricCredentials(self, creds):
1122 '''
1123 creds : typing.Sequence[~ApplicationMetricCredential]
1124 Returns -> typing.Sequence[~ErrorResult]
1125 '''
1126 # map input types to rpc msg
1127 _params = dict()
1128 msg = dict(type='Application',
1129 request='SetMetricCredentials',
1130 version=8,
1131 params=_params)
1132 _params['creds'] = creds
1133 reply = await self.rpc(msg)
1134 return reply
1135
1136
1137
1138 @ReturnMapping(ErrorResults)
1139 async def SetRelationsSuspended(self, args):
1140 '''
1141 args : typing.Sequence[~RelationSuspendedArg]
1142 Returns -> typing.Sequence[~ErrorResult]
1143 '''
1144 # map input types to rpc msg
1145 _params = dict()
1146 msg = dict(type='Application',
1147 request='SetRelationsSuspended',
1148 version=8,
1149 params=_params)
1150 _params['args'] = args
1151 reply = await self.rpc(msg)
1152 return reply
1153
1154
1155
1156 @ReturnMapping(None)
1157 async def Unexpose(self, application):
1158 '''
1159 application : str
1160 Returns -> None
1161 '''
1162 # map input types to rpc msg
1163 _params = dict()
1164 msg = dict(type='Application',
1165 request='Unexpose',
1166 version=8,
1167 params=_params)
1168 _params['application'] = application
1169 reply = await self.rpc(msg)
1170 return reply
1171
1172
1173
1174 @ReturnMapping(None)
1175 async def Unset(self, application, options):
1176 '''
1177 application : str
1178 options : typing.Sequence[str]
1179 Returns -> None
1180 '''
1181 # map input types to rpc msg
1182 _params = dict()
1183 msg = dict(type='Application',
1184 request='Unset',
1185 version=8,
1186 params=_params)
1187 _params['application'] = application
1188 _params['options'] = options
1189 reply = await self.rpc(msg)
1190 return reply
1191
1192
1193
1194 @ReturnMapping(ErrorResults)
1195 async def UnsetApplicationsConfig(self, args):
1196 '''
1197 args : typing.Sequence[~ApplicationUnset]
1198 Returns -> typing.Sequence[~ErrorResult]
1199 '''
1200 # map input types to rpc msg
1201 _params = dict()
1202 msg = dict(type='Application',
1203 request='UnsetApplicationsConfig',
1204 version=8,
1205 params=_params)
1206 _params['Args'] = args
1207 reply = await self.rpc(msg)
1208 return reply
1209
1210
1211
1212 @ReturnMapping(None)
1213 async def Update(self, application, charm_url, constraints, force_charm_url, force_series, min_units, settings, settings_yaml):
1214 '''
1215 application : str
1216 charm_url : str
1217 constraints : Value
1218 force_charm_url : bool
1219 force_series : bool
1220 min_units : int
1221 settings : typing.Mapping[str, str]
1222 settings_yaml : str
1223 Returns -> None
1224 '''
1225 # map input types to rpc msg
1226 _params = dict()
1227 msg = dict(type='Application',
1228 request='Update',
1229 version=8,
1230 params=_params)
1231 _params['application'] = application
1232 _params['charm-url'] = charm_url
1233 _params['constraints'] = constraints
1234 _params['force-charm-url'] = force_charm_url
1235 _params['force-series'] = force_series
1236 _params['min-units'] = min_units
1237 _params['settings'] = settings
1238 _params['settings-yaml'] = settings_yaml
1239 reply = await self.rpc(msg)
1240 return reply
1241
1242
1243
1244 @ReturnMapping(ErrorResults)
1245 async def UpdateApplicationSeries(self, args):
1246 '''
1247 args : typing.Sequence[~UpdateSeriesArg]
1248 Returns -> typing.Sequence[~ErrorResult]
1249 '''
1250 # map input types to rpc msg
1251 _params = dict()
1252 msg = dict(type='Application',
1253 request='UpdateApplicationSeries',
1254 version=8,
1255 params=_params)
1256 _params['args'] = args
1257 reply = await self.rpc(msg)
1258 return reply
1259
1260
1261
1262 @ReturnMapping(NotifyWatchResult)
1263 async def WatchLXDProfileUpgradeNotifications(self, tag):
1264 '''
1265 tag : str
1266 Returns -> typing.Union[str, _ForwardRef('Error')]
1267 '''
1268 # map input types to rpc msg
1269 _params = dict()
1270 msg = dict(type='Application',
1271 request='WatchLXDProfileUpgradeNotifications',
1272 version=8,
1273 params=_params)
1274 _params['tag'] = tag
1275 reply = await self.rpc(msg)
1276 return reply
1277
1278