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.
4 from juju
.client
.facade
import Type
, ReturnMapping
5 from juju
.client
._definitions
import *
8 class UniterFacade(Type
):
11 schema
= {'definitions': {'APIHostPortsResult': {'additionalProperties': False,
12 'properties': {'servers': {'items': {'items': {'$ref': '#/definitions/HostPort'},
15 'required': ['servers'],
17 'Action': {'additionalProperties': False,
18 'properties': {'name': {'type': 'string'},
19 'parameters': {'patternProperties': {'.*': {'additionalProperties': True,
22 'receiver': {'type': 'string'},
23 'tag': {'type': 'string'}},
24 'required': ['tag', 'receiver', 'name'],
26 'ActionExecutionResult': {'additionalProperties': False,
27 'properties': {'action-tag': {'type': 'string'},
28 'message': {'type': 'string'},
29 'results': {'patternProperties': {'.*': {'additionalProperties': True,
32 'status': {'type': 'string'}},
33 'required': ['action-tag', 'status'],
35 'ActionExecutionResults': {'additionalProperties': False,
36 'properties': {'results': {'items': {'$ref': '#/definitions/ActionExecutionResult'},
39 'ActionResult': {'additionalProperties': False,
40 'properties': {'action': {'$ref': '#/definitions/Action'},
41 'completed': {'format': 'date-time',
43 'enqueued': {'format': 'date-time',
45 'error': {'$ref': '#/definitions/Error'},
46 'message': {'type': 'string'},
47 'output': {'patternProperties': {'.*': {'additionalProperties': True,
50 'started': {'format': 'date-time',
52 'status': {'type': 'string'}},
54 'ActionResults': {'additionalProperties': False,
55 'properties': {'results': {'items': {'$ref': '#/definitions/ActionResult'},
58 'Address': {'additionalProperties': False,
59 'properties': {'scope': {'type': 'string'},
60 'space-name': {'type': 'string'},
61 'type': {'type': 'string'},
62 'value': {'type': 'string'}},
63 'required': ['value', 'type', 'scope'],
65 'ApplicationStatusResult': {'additionalProperties': False,
66 'properties': {'application': {'$ref': '#/definitions/StatusResult'},
67 'error': {'$ref': '#/definitions/Error'},
68 'units': {'patternProperties': {'.*': {'$ref': '#/definitions/StatusResult'}},
70 'required': ['application',
73 'ApplicationStatusResults': {'additionalProperties': False,
74 'properties': {'results': {'items': {'$ref': '#/definitions/ApplicationStatusResult'},
76 'required': ['results'],
78 'BoolResult': {'additionalProperties': False,
79 'properties': {'error': {'$ref': '#/definitions/Error'},
80 'result': {'type': 'boolean'}},
81 'required': ['result'],
83 'BoolResults': {'additionalProperties': False,
84 'properties': {'results': {'items': {'$ref': '#/definitions/BoolResult'},
86 'required': ['results'],
88 'CharmRelation': {'additionalProperties': False,
89 'properties': {'interface': {'type': 'string'},
90 'limit': {'type': 'integer'},
91 'name': {'type': 'string'},
92 'optional': {'type': 'boolean'},
93 'role': {'type': 'string'},
94 'scope': {'type': 'string'}},
102 'CharmURL': {'additionalProperties': False,
103 'properties': {'url': {'type': 'string'}},
106 'CharmURLs': {'additionalProperties': False,
107 'properties': {'urls': {'items': {'$ref': '#/definitions/CharmURL'},
109 'required': ['urls'],
111 'CloudCredential': {'additionalProperties': False,
112 'properties': {'attrs': {'patternProperties': {'.*': {'type': 'string'}},
114 'auth-type': {'type': 'string'},
115 'redacted': {'items': {'type': 'string'},
117 'required': ['auth-type'],
119 'CloudSpec': {'additionalProperties': False,
120 'properties': {'cacertificates': {'items': {'type': 'string'},
122 'credential': {'$ref': '#/definitions/CloudCredential'},
123 'endpoint': {'type': 'string'},
124 'identity-endpoint': {'type': 'string'},
125 'name': {'type': 'string'},
126 'region': {'type': 'string'},
127 'storage-endpoint': {'type': 'string'},
128 'type': {'type': 'string'}},
129 'required': ['type', 'name'],
131 'CloudSpecResult': {'additionalProperties': False,
132 'properties': {'error': {'$ref': '#/definitions/Error'},
133 'result': {'$ref': '#/definitions/CloudSpec'}},
135 'ConfigSettingsResult': {'additionalProperties': False,
136 'properties': {'error': {'$ref': '#/definitions/Error'},
137 'settings': {'patternProperties': {'.*': {'additionalProperties': True,
140 'required': ['settings'],
142 'ConfigSettingsResults': {'additionalProperties': False,
143 'properties': {'results': {'items': {'$ref': '#/definitions/ConfigSettingsResult'},
145 'required': ['results'],
147 'Endpoint': {'additionalProperties': False,
148 'properties': {'application-name': {'type': 'string'},
149 'relation': {'$ref': '#/definitions/CharmRelation'}},
150 'required': ['application-name', 'relation'],
152 'Entities': {'additionalProperties': False,
153 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
155 'required': ['entities'],
157 'EntitiesCharmURL': {'additionalProperties': False,
158 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityCharmURL'},
160 'required': ['entities'],
162 'EntitiesPortRanges': {'additionalProperties': False,
163 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityPortRange'},
165 'required': ['entities'],
167 'Entity': {'additionalProperties': False,
168 'properties': {'tag': {'type': 'string'}},
171 'EntityCharmURL': {'additionalProperties': False,
172 'properties': {'charm-url': {'type': 'string'},
173 'tag': {'type': 'string'}},
174 'required': ['tag', 'charm-url'],
176 'EntityPortRange': {'additionalProperties': False,
177 'properties': {'from-port': {'type': 'integer'},
178 'protocol': {'type': 'string'},
179 'tag': {'type': 'string'},
180 'to-port': {'type': 'integer'}},
186 'EntityStatusArgs': {'additionalProperties': False,
187 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
190 'info': {'type': 'string'},
191 'status': {'type': 'string'},
192 'tag': {'type': 'string'}},
198 'EntityString': {'additionalProperties': False,
199 'properties': {'tag': {'type': 'string'},
200 'value': {'type': 'string'}},
201 'required': ['tag', 'value'],
203 'EntityWorkloadVersion': {'additionalProperties': False,
204 'properties': {'tag': {'type': 'string'},
205 'workload-version': {'type': 'string'}},
209 'EntityWorkloadVersions': {'additionalProperties': False,
210 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityWorkloadVersion'},
212 'required': ['entities'],
214 'Error': {'additionalProperties': False,
215 'properties': {'code': {'type': 'string'},
216 'info': {'$ref': '#/definitions/ErrorInfo'},
217 'message': {'type': 'string'}},
218 'required': ['message', 'code'],
220 'ErrorInfo': {'additionalProperties': False,
221 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
222 'macaroon-path': {'type': 'string'}},
224 'ErrorResult': {'additionalProperties': False,
225 'properties': {'error': {'$ref': '#/definitions/Error'}},
227 'ErrorResults': {'additionalProperties': False,
228 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
230 'required': ['results'],
232 'GetLeadershipSettingsBulkResults': {'additionalProperties': False,
233 'properties': {'results': {'items': {'$ref': '#/definitions/GetLeadershipSettingsResult'},
235 'required': ['results'],
237 'GetLeadershipSettingsResult': {'additionalProperties': False,
238 'properties': {'error': {'$ref': '#/definitions/Error'},
239 'settings': {'patternProperties': {'.*': {'type': 'string'}},
241 'required': ['settings'],
243 'GoalState': {'additionalProperties': False,
244 'properties': {'relations': {'patternProperties': {'.*': {'patternProperties': {'.*': {'$ref': '#/definitions/GoalStateStatus'}},
247 'units': {'patternProperties': {'.*': {'$ref': '#/definitions/GoalStateStatus'}},
249 'required': ['units', 'relations'],
251 'GoalStateResult': {'additionalProperties': False,
252 'properties': {'error': {'$ref': '#/definitions/Error'},
253 'result': {'$ref': '#/definitions/GoalState'}},
254 'required': ['result', 'error'],
256 'GoalStateResults': {'additionalProperties': False,
257 'properties': {'results': {'items': {'$ref': '#/definitions/GoalStateResult'},
259 'required': ['results'],
261 'GoalStateStatus': {'additionalProperties': False,
262 'properties': {'since': {'format': 'date-time',
264 'status': {'type': 'string'}},
265 'required': ['status', 'since'],
267 'HostPort': {'additionalProperties': False,
268 'properties': {'Address': {'$ref': '#/definitions/Address'},
269 'port': {'type': 'integer'}},
270 'required': ['Address', 'port'],
272 'IntResult': {'additionalProperties': False,
273 'properties': {'error': {'$ref': '#/definitions/Error'},
274 'result': {'type': 'integer'}},
275 'required': ['result'],
277 'IntResults': {'additionalProperties': False,
278 'properties': {'results': {'items': {'$ref': '#/definitions/IntResult'},
280 'required': ['results'],
282 'InterfaceAddress': {'additionalProperties': False,
283 'properties': {'cidr': {'type': 'string'},
284 'hostname': {'type': 'string'},
285 'value': {'type': 'string'}},
286 'required': ['hostname', 'value', 'cidr'],
288 'LifeResult': {'additionalProperties': False,
289 'properties': {'error': {'$ref': '#/definitions/Error'},
290 'life': {'type': 'string'}},
291 'required': ['life'],
293 'LifeResults': {'additionalProperties': False,
294 'properties': {'results': {'items': {'$ref': '#/definitions/LifeResult'},
296 'required': ['results'],
298 'Macaroon': {'additionalProperties': False, 'type': 'object'},
299 'MachinePortRange': {'additionalProperties': False,
300 'properties': {'port-range': {'$ref': '#/definitions/PortRange'},
301 'relation-tag': {'type': 'string'},
302 'unit-tag': {'type': 'string'}},
303 'required': ['unit-tag',
307 'MachinePortsResult': {'additionalProperties': False,
308 'properties': {'error': {'$ref': '#/definitions/Error'},
309 'ports': {'items': {'$ref': '#/definitions/MachinePortRange'},
311 'required': ['ports'],
313 'MachinePortsResults': {'additionalProperties': False,
314 'properties': {'results': {'items': {'$ref': '#/definitions/MachinePortsResult'},
316 'required': ['results'],
318 'MergeLeadershipSettingsBulkParams': {'additionalProperties': False,
319 'properties': {'params': {'items': {'$ref': '#/definitions/MergeLeadershipSettingsParam'},
321 'required': ['params'],
323 'MergeLeadershipSettingsParam': {'additionalProperties': False,
324 'properties': {'application-tag': {'type': 'string'},
325 'settings': {'patternProperties': {'.*': {'type': 'string'}},
327 'unit-tag': {'type': 'string'}},
328 'required': ['settings'],
330 'MeterStatusResult': {'additionalProperties': False,
331 'properties': {'code': {'type': 'string'},
332 'error': {'$ref': '#/definitions/Error'},
333 'info': {'type': 'string'}},
334 'required': ['code', 'info'],
336 'MeterStatusResults': {'additionalProperties': False,
337 'properties': {'results': {'items': {'$ref': '#/definitions/MeterStatusResult'},
339 'required': ['results'],
341 'Metric': {'additionalProperties': False,
342 'properties': {'key': {'type': 'string'},
343 'labels': {'patternProperties': {'.*': {'type': 'string'}},
345 'time': {'format': 'date-time',
347 'value': {'type': 'string'}},
348 'required': ['key', 'value', 'time'],
350 'MetricBatch': {'additionalProperties': False,
351 'properties': {'charm-url': {'type': 'string'},
352 'created': {'format': 'date-time',
354 'metrics': {'items': {'$ref': '#/definitions/Metric'},
356 'uuid': {'type': 'string'}},
362 'MetricBatchParam': {'additionalProperties': False,
363 'properties': {'batch': {'$ref': '#/definitions/MetricBatch'},
364 'tag': {'type': 'string'}},
365 'required': ['tag', 'batch'],
367 'MetricBatchParams': {'additionalProperties': False,
368 'properties': {'batches': {'items': {'$ref': '#/definitions/MetricBatchParam'},
370 'required': ['batches'],
372 'ModelConfigResult': {'additionalProperties': False,
373 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
376 'required': ['config'],
378 'ModelResult': {'additionalProperties': False,
379 'properties': {'error': {'$ref': '#/definitions/Error'},
380 'name': {'type': 'string'},
381 'type': {'type': 'string'},
382 'uuid': {'type': 'string'}},
383 'required': ['name', 'uuid', 'type'],
385 'NetworkInfo': {'additionalProperties': False,
386 'properties': {'addresses': {'items': {'$ref': '#/definitions/InterfaceAddress'},
388 'interface-name': {'type': 'string'},
389 'mac-address': {'type': 'string'}},
390 'required': ['mac-address',
394 'NetworkInfoParams': {'additionalProperties': False,
395 'properties': {'bindings': {'items': {'type': 'string'},
397 'relation-id': {'type': 'integer'},
398 'unit': {'type': 'string'}},
399 'required': ['unit', 'bindings'],
401 'NetworkInfoResult': {'additionalProperties': False,
402 'properties': {'bind-addresses': {'items': {'$ref': '#/definitions/NetworkInfo'},
404 'egress-subnets': {'items': {'type': 'string'},
406 'error': {'$ref': '#/definitions/Error'},
407 'ingress-addresses': {'items': {'type': 'string'},
410 'NetworkInfoResults': {'additionalProperties': False,
411 'properties': {'results': {'patternProperties': {'.*': {'$ref': '#/definitions/NetworkInfoResult'}},
413 'required': ['results'],
415 'NotifyWatchResult': {'additionalProperties': False,
416 'properties': {'NotifyWatcherId': {'type': 'string'},
417 'error': {'$ref': '#/definitions/Error'}},
418 'required': ['NotifyWatcherId'],
420 'NotifyWatchResults': {'additionalProperties': False,
421 'properties': {'results': {'items': {'$ref': '#/definitions/NotifyWatchResult'},
423 'required': ['results'],
425 'PortRange': {'additionalProperties': False,
426 'properties': {'from-port': {'type': 'integer'},
427 'protocol': {'type': 'string'},
428 'to-port': {'type': 'integer'}},
429 'required': ['from-port', 'to-port', 'protocol'],
431 'RelationIds': {'additionalProperties': False,
432 'properties': {'relation-ids': {'items': {'type': 'integer'},
434 'required': ['relation-ids'],
436 'RelationResult': {'additionalProperties': False,
437 'properties': {'bool': {'type': 'boolean'},
438 'endpoint': {'$ref': '#/definitions/Endpoint'},
439 'error': {'$ref': '#/definitions/Error'},
440 'id': {'type': 'integer'},
441 'key': {'type': 'string'},
442 'life': {'type': 'string'},
443 'other-application': {'type': 'string'}},
449 'RelationResults': {'additionalProperties': False,
450 'properties': {'results': {'items': {'$ref': '#/definitions/RelationResult'},
452 'required': ['results'],
454 'RelationStatusArg': {'additionalProperties': False,
455 'properties': {'message': {'type': 'string'},
456 'relation-id': {'type': 'integer'},
457 'status': {'type': 'string'},
458 'unit-tag': {'type': 'string'}},
459 'required': ['unit-tag',
464 'RelationStatusArgs': {'additionalProperties': False,
465 'properties': {'args': {'items': {'$ref': '#/definitions/RelationStatusArg'},
467 'required': ['args'],
469 'RelationUnit': {'additionalProperties': False,
470 'properties': {'relation': {'type': 'string'},
471 'unit': {'type': 'string'}},
472 'required': ['relation', 'unit'],
474 'RelationUnitPair': {'additionalProperties': False,
475 'properties': {'local-unit': {'type': 'string'},
476 'relation': {'type': 'string'},
477 'remote-unit': {'type': 'string'}},
478 'required': ['relation',
482 'RelationUnitPairs': {'additionalProperties': False,
483 'properties': {'relation-unit-pairs': {'items': {'$ref': '#/definitions/RelationUnitPair'},
485 'required': ['relation-unit-pairs'],
487 'RelationUnitSettings': {'additionalProperties': False,
488 'properties': {'relation': {'type': 'string'},
489 'settings': {'patternProperties': {'.*': {'type': 'string'}},
491 'unit': {'type': 'string'}},
492 'required': ['relation',
496 'RelationUnitStatus': {'additionalProperties': False,
497 'properties': {'in-scope': {'type': 'boolean'},
498 'relation-tag': {'type': 'string'},
499 'suspended': {'type': 'boolean'}},
500 'required': ['relation-tag',
504 'RelationUnitStatusResult': {'additionalProperties': False,
505 'properties': {'error': {'$ref': '#/definitions/Error'},
506 'results': {'items': {'$ref': '#/definitions/RelationUnitStatus'},
508 'required': ['results'],
510 'RelationUnitStatusResults': {'additionalProperties': False,
511 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitStatusResult'},
513 'required': ['results'],
515 'RelationUnits': {'additionalProperties': False,
516 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnit'},
518 'required': ['relation-units'],
520 'RelationUnitsChange': {'additionalProperties': False,
521 'properties': {'changed': {'patternProperties': {'.*': {'$ref': '#/definitions/UnitSettings'}},
523 'departed': {'items': {'type': 'string'},
525 'required': ['changed'],
527 'RelationUnitsSettings': {'additionalProperties': False,
528 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnitSettings'},
530 'required': ['relation-units'],
532 'RelationUnitsWatchResult': {'additionalProperties': False,
533 'properties': {'changes': {'$ref': '#/definitions/RelationUnitsChange'},
534 'error': {'$ref': '#/definitions/Error'},
535 'watcher-id': {'type': 'string'}},
536 'required': ['watcher-id',
539 'RelationUnitsWatchResults': {'additionalProperties': False,
540 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitsWatchResult'},
542 'required': ['results'],
544 'ResolvedModeResult': {'additionalProperties': False,
545 'properties': {'error': {'$ref': '#/definitions/Error'},
546 'mode': {'type': 'string'}},
547 'required': ['mode'],
549 'ResolvedModeResults': {'additionalProperties': False,
550 'properties': {'results': {'items': {'$ref': '#/definitions/ResolvedModeResult'},
552 'required': ['results'],
554 'SetPodSpecParams': {'additionalProperties': False,
555 'properties': {'specs': {'items': {'$ref': '#/definitions/EntityString'},
557 'required': ['specs'],
559 'SetStatus': {'additionalProperties': False,
560 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityStatusArgs'},
562 'required': ['entities'],
564 'SettingsResult': {'additionalProperties': False,
565 'properties': {'error': {'$ref': '#/definitions/Error'},
566 'settings': {'patternProperties': {'.*': {'type': 'string'}},
568 'required': ['settings'],
570 'SettingsResults': {'additionalProperties': False,
571 'properties': {'results': {'items': {'$ref': '#/definitions/SettingsResult'},
573 'required': ['results'],
575 'StatusResult': {'additionalProperties': False,
576 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
579 'error': {'$ref': '#/definitions/Error'},
580 'id': {'type': 'string'},
581 'info': {'type': 'string'},
582 'life': {'type': 'string'},
583 'since': {'format': 'date-time',
585 'status': {'type': 'string'}},
593 'StatusResults': {'additionalProperties': False,
594 'properties': {'results': {'items': {'$ref': '#/definitions/StatusResult'},
596 'required': ['results'],
598 'StorageAddParams': {'additionalProperties': False,
599 'properties': {'name': {'type': 'string'},
600 'storage': {'$ref': '#/definitions/StorageConstraints'},
601 'unit': {'type': 'string'}},
602 'required': ['unit', 'name', 'storage'],
604 'StorageAttachment': {'additionalProperties': False,
605 'properties': {'kind': {'type': 'integer'},
606 'life': {'type': 'string'},
607 'location': {'type': 'string'},
608 'owner-tag': {'type': 'string'},
609 'storage-tag': {'type': 'string'},
610 'unit-tag': {'type': 'string'}},
611 'required': ['storage-tag',
618 'StorageAttachmentId': {'additionalProperties': False,
619 'properties': {'storage-tag': {'type': 'string'},
620 'unit-tag': {'type': 'string'}},
621 'required': ['storage-tag',
624 'StorageAttachmentIds': {'additionalProperties': False,
625 'properties': {'ids': {'items': {'$ref': '#/definitions/StorageAttachmentId'},
629 'StorageAttachmentIdsResult': {'additionalProperties': False,
630 'properties': {'error': {'$ref': '#/definitions/Error'},
631 'result': {'$ref': '#/definitions/StorageAttachmentIds'}},
632 'required': ['result'],
634 'StorageAttachmentIdsResults': {'additionalProperties': False,
635 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentIdsResult'},
638 'StorageAttachmentResult': {'additionalProperties': False,
639 'properties': {'error': {'$ref': '#/definitions/Error'},
640 'result': {'$ref': '#/definitions/StorageAttachment'}},
641 'required': ['result'],
643 'StorageAttachmentResults': {'additionalProperties': False,
644 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentResult'},
647 'StorageConstraints': {'additionalProperties': False,
648 'properties': {'count': {'type': 'integer'},
649 'pool': {'type': 'string'},
650 'size': {'type': 'integer'}},
652 'StoragesAddParams': {'additionalProperties': False,
653 'properties': {'storages': {'items': {'$ref': '#/definitions/StorageAddParams'},
655 'required': ['storages'],
657 'StringBoolResult': {'additionalProperties': False,
658 'properties': {'error': {'$ref': '#/definitions/Error'},
659 'ok': {'type': 'boolean'},
660 'result': {'type': 'string'}},
661 'required': ['result', 'ok'],
663 'StringBoolResults': {'additionalProperties': False,
664 'properties': {'results': {'items': {'$ref': '#/definitions/StringBoolResult'},
666 'required': ['results'],
668 'StringResult': {'additionalProperties': False,
669 'properties': {'error': {'$ref': '#/definitions/Error'},
670 'result': {'type': 'string'}},
671 'required': ['result'],
673 'StringResults': {'additionalProperties': False,
674 'properties': {'results': {'items': {'$ref': '#/definitions/StringResult'},
676 'required': ['results'],
678 'StringsResult': {'additionalProperties': False,
679 'properties': {'error': {'$ref': '#/definitions/Error'},
680 'result': {'items': {'type': 'string'},
683 'StringsWatchResult': {'additionalProperties': False,
684 'properties': {'changes': {'items': {'type': 'string'},
686 'error': {'$ref': '#/definitions/Error'},
687 'watcher-id': {'type': 'string'}},
688 'required': ['watcher-id'],
690 'StringsWatchResults': {'additionalProperties': False,
691 'properties': {'results': {'items': {'$ref': '#/definitions/StringsWatchResult'},
693 'required': ['results'],
695 'UnitRefreshResult': {'additionalProperties': False,
696 'properties': {'Error': {'$ref': '#/definitions/Error'},
697 'Life': {'type': 'string'},
698 'Resolved': {'type': 'string'}},
703 'UnitRefreshResults': {'additionalProperties': False,
704 'properties': {'Results': {'items': {'$ref': '#/definitions/UnitRefreshResult'},
706 'required': ['Results'],
708 'UnitSettings': {'additionalProperties': False,
709 'properties': {'version': {'type': 'integer'}},
710 'required': ['version'],
712 'UpgradeSeriesStatusParam': {'additionalProperties': False,
713 'properties': {'entity': {'$ref': '#/definitions/Entity'},
714 'message': {'type': 'string'},
715 'status': {'type': 'string'}},
716 'required': ['entity',
720 'UpgradeSeriesStatusParams': {'additionalProperties': False,
721 'properties': {'params': {'items': {'$ref': '#/definitions/UpgradeSeriesStatusParam'},
723 'required': ['params'],
725 'UpgradeSeriesStatusResult': {'additionalProperties': False,
726 'properties': {'error': {'$ref': '#/definitions/Error'},
727 'status': {'type': 'string'}},
729 'UpgradeSeriesStatusResults': {'additionalProperties': False,
730 'properties': {'results': {'items': {'$ref': '#/definitions/UpgradeSeriesStatusResult'},
733 'properties': {'APIAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
735 'APIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/APIHostPortsResult'}},
737 'Actions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
738 'Result': {'$ref': '#/definitions/ActionResults'}},
740 'AddMetricBatches': {'properties': {'Params': {'$ref': '#/definitions/MetricBatchParams'},
741 'Result': {'$ref': '#/definitions/ErrorResults'}},
743 'AddUnitStorage': {'properties': {'Params': {'$ref': '#/definitions/StoragesAddParams'},
744 'Result': {'$ref': '#/definitions/ErrorResults'}},
746 'AllMachinePorts': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
747 'Result': {'$ref': '#/definitions/MachinePortsResults'}},
749 'ApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
750 'Result': {'$ref': '#/definitions/ApplicationStatusResults'}},
752 'AssignedMachine': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
753 'Result': {'$ref': '#/definitions/StringResults'}},
755 'AvailabilityZone': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
756 'Result': {'$ref': '#/definitions/StringResults'}},
758 'BeginActions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
759 'Result': {'$ref': '#/definitions/ErrorResults'}},
761 'CharmArchiveSha256': {'properties': {'Params': {'$ref': '#/definitions/CharmURLs'},
762 'Result': {'$ref': '#/definitions/StringResults'}},
764 'CharmModifiedVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
765 'Result': {'$ref': '#/definitions/IntResults'}},
767 'CharmURL': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
768 'Result': {'$ref': '#/definitions/StringBoolResults'}},
770 'ClearResolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
771 'Result': {'$ref': '#/definitions/ErrorResults'}},
773 'ClosePorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
774 'Result': {'$ref': '#/definitions/ErrorResults'}},
776 'CloudSpec': {'properties': {'Result': {'$ref': '#/definitions/CloudSpecResult'}},
778 'ConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
779 'Result': {'$ref': '#/definitions/ConfigSettingsResults'}},
781 'CurrentModel': {'properties': {'Result': {'$ref': '#/definitions/ModelResult'}},
783 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
784 'Result': {'$ref': '#/definitions/ErrorResults'}},
786 'DestroyAllSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
787 'Result': {'$ref': '#/definitions/ErrorResults'}},
789 'DestroyUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
790 'Result': {'$ref': '#/definitions/ErrorResults'}},
792 'EnsureDead': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
793 'Result': {'$ref': '#/definitions/ErrorResults'}},
795 'EnterScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
796 'Result': {'$ref': '#/definitions/ErrorResults'}},
798 'FinishActions': {'properties': {'Params': {'$ref': '#/definitions/ActionExecutionResults'},
799 'Result': {'$ref': '#/definitions/ErrorResults'}},
801 'GetMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
802 'Result': {'$ref': '#/definitions/MeterStatusResults'}},
804 'GetPrincipal': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
805 'Result': {'$ref': '#/definitions/StringBoolResults'}},
807 'GoalStates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
808 'Result': {'$ref': '#/definitions/GoalStateResults'}},
810 'HasSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
811 'Result': {'$ref': '#/definitions/BoolResults'}},
813 'LeaveScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
814 'Result': {'$ref': '#/definitions/ErrorResults'}},
816 'Life': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
817 'Result': {'$ref': '#/definitions/LifeResults'}},
819 'Merge': {'properties': {'Params': {'$ref': '#/definitions/MergeLeadershipSettingsBulkParams'},
820 'Result': {'$ref': '#/definitions/ErrorResults'}},
822 'ModelConfig': {'properties': {'Result': {'$ref': '#/definitions/ModelConfigResult'}},
824 'ModelUUID': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
826 'NetworkInfo': {'properties': {'Params': {'$ref': '#/definitions/NetworkInfoParams'},
827 'Result': {'$ref': '#/definitions/NetworkInfoResults'}},
829 'OpenPorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
830 'Result': {'$ref': '#/definitions/ErrorResults'}},
832 'PrivateAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
833 'Result': {'$ref': '#/definitions/StringResults'}},
835 'ProviderType': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
837 'PublicAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
838 'Result': {'$ref': '#/definitions/StringResults'}},
840 'Read': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
841 'Result': {'$ref': '#/definitions/GetLeadershipSettingsBulkResults'}},
843 'ReadRemoteSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitPairs'},
844 'Result': {'$ref': '#/definitions/SettingsResults'}},
846 'ReadSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
847 'Result': {'$ref': '#/definitions/SettingsResults'}},
849 'Refresh': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
850 'Result': {'$ref': '#/definitions/UnitRefreshResults'}},
852 'Relation': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
853 'Result': {'$ref': '#/definitions/RelationResults'}},
855 'RelationById': {'properties': {'Params': {'$ref': '#/definitions/RelationIds'},
856 'Result': {'$ref': '#/definitions/RelationResults'}},
858 'RelationsStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
859 'Result': {'$ref': '#/definitions/RelationUnitStatusResults'}},
861 'RemoveStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
862 'Result': {'$ref': '#/definitions/ErrorResults'}},
864 'RequestReboot': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
865 'Result': {'$ref': '#/definitions/ErrorResults'}},
867 'Resolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
868 'Result': {'$ref': '#/definitions/ResolvedModeResults'}},
870 'SLALevel': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
872 'SetAgentStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
873 'Result': {'$ref': '#/definitions/ErrorResults'}},
875 'SetApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
876 'Result': {'$ref': '#/definitions/ErrorResults'}},
878 'SetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/EntitiesCharmURL'},
879 'Result': {'$ref': '#/definitions/ErrorResults'}},
881 'SetPodSpec': {'properties': {'Params': {'$ref': '#/definitions/SetPodSpecParams'},
882 'Result': {'$ref': '#/definitions/ErrorResults'}},
884 'SetRelationStatus': {'properties': {'Params': {'$ref': '#/definitions/RelationStatusArgs'},
885 'Result': {'$ref': '#/definitions/ErrorResults'}},
887 'SetStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
888 'Result': {'$ref': '#/definitions/ErrorResults'}},
890 'SetUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
891 'Result': {'$ref': '#/definitions/ErrorResults'}},
893 'SetUpgradeSeriesUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/UpgradeSeriesStatusParams'},
894 'Result': {'$ref': '#/definitions/ErrorResults'}},
896 'SetWorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/EntityWorkloadVersions'},
897 'Result': {'$ref': '#/definitions/ErrorResults'}},
899 'StorageAttachmentLife': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
900 'Result': {'$ref': '#/definitions/LifeResults'}},
902 'StorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
903 'Result': {'$ref': '#/definitions/StorageAttachmentResults'}},
905 'UnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
906 'Result': {'$ref': '#/definitions/StatusResults'}},
908 'UnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
909 'Result': {'$ref': '#/definitions/StorageAttachmentIdsResults'}},
911 'UpdateSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitsSettings'},
912 'Result': {'$ref': '#/definitions/ErrorResults'}},
914 'UpgradeSeriesUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
915 'Result': {'$ref': '#/definitions/UpgradeSeriesStatusResults'}},
917 'Watch': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
918 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
920 'WatchAPIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
922 'WatchActionNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
923 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
925 'WatchConfigSettingsHash': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
926 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
928 'WatchForModelConfigChanges': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
930 'WatchLeadershipSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
931 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
933 'WatchMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
934 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
936 'WatchRelationUnits': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
937 'Result': {'$ref': '#/definitions/RelationUnitsWatchResults'}},
939 'WatchStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
940 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
942 'WatchTrustConfigSettingsHash': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
943 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
945 'WatchUnitAddressesHash': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
946 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
948 'WatchUnitRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
949 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
951 'WatchUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
952 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
954 'WatchUpgradeSeriesNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
955 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
957 'WorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
958 'Result': {'$ref': '#/definitions/StringResults'}},
963 @ReturnMapping(StringsResult
)
964 async def APIAddresses(self
):
967 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence[str]]
969 # map input types to rpc msg
971 msg
= dict(type='Uniter',
972 request
='APIAddresses',
976 reply
= await self
.rpc(msg
)
981 @ReturnMapping(APIHostPortsResult
)
982 async def APIHostPorts(self
):
985 Returns -> typing.Sequence[~HostPort]
987 # map input types to rpc msg
989 msg
= dict(type='Uniter',
990 request
='APIHostPorts',
994 reply
= await self
.rpc(msg
)
999 @ReturnMapping(ActionResults
)
1000 async def Actions(self
, entities
):
1002 entities : typing.Sequence[~Entity]
1003 Returns -> typing.Sequence[~ActionResult]
1005 # map input types to rpc msg
1007 msg
= dict(type='Uniter',
1011 _params
['entities'] = entities
1012 reply
= await self
.rpc(msg
)
1017 @ReturnMapping(ErrorResults
)
1018 async def AddMetricBatches(self
, batches
):
1020 batches : typing.Sequence[~MetricBatchParam]
1021 Returns -> typing.Sequence[~ErrorResult]
1023 # map input types to rpc msg
1025 msg
= dict(type='Uniter',
1026 request
='AddMetricBatches',
1029 _params
['batches'] = batches
1030 reply
= await self
.rpc(msg
)
1035 @ReturnMapping(ErrorResults
)
1036 async def AddUnitStorage(self
, storages
):
1038 storages : typing.Sequence[~StorageAddParams]
1039 Returns -> typing.Sequence[~ErrorResult]
1041 # map input types to rpc msg
1043 msg
= dict(type='Uniter',
1044 request
='AddUnitStorage',
1047 _params
['storages'] = storages
1048 reply
= await self
.rpc(msg
)
1053 @ReturnMapping(MachinePortsResults
)
1054 async def AllMachinePorts(self
, entities
):
1056 entities : typing.Sequence[~Entity]
1057 Returns -> typing.Sequence[~MachinePortsResult]
1059 # map input types to rpc msg
1061 msg
= dict(type='Uniter',
1062 request
='AllMachinePorts',
1065 _params
['entities'] = entities
1066 reply
= await self
.rpc(msg
)
1071 @ReturnMapping(ApplicationStatusResults
)
1072 async def ApplicationStatus(self
, entities
):
1074 entities : typing.Sequence[~Entity]
1075 Returns -> typing.Sequence[~ApplicationStatusResult]
1077 # map input types to rpc msg
1079 msg
= dict(type='Uniter',
1080 request
='ApplicationStatus',
1083 _params
['entities'] = entities
1084 reply
= await self
.rpc(msg
)
1089 @ReturnMapping(StringResults
)
1090 async def AssignedMachine(self
, entities
):
1092 entities : typing.Sequence[~Entity]
1093 Returns -> typing.Sequence[~StringResult]
1095 # map input types to rpc msg
1097 msg
= dict(type='Uniter',
1098 request
='AssignedMachine',
1101 _params
['entities'] = entities
1102 reply
= await self
.rpc(msg
)
1107 @ReturnMapping(StringResults
)
1108 async def AvailabilityZone(self
, entities
):
1110 entities : typing.Sequence[~Entity]
1111 Returns -> typing.Sequence[~StringResult]
1113 # map input types to rpc msg
1115 msg
= dict(type='Uniter',
1116 request
='AvailabilityZone',
1119 _params
['entities'] = entities
1120 reply
= await self
.rpc(msg
)
1125 @ReturnMapping(ErrorResults
)
1126 async def BeginActions(self
, entities
):
1128 entities : typing.Sequence[~Entity]
1129 Returns -> typing.Sequence[~ErrorResult]
1131 # map input types to rpc msg
1133 msg
= dict(type='Uniter',
1134 request
='BeginActions',
1137 _params
['entities'] = entities
1138 reply
= await self
.rpc(msg
)
1143 @ReturnMapping(StringResults
)
1144 async def CharmArchiveSha256(self
, urls
):
1146 urls : typing.Sequence[~CharmURL]
1147 Returns -> typing.Sequence[~StringResult]
1149 # map input types to rpc msg
1151 msg
= dict(type='Uniter',
1152 request
='CharmArchiveSha256',
1155 _params
['urls'] = urls
1156 reply
= await self
.rpc(msg
)
1161 @ReturnMapping(IntResults
)
1162 async def CharmModifiedVersion(self
, entities
):
1164 entities : typing.Sequence[~Entity]
1165 Returns -> typing.Sequence[~IntResult]
1167 # map input types to rpc msg
1169 msg
= dict(type='Uniter',
1170 request
='CharmModifiedVersion',
1173 _params
['entities'] = entities
1174 reply
= await self
.rpc(msg
)
1179 @ReturnMapping(StringBoolResults
)
1180 async def CharmURL(self
, entities
):
1182 entities : typing.Sequence[~Entity]
1183 Returns -> typing.Sequence[~StringBoolResult]
1185 # map input types to rpc msg
1187 msg
= dict(type='Uniter',
1191 _params
['entities'] = entities
1192 reply
= await self
.rpc(msg
)
1197 @ReturnMapping(ErrorResults
)
1198 async def ClearResolved(self
, entities
):
1200 entities : typing.Sequence[~Entity]
1201 Returns -> typing.Sequence[~ErrorResult]
1203 # map input types to rpc msg
1205 msg
= dict(type='Uniter',
1206 request
='ClearResolved',
1209 _params
['entities'] = entities
1210 reply
= await self
.rpc(msg
)
1215 @ReturnMapping(ErrorResults
)
1216 async def ClosePorts(self
, entities
):
1218 entities : typing.Sequence[~EntityPortRange]
1219 Returns -> typing.Sequence[~ErrorResult]
1221 # map input types to rpc msg
1223 msg
= dict(type='Uniter',
1224 request
='ClosePorts',
1227 _params
['entities'] = entities
1228 reply
= await self
.rpc(msg
)
1233 @ReturnMapping(CloudSpecResult
)
1234 async def CloudSpec(self
):
1237 Returns -> typing.Union[_ForwardRef('Error'), _ForwardRef('CloudSpec')]
1239 # map input types to rpc msg
1241 msg
= dict(type='Uniter',
1242 request
='CloudSpec',
1246 reply
= await self
.rpc(msg
)
1251 @ReturnMapping(ConfigSettingsResults
)
1252 async def ConfigSettings(self
, entities
):
1254 entities : typing.Sequence[~Entity]
1255 Returns -> typing.Sequence[~ConfigSettingsResult]
1257 # map input types to rpc msg
1259 msg
= dict(type='Uniter',
1260 request
='ConfigSettings',
1263 _params
['entities'] = entities
1264 reply
= await self
.rpc(msg
)
1269 @ReturnMapping(ModelResult
)
1270 async def CurrentModel(self
):
1273 Returns -> typing.Union[_ForwardRef('Error'), str]
1275 # map input types to rpc msg
1277 msg
= dict(type='Uniter',
1278 request
='CurrentModel',
1282 reply
= await self
.rpc(msg
)
1287 @ReturnMapping(ErrorResults
)
1288 async def Destroy(self
, entities
):
1290 entities : typing.Sequence[~Entity]
1291 Returns -> typing.Sequence[~ErrorResult]
1293 # map input types to rpc msg
1295 msg
= dict(type='Uniter',
1299 _params
['entities'] = entities
1300 reply
= await self
.rpc(msg
)
1305 @ReturnMapping(ErrorResults
)
1306 async def DestroyAllSubordinates(self
, entities
):
1308 entities : typing.Sequence[~Entity]
1309 Returns -> typing.Sequence[~ErrorResult]
1311 # map input types to rpc msg
1313 msg
= dict(type='Uniter',
1314 request
='DestroyAllSubordinates',
1317 _params
['entities'] = entities
1318 reply
= await self
.rpc(msg
)
1323 @ReturnMapping(ErrorResults
)
1324 async def DestroyUnitStorageAttachments(self
, entities
):
1326 entities : typing.Sequence[~Entity]
1327 Returns -> typing.Sequence[~ErrorResult]
1329 # map input types to rpc msg
1331 msg
= dict(type='Uniter',
1332 request
='DestroyUnitStorageAttachments',
1335 _params
['entities'] = entities
1336 reply
= await self
.rpc(msg
)
1341 @ReturnMapping(ErrorResults
)
1342 async def EnsureDead(self
, entities
):
1344 entities : typing.Sequence[~Entity]
1345 Returns -> typing.Sequence[~ErrorResult]
1347 # map input types to rpc msg
1349 msg
= dict(type='Uniter',
1350 request
='EnsureDead',
1353 _params
['entities'] = entities
1354 reply
= await self
.rpc(msg
)
1359 @ReturnMapping(ErrorResults
)
1360 async def EnterScope(self
, relation_units
):
1362 relation_units : typing.Sequence[~RelationUnit]
1363 Returns -> typing.Sequence[~ErrorResult]
1365 # map input types to rpc msg
1367 msg
= dict(type='Uniter',
1368 request
='EnterScope',
1371 _params
['relation-units'] = relation_units
1372 reply
= await self
.rpc(msg
)
1377 @ReturnMapping(ErrorResults
)
1378 async def FinishActions(self
, results
):
1380 results : typing.Sequence[~ActionExecutionResult]
1381 Returns -> typing.Sequence[~ErrorResult]
1383 # map input types to rpc msg
1385 msg
= dict(type='Uniter',
1386 request
='FinishActions',
1389 _params
['results'] = results
1390 reply
= await self
.rpc(msg
)
1395 @ReturnMapping(MeterStatusResults
)
1396 async def GetMeterStatus(self
, entities
):
1398 entities : typing.Sequence[~Entity]
1399 Returns -> typing.Sequence[~MeterStatusResult]
1401 # map input types to rpc msg
1403 msg
= dict(type='Uniter',
1404 request
='GetMeterStatus',
1407 _params
['entities'] = entities
1408 reply
= await self
.rpc(msg
)
1413 @ReturnMapping(StringBoolResults
)
1414 async def GetPrincipal(self
, entities
):
1416 entities : typing.Sequence[~Entity]
1417 Returns -> typing.Sequence[~StringBoolResult]
1419 # map input types to rpc msg
1421 msg
= dict(type='Uniter',
1422 request
='GetPrincipal',
1425 _params
['entities'] = entities
1426 reply
= await self
.rpc(msg
)
1431 @ReturnMapping(GoalStateResults
)
1432 async def GoalStates(self
, entities
):
1434 entities : typing.Sequence[~Entity]
1435 Returns -> typing.Sequence[~GoalStateResult]
1437 # map input types to rpc msg
1439 msg
= dict(type='Uniter',
1440 request
='GoalStates',
1443 _params
['entities'] = entities
1444 reply
= await self
.rpc(msg
)
1449 @ReturnMapping(BoolResults
)
1450 async def HasSubordinates(self
, entities
):
1452 entities : typing.Sequence[~Entity]
1453 Returns -> typing.Sequence[~BoolResult]
1455 # map input types to rpc msg
1457 msg
= dict(type='Uniter',
1458 request
='HasSubordinates',
1461 _params
['entities'] = entities
1462 reply
= await self
.rpc(msg
)
1467 @ReturnMapping(ErrorResults
)
1468 async def LeaveScope(self
, relation_units
):
1470 relation_units : typing.Sequence[~RelationUnit]
1471 Returns -> typing.Sequence[~ErrorResult]
1473 # map input types to rpc msg
1475 msg
= dict(type='Uniter',
1476 request
='LeaveScope',
1479 _params
['relation-units'] = relation_units
1480 reply
= await self
.rpc(msg
)
1485 @ReturnMapping(LifeResults
)
1486 async def Life(self
, entities
):
1488 entities : typing.Sequence[~Entity]
1489 Returns -> typing.Sequence[~LifeResult]
1491 # map input types to rpc msg
1493 msg
= dict(type='Uniter',
1497 _params
['entities'] = entities
1498 reply
= await self
.rpc(msg
)
1503 @ReturnMapping(ErrorResults
)
1504 async def Merge(self
, params
):
1506 params : typing.Sequence[~MergeLeadershipSettingsParam]
1507 Returns -> typing.Sequence[~ErrorResult]
1509 # map input types to rpc msg
1511 msg
= dict(type='Uniter',
1515 _params
['params'] = params
1516 reply
= await self
.rpc(msg
)
1521 @ReturnMapping(ModelConfigResult
)
1522 async def ModelConfig(self
):
1525 Returns -> typing.Mapping[str, typing.Any]
1527 # map input types to rpc msg
1529 msg
= dict(type='Uniter',
1530 request
='ModelConfig',
1534 reply
= await self
.rpc(msg
)
1539 @ReturnMapping(StringResult
)
1540 async def ModelUUID(self
):
1543 Returns -> typing.Union[_ForwardRef('Error'), str]
1545 # map input types to rpc msg
1547 msg
= dict(type='Uniter',
1548 request
='ModelUUID',
1552 reply
= await self
.rpc(msg
)
1557 @ReturnMapping(NetworkInfoResults
)
1558 async def NetworkInfo(self
, bindings
, unit
):
1560 bindings : typing.Sequence[str]
1562 Returns -> typing.Mapping[str, ~NetworkInfoResult]
1564 # map input types to rpc msg
1566 msg
= dict(type='Uniter',
1567 request
='NetworkInfo',
1570 _params
['bindings'] = bindings
1571 _params
['unit'] = unit
1572 reply
= await self
.rpc(msg
)
1577 @ReturnMapping(ErrorResults
)
1578 async def OpenPorts(self
, entities
):
1580 entities : typing.Sequence[~EntityPortRange]
1581 Returns -> typing.Sequence[~ErrorResult]
1583 # map input types to rpc msg
1585 msg
= dict(type='Uniter',
1586 request
='OpenPorts',
1589 _params
['entities'] = entities
1590 reply
= await self
.rpc(msg
)
1595 @ReturnMapping(StringResults
)
1596 async def PrivateAddress(self
, entities
):
1598 entities : typing.Sequence[~Entity]
1599 Returns -> typing.Sequence[~StringResult]
1601 # map input types to rpc msg
1603 msg
= dict(type='Uniter',
1604 request
='PrivateAddress',
1607 _params
['entities'] = entities
1608 reply
= await self
.rpc(msg
)
1613 @ReturnMapping(StringResult
)
1614 async def ProviderType(self
):
1617 Returns -> typing.Union[_ForwardRef('Error'), str]
1619 # map input types to rpc msg
1621 msg
= dict(type='Uniter',
1622 request
='ProviderType',
1626 reply
= await self
.rpc(msg
)
1631 @ReturnMapping(StringResults
)
1632 async def PublicAddress(self
, entities
):
1634 entities : typing.Sequence[~Entity]
1635 Returns -> typing.Sequence[~StringResult]
1637 # map input types to rpc msg
1639 msg
= dict(type='Uniter',
1640 request
='PublicAddress',
1643 _params
['entities'] = entities
1644 reply
= await self
.rpc(msg
)
1649 @ReturnMapping(GetLeadershipSettingsBulkResults
)
1650 async def Read(self
, entities
):
1652 entities : typing.Sequence[~Entity]
1653 Returns -> typing.Sequence[~GetLeadershipSettingsResult]
1655 # map input types to rpc msg
1657 msg
= dict(type='Uniter',
1661 _params
['entities'] = entities
1662 reply
= await self
.rpc(msg
)
1667 @ReturnMapping(SettingsResults
)
1668 async def ReadRemoteSettings(self
, relation_unit_pairs
):
1670 relation_unit_pairs : typing.Sequence[~RelationUnitPair]
1671 Returns -> typing.Sequence[~SettingsResult]
1673 # map input types to rpc msg
1675 msg
= dict(type='Uniter',
1676 request
='ReadRemoteSettings',
1679 _params
['relation-unit-pairs'] = relation_unit_pairs
1680 reply
= await self
.rpc(msg
)
1685 @ReturnMapping(SettingsResults
)
1686 async def ReadSettings(self
, relation_units
):
1688 relation_units : typing.Sequence[~RelationUnit]
1689 Returns -> typing.Sequence[~SettingsResult]
1691 # map input types to rpc msg
1693 msg
= dict(type='Uniter',
1694 request
='ReadSettings',
1697 _params
['relation-units'] = relation_units
1698 reply
= await self
.rpc(msg
)
1703 @ReturnMapping(UnitRefreshResults
)
1704 async def Refresh(self
, entities
):
1706 entities : typing.Sequence[~Entity]
1707 Returns -> typing.Sequence[~UnitRefreshResult]
1709 # map input types to rpc msg
1711 msg
= dict(type='Uniter',
1715 _params
['entities'] = entities
1716 reply
= await self
.rpc(msg
)
1721 @ReturnMapping(RelationResults
)
1722 async def Relation(self
, relation_units
):
1724 relation_units : typing.Sequence[~RelationUnit]
1725 Returns -> typing.Sequence[~RelationResult]
1727 # map input types to rpc msg
1729 msg
= dict(type='Uniter',
1733 _params
['relation-units'] = relation_units
1734 reply
= await self
.rpc(msg
)
1739 @ReturnMapping(RelationResults
)
1740 async def RelationById(self
, relation_ids
):
1742 relation_ids : typing.Sequence[int]
1743 Returns -> typing.Sequence[~RelationResult]
1745 # map input types to rpc msg
1747 msg
= dict(type='Uniter',
1748 request
='RelationById',
1751 _params
['relation-ids'] = relation_ids
1752 reply
= await self
.rpc(msg
)
1757 @ReturnMapping(RelationUnitStatusResults
)
1758 async def RelationsStatus(self
, entities
):
1760 entities : typing.Sequence[~Entity]
1761 Returns -> typing.Sequence[~RelationUnitStatusResult]
1763 # map input types to rpc msg
1765 msg
= dict(type='Uniter',
1766 request
='RelationsStatus',
1769 _params
['entities'] = entities
1770 reply
= await self
.rpc(msg
)
1775 @ReturnMapping(ErrorResults
)
1776 async def RemoveStorageAttachments(self
, ids
):
1778 ids : typing.Sequence[~StorageAttachmentId]
1779 Returns -> typing.Sequence[~ErrorResult]
1781 # map input types to rpc msg
1783 msg
= dict(type='Uniter',
1784 request
='RemoveStorageAttachments',
1787 _params
['ids'] = ids
1788 reply
= await self
.rpc(msg
)
1793 @ReturnMapping(ErrorResults
)
1794 async def RequestReboot(self
, entities
):
1796 entities : typing.Sequence[~Entity]
1797 Returns -> typing.Sequence[~ErrorResult]
1799 # map input types to rpc msg
1801 msg
= dict(type='Uniter',
1802 request
='RequestReboot',
1805 _params
['entities'] = entities
1806 reply
= await self
.rpc(msg
)
1811 @ReturnMapping(ResolvedModeResults
)
1812 async def Resolved(self
, entities
):
1814 entities : typing.Sequence[~Entity]
1815 Returns -> typing.Sequence[~ResolvedModeResult]
1817 # map input types to rpc msg
1819 msg
= dict(type='Uniter',
1823 _params
['entities'] = entities
1824 reply
= await self
.rpc(msg
)
1829 @ReturnMapping(StringResult
)
1830 async def SLALevel(self
):
1833 Returns -> typing.Union[_ForwardRef('Error'), str]
1835 # map input types to rpc msg
1837 msg
= dict(type='Uniter',
1842 reply
= await self
.rpc(msg
)
1847 @ReturnMapping(ErrorResults
)
1848 async def SetAgentStatus(self
, entities
):
1850 entities : typing.Sequence[~EntityStatusArgs]
1851 Returns -> typing.Sequence[~ErrorResult]
1853 # map input types to rpc msg
1855 msg
= dict(type='Uniter',
1856 request
='SetAgentStatus',
1859 _params
['entities'] = entities
1860 reply
= await self
.rpc(msg
)
1865 @ReturnMapping(ErrorResults
)
1866 async def SetApplicationStatus(self
, entities
):
1868 entities : typing.Sequence[~EntityStatusArgs]
1869 Returns -> typing.Sequence[~ErrorResult]
1871 # map input types to rpc msg
1873 msg
= dict(type='Uniter',
1874 request
='SetApplicationStatus',
1877 _params
['entities'] = entities
1878 reply
= await self
.rpc(msg
)
1883 @ReturnMapping(ErrorResults
)
1884 async def SetCharmURL(self
, entities
):
1886 entities : typing.Sequence[~EntityCharmURL]
1887 Returns -> typing.Sequence[~ErrorResult]
1889 # map input types to rpc msg
1891 msg
= dict(type='Uniter',
1892 request
='SetCharmURL',
1895 _params
['entities'] = entities
1896 reply
= await self
.rpc(msg
)
1901 @ReturnMapping(ErrorResults
)
1902 async def SetPodSpec(self
, specs
):
1904 specs : typing.Sequence[~EntityString]
1905 Returns -> typing.Sequence[~ErrorResult]
1907 # map input types to rpc msg
1909 msg
= dict(type='Uniter',
1910 request
='SetPodSpec',
1913 _params
['specs'] = specs
1914 reply
= await self
.rpc(msg
)
1919 @ReturnMapping(ErrorResults
)
1920 async def SetRelationStatus(self
, args
):
1922 args : typing.Sequence[~RelationStatusArg]
1923 Returns -> typing.Sequence[~ErrorResult]
1925 # map input types to rpc msg
1927 msg
= dict(type='Uniter',
1928 request
='SetRelationStatus',
1931 _params
['args'] = args
1932 reply
= await self
.rpc(msg
)
1937 @ReturnMapping(ErrorResults
)
1938 async def SetStatus(self
, entities
):
1940 entities : typing.Sequence[~EntityStatusArgs]
1941 Returns -> typing.Sequence[~ErrorResult]
1943 # map input types to rpc msg
1945 msg
= dict(type='Uniter',
1946 request
='SetStatus',
1949 _params
['entities'] = entities
1950 reply
= await self
.rpc(msg
)
1955 @ReturnMapping(ErrorResults
)
1956 async def SetUnitStatus(self
, entities
):
1958 entities : typing.Sequence[~EntityStatusArgs]
1959 Returns -> typing.Sequence[~ErrorResult]
1961 # map input types to rpc msg
1963 msg
= dict(type='Uniter',
1964 request
='SetUnitStatus',
1967 _params
['entities'] = entities
1968 reply
= await self
.rpc(msg
)
1973 @ReturnMapping(ErrorResults
)
1974 async def SetUpgradeSeriesUnitStatus(self
, params
):
1976 params : typing.Sequence[~UpgradeSeriesStatusParam]
1977 Returns -> typing.Sequence[~ErrorResult]
1979 # map input types to rpc msg
1981 msg
= dict(type='Uniter',
1982 request
='SetUpgradeSeriesUnitStatus',
1985 _params
['params'] = params
1986 reply
= await self
.rpc(msg
)
1991 @ReturnMapping(ErrorResults
)
1992 async def SetWorkloadVersion(self
, entities
):
1994 entities : typing.Sequence[~EntityWorkloadVersion]
1995 Returns -> typing.Sequence[~ErrorResult]
1997 # map input types to rpc msg
1999 msg
= dict(type='Uniter',
2000 request
='SetWorkloadVersion',
2003 _params
['entities'] = entities
2004 reply
= await self
.rpc(msg
)
2009 @ReturnMapping(LifeResults
)
2010 async def StorageAttachmentLife(self
, ids
):
2012 ids : typing.Sequence[~StorageAttachmentId]
2013 Returns -> typing.Sequence[~LifeResult]
2015 # map input types to rpc msg
2017 msg
= dict(type='Uniter',
2018 request
='StorageAttachmentLife',
2021 _params
['ids'] = ids
2022 reply
= await self
.rpc(msg
)
2027 @ReturnMapping(StorageAttachmentResults
)
2028 async def StorageAttachments(self
, ids
):
2030 ids : typing.Sequence[~StorageAttachmentId]
2031 Returns -> typing.Sequence[~StorageAttachmentResult]
2033 # map input types to rpc msg
2035 msg
= dict(type='Uniter',
2036 request
='StorageAttachments',
2039 _params
['ids'] = ids
2040 reply
= await self
.rpc(msg
)
2045 @ReturnMapping(StatusResults
)
2046 async def UnitStatus(self
, entities
):
2048 entities : typing.Sequence[~Entity]
2049 Returns -> typing.Sequence[~StatusResult]
2051 # map input types to rpc msg
2053 msg
= dict(type='Uniter',
2054 request
='UnitStatus',
2057 _params
['entities'] = entities
2058 reply
= await self
.rpc(msg
)
2063 @ReturnMapping(StorageAttachmentIdsResults
)
2064 async def UnitStorageAttachments(self
, entities
):
2066 entities : typing.Sequence[~Entity]
2067 Returns -> typing.Sequence[~StorageAttachmentIdsResult]
2069 # map input types to rpc msg
2071 msg
= dict(type='Uniter',
2072 request
='UnitStorageAttachments',
2075 _params
['entities'] = entities
2076 reply
= await self
.rpc(msg
)
2081 @ReturnMapping(ErrorResults
)
2082 async def UpdateSettings(self
, relation_units
):
2084 relation_units : typing.Sequence[~RelationUnitSettings]
2085 Returns -> typing.Sequence[~ErrorResult]
2087 # map input types to rpc msg
2089 msg
= dict(type='Uniter',
2090 request
='UpdateSettings',
2093 _params
['relation-units'] = relation_units
2094 reply
= await self
.rpc(msg
)
2099 @ReturnMapping(UpgradeSeriesStatusResults
)
2100 async def UpgradeSeriesUnitStatus(self
, entities
):
2102 entities : typing.Sequence[~Entity]
2103 Returns -> typing.Sequence[~UpgradeSeriesStatusResult]
2105 # map input types to rpc msg
2107 msg
= dict(type='Uniter',
2108 request
='UpgradeSeriesUnitStatus',
2111 _params
['entities'] = entities
2112 reply
= await self
.rpc(msg
)
2117 @ReturnMapping(NotifyWatchResults
)
2118 async def Watch(self
, entities
):
2120 entities : typing.Sequence[~Entity]
2121 Returns -> typing.Sequence[~NotifyWatchResult]
2123 # map input types to rpc msg
2125 msg
= dict(type='Uniter',
2129 _params
['entities'] = entities
2130 reply
= await self
.rpc(msg
)
2135 @ReturnMapping(NotifyWatchResult
)
2136 async def WatchAPIHostPorts(self
):
2139 Returns -> typing.Union[str, _ForwardRef('Error')]
2141 # map input types to rpc msg
2143 msg
= dict(type='Uniter',
2144 request
='WatchAPIHostPorts',
2148 reply
= await self
.rpc(msg
)
2153 @ReturnMapping(StringsWatchResults
)
2154 async def WatchActionNotifications(self
, entities
):
2156 entities : typing.Sequence[~Entity]
2157 Returns -> typing.Sequence[~StringsWatchResult]
2159 # map input types to rpc msg
2161 msg
= dict(type='Uniter',
2162 request
='WatchActionNotifications',
2165 _params
['entities'] = entities
2166 reply
= await self
.rpc(msg
)
2171 @ReturnMapping(StringsWatchResults
)
2172 async def WatchConfigSettingsHash(self
, entities
):
2174 entities : typing.Sequence[~Entity]
2175 Returns -> typing.Sequence[~StringsWatchResult]
2177 # map input types to rpc msg
2179 msg
= dict(type='Uniter',
2180 request
='WatchConfigSettingsHash',
2183 _params
['entities'] = entities
2184 reply
= await self
.rpc(msg
)
2189 @ReturnMapping(NotifyWatchResult
)
2190 async def WatchForModelConfigChanges(self
):
2193 Returns -> typing.Union[str, _ForwardRef('Error')]
2195 # map input types to rpc msg
2197 msg
= dict(type='Uniter',
2198 request
='WatchForModelConfigChanges',
2202 reply
= await self
.rpc(msg
)
2207 @ReturnMapping(NotifyWatchResults
)
2208 async def WatchLeadershipSettings(self
, entities
):
2210 entities : typing.Sequence[~Entity]
2211 Returns -> typing.Sequence[~NotifyWatchResult]
2213 # map input types to rpc msg
2215 msg
= dict(type='Uniter',
2216 request
='WatchLeadershipSettings',
2219 _params
['entities'] = entities
2220 reply
= await self
.rpc(msg
)
2225 @ReturnMapping(NotifyWatchResults
)
2226 async def WatchMeterStatus(self
, entities
):
2228 entities : typing.Sequence[~Entity]
2229 Returns -> typing.Sequence[~NotifyWatchResult]
2231 # map input types to rpc msg
2233 msg
= dict(type='Uniter',
2234 request
='WatchMeterStatus',
2237 _params
['entities'] = entities
2238 reply
= await self
.rpc(msg
)
2243 @ReturnMapping(RelationUnitsWatchResults
)
2244 async def WatchRelationUnits(self
, relation_units
):
2246 relation_units : typing.Sequence[~RelationUnit]
2247 Returns -> typing.Sequence[~RelationUnitsWatchResult]
2249 # map input types to rpc msg
2251 msg
= dict(type='Uniter',
2252 request
='WatchRelationUnits',
2255 _params
['relation-units'] = relation_units
2256 reply
= await self
.rpc(msg
)
2261 @ReturnMapping(NotifyWatchResults
)
2262 async def WatchStorageAttachments(self
, ids
):
2264 ids : typing.Sequence[~StorageAttachmentId]
2265 Returns -> typing.Sequence[~NotifyWatchResult]
2267 # map input types to rpc msg
2269 msg
= dict(type='Uniter',
2270 request
='WatchStorageAttachments',
2273 _params
['ids'] = ids
2274 reply
= await self
.rpc(msg
)
2279 @ReturnMapping(StringsWatchResults
)
2280 async def WatchTrustConfigSettingsHash(self
, entities
):
2282 entities : typing.Sequence[~Entity]
2283 Returns -> typing.Sequence[~StringsWatchResult]
2285 # map input types to rpc msg
2287 msg
= dict(type='Uniter',
2288 request
='WatchTrustConfigSettingsHash',
2291 _params
['entities'] = entities
2292 reply
= await self
.rpc(msg
)
2297 @ReturnMapping(StringsWatchResults
)
2298 async def WatchUnitAddressesHash(self
, entities
):
2300 entities : typing.Sequence[~Entity]
2301 Returns -> typing.Sequence[~StringsWatchResult]
2303 # map input types to rpc msg
2305 msg
= dict(type='Uniter',
2306 request
='WatchUnitAddressesHash',
2309 _params
['entities'] = entities
2310 reply
= await self
.rpc(msg
)
2315 @ReturnMapping(StringsWatchResults
)
2316 async def WatchUnitRelations(self
, entities
):
2318 entities : typing.Sequence[~Entity]
2319 Returns -> typing.Sequence[~StringsWatchResult]
2321 # map input types to rpc msg
2323 msg
= dict(type='Uniter',
2324 request
='WatchUnitRelations',
2327 _params
['entities'] = entities
2328 reply
= await self
.rpc(msg
)
2333 @ReturnMapping(StringsWatchResults
)
2334 async def WatchUnitStorageAttachments(self
, entities
):
2336 entities : typing.Sequence[~Entity]
2337 Returns -> typing.Sequence[~StringsWatchResult]
2339 # map input types to rpc msg
2341 msg
= dict(type='Uniter',
2342 request
='WatchUnitStorageAttachments',
2345 _params
['entities'] = entities
2346 reply
= await self
.rpc(msg
)
2351 @ReturnMapping(NotifyWatchResults
)
2352 async def WatchUpgradeSeriesNotifications(self
, entities
):
2354 entities : typing.Sequence[~Entity]
2355 Returns -> typing.Sequence[~NotifyWatchResult]
2357 # map input types to rpc msg
2359 msg
= dict(type='Uniter',
2360 request
='WatchUpgradeSeriesNotifications',
2363 _params
['entities'] = entities
2364 reply
= await self
.rpc(msg
)
2369 @ReturnMapping(StringResults
)
2370 async def WorkloadVersion(self
, entities
):
2372 entities : typing.Sequence[~Entity]
2373 Returns -> typing.Sequence[~StringResult]
2375 # map input types to rpc msg
2377 msg
= dict(type='Uniter',
2378 request
='WorkloadVersion',
2381 _params
['entities'] = entities
2382 reply
= await self
.rpc(msg
)