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 'BytesResult': {'additionalProperties': False,
89 'properties': {'result': {'items': {'type': 'integer'},
91 'required': ['result'],
93 'CharmRelation': {'additionalProperties': False,
94 'properties': {'interface': {'type': 'string'},
95 'limit': {'type': 'integer'},
96 'name': {'type': 'string'},
97 'optional': {'type': 'boolean'},
98 'role': {'type': 'string'},
99 'scope': {'type': 'string'}},
107 'CharmURL': {'additionalProperties': False,
108 'properties': {'url': {'type': 'string'}},
111 'CharmURLs': {'additionalProperties': False,
112 'properties': {'urls': {'items': {'$ref': '#/definitions/CharmURL'},
114 'required': ['urls'],
116 'ConfigSettingsResult': {'additionalProperties': False,
117 'properties': {'error': {'$ref': '#/definitions/Error'},
118 'settings': {'patternProperties': {'.*': {'additionalProperties': True,
121 'required': ['settings'],
123 'ConfigSettingsResults': {'additionalProperties': False,
124 'properties': {'results': {'items': {'$ref': '#/definitions/ConfigSettingsResult'},
126 'required': ['results'],
128 'Endpoint': {'additionalProperties': False,
129 'properties': {'application-name': {'type': 'string'},
130 'relation': {'$ref': '#/definitions/CharmRelation'}},
131 'required': ['application-name', 'relation'],
133 'Entities': {'additionalProperties': False,
134 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
136 'required': ['entities'],
138 'EntitiesCharmURL': {'additionalProperties': False,
139 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityCharmURL'},
141 'required': ['entities'],
143 'EntitiesPortRanges': {'additionalProperties': False,
144 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityPortRange'},
146 'required': ['entities'],
148 'Entity': {'additionalProperties': False,
149 'properties': {'tag': {'type': 'string'}},
152 'EntityCharmURL': {'additionalProperties': False,
153 'properties': {'charm-url': {'type': 'string'},
154 'tag': {'type': 'string'}},
155 'required': ['tag', 'charm-url'],
157 'EntityPortRange': {'additionalProperties': False,
158 'properties': {'from-port': {'type': 'integer'},
159 'protocol': {'type': 'string'},
160 'tag': {'type': 'string'},
161 'to-port': {'type': 'integer'}},
167 'EntityStatusArgs': {'additionalProperties': False,
168 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
171 'info': {'type': 'string'},
172 'status': {'type': 'string'},
173 'tag': {'type': 'string'}},
179 'EntityWorkloadVersion': {'additionalProperties': False,
180 'properties': {'tag': {'type': 'string'},
181 'workload-version': {'type': 'string'}},
185 'EntityWorkloadVersions': {'additionalProperties': False,
186 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityWorkloadVersion'},
188 'required': ['entities'],
190 'Error': {'additionalProperties': False,
191 'properties': {'code': {'type': 'string'},
192 'info': {'$ref': '#/definitions/ErrorInfo'},
193 'message': {'type': 'string'}},
194 'required': ['message', 'code'],
196 'ErrorInfo': {'additionalProperties': False,
197 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
198 'macaroon-path': {'type': 'string'}},
200 'ErrorResult': {'additionalProperties': False,
201 'properties': {'error': {'$ref': '#/definitions/Error'}},
203 'ErrorResults': {'additionalProperties': False,
204 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
206 'required': ['results'],
208 'GetLeadershipSettingsBulkResults': {'additionalProperties': False,
209 'properties': {'results': {'items': {'$ref': '#/definitions/GetLeadershipSettingsResult'},
211 'required': ['results'],
213 'GetLeadershipSettingsResult': {'additionalProperties': False,
214 'properties': {'error': {'$ref': '#/definitions/Error'},
215 'settings': {'patternProperties': {'.*': {'type': 'string'}},
217 'required': ['settings'],
219 'HostPort': {'additionalProperties': False,
220 'properties': {'Address': {'$ref': '#/definitions/Address'},
221 'port': {'type': 'integer'}},
222 'required': ['Address', 'port'],
224 'IntResult': {'additionalProperties': False,
225 'properties': {'error': {'$ref': '#/definitions/Error'},
226 'result': {'type': 'integer'}},
227 'required': ['result'],
229 'IntResults': {'additionalProperties': False,
230 'properties': {'results': {'items': {'$ref': '#/definitions/IntResult'},
232 'required': ['results'],
234 'InterfaceAddress': {'additionalProperties': False,
235 'properties': {'cidr': {'type': 'string'},
236 'value': {'type': 'string'}},
237 'required': ['value', 'cidr'],
239 'LifeResult': {'additionalProperties': False,
240 'properties': {'error': {'$ref': '#/definitions/Error'},
241 'life': {'type': 'string'}},
242 'required': ['life'],
244 'LifeResults': {'additionalProperties': False,
245 'properties': {'results': {'items': {'$ref': '#/definitions/LifeResult'},
247 'required': ['results'],
249 'Macaroon': {'additionalProperties': False, 'type': 'object'},
250 'MachinePortRange': {'additionalProperties': False,
251 'properties': {'port-range': {'$ref': '#/definitions/PortRange'},
252 'relation-tag': {'type': 'string'},
253 'unit-tag': {'type': 'string'}},
254 'required': ['unit-tag',
258 'MachinePortsResult': {'additionalProperties': False,
259 'properties': {'error': {'$ref': '#/definitions/Error'},
260 'ports': {'items': {'$ref': '#/definitions/MachinePortRange'},
262 'required': ['ports'],
264 'MachinePortsResults': {'additionalProperties': False,
265 'properties': {'results': {'items': {'$ref': '#/definitions/MachinePortsResult'},
267 'required': ['results'],
269 'MergeLeadershipSettingsBulkParams': {'additionalProperties': False,
270 'properties': {'params': {'items': {'$ref': '#/definitions/MergeLeadershipSettingsParam'},
272 'required': ['params'],
274 'MergeLeadershipSettingsParam': {'additionalProperties': False,
275 'properties': {'application-tag': {'type': 'string'},
276 'settings': {'patternProperties': {'.*': {'type': 'string'}},
278 'required': ['application-tag',
281 'MeterStatusResult': {'additionalProperties': False,
282 'properties': {'code': {'type': 'string'},
283 'error': {'$ref': '#/definitions/Error'},
284 'info': {'type': 'string'}},
285 'required': ['code', 'info'],
287 'MeterStatusResults': {'additionalProperties': False,
288 'properties': {'results': {'items': {'$ref': '#/definitions/MeterStatusResult'},
290 'required': ['results'],
292 'Metric': {'additionalProperties': False,
293 'properties': {'key': {'type': 'string'},
294 'time': {'format': 'date-time',
296 'value': {'type': 'string'}},
297 'required': ['key', 'value', 'time'],
299 'MetricBatch': {'additionalProperties': False,
300 'properties': {'charm-url': {'type': 'string'},
301 'created': {'format': 'date-time',
303 'metrics': {'items': {'$ref': '#/definitions/Metric'},
305 'uuid': {'type': 'string'}},
311 'MetricBatchParam': {'additionalProperties': False,
312 'properties': {'batch': {'$ref': '#/definitions/MetricBatch'},
313 'tag': {'type': 'string'}},
314 'required': ['tag', 'batch'],
316 'MetricBatchParams': {'additionalProperties': False,
317 'properties': {'batches': {'items': {'$ref': '#/definitions/MetricBatchParam'},
319 'required': ['batches'],
321 'ModelConfigResult': {'additionalProperties': False,
322 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
325 'required': ['config'],
327 'ModelResult': {'additionalProperties': False,
328 'properties': {'error': {'$ref': '#/definitions/Error'},
329 'name': {'type': 'string'},
330 'uuid': {'type': 'string'}},
331 'required': ['name', 'uuid'],
333 'NetworkInfo': {'additionalProperties': False,
334 'properties': {'addresses': {'items': {'$ref': '#/definitions/InterfaceAddress'},
336 'interface-name': {'type': 'string'},
337 'mac-address': {'type': 'string'}},
338 'required': ['mac-address',
342 'NetworkInfoParams': {'additionalProperties': False,
343 'properties': {'bindings': {'items': {'type': 'string'},
345 'unit': {'type': 'string'}},
346 'required': ['unit', 'bindings'],
348 'NetworkInfoResult': {'additionalProperties': False,
349 'properties': {'error': {'$ref': '#/definitions/Error'},
350 'network-info': {'items': {'$ref': '#/definitions/NetworkInfo'},
352 'required': ['network-info'],
354 'NetworkInfoResults': {'additionalProperties': False,
355 'properties': {'results': {'patternProperties': {'.*': {'$ref': '#/definitions/NetworkInfoResult'}},
357 'required': ['results'],
359 'NotifyWatchResult': {'additionalProperties': False,
360 'properties': {'NotifyWatcherId': {'type': 'string'},
361 'error': {'$ref': '#/definitions/Error'}},
362 'required': ['NotifyWatcherId'],
364 'NotifyWatchResults': {'additionalProperties': False,
365 'properties': {'results': {'items': {'$ref': '#/definitions/NotifyWatchResult'},
367 'required': ['results'],
369 'PortRange': {'additionalProperties': False,
370 'properties': {'from-port': {'type': 'integer'},
371 'protocol': {'type': 'string'},
372 'to-port': {'type': 'integer'}},
373 'required': ['from-port', 'to-port', 'protocol'],
375 'RelationIds': {'additionalProperties': False,
376 'properties': {'relation-ids': {'items': {'type': 'integer'},
378 'required': ['relation-ids'],
380 'RelationResult': {'additionalProperties': False,
381 'properties': {'endpoint': {'$ref': '#/definitions/Endpoint'},
382 'error': {'$ref': '#/definitions/Error'},
383 'id': {'type': 'integer'},
384 'key': {'type': 'string'},
385 'life': {'type': 'string'}},
391 'RelationResults': {'additionalProperties': False,
392 'properties': {'results': {'items': {'$ref': '#/definitions/RelationResult'},
394 'required': ['results'],
396 'RelationUnit': {'additionalProperties': False,
397 'properties': {'relation': {'type': 'string'},
398 'unit': {'type': 'string'}},
399 'required': ['relation', 'unit'],
401 'RelationUnitPair': {'additionalProperties': False,
402 'properties': {'local-unit': {'type': 'string'},
403 'relation': {'type': 'string'},
404 'remote-unit': {'type': 'string'}},
405 'required': ['relation',
409 'RelationUnitPairs': {'additionalProperties': False,
410 'properties': {'relation-unit-pairs': {'items': {'$ref': '#/definitions/RelationUnitPair'},
412 'required': ['relation-unit-pairs'],
414 'RelationUnitSettings': {'additionalProperties': False,
415 'properties': {'relation': {'type': 'string'},
416 'settings': {'patternProperties': {'.*': {'type': 'string'}},
418 'unit': {'type': 'string'}},
419 'required': ['relation',
423 'RelationUnits': {'additionalProperties': False,
424 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnit'},
426 'required': ['relation-units'],
428 'RelationUnitsChange': {'additionalProperties': False,
429 'properties': {'changed': {'patternProperties': {'.*': {'$ref': '#/definitions/UnitSettings'}},
431 'departed': {'items': {'type': 'string'},
433 'required': ['changed'],
435 'RelationUnitsSettings': {'additionalProperties': False,
436 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnitSettings'},
438 'required': ['relation-units'],
440 'RelationUnitsWatchResult': {'additionalProperties': False,
441 'properties': {'changes': {'$ref': '#/definitions/RelationUnitsChange'},
442 'error': {'$ref': '#/definitions/Error'},
443 'watcher-id': {'type': 'string'}},
444 'required': ['watcher-id',
447 'RelationUnitsWatchResults': {'additionalProperties': False,
448 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitsWatchResult'},
450 'required': ['results'],
452 'ResolvedModeResult': {'additionalProperties': False,
453 'properties': {'error': {'$ref': '#/definitions/Error'},
454 'mode': {'type': 'string'}},
455 'required': ['mode'],
457 'ResolvedModeResults': {'additionalProperties': False,
458 'properties': {'results': {'items': {'$ref': '#/definitions/ResolvedModeResult'},
460 'required': ['results'],
462 'SetStatus': {'additionalProperties': False,
463 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityStatusArgs'},
465 'required': ['entities'],
467 'SettingsResult': {'additionalProperties': False,
468 'properties': {'error': {'$ref': '#/definitions/Error'},
469 'settings': {'patternProperties': {'.*': {'type': 'string'}},
471 'required': ['settings'],
473 'SettingsResults': {'additionalProperties': False,
474 'properties': {'results': {'items': {'$ref': '#/definitions/SettingsResult'},
476 'required': ['results'],
478 'StatusResult': {'additionalProperties': False,
479 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
482 'error': {'$ref': '#/definitions/Error'},
483 'id': {'type': 'string'},
484 'info': {'type': 'string'},
485 'life': {'type': 'string'},
486 'since': {'format': 'date-time',
488 'status': {'type': 'string'}},
496 'StatusResults': {'additionalProperties': False,
497 'properties': {'results': {'items': {'$ref': '#/definitions/StatusResult'},
499 'required': ['results'],
501 'StorageAddParams': {'additionalProperties': False,
502 'properties': {'name': {'type': 'string'},
503 'storage': {'$ref': '#/definitions/StorageConstraints'},
504 'unit': {'type': 'string'}},
505 'required': ['unit', 'name', 'storage'],
507 'StorageAttachment': {'additionalProperties': False,
508 'properties': {'kind': {'type': 'integer'},
509 'life': {'type': 'string'},
510 'location': {'type': 'string'},
511 'owner-tag': {'type': 'string'},
512 'storage-tag': {'type': 'string'},
513 'unit-tag': {'type': 'string'}},
514 'required': ['storage-tag',
521 'StorageAttachmentId': {'additionalProperties': False,
522 'properties': {'storage-tag': {'type': 'string'},
523 'unit-tag': {'type': 'string'}},
524 'required': ['storage-tag',
527 'StorageAttachmentIds': {'additionalProperties': False,
528 'properties': {'ids': {'items': {'$ref': '#/definitions/StorageAttachmentId'},
532 'StorageAttachmentIdsResult': {'additionalProperties': False,
533 'properties': {'error': {'$ref': '#/definitions/Error'},
534 'result': {'$ref': '#/definitions/StorageAttachmentIds'}},
535 'required': ['result'],
537 'StorageAttachmentIdsResults': {'additionalProperties': False,
538 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentIdsResult'},
541 'StorageAttachmentResult': {'additionalProperties': False,
542 'properties': {'error': {'$ref': '#/definitions/Error'},
543 'result': {'$ref': '#/definitions/StorageAttachment'}},
544 'required': ['result'],
546 'StorageAttachmentResults': {'additionalProperties': False,
547 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentResult'},
550 'StorageConstraints': {'additionalProperties': False,
551 'properties': {'count': {'type': 'integer'},
552 'pool': {'type': 'string'},
553 'size': {'type': 'integer'}},
555 'StoragesAddParams': {'additionalProperties': False,
556 'properties': {'storages': {'items': {'$ref': '#/definitions/StorageAddParams'},
558 'required': ['storages'],
560 'StringBoolResult': {'additionalProperties': False,
561 'properties': {'error': {'$ref': '#/definitions/Error'},
562 'ok': {'type': 'boolean'},
563 'result': {'type': 'string'}},
564 'required': ['result', 'ok'],
566 'StringBoolResults': {'additionalProperties': False,
567 'properties': {'results': {'items': {'$ref': '#/definitions/StringBoolResult'},
569 'required': ['results'],
571 'StringResult': {'additionalProperties': False,
572 'properties': {'error': {'$ref': '#/definitions/Error'},
573 'result': {'type': 'string'}},
574 'required': ['result'],
576 'StringResults': {'additionalProperties': False,
577 'properties': {'results': {'items': {'$ref': '#/definitions/StringResult'},
579 'required': ['results'],
581 'StringsResult': {'additionalProperties': False,
582 'properties': {'error': {'$ref': '#/definitions/Error'},
583 'result': {'items': {'type': 'string'},
586 'StringsResults': {'additionalProperties': False,
587 'properties': {'results': {'items': {'$ref': '#/definitions/StringsResult'},
589 'required': ['results'],
591 'StringsWatchResult': {'additionalProperties': False,
592 'properties': {'changes': {'items': {'type': 'string'},
594 'error': {'$ref': '#/definitions/Error'},
595 'watcher-id': {'type': 'string'}},
596 'required': ['watcher-id'],
598 'StringsWatchResults': {'additionalProperties': False,
599 'properties': {'results': {'items': {'$ref': '#/definitions/StringsWatchResult'},
601 'required': ['results'],
603 'UnitSettings': {'additionalProperties': False,
604 'properties': {'version': {'type': 'integer'}},
605 'required': ['version'],
607 'properties': {'APIAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
609 'APIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/APIHostPortsResult'}},
611 'Actions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
612 'Result': {'$ref': '#/definitions/ActionResults'}},
614 'AddMetricBatches': {'properties': {'Params': {'$ref': '#/definitions/MetricBatchParams'},
615 'Result': {'$ref': '#/definitions/ErrorResults'}},
617 'AddUnitStorage': {'properties': {'Params': {'$ref': '#/definitions/StoragesAddParams'},
618 'Result': {'$ref': '#/definitions/ErrorResults'}},
620 'AllMachinePorts': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
621 'Result': {'$ref': '#/definitions/MachinePortsResults'}},
623 'ApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
624 'Result': {'$ref': '#/definitions/ApplicationStatusResults'}},
626 'AssignedMachine': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
627 'Result': {'$ref': '#/definitions/StringResults'}},
629 'AvailabilityZone': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
630 'Result': {'$ref': '#/definitions/StringResults'}},
632 'BeginActions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
633 'Result': {'$ref': '#/definitions/ErrorResults'}},
635 'CACert': {'properties': {'Result': {'$ref': '#/definitions/BytesResult'}},
637 'CharmArchiveSha256': {'properties': {'Params': {'$ref': '#/definitions/CharmURLs'},
638 'Result': {'$ref': '#/definitions/StringResults'}},
640 'CharmModifiedVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
641 'Result': {'$ref': '#/definitions/IntResults'}},
643 'CharmURL': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
644 'Result': {'$ref': '#/definitions/StringBoolResults'}},
646 'ClearResolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
647 'Result': {'$ref': '#/definitions/ErrorResults'}},
649 'ClosePorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
650 'Result': {'$ref': '#/definitions/ErrorResults'}},
652 'ConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
653 'Result': {'$ref': '#/definitions/ConfigSettingsResults'}},
655 'CurrentModel': {'properties': {'Result': {'$ref': '#/definitions/ModelResult'}},
657 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
658 'Result': {'$ref': '#/definitions/ErrorResults'}},
660 'DestroyAllSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
661 'Result': {'$ref': '#/definitions/ErrorResults'}},
663 'DestroyUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
664 'Result': {'$ref': '#/definitions/ErrorResults'}},
666 'EnsureDead': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
667 'Result': {'$ref': '#/definitions/ErrorResults'}},
669 'EnterScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
670 'Result': {'$ref': '#/definitions/ErrorResults'}},
672 'FinishActions': {'properties': {'Params': {'$ref': '#/definitions/ActionExecutionResults'},
673 'Result': {'$ref': '#/definitions/ErrorResults'}},
675 'GetMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
676 'Result': {'$ref': '#/definitions/MeterStatusResults'}},
678 'GetPrincipal': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
679 'Result': {'$ref': '#/definitions/StringBoolResults'}},
681 'HasSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
682 'Result': {'$ref': '#/definitions/BoolResults'}},
684 'JoinedRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
685 'Result': {'$ref': '#/definitions/StringsResults'}},
687 'LeaveScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
688 'Result': {'$ref': '#/definitions/ErrorResults'}},
690 'Life': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
691 'Result': {'$ref': '#/definitions/LifeResults'}},
693 'Merge': {'properties': {'Params': {'$ref': '#/definitions/MergeLeadershipSettingsBulkParams'},
694 'Result': {'$ref': '#/definitions/ErrorResults'}},
696 'ModelConfig': {'properties': {'Result': {'$ref': '#/definitions/ModelConfigResult'}},
698 'ModelUUID': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
700 'NetworkInfo': {'properties': {'Params': {'$ref': '#/definitions/NetworkInfoParams'},
701 'Result': {'$ref': '#/definitions/NetworkInfoResults'}},
703 'OpenPorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
704 'Result': {'$ref': '#/definitions/ErrorResults'}},
706 'PrivateAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
707 'Result': {'$ref': '#/definitions/StringResults'}},
709 'ProviderType': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
711 'PublicAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
712 'Result': {'$ref': '#/definitions/StringResults'}},
714 'Read': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
715 'Result': {'$ref': '#/definitions/GetLeadershipSettingsBulkResults'}},
717 'ReadRemoteSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitPairs'},
718 'Result': {'$ref': '#/definitions/SettingsResults'}},
720 'ReadSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
721 'Result': {'$ref': '#/definitions/SettingsResults'}},
723 'Relation': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
724 'Result': {'$ref': '#/definitions/RelationResults'}},
726 'RelationById': {'properties': {'Params': {'$ref': '#/definitions/RelationIds'},
727 'Result': {'$ref': '#/definitions/RelationResults'}},
729 'RemoveStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
730 'Result': {'$ref': '#/definitions/ErrorResults'}},
732 'RequestReboot': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
733 'Result': {'$ref': '#/definitions/ErrorResults'}},
735 'Resolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
736 'Result': {'$ref': '#/definitions/ResolvedModeResults'}},
738 'SLALevel': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
740 'SetAgentStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
741 'Result': {'$ref': '#/definitions/ErrorResults'}},
743 'SetApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
744 'Result': {'$ref': '#/definitions/ErrorResults'}},
746 'SetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/EntitiesCharmURL'},
747 'Result': {'$ref': '#/definitions/ErrorResults'}},
749 'SetStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
750 'Result': {'$ref': '#/definitions/ErrorResults'}},
752 'SetUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
753 'Result': {'$ref': '#/definitions/ErrorResults'}},
755 'SetWorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/EntityWorkloadVersions'},
756 'Result': {'$ref': '#/definitions/ErrorResults'}},
758 'StorageAttachmentLife': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
759 'Result': {'$ref': '#/definitions/LifeResults'}},
761 'StorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
762 'Result': {'$ref': '#/definitions/StorageAttachmentResults'}},
764 'UnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
765 'Result': {'$ref': '#/definitions/StatusResults'}},
767 'UnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
768 'Result': {'$ref': '#/definitions/StorageAttachmentIdsResults'}},
770 'UpdateSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitsSettings'},
771 'Result': {'$ref': '#/definitions/ErrorResults'}},
773 'Watch': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
774 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
776 'WatchAPIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
778 'WatchActionNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
779 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
781 'WatchConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
782 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
784 'WatchForModelConfigChanges': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
786 'WatchLeadershipSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
787 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
789 'WatchMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
790 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
792 'WatchRelationUnits': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
793 'Result': {'$ref': '#/definitions/RelationUnitsWatchResults'}},
795 'WatchStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
796 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
798 'WatchUnitAddresses': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
799 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
801 'WatchUnitRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
802 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
804 'WatchUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
805 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
807 'WorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
808 'Result': {'$ref': '#/definitions/StringResults'}},
813 @ReturnMapping(StringsResult
)
814 async def APIAddresses(self
):
817 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence<+T_co>[str]]
819 # map input types to rpc msg
821 msg
= dict(type='Uniter', request
='APIAddresses', version
=5, params
=_params
)
823 reply
= await self
.rpc(msg
)
828 @ReturnMapping(APIHostPortsResult
)
829 async def APIHostPorts(self
):
832 Returns -> typing.Sequence<+T_co>[~HostPort]<~HostPort>
834 # map input types to rpc msg
836 msg
= dict(type='Uniter', request
='APIHostPorts', version
=5, params
=_params
)
838 reply
= await self
.rpc(msg
)
843 @ReturnMapping(ActionResults
)
844 async def Actions(self
, entities
):
846 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
847 Returns -> typing.Sequence<+T_co>[~ActionResult]<~ActionResult>
849 # map input types to rpc msg
851 msg
= dict(type='Uniter', request
='Actions', version
=5, params
=_params
)
852 _params
['entities'] = entities
853 reply
= await self
.rpc(msg
)
858 @ReturnMapping(ErrorResults
)
859 async def AddMetricBatches(self
, batches
):
861 batches : typing.Sequence<+T_co>[~MetricBatchParam]<~MetricBatchParam>
862 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
864 # map input types to rpc msg
866 msg
= dict(type='Uniter', request
='AddMetricBatches', version
=5, params
=_params
)
867 _params
['batches'] = batches
868 reply
= await self
.rpc(msg
)
873 @ReturnMapping(ErrorResults
)
874 async def AddUnitStorage(self
, storages
):
876 storages : typing.Sequence<+T_co>[~StorageAddParams]<~StorageAddParams>
877 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
879 # map input types to rpc msg
881 msg
= dict(type='Uniter', request
='AddUnitStorage', version
=5, params
=_params
)
882 _params
['storages'] = storages
883 reply
= await self
.rpc(msg
)
888 @ReturnMapping(MachinePortsResults
)
889 async def AllMachinePorts(self
, entities
):
891 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
892 Returns -> typing.Sequence<+T_co>[~MachinePortsResult]<~MachinePortsResult>
894 # map input types to rpc msg
896 msg
= dict(type='Uniter', request
='AllMachinePorts', version
=5, params
=_params
)
897 _params
['entities'] = entities
898 reply
= await self
.rpc(msg
)
903 @ReturnMapping(ApplicationStatusResults
)
904 async def ApplicationStatus(self
, entities
):
906 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
907 Returns -> typing.Sequence<+T_co>[~ApplicationStatusResult]<~ApplicationStatusResult>
909 # map input types to rpc msg
911 msg
= dict(type='Uniter', request
='ApplicationStatus', version
=5, params
=_params
)
912 _params
['entities'] = entities
913 reply
= await self
.rpc(msg
)
918 @ReturnMapping(StringResults
)
919 async def AssignedMachine(self
, entities
):
921 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
922 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
924 # map input types to rpc msg
926 msg
= dict(type='Uniter', request
='AssignedMachine', version
=5, params
=_params
)
927 _params
['entities'] = entities
928 reply
= await self
.rpc(msg
)
933 @ReturnMapping(StringResults
)
934 async def AvailabilityZone(self
, entities
):
936 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
937 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
939 # map input types to rpc msg
941 msg
= dict(type='Uniter', request
='AvailabilityZone', version
=5, params
=_params
)
942 _params
['entities'] = entities
943 reply
= await self
.rpc(msg
)
948 @ReturnMapping(ErrorResults
)
949 async def BeginActions(self
, entities
):
951 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
952 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
954 # map input types to rpc msg
956 msg
= dict(type='Uniter', request
='BeginActions', version
=5, params
=_params
)
957 _params
['entities'] = entities
958 reply
= await self
.rpc(msg
)
963 @ReturnMapping(BytesResult
)
964 async def CACert(self
):
967 Returns -> typing.Sequence<+T_co>[int]
969 # map input types to rpc msg
971 msg
= dict(type='Uniter', request
='CACert', version
=5, params
=_params
)
973 reply
= await self
.rpc(msg
)
978 @ReturnMapping(StringResults
)
979 async def CharmArchiveSha256(self
, urls
):
981 urls : typing.Sequence<+T_co>[~CharmURL]<~CharmURL>
982 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
984 # map input types to rpc msg
986 msg
= dict(type='Uniter', request
='CharmArchiveSha256', version
=5, params
=_params
)
987 _params
['urls'] = urls
988 reply
= await self
.rpc(msg
)
993 @ReturnMapping(IntResults
)
994 async def CharmModifiedVersion(self
, entities
):
996 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
997 Returns -> typing.Sequence<+T_co>[~IntResult]<~IntResult>
999 # map input types to rpc msg
1001 msg
= dict(type='Uniter', request
='CharmModifiedVersion', version
=5, params
=_params
)
1002 _params
['entities'] = entities
1003 reply
= await self
.rpc(msg
)
1008 @ReturnMapping(StringBoolResults
)
1009 async def CharmURL(self
, entities
):
1011 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1012 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
1014 # map input types to rpc msg
1016 msg
= dict(type='Uniter', request
='CharmURL', version
=5, params
=_params
)
1017 _params
['entities'] = entities
1018 reply
= await self
.rpc(msg
)
1023 @ReturnMapping(ErrorResults
)
1024 async def ClearResolved(self
, entities
):
1026 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1027 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1029 # map input types to rpc msg
1031 msg
= dict(type='Uniter', request
='ClearResolved', version
=5, params
=_params
)
1032 _params
['entities'] = entities
1033 reply
= await self
.rpc(msg
)
1038 @ReturnMapping(ErrorResults
)
1039 async def ClosePorts(self
, entities
):
1041 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
1042 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1044 # map input types to rpc msg
1046 msg
= dict(type='Uniter', request
='ClosePorts', version
=5, params
=_params
)
1047 _params
['entities'] = entities
1048 reply
= await self
.rpc(msg
)
1053 @ReturnMapping(ConfigSettingsResults
)
1054 async def ConfigSettings(self
, entities
):
1056 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1057 Returns -> typing.Sequence<+T_co>[~ConfigSettingsResult]<~ConfigSettingsResult>
1059 # map input types to rpc msg
1061 msg
= dict(type='Uniter', request
='ConfigSettings', version
=5, params
=_params
)
1062 _params
['entities'] = entities
1063 reply
= await self
.rpc(msg
)
1068 @ReturnMapping(ModelResult
)
1069 async def CurrentModel(self
):
1072 Returns -> typing.Union[_ForwardRef('Error'), str]
1074 # map input types to rpc msg
1076 msg
= dict(type='Uniter', request
='CurrentModel', version
=5, params
=_params
)
1078 reply
= await self
.rpc(msg
)
1083 @ReturnMapping(ErrorResults
)
1084 async def Destroy(self
, entities
):
1086 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1087 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1089 # map input types to rpc msg
1091 msg
= dict(type='Uniter', request
='Destroy', version
=5, params
=_params
)
1092 _params
['entities'] = entities
1093 reply
= await self
.rpc(msg
)
1098 @ReturnMapping(ErrorResults
)
1099 async def DestroyAllSubordinates(self
, entities
):
1101 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1102 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1104 # map input types to rpc msg
1106 msg
= dict(type='Uniter', request
='DestroyAllSubordinates', version
=5, params
=_params
)
1107 _params
['entities'] = entities
1108 reply
= await self
.rpc(msg
)
1113 @ReturnMapping(ErrorResults
)
1114 async def DestroyUnitStorageAttachments(self
, entities
):
1116 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1117 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1119 # map input types to rpc msg
1121 msg
= dict(type='Uniter', request
='DestroyUnitStorageAttachments', version
=5, params
=_params
)
1122 _params
['entities'] = entities
1123 reply
= await self
.rpc(msg
)
1128 @ReturnMapping(ErrorResults
)
1129 async def EnsureDead(self
, entities
):
1131 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1132 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1134 # map input types to rpc msg
1136 msg
= dict(type='Uniter', request
='EnsureDead', version
=5, params
=_params
)
1137 _params
['entities'] = entities
1138 reply
= await self
.rpc(msg
)
1143 @ReturnMapping(ErrorResults
)
1144 async def EnterScope(self
, relation_units
):
1146 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1147 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1149 # map input types to rpc msg
1151 msg
= dict(type='Uniter', request
='EnterScope', version
=5, params
=_params
)
1152 _params
['relation-units'] = relation_units
1153 reply
= await self
.rpc(msg
)
1158 @ReturnMapping(ErrorResults
)
1159 async def FinishActions(self
, results
):
1161 results : typing.Sequence<+T_co>[~ActionExecutionResult]<~ActionExecutionResult>
1162 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1164 # map input types to rpc msg
1166 msg
= dict(type='Uniter', request
='FinishActions', version
=5, params
=_params
)
1167 _params
['results'] = results
1168 reply
= await self
.rpc(msg
)
1173 @ReturnMapping(MeterStatusResults
)
1174 async def GetMeterStatus(self
, entities
):
1176 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1177 Returns -> typing.Sequence<+T_co>[~MeterStatusResult]<~MeterStatusResult>
1179 # map input types to rpc msg
1181 msg
= dict(type='Uniter', request
='GetMeterStatus', version
=5, params
=_params
)
1182 _params
['entities'] = entities
1183 reply
= await self
.rpc(msg
)
1188 @ReturnMapping(StringBoolResults
)
1189 async def GetPrincipal(self
, entities
):
1191 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1192 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
1194 # map input types to rpc msg
1196 msg
= dict(type='Uniter', request
='GetPrincipal', version
=5, params
=_params
)
1197 _params
['entities'] = entities
1198 reply
= await self
.rpc(msg
)
1203 @ReturnMapping(BoolResults
)
1204 async def HasSubordinates(self
, entities
):
1206 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1207 Returns -> typing.Sequence<+T_co>[~BoolResult]<~BoolResult>
1209 # map input types to rpc msg
1211 msg
= dict(type='Uniter', request
='HasSubordinates', version
=5, params
=_params
)
1212 _params
['entities'] = entities
1213 reply
= await self
.rpc(msg
)
1218 @ReturnMapping(StringsResults
)
1219 async def JoinedRelations(self
, entities
):
1221 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1222 Returns -> typing.Sequence<+T_co>[~StringsResult]<~StringsResult>
1224 # map input types to rpc msg
1226 msg
= dict(type='Uniter', request
='JoinedRelations', version
=5, params
=_params
)
1227 _params
['entities'] = entities
1228 reply
= await self
.rpc(msg
)
1233 @ReturnMapping(ErrorResults
)
1234 async def LeaveScope(self
, relation_units
):
1236 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1237 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1239 # map input types to rpc msg
1241 msg
= dict(type='Uniter', request
='LeaveScope', version
=5, params
=_params
)
1242 _params
['relation-units'] = relation_units
1243 reply
= await self
.rpc(msg
)
1248 @ReturnMapping(LifeResults
)
1249 async def Life(self
, entities
):
1251 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1252 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
1254 # map input types to rpc msg
1256 msg
= dict(type='Uniter', request
='Life', version
=5, params
=_params
)
1257 _params
['entities'] = entities
1258 reply
= await self
.rpc(msg
)
1263 @ReturnMapping(ErrorResults
)
1264 async def Merge(self
, params
):
1266 params : typing.Sequence<+T_co>[~MergeLeadershipSettingsParam]<~MergeLeadershipSettingsParam>
1267 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1269 # map input types to rpc msg
1271 msg
= dict(type='Uniter', request
='Merge', version
=5, params
=_params
)
1272 _params
['params'] = params
1273 reply
= await self
.rpc(msg
)
1278 @ReturnMapping(ModelConfigResult
)
1279 async def ModelConfig(self
):
1282 Returns -> typing.Mapping<~KT, +VT_co>[str, typing.Any]
1284 # map input types to rpc msg
1286 msg
= dict(type='Uniter', request
='ModelConfig', version
=5, params
=_params
)
1288 reply
= await self
.rpc(msg
)
1293 @ReturnMapping(StringResult
)
1294 async def ModelUUID(self
):
1297 Returns -> typing.Union[_ForwardRef('Error'), str]
1299 # map input types to rpc msg
1301 msg
= dict(type='Uniter', request
='ModelUUID', version
=5, params
=_params
)
1303 reply
= await self
.rpc(msg
)
1308 @ReturnMapping(NetworkInfoResults
)
1309 async def NetworkInfo(self
, bindings
, unit
):
1311 bindings : typing.Sequence<+T_co>[str]
1313 Returns -> typing.Mapping<~KT, +VT_co>[str, ~NetworkInfoResult]<~NetworkInfoResult>
1315 # map input types to rpc msg
1317 msg
= dict(type='Uniter', request
='NetworkInfo', version
=5, params
=_params
)
1318 _params
['bindings'] = bindings
1319 _params
['unit'] = unit
1320 reply
= await self
.rpc(msg
)
1325 @ReturnMapping(ErrorResults
)
1326 async def OpenPorts(self
, entities
):
1328 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
1329 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1331 # map input types to rpc msg
1333 msg
= dict(type='Uniter', request
='OpenPorts', version
=5, params
=_params
)
1334 _params
['entities'] = entities
1335 reply
= await self
.rpc(msg
)
1340 @ReturnMapping(StringResults
)
1341 async def PrivateAddress(self
, entities
):
1343 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1344 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1346 # map input types to rpc msg
1348 msg
= dict(type='Uniter', request
='PrivateAddress', version
=5, params
=_params
)
1349 _params
['entities'] = entities
1350 reply
= await self
.rpc(msg
)
1355 @ReturnMapping(StringResult
)
1356 async def ProviderType(self
):
1359 Returns -> typing.Union[_ForwardRef('Error'), str]
1361 # map input types to rpc msg
1363 msg
= dict(type='Uniter', request
='ProviderType', version
=5, params
=_params
)
1365 reply
= await self
.rpc(msg
)
1370 @ReturnMapping(StringResults
)
1371 async def PublicAddress(self
, entities
):
1373 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1374 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1376 # map input types to rpc msg
1378 msg
= dict(type='Uniter', request
='PublicAddress', version
=5, params
=_params
)
1379 _params
['entities'] = entities
1380 reply
= await self
.rpc(msg
)
1385 @ReturnMapping(GetLeadershipSettingsBulkResults
)
1386 async def Read(self
, entities
):
1388 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1389 Returns -> typing.Sequence<+T_co>[~GetLeadershipSettingsResult]<~GetLeadershipSettingsResult>
1391 # map input types to rpc msg
1393 msg
= dict(type='Uniter', request
='Read', version
=5, params
=_params
)
1394 _params
['entities'] = entities
1395 reply
= await self
.rpc(msg
)
1400 @ReturnMapping(SettingsResults
)
1401 async def ReadRemoteSettings(self
, relation_unit_pairs
):
1403 relation_unit_pairs : typing.Sequence<+T_co>[~RelationUnitPair]<~RelationUnitPair>
1404 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
1406 # map input types to rpc msg
1408 msg
= dict(type='Uniter', request
='ReadRemoteSettings', version
=5, params
=_params
)
1409 _params
['relation-unit-pairs'] = relation_unit_pairs
1410 reply
= await self
.rpc(msg
)
1415 @ReturnMapping(SettingsResults
)
1416 async def ReadSettings(self
, relation_units
):
1418 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1419 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
1421 # map input types to rpc msg
1423 msg
= dict(type='Uniter', request
='ReadSettings', version
=5, params
=_params
)
1424 _params
['relation-units'] = relation_units
1425 reply
= await self
.rpc(msg
)
1430 @ReturnMapping(RelationResults
)
1431 async def Relation(self
, relation_units
):
1433 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1434 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
1436 # map input types to rpc msg
1438 msg
= dict(type='Uniter', request
='Relation', version
=5, params
=_params
)
1439 _params
['relation-units'] = relation_units
1440 reply
= await self
.rpc(msg
)
1445 @ReturnMapping(RelationResults
)
1446 async def RelationById(self
, relation_ids
):
1448 relation_ids : typing.Sequence<+T_co>[int]
1449 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
1451 # map input types to rpc msg
1453 msg
= dict(type='Uniter', request
='RelationById', version
=5, params
=_params
)
1454 _params
['relation-ids'] = relation_ids
1455 reply
= await self
.rpc(msg
)
1460 @ReturnMapping(ErrorResults
)
1461 async def RemoveStorageAttachments(self
, ids
):
1463 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1464 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1466 # map input types to rpc msg
1468 msg
= dict(type='Uniter', request
='RemoveStorageAttachments', version
=5, params
=_params
)
1469 _params
['ids'] = ids
1470 reply
= await self
.rpc(msg
)
1475 @ReturnMapping(ErrorResults
)
1476 async def RequestReboot(self
, entities
):
1478 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1479 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1481 # map input types to rpc msg
1483 msg
= dict(type='Uniter', request
='RequestReboot', version
=5, params
=_params
)
1484 _params
['entities'] = entities
1485 reply
= await self
.rpc(msg
)
1490 @ReturnMapping(ResolvedModeResults
)
1491 async def Resolved(self
, entities
):
1493 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1494 Returns -> typing.Sequence<+T_co>[~ResolvedModeResult]<~ResolvedModeResult>
1496 # map input types to rpc msg
1498 msg
= dict(type='Uniter', request
='Resolved', version
=5, params
=_params
)
1499 _params
['entities'] = entities
1500 reply
= await self
.rpc(msg
)
1505 @ReturnMapping(StringResult
)
1506 async def SLALevel(self
):
1509 Returns -> typing.Union[_ForwardRef('Error'), str]
1511 # map input types to rpc msg
1513 msg
= dict(type='Uniter', request
='SLALevel', version
=5, params
=_params
)
1515 reply
= await self
.rpc(msg
)
1520 @ReturnMapping(ErrorResults
)
1521 async def SetAgentStatus(self
, entities
):
1523 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1524 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1526 # map input types to rpc msg
1528 msg
= dict(type='Uniter', request
='SetAgentStatus', version
=5, params
=_params
)
1529 _params
['entities'] = entities
1530 reply
= await self
.rpc(msg
)
1535 @ReturnMapping(ErrorResults
)
1536 async def SetApplicationStatus(self
, entities
):
1538 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1539 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1541 # map input types to rpc msg
1543 msg
= dict(type='Uniter', request
='SetApplicationStatus', version
=5, params
=_params
)
1544 _params
['entities'] = entities
1545 reply
= await self
.rpc(msg
)
1550 @ReturnMapping(ErrorResults
)
1551 async def SetCharmURL(self
, entities
):
1553 entities : typing.Sequence<+T_co>[~EntityCharmURL]<~EntityCharmURL>
1554 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1556 # map input types to rpc msg
1558 msg
= dict(type='Uniter', request
='SetCharmURL', version
=5, params
=_params
)
1559 _params
['entities'] = entities
1560 reply
= await self
.rpc(msg
)
1565 @ReturnMapping(ErrorResults
)
1566 async def SetStatus(self
, entities
):
1568 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1569 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1571 # map input types to rpc msg
1573 msg
= dict(type='Uniter', request
='SetStatus', version
=5, params
=_params
)
1574 _params
['entities'] = entities
1575 reply
= await self
.rpc(msg
)
1580 @ReturnMapping(ErrorResults
)
1581 async def SetUnitStatus(self
, entities
):
1583 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1584 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1586 # map input types to rpc msg
1588 msg
= dict(type='Uniter', request
='SetUnitStatus', version
=5, params
=_params
)
1589 _params
['entities'] = entities
1590 reply
= await self
.rpc(msg
)
1595 @ReturnMapping(ErrorResults
)
1596 async def SetWorkloadVersion(self
, entities
):
1598 entities : typing.Sequence<+T_co>[~EntityWorkloadVersion]<~EntityWorkloadVersion>
1599 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1601 # map input types to rpc msg
1603 msg
= dict(type='Uniter', request
='SetWorkloadVersion', version
=5, params
=_params
)
1604 _params
['entities'] = entities
1605 reply
= await self
.rpc(msg
)
1610 @ReturnMapping(LifeResults
)
1611 async def StorageAttachmentLife(self
, ids
):
1613 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1614 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
1616 # map input types to rpc msg
1618 msg
= dict(type='Uniter', request
='StorageAttachmentLife', version
=5, params
=_params
)
1619 _params
['ids'] = ids
1620 reply
= await self
.rpc(msg
)
1625 @ReturnMapping(StorageAttachmentResults
)
1626 async def StorageAttachments(self
, ids
):
1628 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1629 Returns -> typing.Sequence<+T_co>[~StorageAttachmentResult]<~StorageAttachmentResult>
1631 # map input types to rpc msg
1633 msg
= dict(type='Uniter', request
='StorageAttachments', version
=5, params
=_params
)
1634 _params
['ids'] = ids
1635 reply
= await self
.rpc(msg
)
1640 @ReturnMapping(StatusResults
)
1641 async def UnitStatus(self
, entities
):
1643 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1644 Returns -> typing.Sequence<+T_co>[~StatusResult]<~StatusResult>
1646 # map input types to rpc msg
1648 msg
= dict(type='Uniter', request
='UnitStatus', version
=5, params
=_params
)
1649 _params
['entities'] = entities
1650 reply
= await self
.rpc(msg
)
1655 @ReturnMapping(StorageAttachmentIdsResults
)
1656 async def UnitStorageAttachments(self
, entities
):
1658 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1659 Returns -> typing.Sequence<+T_co>[~StorageAttachmentIdsResult]<~StorageAttachmentIdsResult>
1661 # map input types to rpc msg
1663 msg
= dict(type='Uniter', request
='UnitStorageAttachments', version
=5, params
=_params
)
1664 _params
['entities'] = entities
1665 reply
= await self
.rpc(msg
)
1670 @ReturnMapping(ErrorResults
)
1671 async def UpdateSettings(self
, relation_units
):
1673 relation_units : typing.Sequence<+T_co>[~RelationUnitSettings]<~RelationUnitSettings>
1674 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1676 # map input types to rpc msg
1678 msg
= dict(type='Uniter', request
='UpdateSettings', version
=5, params
=_params
)
1679 _params
['relation-units'] = relation_units
1680 reply
= await self
.rpc(msg
)
1685 @ReturnMapping(NotifyWatchResults
)
1686 async def Watch(self
, entities
):
1688 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1689 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1691 # map input types to rpc msg
1693 msg
= dict(type='Uniter', request
='Watch', version
=5, params
=_params
)
1694 _params
['entities'] = entities
1695 reply
= await self
.rpc(msg
)
1700 @ReturnMapping(NotifyWatchResult
)
1701 async def WatchAPIHostPorts(self
):
1704 Returns -> typing.Union[str, _ForwardRef('Error')]
1706 # map input types to rpc msg
1708 msg
= dict(type='Uniter', request
='WatchAPIHostPorts', version
=5, params
=_params
)
1710 reply
= await self
.rpc(msg
)
1715 @ReturnMapping(StringsWatchResults
)
1716 async def WatchActionNotifications(self
, entities
):
1718 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1719 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1721 # map input types to rpc msg
1723 msg
= dict(type='Uniter', request
='WatchActionNotifications', version
=5, params
=_params
)
1724 _params
['entities'] = entities
1725 reply
= await self
.rpc(msg
)
1730 @ReturnMapping(NotifyWatchResults
)
1731 async def WatchConfigSettings(self
, entities
):
1733 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1734 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1736 # map input types to rpc msg
1738 msg
= dict(type='Uniter', request
='WatchConfigSettings', version
=5, params
=_params
)
1739 _params
['entities'] = entities
1740 reply
= await self
.rpc(msg
)
1745 @ReturnMapping(NotifyWatchResult
)
1746 async def WatchForModelConfigChanges(self
):
1749 Returns -> typing.Union[str, _ForwardRef('Error')]
1751 # map input types to rpc msg
1753 msg
= dict(type='Uniter', request
='WatchForModelConfigChanges', version
=5, params
=_params
)
1755 reply
= await self
.rpc(msg
)
1760 @ReturnMapping(NotifyWatchResults
)
1761 async def WatchLeadershipSettings(self
, entities
):
1763 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1764 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1766 # map input types to rpc msg
1768 msg
= dict(type='Uniter', request
='WatchLeadershipSettings', version
=5, params
=_params
)
1769 _params
['entities'] = entities
1770 reply
= await self
.rpc(msg
)
1775 @ReturnMapping(NotifyWatchResults
)
1776 async def WatchMeterStatus(self
, entities
):
1778 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1779 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1781 # map input types to rpc msg
1783 msg
= dict(type='Uniter', request
='WatchMeterStatus', version
=5, params
=_params
)
1784 _params
['entities'] = entities
1785 reply
= await self
.rpc(msg
)
1790 @ReturnMapping(RelationUnitsWatchResults
)
1791 async def WatchRelationUnits(self
, relation_units
):
1793 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1794 Returns -> typing.Sequence<+T_co>[~RelationUnitsWatchResult]<~RelationUnitsWatchResult>
1796 # map input types to rpc msg
1798 msg
= dict(type='Uniter', request
='WatchRelationUnits', version
=5, params
=_params
)
1799 _params
['relation-units'] = relation_units
1800 reply
= await self
.rpc(msg
)
1805 @ReturnMapping(NotifyWatchResults
)
1806 async def WatchStorageAttachments(self
, ids
):
1808 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1809 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1811 # map input types to rpc msg
1813 msg
= dict(type='Uniter', request
='WatchStorageAttachments', version
=5, params
=_params
)
1814 _params
['ids'] = ids
1815 reply
= await self
.rpc(msg
)
1820 @ReturnMapping(NotifyWatchResults
)
1821 async def WatchUnitAddresses(self
, entities
):
1823 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1824 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1826 # map input types to rpc msg
1828 msg
= dict(type='Uniter', request
='WatchUnitAddresses', version
=5, params
=_params
)
1829 _params
['entities'] = entities
1830 reply
= await self
.rpc(msg
)
1835 @ReturnMapping(StringsWatchResults
)
1836 async def WatchUnitRelations(self
, entities
):
1838 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1839 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1841 # map input types to rpc msg
1843 msg
= dict(type='Uniter', request
='WatchUnitRelations', version
=5, params
=_params
)
1844 _params
['entities'] = entities
1845 reply
= await self
.rpc(msg
)
1850 @ReturnMapping(StringsWatchResults
)
1851 async def WatchUnitStorageAttachments(self
, entities
):
1853 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1854 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1856 # map input types to rpc msg
1858 msg
= dict(type='Uniter', request
='WatchUnitStorageAttachments', version
=5, params
=_params
)
1859 _params
['entities'] = entities
1860 reply
= await self
.rpc(msg
)
1865 @ReturnMapping(StringResults
)
1866 async def WorkloadVersion(self
, entities
):
1868 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1869 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1871 # map input types to rpc msg
1873 msg
= dict(type='Uniter', request
='WorkloadVersion', version
=5, params
=_params
)
1874 _params
['entities'] = entities
1875 reply
= await self
.rpc(msg
)