[bug 581] Fix parameter checking if no data-type
[osm/N2VC.git] / modules / libjuju / juju / client / _client4.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._definitions import *
5 from juju.client.facade import ReturnMapping, Type
6
7
8 class ApplicationFacade(Type):
9 name = 'Application'
10 version = 4
11 schema = {'definitions': {'AddApplicationUnits': {'additionalProperties': False,
12 'properties': {'application': {'type': 'string'},
13 'num-units': {'type': 'integer'},
14 'placement': {'items': {'$ref': '#/definitions/Placement'},
15 'type': 'array'}},
16 'required': ['application',
17 'num-units',
18 'placement'],
19 'type': 'object'},
20 'AddApplicationUnitsResults': {'additionalProperties': False,
21 'properties': {'units': {'items': {'type': 'string'},
22 'type': 'array'}},
23 'required': ['units'],
24 'type': 'object'},
25 'AddRelation': {'additionalProperties': False,
26 'properties': {'endpoints': {'items': {'type': 'string'},
27 'type': 'array'}},
28 'required': ['endpoints'],
29 'type': 'object'},
30 'AddRelationResults': {'additionalProperties': False,
31 'properties': {'endpoints': {'patternProperties': {'.*': {'$ref': '#/definitions/CharmRelation'}},
32 'type': 'object'}},
33 'required': ['endpoints'],
34 'type': 'object'},
35 'ApplicationCharmRelations': {'additionalProperties': False,
36 'properties': {'application': {'type': 'string'}},
37 'required': ['application'],
38 'type': 'object'},
39 'ApplicationCharmRelationsResults': {'additionalProperties': False,
40 'properties': {'charm-relations': {'items': {'type': 'string'},
41 'type': 'array'}},
42 'required': ['charm-relations'],
43 'type': 'object'},
44 'ApplicationDeploy': {'additionalProperties': False,
45 'properties': {'application': {'type': 'string'},
46 'channel': {'type': 'string'},
47 'charm-url': {'type': 'string'},
48 'config': {'patternProperties': {'.*': {'type': 'string'}},
49 'type': 'object'},
50 'config-yaml': {'type': 'string'},
51 'constraints': {'$ref': '#/definitions/Value'},
52 'endpoint-bindings': {'patternProperties': {'.*': {'type': 'string'}},
53 'type': 'object'},
54 'num-units': {'type': 'integer'},
55 'placement': {'items': {'$ref': '#/definitions/Placement'},
56 'type': 'array'},
57 'resources': {'patternProperties': {'.*': {'type': 'string'}},
58 'type': 'object'},
59 'series': {'type': 'string'},
60 'storage': {'patternProperties': {'.*': {'$ref': '#/definitions/Constraints'}},
61 'type': 'object'}},
62 'required': ['application',
63 'series',
64 'charm-url',
65 'channel',
66 'num-units',
67 'config-yaml',
68 'constraints'],
69 'type': 'object'},
70 'ApplicationDestroy': {'additionalProperties': False,
71 'properties': {'application': {'type': 'string'}},
72 'required': ['application'],
73 'type': 'object'},
74 'ApplicationExpose': {'additionalProperties': False,
75 'properties': {'application': {'type': 'string'}},
76 'required': ['application'],
77 'type': 'object'},
78 'ApplicationGet': {'additionalProperties': False,
79 'properties': {'application': {'type': 'string'}},
80 'required': ['application'],
81 'type': 'object'},
82 'ApplicationGetResults': {'additionalProperties': False,
83 'properties': {'application': {'type': 'string'},
84 'charm': {'type': 'string'},
85 'config': {'patternProperties': {'.*': {'additionalProperties': True,
86 'type': 'object'}},
87 'type': 'object'},
88 'constraints': {'$ref': '#/definitions/Value'},
89 'series': {'type': 'string'}},
90 'required': ['application',
91 'charm',
92 'config',
93 'constraints',
94 'series'],
95 'type': 'object'},
96 'ApplicationMetricCredential': {'additionalProperties': False,
97 'properties': {'application': {'type': 'string'},
98 'metrics-credentials': {'items': {'type': 'integer'},
99 'type': 'array'}},
100 'required': ['application',
101 'metrics-credentials'],
102 'type': 'object'},
103 'ApplicationMetricCredentials': {'additionalProperties': False,
104 'properties': {'creds': {'items': {'$ref': '#/definitions/ApplicationMetricCredential'},
105 'type': 'array'}},
106 'required': ['creds'],
107 'type': 'object'},
108 'ApplicationSet': {'additionalProperties': False,
109 'properties': {'application': {'type': 'string'},
110 'options': {'patternProperties': {'.*': {'type': 'string'}},
111 'type': 'object'}},
112 'required': ['application', 'options'],
113 'type': 'object'},
114 'ApplicationSetCharm': {'additionalProperties': False,
115 'properties': {'application': {'type': 'string'},
116 'channel': {'type': 'string'},
117 'charm-url': {'type': 'string'},
118 'config-settings': {'patternProperties': {'.*': {'type': 'string'}},
119 'type': 'object'},
120 'config-settings-yaml': {'type': 'string'},
121 'force-series': {'type': 'boolean'},
122 'force-units': {'type': 'boolean'},
123 'resource-ids': {'patternProperties': {'.*': {'type': 'string'}},
124 'type': 'object'},
125 'storage-constraints': {'patternProperties': {'.*': {'$ref': '#/definitions/StorageConstraints'}},
126 'type': 'object'}},
127 'required': ['application',
128 'charm-url',
129 'channel',
130 'force-units',
131 'force-series'],
132 'type': 'object'},
133 'ApplicationURLs': {'additionalProperties': False,
134 'properties': {'application-urls': {'items': {'type': 'string'},
135 'type': 'array'}},
136 'type': 'object'},
137 'ApplicationUnexpose': {'additionalProperties': False,
138 'properties': {'application': {'type': 'string'}},
139 'required': ['application'],
140 'type': 'object'},
141 'ApplicationUnset': {'additionalProperties': False,
142 'properties': {'application': {'type': 'string'},
143 'options': {'items': {'type': 'string'},
144 'type': 'array'}},
145 'required': ['application', 'options'],
146 'type': 'object'},
147 'ApplicationUpdate': {'additionalProperties': False,
148 'properties': {'application': {'type': 'string'},
149 'charm-url': {'type': 'string'},
150 'constraints': {'$ref': '#/definitions/Value'},
151 'force-charm-url': {'type': 'boolean'},
152 'force-series': {'type': 'boolean'},
153 'min-units': {'type': 'integer'},
154 'settings': {'patternProperties': {'.*': {'type': 'string'}},
155 'type': 'object'},
156 'settings-yaml': {'type': 'string'}},
157 'required': ['application',
158 'charm-url',
159 'force-charm-url',
160 'force-series',
161 'settings-yaml'],
162 'type': 'object'},
163 'ApplicationsDeploy': {'additionalProperties': False,
164 'properties': {'applications': {'items': {'$ref': '#/definitions/ApplicationDeploy'},
165 'type': 'array'}},
166 'required': ['applications'],
167 'type': 'object'},
168 'CharmRelation': {'additionalProperties': False,
169 'properties': {'interface': {'type': 'string'},
170 'limit': {'type': 'integer'},
171 'name': {'type': 'string'},
172 'optional': {'type': 'boolean'},
173 'role': {'type': 'string'},
174 'scope': {'type': 'string'}},
175 'required': ['name',
176 'role',
177 'interface',
178 'optional',
179 'limit',
180 'scope'],
181 'type': 'object'},
182 'Constraints': {'additionalProperties': False,
183 'properties': {'Count': {'type': 'integer'},
184 'Pool': {'type': 'string'},
185 'Size': {'type': 'integer'}},
186 'required': ['Pool', 'Size', 'Count'],
187 'type': 'object'},
188 'ConsumeApplicationArg': {'additionalProperties': False,
189 'properties': {'application-alias': {'type': 'string'},
190 'application-url': {'type': 'string'}},
191 'required': ['application-url'],
192 'type': 'object'},
193 'ConsumeApplicationArgs': {'additionalProperties': False,
194 'properties': {'args': {'items': {'$ref': '#/definitions/ConsumeApplicationArg'},
195 'type': 'array'}},
196 'type': 'object'},
197 'ConsumeApplicationResult': {'additionalProperties': False,
198 'properties': {'error': {'$ref': '#/definitions/Error'},
199 'local-name': {'type': 'string'}},
200 'type': 'object'},
201 'ConsumeApplicationResults': {'additionalProperties': False,
202 'properties': {'results': {'items': {'$ref': '#/definitions/ConsumeApplicationResult'},
203 'type': 'array'}},
204 'required': ['results'],
205 'type': 'object'},
206 'DestroyApplicationInfo': {'additionalProperties': False,
207 'properties': {'destroyed-storage': {'items': {'$ref': '#/definitions/Entity'},
208 'type': 'array'},
209 'destroyed-units': {'items': {'$ref': '#/definitions/Entity'},
210 'type': 'array'},
211 'detached-storage': {'items': {'$ref': '#/definitions/Entity'},
212 'type': 'array'}},
213 'type': 'object'},
214 'DestroyApplicationResult': {'additionalProperties': False,
215 'properties': {'error': {'$ref': '#/definitions/Error'},
216 'info': {'$ref': '#/definitions/DestroyApplicationInfo'}},
217 'type': 'object'},
218 'DestroyApplicationResults': {'additionalProperties': False,
219 'properties': {'results': {'items': {'$ref': '#/definitions/DestroyApplicationResult'},
220 'type': 'array'}},
221 'type': 'object'},
222 'DestroyApplicationUnits': {'additionalProperties': False,
223 'properties': {'unit-names': {'items': {'type': 'string'},
224 'type': 'array'}},
225 'required': ['unit-names'],
226 'type': 'object'},
227 'DestroyRelation': {'additionalProperties': False,
228 'properties': {'endpoints': {'items': {'type': 'string'},
229 'type': 'array'}},
230 'required': ['endpoints'],
231 'type': 'object'},
232 'DestroyUnitInfo': {'additionalProperties': False,
233 'properties': {'destroyed-storage': {'items': {'$ref': '#/definitions/Entity'},
234 'type': 'array'},
235 'detached-storage': {'items': {'$ref': '#/definitions/Entity'},
236 'type': 'array'}},
237 'type': 'object'},
238 'DestroyUnitResult': {'additionalProperties': False,
239 'properties': {'error': {'$ref': '#/definitions/Error'},
240 'info': {'$ref': '#/definitions/DestroyUnitInfo'}},
241 'type': 'object'},
242 'DestroyUnitResults': {'additionalProperties': False,
243 'properties': {'results': {'items': {'$ref': '#/definitions/DestroyUnitResult'},
244 'type': 'array'}},
245 'type': 'object'},
246 'Entities': {'additionalProperties': False,
247 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
248 'type': 'array'}},
249 'required': ['entities'],
250 'type': 'object'},
251 'Entity': {'additionalProperties': False,
252 'properties': {'tag': {'type': 'string'}},
253 'required': ['tag'],
254 'type': 'object'},
255 'Error': {'additionalProperties': False,
256 'properties': {'code': {'type': 'string'},
257 'info': {'$ref': '#/definitions/ErrorInfo'},
258 'message': {'type': 'string'}},
259 'required': ['message', 'code'],
260 'type': 'object'},
261 'ErrorInfo': {'additionalProperties': False,
262 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
263 'macaroon-path': {'type': 'string'}},
264 'type': 'object'},
265 'ErrorResult': {'additionalProperties': False,
266 'properties': {'error': {'$ref': '#/definitions/Error'}},
267 'type': 'object'},
268 'ErrorResults': {'additionalProperties': False,
269 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
270 'type': 'array'}},
271 'required': ['results'],
272 'type': 'object'},
273 'GetApplicationConstraints': {'additionalProperties': False,
274 'properties': {'application': {'type': 'string'}},
275 'required': ['application'],
276 'type': 'object'},
277 'GetConstraintsResults': {'additionalProperties': False,
278 'properties': {'constraints': {'$ref': '#/definitions/Value'}},
279 'required': ['constraints'],
280 'type': 'object'},
281 'Macaroon': {'additionalProperties': False, 'type': 'object'},
282 'Placement': {'additionalProperties': False,
283 'properties': {'directive': {'type': 'string'},
284 'scope': {'type': 'string'}},
285 'required': ['scope', 'directive'],
286 'type': 'object'},
287 'RemoteApplicationInfo': {'additionalProperties': False,
288 'properties': {'application-url': {'type': 'string'},
289 'description': {'type': 'string'},
290 'endpoints': {'items': {'$ref': '#/definitions/RemoteEndpoint'},
291 'type': 'array'},
292 'icon-url-path': {'type': 'string'},
293 'model-tag': {'type': 'string'},
294 'name': {'type': 'string'},
295 'source-model-label': {'type': 'string'}},
296 'required': ['model-tag',
297 'name',
298 'description',
299 'application-url',
300 'endpoints',
301 'icon-url-path'],
302 'type': 'object'},
303 'RemoteApplicationInfoResult': {'additionalProperties': False,
304 'properties': {'error': {'$ref': '#/definitions/Error'},
305 'result': {'$ref': '#/definitions/RemoteApplicationInfo'}},
306 'type': 'object'},
307 'RemoteApplicationInfoResults': {'additionalProperties': False,
308 'properties': {'results': {'items': {'$ref': '#/definitions/RemoteApplicationInfoResult'},
309 'type': 'array'}},
310 'required': ['results'],
311 'type': 'object'},
312 'RemoteEndpoint': {'additionalProperties': False,
313 'properties': {'interface': {'type': 'string'},
314 'limit': {'type': 'integer'},
315 'name': {'type': 'string'},
316 'role': {'type': 'string'},
317 'scope': {'type': 'string'}},
318 'required': ['name',
319 'role',
320 'interface',
321 'limit',
322 'scope'],
323 'type': 'object'},
324 'SetConstraints': {'additionalProperties': False,
325 'properties': {'application': {'type': 'string'},
326 'constraints': {'$ref': '#/definitions/Value'}},
327 'required': ['application', 'constraints'],
328 'type': 'object'},
329 'StorageConstraints': {'additionalProperties': False,
330 'properties': {'count': {'type': 'integer'},
331 'pool': {'type': 'string'},
332 'size': {'type': 'integer'}},
333 'type': 'object'},
334 'StringResult': {'additionalProperties': False,
335 'properties': {'error': {'$ref': '#/definitions/Error'},
336 'result': {'type': 'string'}},
337 'required': ['result'],
338 'type': 'object'},
339 'Value': {'additionalProperties': False,
340 'properties': {'arch': {'type': 'string'},
341 'container': {'type': 'string'},
342 'cores': {'type': 'integer'},
343 'cpu-power': {'type': 'integer'},
344 'instance-type': {'type': 'string'},
345 'mem': {'type': 'integer'},
346 'root-disk': {'type': 'integer'},
347 'spaces': {'items': {'type': 'string'},
348 'type': 'array'},
349 'tags': {'items': {'type': 'string'},
350 'type': 'array'},
351 'virt-type': {'type': 'string'}},
352 'type': 'object'}},
353 'properties': {'AddRelation': {'properties': {'Params': {'$ref': '#/definitions/AddRelation'},
354 'Result': {'$ref': '#/definitions/AddRelationResults'}},
355 'type': 'object'},
356 'AddUnits': {'properties': {'Params': {'$ref': '#/definitions/AddApplicationUnits'},
357 'Result': {'$ref': '#/definitions/AddApplicationUnitsResults'}},
358 'type': 'object'},
359 'CharmRelations': {'properties': {'Params': {'$ref': '#/definitions/ApplicationCharmRelations'},
360 'Result': {'$ref': '#/definitions/ApplicationCharmRelationsResults'}},
361 'type': 'object'},
362 'Consume': {'properties': {'Params': {'$ref': '#/definitions/ConsumeApplicationArgs'},
363 'Result': {'$ref': '#/definitions/ConsumeApplicationResults'}},
364 'type': 'object'},
365 'Deploy': {'properties': {'Params': {'$ref': '#/definitions/ApplicationsDeploy'},
366 'Result': {'$ref': '#/definitions/ErrorResults'}},
367 'type': 'object'},
368 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/ApplicationDestroy'}},
369 'type': 'object'},
370 'DestroyApplication': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
371 'Result': {'$ref': '#/definitions/DestroyApplicationResults'}},
372 'type': 'object'},
373 'DestroyRelation': {'properties': {'Params': {'$ref': '#/definitions/DestroyRelation'}},
374 'type': 'object'},
375 'DestroyUnit': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
376 'Result': {'$ref': '#/definitions/DestroyUnitResults'}},
377 'type': 'object'},
378 'DestroyUnits': {'properties': {'Params': {'$ref': '#/definitions/DestroyApplicationUnits'}},
379 'type': 'object'},
380 'Expose': {'properties': {'Params': {'$ref': '#/definitions/ApplicationExpose'}},
381 'type': 'object'},
382 'Get': {'properties': {'Params': {'$ref': '#/definitions/ApplicationGet'},
383 'Result': {'$ref': '#/definitions/ApplicationGetResults'}},
384 'type': 'object'},
385 'GetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/ApplicationGet'},
386 'Result': {'$ref': '#/definitions/StringResult'}},
387 'type': 'object'},
388 'GetConstraints': {'properties': {'Params': {'$ref': '#/definitions/GetApplicationConstraints'},
389 'Result': {'$ref': '#/definitions/GetConstraintsResults'}},
390 'type': 'object'},
391 'RemoteApplicationInfo': {'properties': {'Params': {'$ref': '#/definitions/ApplicationURLs'},
392 'Result': {'$ref': '#/definitions/RemoteApplicationInfoResults'}},
393 'type': 'object'},
394 'Set': {'properties': {'Params': {'$ref': '#/definitions/ApplicationSet'}},
395 'type': 'object'},
396 'SetCharm': {'properties': {'Params': {'$ref': '#/definitions/ApplicationSetCharm'}},
397 'type': 'object'},
398 'SetConstraints': {'properties': {'Params': {'$ref': '#/definitions/SetConstraints'}},
399 'type': 'object'},
400 'SetMetricCredentials': {'properties': {'Params': {'$ref': '#/definitions/ApplicationMetricCredentials'},
401 'Result': {'$ref': '#/definitions/ErrorResults'}},
402 'type': 'object'},
403 'Unexpose': {'properties': {'Params': {'$ref': '#/definitions/ApplicationUnexpose'}},
404 'type': 'object'},
405 'Unset': {'properties': {'Params': {'$ref': '#/definitions/ApplicationUnset'}},
406 'type': 'object'},
407 'Update': {'properties': {'Params': {'$ref': '#/definitions/ApplicationUpdate'}},
408 'type': 'object'}},
409 'type': 'object'}
410
411
412 @ReturnMapping(AddRelationResults)
413 async def AddRelation(self, endpoints):
414 '''
415 endpoints : typing.Sequence<+T_co>[str]
416 Returns -> typing.Mapping<~KT, +VT_co>[str, ~CharmRelation]<~CharmRelation>
417 '''
418 # map input types to rpc msg
419 _params = dict()
420 msg = dict(type='Application', request='AddRelation', version=4, params=_params)
421 _params['endpoints'] = endpoints
422 reply = await self.rpc(msg)
423 return reply
424
425
426
427 @ReturnMapping(AddApplicationUnitsResults)
428 async def AddUnits(self, application, num_units, placement):
429 '''
430 application : str
431 num_units : int
432 placement : typing.Sequence<+T_co>[~Placement]<~Placement>
433 Returns -> typing.Sequence<+T_co>[str]
434 '''
435 # map input types to rpc msg
436 _params = dict()
437 msg = dict(type='Application', request='AddUnits', version=4, params=_params)
438 _params['application'] = application
439 _params['num-units'] = num_units
440 _params['placement'] = placement
441 reply = await self.rpc(msg)
442 return reply
443
444
445
446 @ReturnMapping(ApplicationCharmRelationsResults)
447 async def CharmRelations(self, application):
448 '''
449 application : str
450 Returns -> typing.Sequence<+T_co>[str]
451 '''
452 # map input types to rpc msg
453 _params = dict()
454 msg = dict(type='Application', request='CharmRelations', version=4, params=_params)
455 _params['application'] = application
456 reply = await self.rpc(msg)
457 return reply
458
459
460
461 @ReturnMapping(ConsumeApplicationResults)
462 async def Consume(self, args):
463 '''
464 args : typing.Sequence<+T_co>[~ConsumeApplicationArg]<~ConsumeApplicationArg>
465 Returns -> typing.Sequence<+T_co>[~ConsumeApplicationResult]<~ConsumeApplicationResult>
466 '''
467 # map input types to rpc msg
468 _params = dict()
469 msg = dict(type='Application', request='Consume', version=4, params=_params)
470 _params['args'] = args
471 reply = await self.rpc(msg)
472 return reply
473
474
475
476 @ReturnMapping(ErrorResults)
477 async def Deploy(self, applications):
478 '''
479 applications : typing.Sequence<+T_co>[~ApplicationDeploy]<~ApplicationDeploy>
480 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
481 '''
482 # map input types to rpc msg
483 _params = dict()
484 msg = dict(type='Application', request='Deploy', version=4, params=_params)
485 _params['applications'] = applications
486 reply = await self.rpc(msg)
487 return reply
488
489
490
491 @ReturnMapping(None)
492 async def Destroy(self, application):
493 '''
494 application : str
495 Returns -> None
496 '''
497 # map input types to rpc msg
498 _params = dict()
499 msg = dict(type='Application', request='Destroy', version=4, params=_params)
500 _params['application'] = application
501 reply = await self.rpc(msg)
502 return reply
503
504
505
506 @ReturnMapping(DestroyApplicationResults)
507 async def DestroyApplication(self, entities):
508 '''
509 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
510 Returns -> typing.Sequence<+T_co>[~DestroyApplicationResult]<~DestroyApplicationResult>
511 '''
512 # map input types to rpc msg
513 _params = dict()
514 msg = dict(type='Application', request='DestroyApplication', version=4, params=_params)
515 _params['entities'] = entities
516 reply = await self.rpc(msg)
517 return reply
518
519
520
521 @ReturnMapping(None)
522 async def DestroyRelation(self, endpoints):
523 '''
524 endpoints : typing.Sequence<+T_co>[str]
525 Returns -> None
526 '''
527 # map input types to rpc msg
528 _params = dict()
529 msg = dict(type='Application', request='DestroyRelation', version=4, params=_params)
530 _params['endpoints'] = endpoints
531 reply = await self.rpc(msg)
532 return reply
533
534
535
536 @ReturnMapping(DestroyUnitResults)
537 async def DestroyUnit(self, entities):
538 '''
539 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
540 Returns -> typing.Sequence<+T_co>[~DestroyUnitResult]<~DestroyUnitResult>
541 '''
542 # map input types to rpc msg
543 _params = dict()
544 msg = dict(type='Application', request='DestroyUnit', version=4, params=_params)
545 _params['entities'] = entities
546 reply = await self.rpc(msg)
547 return reply
548
549
550
551 @ReturnMapping(None)
552 async def DestroyUnits(self, unit_names):
553 '''
554 unit_names : typing.Sequence<+T_co>[str]
555 Returns -> None
556 '''
557 # map input types to rpc msg
558 _params = dict()
559 msg = dict(type='Application', request='DestroyUnits', version=4, params=_params)
560 _params['unit-names'] = unit_names
561 reply = await self.rpc(msg)
562 return reply
563
564
565
566 @ReturnMapping(None)
567 async def Expose(self, application):
568 '''
569 application : str
570 Returns -> None
571 '''
572 # map input types to rpc msg
573 _params = dict()
574 msg = dict(type='Application', request='Expose', version=4, params=_params)
575 _params['application'] = application
576 reply = await self.rpc(msg)
577 return reply
578
579
580
581 @ReturnMapping(ApplicationGetResults)
582 async def Get(self, application):
583 '''
584 application : str
585 Returns -> typing.Union[str, typing.Mapping<~KT, +VT_co>[str, typing.Any], _ForwardRef('Value')]
586 '''
587 # map input types to rpc msg
588 _params = dict()
589 msg = dict(type='Application', request='Get', version=4, params=_params)
590 _params['application'] = application
591 reply = await self.rpc(msg)
592 return reply
593
594
595
596 @ReturnMapping(StringResult)
597 async def GetCharmURL(self, application):
598 '''
599 application : str
600 Returns -> typing.Union[_ForwardRef('Error'), str]
601 '''
602 # map input types to rpc msg
603 _params = dict()
604 msg = dict(type='Application', request='GetCharmURL', version=4, params=_params)
605 _params['application'] = application
606 reply = await self.rpc(msg)
607 return reply
608
609
610
611 @ReturnMapping(GetConstraintsResults)
612 async def GetConstraints(self, application):
613 '''
614 application : str
615 Returns -> Value
616 '''
617 # map input types to rpc msg
618 _params = dict()
619 msg = dict(type='Application', request='GetConstraints', version=4, params=_params)
620 _params['application'] = application
621 reply = await self.rpc(msg)
622 return reply
623
624
625
626 @ReturnMapping(RemoteApplicationInfoResults)
627 async def RemoteApplicationInfo(self, application_urls):
628 '''
629 application_urls : typing.Sequence<+T_co>[str]
630 Returns -> typing.Sequence<+T_co>[~RemoteApplicationInfoResult]<~RemoteApplicationInfoResult>
631 '''
632 # map input types to rpc msg
633 _params = dict()
634 msg = dict(type='Application', request='RemoteApplicationInfo', version=4, params=_params)
635 _params['application-urls'] = application_urls
636 reply = await self.rpc(msg)
637 return reply
638
639
640
641 @ReturnMapping(None)
642 async def Set(self, application, options):
643 '''
644 application : str
645 options : typing.Mapping<~KT, +VT_co>[str, str]
646 Returns -> None
647 '''
648 # map input types to rpc msg
649 _params = dict()
650 msg = dict(type='Application', request='Set', version=4, params=_params)
651 _params['application'] = application
652 _params['options'] = options
653 reply = await self.rpc(msg)
654 return reply
655
656
657
658 @ReturnMapping(None)
659 async def SetCharm(self, application, channel, charm_url, config_settings, config_settings_yaml, force_series, force_units, resource_ids, storage_constraints):
660 '''
661 application : str
662 channel : str
663 charm_url : str
664 config_settings : typing.Mapping<~KT, +VT_co>[str, str]
665 config_settings_yaml : str
666 force_series : bool
667 force_units : bool
668 resource_ids : typing.Mapping<~KT, +VT_co>[str, str]
669 storage_constraints : typing.Mapping<~KT, +VT_co>[str, ~StorageConstraints]<~StorageConstraints>
670 Returns -> None
671 '''
672 # map input types to rpc msg
673 _params = dict()
674 msg = dict(type='Application', request='SetCharm', version=4, params=_params)
675 _params['application'] = application
676 _params['channel'] = channel
677 _params['charm-url'] = charm_url
678 _params['config-settings'] = config_settings
679 _params['config-settings-yaml'] = config_settings_yaml
680 _params['force-series'] = force_series
681 _params['force-units'] = force_units
682 _params['resource-ids'] = resource_ids
683 _params['storage-constraints'] = storage_constraints
684 reply = await self.rpc(msg)
685 return reply
686
687
688
689 @ReturnMapping(None)
690 async def SetConstraints(self, application, constraints):
691 '''
692 application : str
693 constraints : Value
694 Returns -> None
695 '''
696 # map input types to rpc msg
697 _params = dict()
698 msg = dict(type='Application', request='SetConstraints', version=4, params=_params)
699 _params['application'] = application
700 _params['constraints'] = constraints
701 reply = await self.rpc(msg)
702 return reply
703
704
705
706 @ReturnMapping(ErrorResults)
707 async def SetMetricCredentials(self, creds):
708 '''
709 creds : typing.Sequence<+T_co>[~ApplicationMetricCredential]<~ApplicationMetricCredential>
710 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
711 '''
712 # map input types to rpc msg
713 _params = dict()
714 msg = dict(type='Application', request='SetMetricCredentials', version=4, params=_params)
715 _params['creds'] = creds
716 reply = await self.rpc(msg)
717 return reply
718
719
720
721 @ReturnMapping(None)
722 async def Unexpose(self, application):
723 '''
724 application : str
725 Returns -> None
726 '''
727 # map input types to rpc msg
728 _params = dict()
729 msg = dict(type='Application', request='Unexpose', version=4, params=_params)
730 _params['application'] = application
731 reply = await self.rpc(msg)
732 return reply
733
734
735
736 @ReturnMapping(None)
737 async def Unset(self, application, options):
738 '''
739 application : str
740 options : typing.Sequence<+T_co>[str]
741 Returns -> None
742 '''
743 # map input types to rpc msg
744 _params = dict()
745 msg = dict(type='Application', request='Unset', version=4, params=_params)
746 _params['application'] = application
747 _params['options'] = options
748 reply = await self.rpc(msg)
749 return reply
750
751
752
753 @ReturnMapping(None)
754 async def Update(self, application, charm_url, constraints, force_charm_url, force_series, min_units, settings, settings_yaml):
755 '''
756 application : str
757 charm_url : str
758 constraints : Value
759 force_charm_url : bool
760 force_series : bool
761 min_units : int
762 settings : typing.Mapping<~KT, +VT_co>[str, str]
763 settings_yaml : str
764 Returns -> None
765 '''
766 # map input types to rpc msg
767 _params = dict()
768 msg = dict(type='Application', request='Update', version=4, params=_params)
769 _params['application'] = application
770 _params['charm-url'] = charm_url
771 _params['constraints'] = constraints
772 _params['force-charm-url'] = force_charm_url
773 _params['force-series'] = force_series
774 _params['min-units'] = min_units
775 _params['settings'] = settings
776 _params['settings-yaml'] = settings_yaml
777 reply = await self.rpc(msg)
778 return reply
779
780
781
782 class UniterFacade(Type):
783 name = 'Uniter'
784 version = 4
785 schema = {'definitions': {'APIHostPortsResult': {'additionalProperties': False,
786 'properties': {'servers': {'items': {'items': {'$ref': '#/definitions/HostPort'},
787 'type': 'array'},
788 'type': 'array'}},
789 'required': ['servers'],
790 'type': 'object'},
791 'Action': {'additionalProperties': False,
792 'properties': {'name': {'type': 'string'},
793 'parameters': {'patternProperties': {'.*': {'additionalProperties': True,
794 'type': 'object'}},
795 'type': 'object'},
796 'receiver': {'type': 'string'},
797 'tag': {'type': 'string'}},
798 'required': ['tag', 'receiver', 'name'],
799 'type': 'object'},
800 'ActionExecutionResult': {'additionalProperties': False,
801 'properties': {'action-tag': {'type': 'string'},
802 'message': {'type': 'string'},
803 'results': {'patternProperties': {'.*': {'additionalProperties': True,
804 'type': 'object'}},
805 'type': 'object'},
806 'status': {'type': 'string'}},
807 'required': ['action-tag', 'status'],
808 'type': 'object'},
809 'ActionExecutionResults': {'additionalProperties': False,
810 'properties': {'results': {'items': {'$ref': '#/definitions/ActionExecutionResult'},
811 'type': 'array'}},
812 'type': 'object'},
813 'ActionResult': {'additionalProperties': False,
814 'properties': {'action': {'$ref': '#/definitions/Action'},
815 'completed': {'format': 'date-time',
816 'type': 'string'},
817 'enqueued': {'format': 'date-time',
818 'type': 'string'},
819 'error': {'$ref': '#/definitions/Error'},
820 'message': {'type': 'string'},
821 'output': {'patternProperties': {'.*': {'additionalProperties': True,
822 'type': 'object'}},
823 'type': 'object'},
824 'started': {'format': 'date-time',
825 'type': 'string'},
826 'status': {'type': 'string'}},
827 'type': 'object'},
828 'ActionResults': {'additionalProperties': False,
829 'properties': {'results': {'items': {'$ref': '#/definitions/ActionResult'},
830 'type': 'array'}},
831 'type': 'object'},
832 'Address': {'additionalProperties': False,
833 'properties': {'scope': {'type': 'string'},
834 'space-name': {'type': 'string'},
835 'type': {'type': 'string'},
836 'value': {'type': 'string'}},
837 'required': ['value', 'type', 'scope'],
838 'type': 'object'},
839 'ApplicationStatusResult': {'additionalProperties': False,
840 'properties': {'application': {'$ref': '#/definitions/StatusResult'},
841 'error': {'$ref': '#/definitions/Error'},
842 'units': {'patternProperties': {'.*': {'$ref': '#/definitions/StatusResult'}},
843 'type': 'object'}},
844 'required': ['application',
845 'units'],
846 'type': 'object'},
847 'ApplicationStatusResults': {'additionalProperties': False,
848 'properties': {'results': {'items': {'$ref': '#/definitions/ApplicationStatusResult'},
849 'type': 'array'}},
850 'required': ['results'],
851 'type': 'object'},
852 'BoolResult': {'additionalProperties': False,
853 'properties': {'error': {'$ref': '#/definitions/Error'},
854 'result': {'type': 'boolean'}},
855 'required': ['result'],
856 'type': 'object'},
857 'BoolResults': {'additionalProperties': False,
858 'properties': {'results': {'items': {'$ref': '#/definitions/BoolResult'},
859 'type': 'array'}},
860 'required': ['results'],
861 'type': 'object'},
862 'BytesResult': {'additionalProperties': False,
863 'properties': {'result': {'items': {'type': 'integer'},
864 'type': 'array'}},
865 'required': ['result'],
866 'type': 'object'},
867 'CharmRelation': {'additionalProperties': False,
868 'properties': {'interface': {'type': 'string'},
869 'limit': {'type': 'integer'},
870 'name': {'type': 'string'},
871 'optional': {'type': 'boolean'},
872 'role': {'type': 'string'},
873 'scope': {'type': 'string'}},
874 'required': ['name',
875 'role',
876 'interface',
877 'optional',
878 'limit',
879 'scope'],
880 'type': 'object'},
881 'CharmURL': {'additionalProperties': False,
882 'properties': {'url': {'type': 'string'}},
883 'required': ['url'],
884 'type': 'object'},
885 'CharmURLs': {'additionalProperties': False,
886 'properties': {'urls': {'items': {'$ref': '#/definitions/CharmURL'},
887 'type': 'array'}},
888 'required': ['urls'],
889 'type': 'object'},
890 'ConfigSettingsResult': {'additionalProperties': False,
891 'properties': {'error': {'$ref': '#/definitions/Error'},
892 'settings': {'patternProperties': {'.*': {'additionalProperties': True,
893 'type': 'object'}},
894 'type': 'object'}},
895 'required': ['settings'],
896 'type': 'object'},
897 'ConfigSettingsResults': {'additionalProperties': False,
898 'properties': {'results': {'items': {'$ref': '#/definitions/ConfigSettingsResult'},
899 'type': 'array'}},
900 'required': ['results'],
901 'type': 'object'},
902 'Endpoint': {'additionalProperties': False,
903 'properties': {'application-name': {'type': 'string'},
904 'relation': {'$ref': '#/definitions/CharmRelation'}},
905 'required': ['application-name', 'relation'],
906 'type': 'object'},
907 'Entities': {'additionalProperties': False,
908 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
909 'type': 'array'}},
910 'required': ['entities'],
911 'type': 'object'},
912 'EntitiesCharmURL': {'additionalProperties': False,
913 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityCharmURL'},
914 'type': 'array'}},
915 'required': ['entities'],
916 'type': 'object'},
917 'EntitiesPortRanges': {'additionalProperties': False,
918 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityPortRange'},
919 'type': 'array'}},
920 'required': ['entities'],
921 'type': 'object'},
922 'Entity': {'additionalProperties': False,
923 'properties': {'tag': {'type': 'string'}},
924 'required': ['tag'],
925 'type': 'object'},
926 'EntityCharmURL': {'additionalProperties': False,
927 'properties': {'charm-url': {'type': 'string'},
928 'tag': {'type': 'string'}},
929 'required': ['tag', 'charm-url'],
930 'type': 'object'},
931 'EntityPortRange': {'additionalProperties': False,
932 'properties': {'from-port': {'type': 'integer'},
933 'protocol': {'type': 'string'},
934 'tag': {'type': 'string'},
935 'to-port': {'type': 'integer'}},
936 'required': ['tag',
937 'protocol',
938 'from-port',
939 'to-port'],
940 'type': 'object'},
941 'EntityStatusArgs': {'additionalProperties': False,
942 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
943 'type': 'object'}},
944 'type': 'object'},
945 'info': {'type': 'string'},
946 'status': {'type': 'string'},
947 'tag': {'type': 'string'}},
948 'required': ['tag',
949 'status',
950 'info',
951 'data'],
952 'type': 'object'},
953 'EntityWorkloadVersion': {'additionalProperties': False,
954 'properties': {'tag': {'type': 'string'},
955 'workload-version': {'type': 'string'}},
956 'required': ['tag',
957 'workload-version'],
958 'type': 'object'},
959 'EntityWorkloadVersions': {'additionalProperties': False,
960 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityWorkloadVersion'},
961 'type': 'array'}},
962 'required': ['entities'],
963 'type': 'object'},
964 'Error': {'additionalProperties': False,
965 'properties': {'code': {'type': 'string'},
966 'info': {'$ref': '#/definitions/ErrorInfo'},
967 'message': {'type': 'string'}},
968 'required': ['message', 'code'],
969 'type': 'object'},
970 'ErrorInfo': {'additionalProperties': False,
971 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
972 'macaroon-path': {'type': 'string'}},
973 'type': 'object'},
974 'ErrorResult': {'additionalProperties': False,
975 'properties': {'error': {'$ref': '#/definitions/Error'}},
976 'type': 'object'},
977 'ErrorResults': {'additionalProperties': False,
978 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
979 'type': 'array'}},
980 'required': ['results'],
981 'type': 'object'},
982 'GetLeadershipSettingsBulkResults': {'additionalProperties': False,
983 'properties': {'results': {'items': {'$ref': '#/definitions/GetLeadershipSettingsResult'},
984 'type': 'array'}},
985 'required': ['results'],
986 'type': 'object'},
987 'GetLeadershipSettingsResult': {'additionalProperties': False,
988 'properties': {'error': {'$ref': '#/definitions/Error'},
989 'settings': {'patternProperties': {'.*': {'type': 'string'}},
990 'type': 'object'}},
991 'required': ['settings'],
992 'type': 'object'},
993 'HostPort': {'additionalProperties': False,
994 'properties': {'Address': {'$ref': '#/definitions/Address'},
995 'port': {'type': 'integer'}},
996 'required': ['Address', 'port'],
997 'type': 'object'},
998 'IntResult': {'additionalProperties': False,
999 'properties': {'error': {'$ref': '#/definitions/Error'},
1000 'result': {'type': 'integer'}},
1001 'required': ['result'],
1002 'type': 'object'},
1003 'IntResults': {'additionalProperties': False,
1004 'properties': {'results': {'items': {'$ref': '#/definitions/IntResult'},
1005 'type': 'array'}},
1006 'required': ['results'],
1007 'type': 'object'},
1008 'LifeResult': {'additionalProperties': False,
1009 'properties': {'error': {'$ref': '#/definitions/Error'},
1010 'life': {'type': 'string'}},
1011 'required': ['life'],
1012 'type': 'object'},
1013 'LifeResults': {'additionalProperties': False,
1014 'properties': {'results': {'items': {'$ref': '#/definitions/LifeResult'},
1015 'type': 'array'}},
1016 'required': ['results'],
1017 'type': 'object'},
1018 'Macaroon': {'additionalProperties': False, 'type': 'object'},
1019 'MachinePortRange': {'additionalProperties': False,
1020 'properties': {'port-range': {'$ref': '#/definitions/PortRange'},
1021 'relation-tag': {'type': 'string'},
1022 'unit-tag': {'type': 'string'}},
1023 'required': ['unit-tag',
1024 'relation-tag',
1025 'port-range'],
1026 'type': 'object'},
1027 'MachinePortsResult': {'additionalProperties': False,
1028 'properties': {'error': {'$ref': '#/definitions/Error'},
1029 'ports': {'items': {'$ref': '#/definitions/MachinePortRange'},
1030 'type': 'array'}},
1031 'required': ['ports'],
1032 'type': 'object'},
1033 'MachinePortsResults': {'additionalProperties': False,
1034 'properties': {'results': {'items': {'$ref': '#/definitions/MachinePortsResult'},
1035 'type': 'array'}},
1036 'required': ['results'],
1037 'type': 'object'},
1038 'MergeLeadershipSettingsBulkParams': {'additionalProperties': False,
1039 'properties': {'params': {'items': {'$ref': '#/definitions/MergeLeadershipSettingsParam'},
1040 'type': 'array'}},
1041 'required': ['params'],
1042 'type': 'object'},
1043 'MergeLeadershipSettingsParam': {'additionalProperties': False,
1044 'properties': {'application-tag': {'type': 'string'},
1045 'settings': {'patternProperties': {'.*': {'type': 'string'}},
1046 'type': 'object'}},
1047 'required': ['application-tag',
1048 'settings'],
1049 'type': 'object'},
1050 'MeterStatusResult': {'additionalProperties': False,
1051 'properties': {'code': {'type': 'string'},
1052 'error': {'$ref': '#/definitions/Error'},
1053 'info': {'type': 'string'}},
1054 'required': ['code', 'info'],
1055 'type': 'object'},
1056 'MeterStatusResults': {'additionalProperties': False,
1057 'properties': {'results': {'items': {'$ref': '#/definitions/MeterStatusResult'},
1058 'type': 'array'}},
1059 'required': ['results'],
1060 'type': 'object'},
1061 'Metric': {'additionalProperties': False,
1062 'properties': {'key': {'type': 'string'},
1063 'time': {'format': 'date-time',
1064 'type': 'string'},
1065 'value': {'type': 'string'}},
1066 'required': ['key', 'value', 'time'],
1067 'type': 'object'},
1068 'MetricBatch': {'additionalProperties': False,
1069 'properties': {'charm-url': {'type': 'string'},
1070 'created': {'format': 'date-time',
1071 'type': 'string'},
1072 'metrics': {'items': {'$ref': '#/definitions/Metric'},
1073 'type': 'array'},
1074 'uuid': {'type': 'string'}},
1075 'required': ['uuid',
1076 'charm-url',
1077 'created',
1078 'metrics'],
1079 'type': 'object'},
1080 'MetricBatchParam': {'additionalProperties': False,
1081 'properties': {'batch': {'$ref': '#/definitions/MetricBatch'},
1082 'tag': {'type': 'string'}},
1083 'required': ['tag', 'batch'],
1084 'type': 'object'},
1085 'MetricBatchParams': {'additionalProperties': False,
1086 'properties': {'batches': {'items': {'$ref': '#/definitions/MetricBatchParam'},
1087 'type': 'array'}},
1088 'required': ['batches'],
1089 'type': 'object'},
1090 'ModelConfigResult': {'additionalProperties': False,
1091 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
1092 'type': 'object'}},
1093 'type': 'object'}},
1094 'required': ['config'],
1095 'type': 'object'},
1096 'ModelResult': {'additionalProperties': False,
1097 'properties': {'error': {'$ref': '#/definitions/Error'},
1098 'name': {'type': 'string'},
1099 'uuid': {'type': 'string'}},
1100 'required': ['name', 'uuid'],
1101 'type': 'object'},
1102 'NetworkConfig': {'additionalProperties': False,
1103 'properties': {'address': {'type': 'string'},
1104 'cidr': {'type': 'string'},
1105 'config-type': {'type': 'string'},
1106 'device-index': {'type': 'integer'},
1107 'disabled': {'type': 'boolean'},
1108 'dns-search-domains': {'items': {'type': 'string'},
1109 'type': 'array'},
1110 'dns-servers': {'items': {'type': 'string'},
1111 'type': 'array'},
1112 'gateway-address': {'type': 'string'},
1113 'interface-name': {'type': 'string'},
1114 'interface-type': {'type': 'string'},
1115 'mac-address': {'type': 'string'},
1116 'mtu': {'type': 'integer'},
1117 'no-auto-start': {'type': 'boolean'},
1118 'parent-interface-name': {'type': 'string'},
1119 'provider-address-id': {'type': 'string'},
1120 'provider-id': {'type': 'string'},
1121 'provider-space-id': {'type': 'string'},
1122 'provider-subnet-id': {'type': 'string'},
1123 'provider-vlan-id': {'type': 'string'},
1124 'routes': {'items': {'$ref': '#/definitions/NetworkRoute'},
1125 'type': 'array'},
1126 'vlan-tag': {'type': 'integer'}},
1127 'required': ['device-index',
1128 'mac-address',
1129 'cidr',
1130 'mtu',
1131 'provider-id',
1132 'provider-subnet-id',
1133 'provider-space-id',
1134 'provider-address-id',
1135 'provider-vlan-id',
1136 'vlan-tag',
1137 'interface-name',
1138 'parent-interface-name',
1139 'interface-type',
1140 'disabled'],
1141 'type': 'object'},
1142 'NetworkRoute': {'additionalProperties': False,
1143 'properties': {'destination-cidr': {'type': 'string'},
1144 'gateway-ip': {'type': 'string'},
1145 'metric': {'type': 'integer'}},
1146 'required': ['destination-cidr',
1147 'gateway-ip',
1148 'metric'],
1149 'type': 'object'},
1150 'NotifyWatchResult': {'additionalProperties': False,
1151 'properties': {'NotifyWatcherId': {'type': 'string'},
1152 'error': {'$ref': '#/definitions/Error'}},
1153 'required': ['NotifyWatcherId'],
1154 'type': 'object'},
1155 'NotifyWatchResults': {'additionalProperties': False,
1156 'properties': {'results': {'items': {'$ref': '#/definitions/NotifyWatchResult'},
1157 'type': 'array'}},
1158 'required': ['results'],
1159 'type': 'object'},
1160 'PortRange': {'additionalProperties': False,
1161 'properties': {'from-port': {'type': 'integer'},
1162 'protocol': {'type': 'string'},
1163 'to-port': {'type': 'integer'}},
1164 'required': ['from-port', 'to-port', 'protocol'],
1165 'type': 'object'},
1166 'RelationIds': {'additionalProperties': False,
1167 'properties': {'relation-ids': {'items': {'type': 'integer'},
1168 'type': 'array'}},
1169 'required': ['relation-ids'],
1170 'type': 'object'},
1171 'RelationResult': {'additionalProperties': False,
1172 'properties': {'endpoint': {'$ref': '#/definitions/Endpoint'},
1173 'error': {'$ref': '#/definitions/Error'},
1174 'id': {'type': 'integer'},
1175 'key': {'type': 'string'},
1176 'life': {'type': 'string'}},
1177 'required': ['life',
1178 'id',
1179 'key',
1180 'endpoint'],
1181 'type': 'object'},
1182 'RelationResults': {'additionalProperties': False,
1183 'properties': {'results': {'items': {'$ref': '#/definitions/RelationResult'},
1184 'type': 'array'}},
1185 'required': ['results'],
1186 'type': 'object'},
1187 'RelationUnit': {'additionalProperties': False,
1188 'properties': {'relation': {'type': 'string'},
1189 'unit': {'type': 'string'}},
1190 'required': ['relation', 'unit'],
1191 'type': 'object'},
1192 'RelationUnitPair': {'additionalProperties': False,
1193 'properties': {'local-unit': {'type': 'string'},
1194 'relation': {'type': 'string'},
1195 'remote-unit': {'type': 'string'}},
1196 'required': ['relation',
1197 'local-unit',
1198 'remote-unit'],
1199 'type': 'object'},
1200 'RelationUnitPairs': {'additionalProperties': False,
1201 'properties': {'relation-unit-pairs': {'items': {'$ref': '#/definitions/RelationUnitPair'},
1202 'type': 'array'}},
1203 'required': ['relation-unit-pairs'],
1204 'type': 'object'},
1205 'RelationUnitSettings': {'additionalProperties': False,
1206 'properties': {'relation': {'type': 'string'},
1207 'settings': {'patternProperties': {'.*': {'type': 'string'}},
1208 'type': 'object'},
1209 'unit': {'type': 'string'}},
1210 'required': ['relation',
1211 'unit',
1212 'settings'],
1213 'type': 'object'},
1214 'RelationUnits': {'additionalProperties': False,
1215 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnit'},
1216 'type': 'array'}},
1217 'required': ['relation-units'],
1218 'type': 'object'},
1219 'RelationUnitsChange': {'additionalProperties': False,
1220 'properties': {'changed': {'patternProperties': {'.*': {'$ref': '#/definitions/UnitSettings'}},
1221 'type': 'object'},
1222 'departed': {'items': {'type': 'string'},
1223 'type': 'array'}},
1224 'required': ['changed'],
1225 'type': 'object'},
1226 'RelationUnitsSettings': {'additionalProperties': False,
1227 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnitSettings'},
1228 'type': 'array'}},
1229 'required': ['relation-units'],
1230 'type': 'object'},
1231 'RelationUnitsWatchResult': {'additionalProperties': False,
1232 'properties': {'changes': {'$ref': '#/definitions/RelationUnitsChange'},
1233 'error': {'$ref': '#/definitions/Error'},
1234 'watcher-id': {'type': 'string'}},
1235 'required': ['watcher-id',
1236 'changes'],
1237 'type': 'object'},
1238 'RelationUnitsWatchResults': {'additionalProperties': False,
1239 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitsWatchResult'},
1240 'type': 'array'}},
1241 'required': ['results'],
1242 'type': 'object'},
1243 'ResolvedModeResult': {'additionalProperties': False,
1244 'properties': {'error': {'$ref': '#/definitions/Error'},
1245 'mode': {'type': 'string'}},
1246 'required': ['mode'],
1247 'type': 'object'},
1248 'ResolvedModeResults': {'additionalProperties': False,
1249 'properties': {'results': {'items': {'$ref': '#/definitions/ResolvedModeResult'},
1250 'type': 'array'}},
1251 'required': ['results'],
1252 'type': 'object'},
1253 'SetStatus': {'additionalProperties': False,
1254 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityStatusArgs'},
1255 'type': 'array'}},
1256 'required': ['entities'],
1257 'type': 'object'},
1258 'SettingsResult': {'additionalProperties': False,
1259 'properties': {'error': {'$ref': '#/definitions/Error'},
1260 'settings': {'patternProperties': {'.*': {'type': 'string'}},
1261 'type': 'object'}},
1262 'required': ['settings'],
1263 'type': 'object'},
1264 'SettingsResults': {'additionalProperties': False,
1265 'properties': {'results': {'items': {'$ref': '#/definitions/SettingsResult'},
1266 'type': 'array'}},
1267 'required': ['results'],
1268 'type': 'object'},
1269 'StatusResult': {'additionalProperties': False,
1270 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
1271 'type': 'object'}},
1272 'type': 'object'},
1273 'error': {'$ref': '#/definitions/Error'},
1274 'id': {'type': 'string'},
1275 'info': {'type': 'string'},
1276 'life': {'type': 'string'},
1277 'since': {'format': 'date-time',
1278 'type': 'string'},
1279 'status': {'type': 'string'}},
1280 'required': ['id',
1281 'life',
1282 'status',
1283 'info',
1284 'data',
1285 'since'],
1286 'type': 'object'},
1287 'StatusResults': {'additionalProperties': False,
1288 'properties': {'results': {'items': {'$ref': '#/definitions/StatusResult'},
1289 'type': 'array'}},
1290 'required': ['results'],
1291 'type': 'object'},
1292 'StorageAddParams': {'additionalProperties': False,
1293 'properties': {'name': {'type': 'string'},
1294 'storage': {'$ref': '#/definitions/StorageConstraints'},
1295 'unit': {'type': 'string'}},
1296 'required': ['unit', 'name', 'storage'],
1297 'type': 'object'},
1298 'StorageAttachment': {'additionalProperties': False,
1299 'properties': {'kind': {'type': 'integer'},
1300 'life': {'type': 'string'},
1301 'location': {'type': 'string'},
1302 'owner-tag': {'type': 'string'},
1303 'storage-tag': {'type': 'string'},
1304 'unit-tag': {'type': 'string'}},
1305 'required': ['storage-tag',
1306 'owner-tag',
1307 'unit-tag',
1308 'kind',
1309 'location',
1310 'life'],
1311 'type': 'object'},
1312 'StorageAttachmentId': {'additionalProperties': False,
1313 'properties': {'storage-tag': {'type': 'string'},
1314 'unit-tag': {'type': 'string'}},
1315 'required': ['storage-tag',
1316 'unit-tag'],
1317 'type': 'object'},
1318 'StorageAttachmentIds': {'additionalProperties': False,
1319 'properties': {'ids': {'items': {'$ref': '#/definitions/StorageAttachmentId'},
1320 'type': 'array'}},
1321 'required': ['ids'],
1322 'type': 'object'},
1323 'StorageAttachmentIdsResult': {'additionalProperties': False,
1324 'properties': {'error': {'$ref': '#/definitions/Error'},
1325 'result': {'$ref': '#/definitions/StorageAttachmentIds'}},
1326 'required': ['result'],
1327 'type': 'object'},
1328 'StorageAttachmentIdsResults': {'additionalProperties': False,
1329 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentIdsResult'},
1330 'type': 'array'}},
1331 'type': 'object'},
1332 'StorageAttachmentResult': {'additionalProperties': False,
1333 'properties': {'error': {'$ref': '#/definitions/Error'},
1334 'result': {'$ref': '#/definitions/StorageAttachment'}},
1335 'required': ['result'],
1336 'type': 'object'},
1337 'StorageAttachmentResults': {'additionalProperties': False,
1338 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentResult'},
1339 'type': 'array'}},
1340 'type': 'object'},
1341 'StorageConstraints': {'additionalProperties': False,
1342 'properties': {'count': {'type': 'integer'},
1343 'pool': {'type': 'string'},
1344 'size': {'type': 'integer'}},
1345 'type': 'object'},
1346 'StoragesAddParams': {'additionalProperties': False,
1347 'properties': {'storages': {'items': {'$ref': '#/definitions/StorageAddParams'},
1348 'type': 'array'}},
1349 'required': ['storages'],
1350 'type': 'object'},
1351 'StringBoolResult': {'additionalProperties': False,
1352 'properties': {'error': {'$ref': '#/definitions/Error'},
1353 'ok': {'type': 'boolean'},
1354 'result': {'type': 'string'}},
1355 'required': ['result', 'ok'],
1356 'type': 'object'},
1357 'StringBoolResults': {'additionalProperties': False,
1358 'properties': {'results': {'items': {'$ref': '#/definitions/StringBoolResult'},
1359 'type': 'array'}},
1360 'required': ['results'],
1361 'type': 'object'},
1362 'StringResult': {'additionalProperties': False,
1363 'properties': {'error': {'$ref': '#/definitions/Error'},
1364 'result': {'type': 'string'}},
1365 'required': ['result'],
1366 'type': 'object'},
1367 'StringResults': {'additionalProperties': False,
1368 'properties': {'results': {'items': {'$ref': '#/definitions/StringResult'},
1369 'type': 'array'}},
1370 'required': ['results'],
1371 'type': 'object'},
1372 'StringsResult': {'additionalProperties': False,
1373 'properties': {'error': {'$ref': '#/definitions/Error'},
1374 'result': {'items': {'type': 'string'},
1375 'type': 'array'}},
1376 'type': 'object'},
1377 'StringsResults': {'additionalProperties': False,
1378 'properties': {'results': {'items': {'$ref': '#/definitions/StringsResult'},
1379 'type': 'array'}},
1380 'required': ['results'],
1381 'type': 'object'},
1382 'StringsWatchResult': {'additionalProperties': False,
1383 'properties': {'changes': {'items': {'type': 'string'},
1384 'type': 'array'},
1385 'error': {'$ref': '#/definitions/Error'},
1386 'watcher-id': {'type': 'string'}},
1387 'required': ['watcher-id'],
1388 'type': 'object'},
1389 'StringsWatchResults': {'additionalProperties': False,
1390 'properties': {'results': {'items': {'$ref': '#/definitions/StringsWatchResult'},
1391 'type': 'array'}},
1392 'required': ['results'],
1393 'type': 'object'},
1394 'UnitNetworkConfig': {'additionalProperties': False,
1395 'properties': {'binding-name': {'type': 'string'},
1396 'unit-tag': {'type': 'string'}},
1397 'required': ['unit-tag', 'binding-name'],
1398 'type': 'object'},
1399 'UnitNetworkConfigResult': {'additionalProperties': False,
1400 'properties': {'error': {'$ref': '#/definitions/Error'},
1401 'info': {'items': {'$ref': '#/definitions/NetworkConfig'},
1402 'type': 'array'}},
1403 'required': ['info'],
1404 'type': 'object'},
1405 'UnitNetworkConfigResults': {'additionalProperties': False,
1406 'properties': {'results': {'items': {'$ref': '#/definitions/UnitNetworkConfigResult'},
1407 'type': 'array'}},
1408 'required': ['results'],
1409 'type': 'object'},
1410 'UnitSettings': {'additionalProperties': False,
1411 'properties': {'version': {'type': 'integer'}},
1412 'required': ['version'],
1413 'type': 'object'},
1414 'UnitsNetworkConfig': {'additionalProperties': False,
1415 'properties': {'args': {'items': {'$ref': '#/definitions/UnitNetworkConfig'},
1416 'type': 'array'}},
1417 'required': ['args'],
1418 'type': 'object'}},
1419 'properties': {'APIAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
1420 'type': 'object'},
1421 'APIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/APIHostPortsResult'}},
1422 'type': 'object'},
1423 'Actions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1424 'Result': {'$ref': '#/definitions/ActionResults'}},
1425 'type': 'object'},
1426 'AddMetricBatches': {'properties': {'Params': {'$ref': '#/definitions/MetricBatchParams'},
1427 'Result': {'$ref': '#/definitions/ErrorResults'}},
1428 'type': 'object'},
1429 'AddUnitStorage': {'properties': {'Params': {'$ref': '#/definitions/StoragesAddParams'},
1430 'Result': {'$ref': '#/definitions/ErrorResults'}},
1431 'type': 'object'},
1432 'AllMachinePorts': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1433 'Result': {'$ref': '#/definitions/MachinePortsResults'}},
1434 'type': 'object'},
1435 'ApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1436 'Result': {'$ref': '#/definitions/ApplicationStatusResults'}},
1437 'type': 'object'},
1438 'AssignedMachine': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1439 'Result': {'$ref': '#/definitions/StringResults'}},
1440 'type': 'object'},
1441 'AvailabilityZone': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1442 'Result': {'$ref': '#/definitions/StringResults'}},
1443 'type': 'object'},
1444 'BeginActions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1445 'Result': {'$ref': '#/definitions/ErrorResults'}},
1446 'type': 'object'},
1447 'CACert': {'properties': {'Result': {'$ref': '#/definitions/BytesResult'}},
1448 'type': 'object'},
1449 'CharmArchiveSha256': {'properties': {'Params': {'$ref': '#/definitions/CharmURLs'},
1450 'Result': {'$ref': '#/definitions/StringResults'}},
1451 'type': 'object'},
1452 'CharmModifiedVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1453 'Result': {'$ref': '#/definitions/IntResults'}},
1454 'type': 'object'},
1455 'CharmURL': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1456 'Result': {'$ref': '#/definitions/StringBoolResults'}},
1457 'type': 'object'},
1458 'ClearResolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1459 'Result': {'$ref': '#/definitions/ErrorResults'}},
1460 'type': 'object'},
1461 'ClosePorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
1462 'Result': {'$ref': '#/definitions/ErrorResults'}},
1463 'type': 'object'},
1464 'ConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1465 'Result': {'$ref': '#/definitions/ConfigSettingsResults'}},
1466 'type': 'object'},
1467 'CurrentModel': {'properties': {'Result': {'$ref': '#/definitions/ModelResult'}},
1468 'type': 'object'},
1469 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1470 'Result': {'$ref': '#/definitions/ErrorResults'}},
1471 'type': 'object'},
1472 'DestroyAllSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1473 'Result': {'$ref': '#/definitions/ErrorResults'}},
1474 'type': 'object'},
1475 'DestroyUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1476 'Result': {'$ref': '#/definitions/ErrorResults'}},
1477 'type': 'object'},
1478 'EnsureDead': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1479 'Result': {'$ref': '#/definitions/ErrorResults'}},
1480 'type': 'object'},
1481 'EnterScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
1482 'Result': {'$ref': '#/definitions/ErrorResults'}},
1483 'type': 'object'},
1484 'FinishActions': {'properties': {'Params': {'$ref': '#/definitions/ActionExecutionResults'},
1485 'Result': {'$ref': '#/definitions/ErrorResults'}},
1486 'type': 'object'},
1487 'GetMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1488 'Result': {'$ref': '#/definitions/MeterStatusResults'}},
1489 'type': 'object'},
1490 'GetPrincipal': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1491 'Result': {'$ref': '#/definitions/StringBoolResults'}},
1492 'type': 'object'},
1493 'HasSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1494 'Result': {'$ref': '#/definitions/BoolResults'}},
1495 'type': 'object'},
1496 'JoinedRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1497 'Result': {'$ref': '#/definitions/StringsResults'}},
1498 'type': 'object'},
1499 'LeaveScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
1500 'Result': {'$ref': '#/definitions/ErrorResults'}},
1501 'type': 'object'},
1502 'Life': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1503 'Result': {'$ref': '#/definitions/LifeResults'}},
1504 'type': 'object'},
1505 'Merge': {'properties': {'Params': {'$ref': '#/definitions/MergeLeadershipSettingsBulkParams'},
1506 'Result': {'$ref': '#/definitions/ErrorResults'}},
1507 'type': 'object'},
1508 'ModelConfig': {'properties': {'Result': {'$ref': '#/definitions/ModelConfigResult'}},
1509 'type': 'object'},
1510 'ModelUUID': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
1511 'type': 'object'},
1512 'NetworkConfig': {'properties': {'Params': {'$ref': '#/definitions/UnitsNetworkConfig'},
1513 'Result': {'$ref': '#/definitions/UnitNetworkConfigResults'}},
1514 'type': 'object'},
1515 'OpenPorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
1516 'Result': {'$ref': '#/definitions/ErrorResults'}},
1517 'type': 'object'},
1518 'PrivateAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1519 'Result': {'$ref': '#/definitions/StringResults'}},
1520 'type': 'object'},
1521 'ProviderType': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
1522 'type': 'object'},
1523 'PublicAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1524 'Result': {'$ref': '#/definitions/StringResults'}},
1525 'type': 'object'},
1526 'Read': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1527 'Result': {'$ref': '#/definitions/GetLeadershipSettingsBulkResults'}},
1528 'type': 'object'},
1529 'ReadRemoteSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitPairs'},
1530 'Result': {'$ref': '#/definitions/SettingsResults'}},
1531 'type': 'object'},
1532 'ReadSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
1533 'Result': {'$ref': '#/definitions/SettingsResults'}},
1534 'type': 'object'},
1535 'Relation': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
1536 'Result': {'$ref': '#/definitions/RelationResults'}},
1537 'type': 'object'},
1538 'RelationById': {'properties': {'Params': {'$ref': '#/definitions/RelationIds'},
1539 'Result': {'$ref': '#/definitions/RelationResults'}},
1540 'type': 'object'},
1541 'RemoveStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
1542 'Result': {'$ref': '#/definitions/ErrorResults'}},
1543 'type': 'object'},
1544 'RequestReboot': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1545 'Result': {'$ref': '#/definitions/ErrorResults'}},
1546 'type': 'object'},
1547 'Resolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1548 'Result': {'$ref': '#/definitions/ResolvedModeResults'}},
1549 'type': 'object'},
1550 'SetAgentStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
1551 'Result': {'$ref': '#/definitions/ErrorResults'}},
1552 'type': 'object'},
1553 'SetApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
1554 'Result': {'$ref': '#/definitions/ErrorResults'}},
1555 'type': 'object'},
1556 'SetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/EntitiesCharmURL'},
1557 'Result': {'$ref': '#/definitions/ErrorResults'}},
1558 'type': 'object'},
1559 'SetStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
1560 'Result': {'$ref': '#/definitions/ErrorResults'}},
1561 'type': 'object'},
1562 'SetUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
1563 'Result': {'$ref': '#/definitions/ErrorResults'}},
1564 'type': 'object'},
1565 'SetWorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/EntityWorkloadVersions'},
1566 'Result': {'$ref': '#/definitions/ErrorResults'}},
1567 'type': 'object'},
1568 'StorageAttachmentLife': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
1569 'Result': {'$ref': '#/definitions/LifeResults'}},
1570 'type': 'object'},
1571 'StorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
1572 'Result': {'$ref': '#/definitions/StorageAttachmentResults'}},
1573 'type': 'object'},
1574 'UnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1575 'Result': {'$ref': '#/definitions/StatusResults'}},
1576 'type': 'object'},
1577 'UnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1578 'Result': {'$ref': '#/definitions/StorageAttachmentIdsResults'}},
1579 'type': 'object'},
1580 'UpdateSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitsSettings'},
1581 'Result': {'$ref': '#/definitions/ErrorResults'}},
1582 'type': 'object'},
1583 'Watch': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1584 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
1585 'type': 'object'},
1586 'WatchAPIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
1587 'type': 'object'},
1588 'WatchActionNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1589 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
1590 'type': 'object'},
1591 'WatchApplicationRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1592 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
1593 'type': 'object'},
1594 'WatchConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1595 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
1596 'type': 'object'},
1597 'WatchForModelConfigChanges': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
1598 'type': 'object'},
1599 'WatchLeadershipSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1600 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
1601 'type': 'object'},
1602 'WatchMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1603 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
1604 'type': 'object'},
1605 'WatchRelationUnits': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
1606 'Result': {'$ref': '#/definitions/RelationUnitsWatchResults'}},
1607 'type': 'object'},
1608 'WatchStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
1609 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
1610 'type': 'object'},
1611 'WatchUnitAddresses': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1612 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
1613 'type': 'object'},
1614 'WatchUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1615 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
1616 'type': 'object'},
1617 'WorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
1618 'Result': {'$ref': '#/definitions/StringResults'}},
1619 'type': 'object'}},
1620 'type': 'object'}
1621
1622
1623 @ReturnMapping(StringsResult)
1624 async def APIAddresses(self):
1625 '''
1626
1627 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence<+T_co>[str]]
1628 '''
1629 # map input types to rpc msg
1630 _params = dict()
1631 msg = dict(type='Uniter', request='APIAddresses', version=4, params=_params)
1632
1633 reply = await self.rpc(msg)
1634 return reply
1635
1636
1637
1638 @ReturnMapping(APIHostPortsResult)
1639 async def APIHostPorts(self):
1640 '''
1641
1642 Returns -> typing.Sequence<+T_co>[~HostPort]<~HostPort>
1643 '''
1644 # map input types to rpc msg
1645 _params = dict()
1646 msg = dict(type='Uniter', request='APIHostPorts', version=4, params=_params)
1647
1648 reply = await self.rpc(msg)
1649 return reply
1650
1651
1652
1653 @ReturnMapping(ActionResults)
1654 async def Actions(self, entities):
1655 '''
1656 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1657 Returns -> typing.Sequence<+T_co>[~ActionResult]<~ActionResult>
1658 '''
1659 # map input types to rpc msg
1660 _params = dict()
1661 msg = dict(type='Uniter', request='Actions', version=4, params=_params)
1662 _params['entities'] = entities
1663 reply = await self.rpc(msg)
1664 return reply
1665
1666
1667
1668 @ReturnMapping(ErrorResults)
1669 async def AddMetricBatches(self, batches):
1670 '''
1671 batches : typing.Sequence<+T_co>[~MetricBatchParam]<~MetricBatchParam>
1672 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1673 '''
1674 # map input types to rpc msg
1675 _params = dict()
1676 msg = dict(type='Uniter', request='AddMetricBatches', version=4, params=_params)
1677 _params['batches'] = batches
1678 reply = await self.rpc(msg)
1679 return reply
1680
1681
1682
1683 @ReturnMapping(ErrorResults)
1684 async def AddUnitStorage(self, storages):
1685 '''
1686 storages : typing.Sequence<+T_co>[~StorageAddParams]<~StorageAddParams>
1687 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1688 '''
1689 # map input types to rpc msg
1690 _params = dict()
1691 msg = dict(type='Uniter', request='AddUnitStorage', version=4, params=_params)
1692 _params['storages'] = storages
1693 reply = await self.rpc(msg)
1694 return reply
1695
1696
1697
1698 @ReturnMapping(MachinePortsResults)
1699 async def AllMachinePorts(self, entities):
1700 '''
1701 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1702 Returns -> typing.Sequence<+T_co>[~MachinePortsResult]<~MachinePortsResult>
1703 '''
1704 # map input types to rpc msg
1705 _params = dict()
1706 msg = dict(type='Uniter', request='AllMachinePorts', version=4, params=_params)
1707 _params['entities'] = entities
1708 reply = await self.rpc(msg)
1709 return reply
1710
1711
1712
1713 @ReturnMapping(ApplicationStatusResults)
1714 async def ApplicationStatus(self, entities):
1715 '''
1716 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1717 Returns -> typing.Sequence<+T_co>[~ApplicationStatusResult]<~ApplicationStatusResult>
1718 '''
1719 # map input types to rpc msg
1720 _params = dict()
1721 msg = dict(type='Uniter', request='ApplicationStatus', version=4, params=_params)
1722 _params['entities'] = entities
1723 reply = await self.rpc(msg)
1724 return reply
1725
1726
1727
1728 @ReturnMapping(StringResults)
1729 async def AssignedMachine(self, entities):
1730 '''
1731 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1732 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1733 '''
1734 # map input types to rpc msg
1735 _params = dict()
1736 msg = dict(type='Uniter', request='AssignedMachine', version=4, params=_params)
1737 _params['entities'] = entities
1738 reply = await self.rpc(msg)
1739 return reply
1740
1741
1742
1743 @ReturnMapping(StringResults)
1744 async def AvailabilityZone(self, entities):
1745 '''
1746 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1747 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1748 '''
1749 # map input types to rpc msg
1750 _params = dict()
1751 msg = dict(type='Uniter', request='AvailabilityZone', version=4, params=_params)
1752 _params['entities'] = entities
1753 reply = await self.rpc(msg)
1754 return reply
1755
1756
1757
1758 @ReturnMapping(ErrorResults)
1759 async def BeginActions(self, entities):
1760 '''
1761 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1762 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1763 '''
1764 # map input types to rpc msg
1765 _params = dict()
1766 msg = dict(type='Uniter', request='BeginActions', version=4, params=_params)
1767 _params['entities'] = entities
1768 reply = await self.rpc(msg)
1769 return reply
1770
1771
1772
1773 @ReturnMapping(BytesResult)
1774 async def CACert(self):
1775 '''
1776
1777 Returns -> typing.Sequence<+T_co>[int]
1778 '''
1779 # map input types to rpc msg
1780 _params = dict()
1781 msg = dict(type='Uniter', request='CACert', version=4, params=_params)
1782
1783 reply = await self.rpc(msg)
1784 return reply
1785
1786
1787
1788 @ReturnMapping(StringResults)
1789 async def CharmArchiveSha256(self, urls):
1790 '''
1791 urls : typing.Sequence<+T_co>[~CharmURL]<~CharmURL>
1792 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1793 '''
1794 # map input types to rpc msg
1795 _params = dict()
1796 msg = dict(type='Uniter', request='CharmArchiveSha256', version=4, params=_params)
1797 _params['urls'] = urls
1798 reply = await self.rpc(msg)
1799 return reply
1800
1801
1802
1803 @ReturnMapping(IntResults)
1804 async def CharmModifiedVersion(self, entities):
1805 '''
1806 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1807 Returns -> typing.Sequence<+T_co>[~IntResult]<~IntResult>
1808 '''
1809 # map input types to rpc msg
1810 _params = dict()
1811 msg = dict(type='Uniter', request='CharmModifiedVersion', version=4, params=_params)
1812 _params['entities'] = entities
1813 reply = await self.rpc(msg)
1814 return reply
1815
1816
1817
1818 @ReturnMapping(StringBoolResults)
1819 async def CharmURL(self, entities):
1820 '''
1821 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1822 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
1823 '''
1824 # map input types to rpc msg
1825 _params = dict()
1826 msg = dict(type='Uniter', request='CharmURL', version=4, params=_params)
1827 _params['entities'] = entities
1828 reply = await self.rpc(msg)
1829 return reply
1830
1831
1832
1833 @ReturnMapping(ErrorResults)
1834 async def ClearResolved(self, entities):
1835 '''
1836 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1837 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1838 '''
1839 # map input types to rpc msg
1840 _params = dict()
1841 msg = dict(type='Uniter', request='ClearResolved', version=4, params=_params)
1842 _params['entities'] = entities
1843 reply = await self.rpc(msg)
1844 return reply
1845
1846
1847
1848 @ReturnMapping(ErrorResults)
1849 async def ClosePorts(self, entities):
1850 '''
1851 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
1852 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1853 '''
1854 # map input types to rpc msg
1855 _params = dict()
1856 msg = dict(type='Uniter', request='ClosePorts', version=4, params=_params)
1857 _params['entities'] = entities
1858 reply = await self.rpc(msg)
1859 return reply
1860
1861
1862
1863 @ReturnMapping(ConfigSettingsResults)
1864 async def ConfigSettings(self, entities):
1865 '''
1866 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1867 Returns -> typing.Sequence<+T_co>[~ConfigSettingsResult]<~ConfigSettingsResult>
1868 '''
1869 # map input types to rpc msg
1870 _params = dict()
1871 msg = dict(type='Uniter', request='ConfigSettings', version=4, params=_params)
1872 _params['entities'] = entities
1873 reply = await self.rpc(msg)
1874 return reply
1875
1876
1877
1878 @ReturnMapping(ModelResult)
1879 async def CurrentModel(self):
1880 '''
1881
1882 Returns -> typing.Union[_ForwardRef('Error'), str]
1883 '''
1884 # map input types to rpc msg
1885 _params = dict()
1886 msg = dict(type='Uniter', request='CurrentModel', version=4, params=_params)
1887
1888 reply = await self.rpc(msg)
1889 return reply
1890
1891
1892
1893 @ReturnMapping(ErrorResults)
1894 async def Destroy(self, entities):
1895 '''
1896 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1897 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1898 '''
1899 # map input types to rpc msg
1900 _params = dict()
1901 msg = dict(type='Uniter', request='Destroy', version=4, params=_params)
1902 _params['entities'] = entities
1903 reply = await self.rpc(msg)
1904 return reply
1905
1906
1907
1908 @ReturnMapping(ErrorResults)
1909 async def DestroyAllSubordinates(self, entities):
1910 '''
1911 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1912 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1913 '''
1914 # map input types to rpc msg
1915 _params = dict()
1916 msg = dict(type='Uniter', request='DestroyAllSubordinates', version=4, params=_params)
1917 _params['entities'] = entities
1918 reply = await self.rpc(msg)
1919 return reply
1920
1921
1922
1923 @ReturnMapping(ErrorResults)
1924 async def DestroyUnitStorageAttachments(self, entities):
1925 '''
1926 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1927 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1928 '''
1929 # map input types to rpc msg
1930 _params = dict()
1931 msg = dict(type='Uniter', request='DestroyUnitStorageAttachments', version=4, params=_params)
1932 _params['entities'] = entities
1933 reply = await self.rpc(msg)
1934 return reply
1935
1936
1937
1938 @ReturnMapping(ErrorResults)
1939 async def EnsureDead(self, entities):
1940 '''
1941 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1942 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1943 '''
1944 # map input types to rpc msg
1945 _params = dict()
1946 msg = dict(type='Uniter', request='EnsureDead', version=4, params=_params)
1947 _params['entities'] = entities
1948 reply = await self.rpc(msg)
1949 return reply
1950
1951
1952
1953 @ReturnMapping(ErrorResults)
1954 async def EnterScope(self, relation_units):
1955 '''
1956 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1957 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1958 '''
1959 # map input types to rpc msg
1960 _params = dict()
1961 msg = dict(type='Uniter', request='EnterScope', version=4, params=_params)
1962 _params['relation-units'] = relation_units
1963 reply = await self.rpc(msg)
1964 return reply
1965
1966
1967
1968 @ReturnMapping(ErrorResults)
1969 async def FinishActions(self, results):
1970 '''
1971 results : typing.Sequence<+T_co>[~ActionExecutionResult]<~ActionExecutionResult>
1972 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1973 '''
1974 # map input types to rpc msg
1975 _params = dict()
1976 msg = dict(type='Uniter', request='FinishActions', version=4, params=_params)
1977 _params['results'] = results
1978 reply = await self.rpc(msg)
1979 return reply
1980
1981
1982
1983 @ReturnMapping(MeterStatusResults)
1984 async def GetMeterStatus(self, entities):
1985 '''
1986 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1987 Returns -> typing.Sequence<+T_co>[~MeterStatusResult]<~MeterStatusResult>
1988 '''
1989 # map input types to rpc msg
1990 _params = dict()
1991 msg = dict(type='Uniter', request='GetMeterStatus', version=4, params=_params)
1992 _params['entities'] = entities
1993 reply = await self.rpc(msg)
1994 return reply
1995
1996
1997
1998 @ReturnMapping(StringBoolResults)
1999 async def GetPrincipal(self, entities):
2000 '''
2001 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2002 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
2003 '''
2004 # map input types to rpc msg
2005 _params = dict()
2006 msg = dict(type='Uniter', request='GetPrincipal', version=4, params=_params)
2007 _params['entities'] = entities
2008 reply = await self.rpc(msg)
2009 return reply
2010
2011
2012
2013 @ReturnMapping(BoolResults)
2014 async def HasSubordinates(self, entities):
2015 '''
2016 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2017 Returns -> typing.Sequence<+T_co>[~BoolResult]<~BoolResult>
2018 '''
2019 # map input types to rpc msg
2020 _params = dict()
2021 msg = dict(type='Uniter', request='HasSubordinates', version=4, params=_params)
2022 _params['entities'] = entities
2023 reply = await self.rpc(msg)
2024 return reply
2025
2026
2027
2028 @ReturnMapping(StringsResults)
2029 async def JoinedRelations(self, entities):
2030 '''
2031 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2032 Returns -> typing.Sequence<+T_co>[~StringsResult]<~StringsResult>
2033 '''
2034 # map input types to rpc msg
2035 _params = dict()
2036 msg = dict(type='Uniter', request='JoinedRelations', version=4, params=_params)
2037 _params['entities'] = entities
2038 reply = await self.rpc(msg)
2039 return reply
2040
2041
2042
2043 @ReturnMapping(ErrorResults)
2044 async def LeaveScope(self, relation_units):
2045 '''
2046 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
2047 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2048 '''
2049 # map input types to rpc msg
2050 _params = dict()
2051 msg = dict(type='Uniter', request='LeaveScope', version=4, params=_params)
2052 _params['relation-units'] = relation_units
2053 reply = await self.rpc(msg)
2054 return reply
2055
2056
2057
2058 @ReturnMapping(LifeResults)
2059 async def Life(self, entities):
2060 '''
2061 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2062 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
2063 '''
2064 # map input types to rpc msg
2065 _params = dict()
2066 msg = dict(type='Uniter', request='Life', version=4, params=_params)
2067 _params['entities'] = entities
2068 reply = await self.rpc(msg)
2069 return reply
2070
2071
2072
2073 @ReturnMapping(ErrorResults)
2074 async def Merge(self, params):
2075 '''
2076 params : typing.Sequence<+T_co>[~MergeLeadershipSettingsParam]<~MergeLeadershipSettingsParam>
2077 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2078 '''
2079 # map input types to rpc msg
2080 _params = dict()
2081 msg = dict(type='Uniter', request='Merge', version=4, params=_params)
2082 _params['params'] = params
2083 reply = await self.rpc(msg)
2084 return reply
2085
2086
2087
2088 @ReturnMapping(ModelConfigResult)
2089 async def ModelConfig(self):
2090 '''
2091
2092 Returns -> typing.Mapping<~KT, +VT_co>[str, typing.Any]
2093 '''
2094 # map input types to rpc msg
2095 _params = dict()
2096 msg = dict(type='Uniter', request='ModelConfig', version=4, params=_params)
2097
2098 reply = await self.rpc(msg)
2099 return reply
2100
2101
2102
2103 @ReturnMapping(StringResult)
2104 async def ModelUUID(self):
2105 '''
2106
2107 Returns -> typing.Union[_ForwardRef('Error'), str]
2108 '''
2109 # map input types to rpc msg
2110 _params = dict()
2111 msg = dict(type='Uniter', request='ModelUUID', version=4, params=_params)
2112
2113 reply = await self.rpc(msg)
2114 return reply
2115
2116
2117
2118 @ReturnMapping(UnitNetworkConfigResults)
2119 async def NetworkConfig(self, args):
2120 '''
2121 args : typing.Sequence<+T_co>[~UnitNetworkConfig]<~UnitNetworkConfig>
2122 Returns -> typing.Sequence<+T_co>[~UnitNetworkConfigResult]<~UnitNetworkConfigResult>
2123 '''
2124 # map input types to rpc msg
2125 _params = dict()
2126 msg = dict(type='Uniter', request='NetworkConfig', version=4, params=_params)
2127 _params['args'] = args
2128 reply = await self.rpc(msg)
2129 return reply
2130
2131
2132
2133 @ReturnMapping(ErrorResults)
2134 async def OpenPorts(self, entities):
2135 '''
2136 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
2137 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2138 '''
2139 # map input types to rpc msg
2140 _params = dict()
2141 msg = dict(type='Uniter', request='OpenPorts', version=4, params=_params)
2142 _params['entities'] = entities
2143 reply = await self.rpc(msg)
2144 return reply
2145
2146
2147
2148 @ReturnMapping(StringResults)
2149 async def PrivateAddress(self, entities):
2150 '''
2151 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2152 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
2153 '''
2154 # map input types to rpc msg
2155 _params = dict()
2156 msg = dict(type='Uniter', request='PrivateAddress', version=4, params=_params)
2157 _params['entities'] = entities
2158 reply = await self.rpc(msg)
2159 return reply
2160
2161
2162
2163 @ReturnMapping(StringResult)
2164 async def ProviderType(self):
2165 '''
2166
2167 Returns -> typing.Union[_ForwardRef('Error'), str]
2168 '''
2169 # map input types to rpc msg
2170 _params = dict()
2171 msg = dict(type='Uniter', request='ProviderType', version=4, params=_params)
2172
2173 reply = await self.rpc(msg)
2174 return reply
2175
2176
2177
2178 @ReturnMapping(StringResults)
2179 async def PublicAddress(self, entities):
2180 '''
2181 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2182 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
2183 '''
2184 # map input types to rpc msg
2185 _params = dict()
2186 msg = dict(type='Uniter', request='PublicAddress', version=4, params=_params)
2187 _params['entities'] = entities
2188 reply = await self.rpc(msg)
2189 return reply
2190
2191
2192
2193 @ReturnMapping(GetLeadershipSettingsBulkResults)
2194 async def Read(self, entities):
2195 '''
2196 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2197 Returns -> typing.Sequence<+T_co>[~GetLeadershipSettingsResult]<~GetLeadershipSettingsResult>
2198 '''
2199 # map input types to rpc msg
2200 _params = dict()
2201 msg = dict(type='Uniter', request='Read', version=4, params=_params)
2202 _params['entities'] = entities
2203 reply = await self.rpc(msg)
2204 return reply
2205
2206
2207
2208 @ReturnMapping(SettingsResults)
2209 async def ReadRemoteSettings(self, relation_unit_pairs):
2210 '''
2211 relation_unit_pairs : typing.Sequence<+T_co>[~RelationUnitPair]<~RelationUnitPair>
2212 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
2213 '''
2214 # map input types to rpc msg
2215 _params = dict()
2216 msg = dict(type='Uniter', request='ReadRemoteSettings', version=4, params=_params)
2217 _params['relation-unit-pairs'] = relation_unit_pairs
2218 reply = await self.rpc(msg)
2219 return reply
2220
2221
2222
2223 @ReturnMapping(SettingsResults)
2224 async def ReadSettings(self, relation_units):
2225 '''
2226 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
2227 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
2228 '''
2229 # map input types to rpc msg
2230 _params = dict()
2231 msg = dict(type='Uniter', request='ReadSettings', version=4, params=_params)
2232 _params['relation-units'] = relation_units
2233 reply = await self.rpc(msg)
2234 return reply
2235
2236
2237
2238 @ReturnMapping(RelationResults)
2239 async def Relation(self, relation_units):
2240 '''
2241 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
2242 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
2243 '''
2244 # map input types to rpc msg
2245 _params = dict()
2246 msg = dict(type='Uniter', request='Relation', version=4, params=_params)
2247 _params['relation-units'] = relation_units
2248 reply = await self.rpc(msg)
2249 return reply
2250
2251
2252
2253 @ReturnMapping(RelationResults)
2254 async def RelationById(self, relation_ids):
2255 '''
2256 relation_ids : typing.Sequence<+T_co>[int]
2257 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
2258 '''
2259 # map input types to rpc msg
2260 _params = dict()
2261 msg = dict(type='Uniter', request='RelationById', version=4, params=_params)
2262 _params['relation-ids'] = relation_ids
2263 reply = await self.rpc(msg)
2264 return reply
2265
2266
2267
2268 @ReturnMapping(ErrorResults)
2269 async def RemoveStorageAttachments(self, ids):
2270 '''
2271 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
2272 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2273 '''
2274 # map input types to rpc msg
2275 _params = dict()
2276 msg = dict(type='Uniter', request='RemoveStorageAttachments', version=4, params=_params)
2277 _params['ids'] = ids
2278 reply = await self.rpc(msg)
2279 return reply
2280
2281
2282
2283 @ReturnMapping(ErrorResults)
2284 async def RequestReboot(self, entities):
2285 '''
2286 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2287 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2288 '''
2289 # map input types to rpc msg
2290 _params = dict()
2291 msg = dict(type='Uniter', request='RequestReboot', version=4, params=_params)
2292 _params['entities'] = entities
2293 reply = await self.rpc(msg)
2294 return reply
2295
2296
2297
2298 @ReturnMapping(ResolvedModeResults)
2299 async def Resolved(self, entities):
2300 '''
2301 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2302 Returns -> typing.Sequence<+T_co>[~ResolvedModeResult]<~ResolvedModeResult>
2303 '''
2304 # map input types to rpc msg
2305 _params = dict()
2306 msg = dict(type='Uniter', request='Resolved', version=4, params=_params)
2307 _params['entities'] = entities
2308 reply = await self.rpc(msg)
2309 return reply
2310
2311
2312
2313 @ReturnMapping(ErrorResults)
2314 async def SetAgentStatus(self, entities):
2315 '''
2316 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
2317 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2318 '''
2319 # map input types to rpc msg
2320 _params = dict()
2321 msg = dict(type='Uniter', request='SetAgentStatus', version=4, params=_params)
2322 _params['entities'] = entities
2323 reply = await self.rpc(msg)
2324 return reply
2325
2326
2327
2328 @ReturnMapping(ErrorResults)
2329 async def SetApplicationStatus(self, entities):
2330 '''
2331 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
2332 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2333 '''
2334 # map input types to rpc msg
2335 _params = dict()
2336 msg = dict(type='Uniter', request='SetApplicationStatus', version=4, params=_params)
2337 _params['entities'] = entities
2338 reply = await self.rpc(msg)
2339 return reply
2340
2341
2342
2343 @ReturnMapping(ErrorResults)
2344 async def SetCharmURL(self, entities):
2345 '''
2346 entities : typing.Sequence<+T_co>[~EntityCharmURL]<~EntityCharmURL>
2347 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2348 '''
2349 # map input types to rpc msg
2350 _params = dict()
2351 msg = dict(type='Uniter', request='SetCharmURL', version=4, params=_params)
2352 _params['entities'] = entities
2353 reply = await self.rpc(msg)
2354 return reply
2355
2356
2357
2358 @ReturnMapping(ErrorResults)
2359 async def SetStatus(self, entities):
2360 '''
2361 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
2362 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2363 '''
2364 # map input types to rpc msg
2365 _params = dict()
2366 msg = dict(type='Uniter', request='SetStatus', version=4, params=_params)
2367 _params['entities'] = entities
2368 reply = await self.rpc(msg)
2369 return reply
2370
2371
2372
2373 @ReturnMapping(ErrorResults)
2374 async def SetUnitStatus(self, entities):
2375 '''
2376 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
2377 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2378 '''
2379 # map input types to rpc msg
2380 _params = dict()
2381 msg = dict(type='Uniter', request='SetUnitStatus', version=4, params=_params)
2382 _params['entities'] = entities
2383 reply = await self.rpc(msg)
2384 return reply
2385
2386
2387
2388 @ReturnMapping(ErrorResults)
2389 async def SetWorkloadVersion(self, entities):
2390 '''
2391 entities : typing.Sequence<+T_co>[~EntityWorkloadVersion]<~EntityWorkloadVersion>
2392 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2393 '''
2394 # map input types to rpc msg
2395 _params = dict()
2396 msg = dict(type='Uniter', request='SetWorkloadVersion', version=4, params=_params)
2397 _params['entities'] = entities
2398 reply = await self.rpc(msg)
2399 return reply
2400
2401
2402
2403 @ReturnMapping(LifeResults)
2404 async def StorageAttachmentLife(self, ids):
2405 '''
2406 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
2407 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
2408 '''
2409 # map input types to rpc msg
2410 _params = dict()
2411 msg = dict(type='Uniter', request='StorageAttachmentLife', version=4, params=_params)
2412 _params['ids'] = ids
2413 reply = await self.rpc(msg)
2414 return reply
2415
2416
2417
2418 @ReturnMapping(StorageAttachmentResults)
2419 async def StorageAttachments(self, ids):
2420 '''
2421 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
2422 Returns -> typing.Sequence<+T_co>[~StorageAttachmentResult]<~StorageAttachmentResult>
2423 '''
2424 # map input types to rpc msg
2425 _params = dict()
2426 msg = dict(type='Uniter', request='StorageAttachments', version=4, params=_params)
2427 _params['ids'] = ids
2428 reply = await self.rpc(msg)
2429 return reply
2430
2431
2432
2433 @ReturnMapping(StatusResults)
2434 async def UnitStatus(self, entities):
2435 '''
2436 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2437 Returns -> typing.Sequence<+T_co>[~StatusResult]<~StatusResult>
2438 '''
2439 # map input types to rpc msg
2440 _params = dict()
2441 msg = dict(type='Uniter', request='UnitStatus', version=4, params=_params)
2442 _params['entities'] = entities
2443 reply = await self.rpc(msg)
2444 return reply
2445
2446
2447
2448 @ReturnMapping(StorageAttachmentIdsResults)
2449 async def UnitStorageAttachments(self, entities