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