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 'LifeResult': {'additionalProperties': False,
235 'properties': {'error': {'$ref': '#/definitions/Error'},
236 'life': {'type': 'string'}},
237 'required': ['life'],
239 'LifeResults': {'additionalProperties': False,
240 'properties': {'results': {'items': {'$ref': '#/definitions/LifeResult'},
242 'required': ['results'],
244 'Macaroon': {'additionalProperties': False, 'type': 'object'},
245 'MachinePortRange': {'additionalProperties': False,
246 'properties': {'port-range': {'$ref': '#/definitions/PortRange'},
247 'relation-tag': {'type': 'string'},
248 'unit-tag': {'type': 'string'}},
249 'required': ['unit-tag',
253 'MachinePortsResult': {'additionalProperties': False,
254 'properties': {'error': {'$ref': '#/definitions/Error'},
255 'ports': {'items': {'$ref': '#/definitions/MachinePortRange'},
257 'required': ['ports'],
259 'MachinePortsResults': {'additionalProperties': False,
260 'properties': {'results': {'items': {'$ref': '#/definitions/MachinePortsResult'},
262 'required': ['results'],
264 'MergeLeadershipSettingsBulkParams': {'additionalProperties': False,
265 'properties': {'params': {'items': {'$ref': '#/definitions/MergeLeadershipSettingsParam'},
267 'required': ['params'],
269 'MergeLeadershipSettingsParam': {'additionalProperties': False,
270 'properties': {'application-tag': {'type': 'string'},
271 'settings': {'patternProperties': {'.*': {'type': 'string'}},
273 'required': ['application-tag',
276 'MeterStatusResult': {'additionalProperties': False,
277 'properties': {'code': {'type': 'string'},
278 'error': {'$ref': '#/definitions/Error'},
279 'info': {'type': 'string'}},
280 'required': ['code', 'info'],
282 'MeterStatusResults': {'additionalProperties': False,
283 'properties': {'results': {'items': {'$ref': '#/definitions/MeterStatusResult'},
285 'required': ['results'],
287 'Metric': {'additionalProperties': False,
288 'properties': {'key': {'type': 'string'},
289 'time': {'format': 'date-time',
291 'value': {'type': 'string'}},
292 'required': ['key', 'value', 'time'],
294 'MetricBatch': {'additionalProperties': False,
295 'properties': {'charm-url': {'type': 'string'},
296 'created': {'format': 'date-time',
298 'metrics': {'items': {'$ref': '#/definitions/Metric'},
300 'uuid': {'type': 'string'}},
306 'MetricBatchParam': {'additionalProperties': False,
307 'properties': {'batch': {'$ref': '#/definitions/MetricBatch'},
308 'tag': {'type': 'string'}},
309 'required': ['tag', 'batch'],
311 'MetricBatchParams': {'additionalProperties': False,
312 'properties': {'batches': {'items': {'$ref': '#/definitions/MetricBatchParam'},
314 'required': ['batches'],
316 'ModelConfigResult': {'additionalProperties': False,
317 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
320 'required': ['config'],
322 'ModelResult': {'additionalProperties': False,
323 'properties': {'error': {'$ref': '#/definitions/Error'},
324 'name': {'type': 'string'},
325 'uuid': {'type': 'string'}},
326 'required': ['name', 'uuid'],
328 'NetworkConfig': {'additionalProperties': False,
329 'properties': {'address': {'type': 'string'},
330 'cidr': {'type': 'string'},
331 'config-type': {'type': 'string'},
332 'device-index': {'type': 'integer'},
333 'disabled': {'type': 'boolean'},
334 'dns-search-domains': {'items': {'type': 'string'},
336 'dns-servers': {'items': {'type': 'string'},
338 'gateway-address': {'type': 'string'},
339 'interface-name': {'type': 'string'},
340 'interface-type': {'type': 'string'},
341 'mac-address': {'type': 'string'},
342 'mtu': {'type': 'integer'},
343 'no-auto-start': {'type': 'boolean'},
344 'parent-interface-name': {'type': 'string'},
345 'provider-address-id': {'type': 'string'},
346 'provider-id': {'type': 'string'},
347 'provider-space-id': {'type': 'string'},
348 'provider-subnet-id': {'type': 'string'},
349 'provider-vlan-id': {'type': 'string'},
350 'routes': {'items': {'$ref': '#/definitions/NetworkRoute'},
352 'vlan-tag': {'type': 'integer'}},
353 'required': ['device-index',
358 'provider-subnet-id',
360 'provider-address-id',
364 'parent-interface-name',
368 'NetworkRoute': {'additionalProperties': False,
369 'properties': {'destination-cidr': {'type': 'string'},
370 'gateway-ip': {'type': 'string'},
371 'metric': {'type': 'integer'}},
372 'required': ['destination-cidr',
376 'NotifyWatchResult': {'additionalProperties': False,
377 'properties': {'NotifyWatcherId': {'type': 'string'},
378 'error': {'$ref': '#/definitions/Error'}},
379 'required': ['NotifyWatcherId'],
381 'NotifyWatchResults': {'additionalProperties': False,
382 'properties': {'results': {'items': {'$ref': '#/definitions/NotifyWatchResult'},
384 'required': ['results'],
386 'PortRange': {'additionalProperties': False,
387 'properties': {'from-port': {'type': 'integer'},
388 'protocol': {'type': 'string'},
389 'to-port': {'type': 'integer'}},
390 'required': ['from-port', 'to-port', 'protocol'],
392 'RelationIds': {'additionalProperties': False,
393 'properties': {'relation-ids': {'items': {'type': 'integer'},
395 'required': ['relation-ids'],
397 'RelationResult': {'additionalProperties': False,
398 'properties': {'endpoint': {'$ref': '#/definitions/Endpoint'},
399 'error': {'$ref': '#/definitions/Error'},
400 'id': {'type': 'integer'},
401 'key': {'type': 'string'},
402 'life': {'type': 'string'}},
408 'RelationResults': {'additionalProperties': False,
409 'properties': {'results': {'items': {'$ref': '#/definitions/RelationResult'},
411 'required': ['results'],
413 'RelationUnit': {'additionalProperties': False,
414 'properties': {'relation': {'type': 'string'},
415 'unit': {'type': 'string'}},
416 'required': ['relation', 'unit'],
418 'RelationUnitPair': {'additionalProperties': False,
419 'properties': {'local-unit': {'type': 'string'},
420 'relation': {'type': 'string'},
421 'remote-unit': {'type': 'string'}},
422 'required': ['relation',
426 'RelationUnitPairs': {'additionalProperties': False,
427 'properties': {'relation-unit-pairs': {'items': {'$ref': '#/definitions/RelationUnitPair'},
429 'required': ['relation-unit-pairs'],
431 'RelationUnitSettings': {'additionalProperties': False,
432 'properties': {'relation': {'type': 'string'},
433 'settings': {'patternProperties': {'.*': {'type': 'string'}},
435 'unit': {'type': 'string'}},
436 'required': ['relation',
440 'RelationUnits': {'additionalProperties': False,
441 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnit'},
443 'required': ['relation-units'],
445 'RelationUnitsChange': {'additionalProperties': False,
446 'properties': {'changed': {'patternProperties': {'.*': {'$ref': '#/definitions/UnitSettings'}},
448 'departed': {'items': {'type': 'string'},
450 'required': ['changed'],
452 'RelationUnitsSettings': {'additionalProperties': False,
453 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnitSettings'},
455 'required': ['relation-units'],
457 'RelationUnitsWatchResult': {'additionalProperties': False,
458 'properties': {'changes': {'$ref': '#/definitions/RelationUnitsChange'},
459 'error': {'$ref': '#/definitions/Error'},
460 'watcher-id': {'type': 'string'}},
461 'required': ['watcher-id',
464 'RelationUnitsWatchResults': {'additionalProperties': False,
465 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitsWatchResult'},
467 'required': ['results'],
469 'ResolvedModeResult': {'additionalProperties': False,
470 'properties': {'error': {'$ref': '#/definitions/Error'},
471 'mode': {'type': 'string'}},
472 'required': ['mode'],
474 'ResolvedModeResults': {'additionalProperties': False,
475 'properties': {'results': {'items': {'$ref': '#/definitions/ResolvedModeResult'},
477 'required': ['results'],
479 'SetStatus': {'additionalProperties': False,
480 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityStatusArgs'},
482 'required': ['entities'],
484 'SettingsResult': {'additionalProperties': False,
485 'properties': {'error': {'$ref': '#/definitions/Error'},
486 'settings': {'patternProperties': {'.*': {'type': 'string'}},
488 'required': ['settings'],
490 'SettingsResults': {'additionalProperties': False,
491 'properties': {'results': {'items': {'$ref': '#/definitions/SettingsResult'},
493 'required': ['results'],
495 'StatusResult': {'additionalProperties': False,
496 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
499 'error': {'$ref': '#/definitions/Error'},
500 'id': {'type': 'string'},
501 'info': {'type': 'string'},
502 'life': {'type': 'string'},
503 'since': {'format': 'date-time',
505 'status': {'type': 'string'}},
513 'StatusResults': {'additionalProperties': False,
514 'properties': {'results': {'items': {'$ref': '#/definitions/StatusResult'},
516 'required': ['results'],
518 'StorageAddParams': {'additionalProperties': False,
519 'properties': {'name': {'type': 'string'},
520 'storage': {'$ref': '#/definitions/StorageConstraints'},
521 'unit': {'type': 'string'}},
522 'required': ['unit', 'name', 'storage'],
524 'StorageAttachment': {'additionalProperties': False,
525 'properties': {'kind': {'type': 'integer'},
526 'life': {'type': 'string'},
527 'location': {'type': 'string'},
528 'owner-tag': {'type': 'string'},
529 'storage-tag': {'type': 'string'},
530 'unit-tag': {'type': 'string'}},
531 'required': ['storage-tag',
538 'StorageAttachmentId': {'additionalProperties': False,
539 'properties': {'storage-tag': {'type': 'string'},
540 'unit-tag': {'type': 'string'}},
541 'required': ['storage-tag',
544 'StorageAttachmentIds': {'additionalProperties': False,
545 'properties': {'ids': {'items': {'$ref': '#/definitions/StorageAttachmentId'},
549 'StorageAttachmentIdsResult': {'additionalProperties': False,
550 'properties': {'error': {'$ref': '#/definitions/Error'},
551 'result': {'$ref': '#/definitions/StorageAttachmentIds'}},
552 'required': ['result'],
554 'StorageAttachmentIdsResults': {'additionalProperties': False,
555 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentIdsResult'},
558 'StorageAttachmentResult': {'additionalProperties': False,
559 'properties': {'error': {'$ref': '#/definitions/Error'},
560 'result': {'$ref': '#/definitions/StorageAttachment'}},
561 'required': ['result'],
563 'StorageAttachmentResults': {'additionalProperties': False,
564 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentResult'},
567 'StorageConstraints': {'additionalProperties': False,
568 'properties': {'count': {'type': 'integer'},
569 'pool': {'type': 'string'},
570 'size': {'type': 'integer'}},
572 'StoragesAddParams': {'additionalProperties': False,
573 'properties': {'storages': {'items': {'$ref': '#/definitions/StorageAddParams'},
575 'required': ['storages'],
577 'StringBoolResult': {'additionalProperties': False,
578 'properties': {'error': {'$ref': '#/definitions/Error'},
579 'ok': {'type': 'boolean'},
580 'result': {'type': 'string'}},
581 'required': ['result', 'ok'],
583 'StringBoolResults': {'additionalProperties': False,
584 'properties': {'results': {'items': {'$ref': '#/definitions/StringBoolResult'},
586 'required': ['results'],
588 'StringResult': {'additionalProperties': False,
589 'properties': {'error': {'$ref': '#/definitions/Error'},
590 'result': {'type': 'string'}},
591 'required': ['result'],
593 'StringResults': {'additionalProperties': False,
594 'properties': {'results': {'items': {'$ref': '#/definitions/StringResult'},
596 'required': ['results'],
598 'StringsResult': {'additionalProperties': False,
599 'properties': {'error': {'$ref': '#/definitions/Error'},
600 'result': {'items': {'type': 'string'},
603 'StringsResults': {'additionalProperties': False,
604 'properties': {'results': {'items': {'$ref': '#/definitions/StringsResult'},
606 'required': ['results'],
608 'StringsWatchResult': {'additionalProperties': False,
609 'properties': {'changes': {'items': {'type': 'string'},
611 'error': {'$ref': '#/definitions/Error'},
612 'watcher-id': {'type': 'string'}},
613 'required': ['watcher-id'],
615 'StringsWatchResults': {'additionalProperties': False,
616 'properties': {'results': {'items': {'$ref': '#/definitions/StringsWatchResult'},
618 'required': ['results'],
620 'UnitNetworkConfig': {'additionalProperties': False,
621 'properties': {'binding-name': {'type': 'string'},
622 'unit-tag': {'type': 'string'}},
623 'required': ['unit-tag', 'binding-name'],
625 'UnitNetworkConfigResult': {'additionalProperties': False,
626 'properties': {'error': {'$ref': '#/definitions/Error'},
627 'info': {'items': {'$ref': '#/definitions/NetworkConfig'},
629 'required': ['info'],
631 'UnitNetworkConfigResults': {'additionalProperties': False,
632 'properties': {'results': {'items': {'$ref': '#/definitions/UnitNetworkConfigResult'},
634 'required': ['results'],
636 'UnitSettings': {'additionalProperties': False,
637 'properties': {'version': {'type': 'integer'}},
638 'required': ['version'],
640 'UnitsNetworkConfig': {'additionalProperties': False,
641 'properties': {'args': {'items': {'$ref': '#/definitions/UnitNetworkConfig'},
643 'required': ['args'],
645 'properties': {'APIAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
647 'APIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/APIHostPortsResult'}},
649 'Actions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
650 'Result': {'$ref': '#/definitions/ActionResults'}},
652 'AddMetricBatches': {'properties': {'Params': {'$ref': '#/definitions/MetricBatchParams'},
653 'Result': {'$ref': '#/definitions/ErrorResults'}},
655 'AddUnitStorage': {'properties': {'Params': {'$ref': '#/definitions/StoragesAddParams'},
656 'Result': {'$ref': '#/definitions/ErrorResults'}},
658 'AllMachinePorts': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
659 'Result': {'$ref': '#/definitions/MachinePortsResults'}},
661 'ApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
662 'Result': {'$ref': '#/definitions/ApplicationStatusResults'}},
664 'AssignedMachine': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
665 'Result': {'$ref': '#/definitions/StringResults'}},
667 'AvailabilityZone': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
668 'Result': {'$ref': '#/definitions/StringResults'}},
670 'BeginActions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
671 'Result': {'$ref': '#/definitions/ErrorResults'}},
673 'CACert': {'properties': {'Result': {'$ref': '#/definitions/BytesResult'}},
675 'CharmArchiveSha256': {'properties': {'Params': {'$ref': '#/definitions/CharmURLs'},
676 'Result': {'$ref': '#/definitions/StringResults'}},
678 'CharmModifiedVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
679 'Result': {'$ref': '#/definitions/IntResults'}},
681 'CharmURL': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
682 'Result': {'$ref': '#/definitions/StringBoolResults'}},
684 'ClearResolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
685 'Result': {'$ref': '#/definitions/ErrorResults'}},
687 'ClosePorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
688 'Result': {'$ref': '#/definitions/ErrorResults'}},
690 'ConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
691 'Result': {'$ref': '#/definitions/ConfigSettingsResults'}},
693 'CurrentModel': {'properties': {'Result': {'$ref': '#/definitions/ModelResult'}},
695 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
696 'Result': {'$ref': '#/definitions/ErrorResults'}},
698 'DestroyAllSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
699 'Result': {'$ref': '#/definitions/ErrorResults'}},
701 'DestroyUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
702 'Result': {'$ref': '#/definitions/ErrorResults'}},
704 'EnsureDead': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
705 'Result': {'$ref': '#/definitions/ErrorResults'}},
707 'EnterScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
708 'Result': {'$ref': '#/definitions/ErrorResults'}},
710 'FinishActions': {'properties': {'Params': {'$ref': '#/definitions/ActionExecutionResults'},
711 'Result': {'$ref': '#/definitions/ErrorResults'}},
713 'GetMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
714 'Result': {'$ref': '#/definitions/MeterStatusResults'}},
716 'GetPrincipal': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
717 'Result': {'$ref': '#/definitions/StringBoolResults'}},
719 'HasSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
720 'Result': {'$ref': '#/definitions/BoolResults'}},
722 'JoinedRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
723 'Result': {'$ref': '#/definitions/StringsResults'}},
725 'LeaveScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
726 'Result': {'$ref': '#/definitions/ErrorResults'}},
728 'Life': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
729 'Result': {'$ref': '#/definitions/LifeResults'}},
731 'Merge': {'properties': {'Params': {'$ref': '#/definitions/MergeLeadershipSettingsBulkParams'},
732 'Result': {'$ref': '#/definitions/ErrorResults'}},
734 'ModelConfig': {'properties': {'Result': {'$ref': '#/definitions/ModelConfigResult'}},
736 'ModelUUID': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
738 'NetworkConfig': {'properties': {'Params': {'$ref': '#/definitions/UnitsNetworkConfig'},
739 'Result': {'$ref': '#/definitions/UnitNetworkConfigResults'}},
741 'OpenPorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
742 'Result': {'$ref': '#/definitions/ErrorResults'}},
744 'PrivateAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
745 'Result': {'$ref': '#/definitions/StringResults'}},
747 'ProviderType': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
749 'PublicAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
750 'Result': {'$ref': '#/definitions/StringResults'}},
752 'Read': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
753 'Result': {'$ref': '#/definitions/GetLeadershipSettingsBulkResults'}},
755 'ReadRemoteSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitPairs'},
756 'Result': {'$ref': '#/definitions/SettingsResults'}},
758 'ReadSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
759 'Result': {'$ref': '#/definitions/SettingsResults'}},
761 'Relation': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
762 'Result': {'$ref': '#/definitions/RelationResults'}},
764 'RelationById': {'properties': {'Params': {'$ref': '#/definitions/RelationIds'},
765 'Result': {'$ref': '#/definitions/RelationResults'}},
767 'RemoveStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
768 'Result': {'$ref': '#/definitions/ErrorResults'}},
770 'RequestReboot': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
771 'Result': {'$ref': '#/definitions/ErrorResults'}},
773 'Resolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
774 'Result': {'$ref': '#/definitions/ResolvedModeResults'}},
776 'SLALevel': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
778 'SetAgentStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
779 'Result': {'$ref': '#/definitions/ErrorResults'}},
781 'SetApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
782 'Result': {'$ref': '#/definitions/ErrorResults'}},
784 'SetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/EntitiesCharmURL'},
785 'Result': {'$ref': '#/definitions/ErrorResults'}},
787 'SetStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
788 'Result': {'$ref': '#/definitions/ErrorResults'}},
790 'SetUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
791 'Result': {'$ref': '#/definitions/ErrorResults'}},
793 'SetWorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/EntityWorkloadVersions'},
794 'Result': {'$ref': '#/definitions/ErrorResults'}},
796 'StorageAttachmentLife': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
797 'Result': {'$ref': '#/definitions/LifeResults'}},
799 'StorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
800 'Result': {'$ref': '#/definitions/StorageAttachmentResults'}},
802 'UnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
803 'Result': {'$ref': '#/definitions/StatusResults'}},
805 'UnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
806 'Result': {'$ref': '#/definitions/StorageAttachmentIdsResults'}},
808 'UpdateSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitsSettings'},
809 'Result': {'$ref': '#/definitions/ErrorResults'}},
811 'Watch': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
812 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
814 'WatchAPIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
816 'WatchActionNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
817 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
819 'WatchApplicationRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
820 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
822 'WatchConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
823 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
825 'WatchForModelConfigChanges': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
827 'WatchLeadershipSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
828 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
830 'WatchMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
831 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
833 'WatchRelationUnits': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
834 'Result': {'$ref': '#/definitions/RelationUnitsWatchResults'}},
836 'WatchStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
837 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
839 'WatchUnitAddresses': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
840 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
842 'WatchUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
843 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
845 'WorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
846 'Result': {'$ref': '#/definitions/StringResults'}},
851 @ReturnMapping(StringsResult
)
852 async def APIAddresses(self
):
855 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence<+T_co>[str]]
857 # map input types to rpc msg
859 msg
= dict(type='Uniter', request
='APIAddresses', version
=5, params
=_params
)
861 reply
= await self
.rpc(msg
)
866 @ReturnMapping(APIHostPortsResult
)
867 async def APIHostPorts(self
):
870 Returns -> typing.Sequence<+T_co>[~HostPort]<~HostPort>
872 # map input types to rpc msg
874 msg
= dict(type='Uniter', request
='APIHostPorts', version
=5, params
=_params
)
876 reply
= await self
.rpc(msg
)
881 @ReturnMapping(ActionResults
)
882 async def Actions(self
, entities
):
884 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
885 Returns -> typing.Sequence<+T_co>[~ActionResult]<~ActionResult>
887 # map input types to rpc msg
889 msg
= dict(type='Uniter', request
='Actions', version
=5, params
=_params
)
890 _params
['entities'] = entities
891 reply
= await self
.rpc(msg
)
896 @ReturnMapping(ErrorResults
)
897 async def AddMetricBatches(self
, batches
):
899 batches : typing.Sequence<+T_co>[~MetricBatchParam]<~MetricBatchParam>
900 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
902 # map input types to rpc msg
904 msg
= dict(type='Uniter', request
='AddMetricBatches', version
=5, params
=_params
)
905 _params
['batches'] = batches
906 reply
= await self
.rpc(msg
)
911 @ReturnMapping(ErrorResults
)
912 async def AddUnitStorage(self
, storages
):
914 storages : typing.Sequence<+T_co>[~StorageAddParams]<~StorageAddParams>
915 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
917 # map input types to rpc msg
919 msg
= dict(type='Uniter', request
='AddUnitStorage', version
=5, params
=_params
)
920 _params
['storages'] = storages
921 reply
= await self
.rpc(msg
)
926 @ReturnMapping(MachinePortsResults
)
927 async def AllMachinePorts(self
, entities
):
929 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
930 Returns -> typing.Sequence<+T_co>[~MachinePortsResult]<~MachinePortsResult>
932 # map input types to rpc msg
934 msg
= dict(type='Uniter', request
='AllMachinePorts', version
=5, params
=_params
)
935 _params
['entities'] = entities
936 reply
= await self
.rpc(msg
)
941 @ReturnMapping(ApplicationStatusResults
)
942 async def ApplicationStatus(self
, entities
):
944 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
945 Returns -> typing.Sequence<+T_co>[~ApplicationStatusResult]<~ApplicationStatusResult>
947 # map input types to rpc msg
949 msg
= dict(type='Uniter', request
='ApplicationStatus', version
=5, params
=_params
)
950 _params
['entities'] = entities
951 reply
= await self
.rpc(msg
)
956 @ReturnMapping(StringResults
)
957 async def AssignedMachine(self
, entities
):
959 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
960 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
962 # map input types to rpc msg
964 msg
= dict(type='Uniter', request
='AssignedMachine', version
=5, params
=_params
)
965 _params
['entities'] = entities
966 reply
= await self
.rpc(msg
)
971 @ReturnMapping(StringResults
)
972 async def AvailabilityZone(self
, entities
):
974 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
975 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
977 # map input types to rpc msg
979 msg
= dict(type='Uniter', request
='AvailabilityZone', version
=5, params
=_params
)
980 _params
['entities'] = entities
981 reply
= await self
.rpc(msg
)
986 @ReturnMapping(ErrorResults
)
987 async def BeginActions(self
, entities
):
989 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
990 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
992 # map input types to rpc msg
994 msg
= dict(type='Uniter', request
='BeginActions', version
=5, params
=_params
)
995 _params
['entities'] = entities
996 reply
= await self
.rpc(msg
)
1001 @ReturnMapping(BytesResult
)
1002 async def CACert(self
):
1005 Returns -> typing.Sequence<+T_co>[int]
1007 # map input types to rpc msg
1009 msg
= dict(type='Uniter', request
='CACert', version
=5, params
=_params
)
1011 reply
= await self
.rpc(msg
)
1016 @ReturnMapping(StringResults
)
1017 async def CharmArchiveSha256(self
, urls
):
1019 urls : typing.Sequence<+T_co>[~CharmURL]<~CharmURL>
1020 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1022 # map input types to rpc msg
1024 msg
= dict(type='Uniter', request
='CharmArchiveSha256', version
=5, params
=_params
)
1025 _params
['urls'] = urls
1026 reply
= await self
.rpc(msg
)
1031 @ReturnMapping(IntResults
)
1032 async def CharmModifiedVersion(self
, entities
):
1034 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1035 Returns -> typing.Sequence<+T_co>[~IntResult]<~IntResult>
1037 # map input types to rpc msg
1039 msg
= dict(type='Uniter', request
='CharmModifiedVersion', version
=5, params
=_params
)
1040 _params
['entities'] = entities
1041 reply
= await self
.rpc(msg
)
1046 @ReturnMapping(StringBoolResults
)
1047 async def CharmURL(self
, entities
):
1049 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1050 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
1052 # map input types to rpc msg
1054 msg
= dict(type='Uniter', request
='CharmURL', version
=5, params
=_params
)
1055 _params
['entities'] = entities
1056 reply
= await self
.rpc(msg
)
1061 @ReturnMapping(ErrorResults
)
1062 async def ClearResolved(self
, entities
):
1064 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1065 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1067 # map input types to rpc msg
1069 msg
= dict(type='Uniter', request
='ClearResolved', version
=5, params
=_params
)
1070 _params
['entities'] = entities
1071 reply
= await self
.rpc(msg
)
1076 @ReturnMapping(ErrorResults
)
1077 async def ClosePorts(self
, entities
):
1079 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
1080 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1082 # map input types to rpc msg
1084 msg
= dict(type='Uniter', request
='ClosePorts', version
=5, params
=_params
)
1085 _params
['entities'] = entities
1086 reply
= await self
.rpc(msg
)
1091 @ReturnMapping(ConfigSettingsResults
)
1092 async def ConfigSettings(self
, entities
):
1094 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1095 Returns -> typing.Sequence<+T_co>[~ConfigSettingsResult]<~ConfigSettingsResult>
1097 # map input types to rpc msg
1099 msg
= dict(type='Uniter', request
='ConfigSettings', version
=5, params
=_params
)
1100 _params
['entities'] = entities
1101 reply
= await self
.rpc(msg
)
1106 @ReturnMapping(ModelResult
)
1107 async def CurrentModel(self
):
1110 Returns -> typing.Union[_ForwardRef('Error'), str]
1112 # map input types to rpc msg
1114 msg
= dict(type='Uniter', request
='CurrentModel', version
=5, params
=_params
)
1116 reply
= await self
.rpc(msg
)
1121 @ReturnMapping(ErrorResults
)
1122 async def Destroy(self
, entities
):
1124 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1125 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1127 # map input types to rpc msg
1129 msg
= dict(type='Uniter', request
='Destroy', version
=5, params
=_params
)
1130 _params
['entities'] = entities
1131 reply
= await self
.rpc(msg
)
1136 @ReturnMapping(ErrorResults
)
1137 async def DestroyAllSubordinates(self
, entities
):
1139 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1140 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1142 # map input types to rpc msg
1144 msg
= dict(type='Uniter', request
='DestroyAllSubordinates', version
=5, params
=_params
)
1145 _params
['entities'] = entities
1146 reply
= await self
.rpc(msg
)
1151 @ReturnMapping(ErrorResults
)
1152 async def DestroyUnitStorageAttachments(self
, entities
):
1154 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1155 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1157 # map input types to rpc msg
1159 msg
= dict(type='Uniter', request
='DestroyUnitStorageAttachments', version
=5, params
=_params
)
1160 _params
['entities'] = entities
1161 reply
= await self
.rpc(msg
)
1166 @ReturnMapping(ErrorResults
)
1167 async def EnsureDead(self
, entities
):
1169 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1170 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1172 # map input types to rpc msg
1174 msg
= dict(type='Uniter', request
='EnsureDead', version
=5, params
=_params
)
1175 _params
['entities'] = entities
1176 reply
= await self
.rpc(msg
)
1181 @ReturnMapping(ErrorResults
)
1182 async def EnterScope(self
, relation_units
):
1184 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1185 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1187 # map input types to rpc msg
1189 msg
= dict(type='Uniter', request
='EnterScope', version
=5, params
=_params
)
1190 _params
['relation-units'] = relation_units
1191 reply
= await self
.rpc(msg
)
1196 @ReturnMapping(ErrorResults
)
1197 async def FinishActions(self
, results
):
1199 results : typing.Sequence<+T_co>[~ActionExecutionResult]<~ActionExecutionResult>
1200 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1202 # map input types to rpc msg
1204 msg
= dict(type='Uniter', request
='FinishActions', version
=5, params
=_params
)
1205 _params
['results'] = results
1206 reply
= await self
.rpc(msg
)
1211 @ReturnMapping(MeterStatusResults
)
1212 async def GetMeterStatus(self
, entities
):
1214 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1215 Returns -> typing.Sequence<+T_co>[~MeterStatusResult]<~MeterStatusResult>
1217 # map input types to rpc msg
1219 msg
= dict(type='Uniter', request
='GetMeterStatus', version
=5, params
=_params
)
1220 _params
['entities'] = entities
1221 reply
= await self
.rpc(msg
)
1226 @ReturnMapping(StringBoolResults
)
1227 async def GetPrincipal(self
, entities
):
1229 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1230 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
1232 # map input types to rpc msg
1234 msg
= dict(type='Uniter', request
='GetPrincipal', version
=5, params
=_params
)
1235 _params
['entities'] = entities
1236 reply
= await self
.rpc(msg
)
1241 @ReturnMapping(BoolResults
)
1242 async def HasSubordinates(self
, entities
):
1244 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1245 Returns -> typing.Sequence<+T_co>[~BoolResult]<~BoolResult>
1247 # map input types to rpc msg
1249 msg
= dict(type='Uniter', request
='HasSubordinates', version
=5, params
=_params
)
1250 _params
['entities'] = entities
1251 reply
= await self
.rpc(msg
)
1256 @ReturnMapping(StringsResults
)
1257 async def JoinedRelations(self
, entities
):
1259 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1260 Returns -> typing.Sequence<+T_co>[~StringsResult]<~StringsResult>
1262 # map input types to rpc msg
1264 msg
= dict(type='Uniter', request
='JoinedRelations', version
=5, params
=_params
)
1265 _params
['entities'] = entities
1266 reply
= await self
.rpc(msg
)
1271 @ReturnMapping(ErrorResults
)
1272 async def LeaveScope(self
, relation_units
):
1274 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1275 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1277 # map input types to rpc msg
1279 msg
= dict(type='Uniter', request
='LeaveScope', version
=5, params
=_params
)
1280 _params
['relation-units'] = relation_units
1281 reply
= await self
.rpc(msg
)
1286 @ReturnMapping(LifeResults
)
1287 async def Life(self
, entities
):
1289 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1290 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
1292 # map input types to rpc msg
1294 msg
= dict(type='Uniter', request
='Life', version
=5, params
=_params
)
1295 _params
['entities'] = entities
1296 reply
= await self
.rpc(msg
)
1301 @ReturnMapping(ErrorResults
)
1302 async def Merge(self
, params
):
1304 params : typing.Sequence<+T_co>[~MergeLeadershipSettingsParam]<~MergeLeadershipSettingsParam>
1305 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1307 # map input types to rpc msg
1309 msg
= dict(type='Uniter', request
='Merge', version
=5, params
=_params
)
1310 _params
['params'] = params
1311 reply
= await self
.rpc(msg
)
1316 @ReturnMapping(ModelConfigResult
)
1317 async def ModelConfig(self
):
1320 Returns -> typing.Mapping<~KT, +VT_co>[str, typing.Any]
1322 # map input types to rpc msg
1324 msg
= dict(type='Uniter', request
='ModelConfig', version
=5, params
=_params
)
1326 reply
= await self
.rpc(msg
)
1331 @ReturnMapping(StringResult
)
1332 async def ModelUUID(self
):
1335 Returns -> typing.Union[_ForwardRef('Error'), str]
1337 # map input types to rpc msg
1339 msg
= dict(type='Uniter', request
='ModelUUID', version
=5, params
=_params
)
1341 reply
= await self
.rpc(msg
)
1346 @ReturnMapping(UnitNetworkConfigResults
)
1347 async def NetworkConfig(self
, args
):
1349 args : typing.Sequence<+T_co>[~UnitNetworkConfig]<~UnitNetworkConfig>
1350 Returns -> typing.Sequence<+T_co>[~UnitNetworkConfigResult]<~UnitNetworkConfigResult>
1352 # map input types to rpc msg
1354 msg
= dict(type='Uniter', request
='NetworkConfig', version
=5, params
=_params
)
1355 _params
['args'] = args
1356 reply
= await self
.rpc(msg
)
1361 @ReturnMapping(ErrorResults
)
1362 async def OpenPorts(self
, entities
):
1364 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
1365 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1367 # map input types to rpc msg
1369 msg
= dict(type='Uniter', request
='OpenPorts', version
=5, params
=_params
)
1370 _params
['entities'] = entities
1371 reply
= await self
.rpc(msg
)
1376 @ReturnMapping(StringResults
)
1377 async def PrivateAddress(self
, entities
):
1379 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1380 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1382 # map input types to rpc msg
1384 msg
= dict(type='Uniter', request
='PrivateAddress', version
=5, params
=_params
)
1385 _params
['entities'] = entities
1386 reply
= await self
.rpc(msg
)
1391 @ReturnMapping(StringResult
)
1392 async def ProviderType(self
):
1395 Returns -> typing.Union[_ForwardRef('Error'), str]
1397 # map input types to rpc msg
1399 msg
= dict(type='Uniter', request
='ProviderType', version
=5, params
=_params
)
1401 reply
= await self
.rpc(msg
)
1406 @ReturnMapping(StringResults
)
1407 async def PublicAddress(self
, entities
):
1409 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1410 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1412 # map input types to rpc msg
1414 msg
= dict(type='Uniter', request
='PublicAddress', version
=5, params
=_params
)
1415 _params
['entities'] = entities
1416 reply
= await self
.rpc(msg
)
1421 @ReturnMapping(GetLeadershipSettingsBulkResults
)
1422 async def Read(self
, entities
):
1424 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1425 Returns -> typing.Sequence<+T_co>[~GetLeadershipSettingsResult]<~GetLeadershipSettingsResult>
1427 # map input types to rpc msg
1429 msg
= dict(type='Uniter', request
='Read', version
=5, params
=_params
)
1430 _params
['entities'] = entities
1431 reply
= await self
.rpc(msg
)
1436 @ReturnMapping(SettingsResults
)
1437 async def ReadRemoteSettings(self
, relation_unit_pairs
):
1439 relation_unit_pairs : typing.Sequence<+T_co>[~RelationUnitPair]<~RelationUnitPair>
1440 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
1442 # map input types to rpc msg
1444 msg
= dict(type='Uniter', request
='ReadRemoteSettings', version
=5, params
=_params
)
1445 _params
['relation-unit-pairs'] = relation_unit_pairs
1446 reply
= await self
.rpc(msg
)
1451 @ReturnMapping(SettingsResults
)
1452 async def ReadSettings(self
, relation_units
):
1454 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1455 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
1457 # map input types to rpc msg
1459 msg
= dict(type='Uniter', request
='ReadSettings', version
=5, params
=_params
)
1460 _params
['relation-units'] = relation_units
1461 reply
= await self
.rpc(msg
)
1466 @ReturnMapping(RelationResults
)
1467 async def Relation(self
, relation_units
):
1469 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1470 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
1472 # map input types to rpc msg
1474 msg
= dict(type='Uniter', request
='Relation', version
=5, params
=_params
)
1475 _params
['relation-units'] = relation_units
1476 reply
= await self
.rpc(msg
)
1481 @ReturnMapping(RelationResults
)
1482 async def RelationById(self
, relation_ids
):
1484 relation_ids : typing.Sequence<+T_co>[int]
1485 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
1487 # map input types to rpc msg
1489 msg
= dict(type='Uniter', request
='RelationById', version
=5, params
=_params
)
1490 _params
['relation-ids'] = relation_ids
1491 reply
= await self
.rpc(msg
)
1496 @ReturnMapping(ErrorResults
)
1497 async def RemoveStorageAttachments(self
, ids
):
1499 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1500 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1502 # map input types to rpc msg
1504 msg
= dict(type='Uniter', request
='RemoveStorageAttachments', version
=5, params
=_params
)
1505 _params
['ids'] = ids
1506 reply
= await self
.rpc(msg
)
1511 @ReturnMapping(ErrorResults
)
1512 async def RequestReboot(self
, entities
):
1514 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1515 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1517 # map input types to rpc msg
1519 msg
= dict(type='Uniter', request
='RequestReboot', version
=5, params
=_params
)
1520 _params
['entities'] = entities
1521 reply
= await self
.rpc(msg
)
1526 @ReturnMapping(ResolvedModeResults
)
1527 async def Resolved(self
, entities
):
1529 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1530 Returns -> typing.Sequence<+T_co>[~ResolvedModeResult]<~ResolvedModeResult>
1532 # map input types to rpc msg
1534 msg
= dict(type='Uniter', request
='Resolved', version
=5, params
=_params
)
1535 _params
['entities'] = entities
1536 reply
= await self
.rpc(msg
)
1541 @ReturnMapping(StringResult
)
1542 async def SLALevel(self
):
1545 Returns -> typing.Union[_ForwardRef('Error'), str]
1547 # map input types to rpc msg
1549 msg
= dict(type='Uniter', request
='SLALevel', version
=5, params
=_params
)
1551 reply
= await self
.rpc(msg
)
1556 @ReturnMapping(ErrorResults
)
1557 async def SetAgentStatus(self
, entities
):
1559 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1560 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1562 # map input types to rpc msg
1564 msg
= dict(type='Uniter', request
='SetAgentStatus', version
=5, params
=_params
)
1565 _params
['entities'] = entities
1566 reply
= await self
.rpc(msg
)
1571 @ReturnMapping(ErrorResults
)
1572 async def SetApplicationStatus(self
, entities
):
1574 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1575 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1577 # map input types to rpc msg
1579 msg
= dict(type='Uniter', request
='SetApplicationStatus', version
=5, params
=_params
)
1580 _params
['entities'] = entities
1581 reply
= await self
.rpc(msg
)
1586 @ReturnMapping(ErrorResults
)
1587 async def SetCharmURL(self
, entities
):
1589 entities : typing.Sequence<+T_co>[~EntityCharmURL]<~EntityCharmURL>
1590 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1592 # map input types to rpc msg
1594 msg
= dict(type='Uniter', request
='SetCharmURL', version
=5, params
=_params
)
1595 _params
['entities'] = entities
1596 reply
= await self
.rpc(msg
)
1601 @ReturnMapping(ErrorResults
)
1602 async def SetStatus(self
, entities
):
1604 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1605 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1607 # map input types to rpc msg
1609 msg
= dict(type='Uniter', request
='SetStatus', version
=5, params
=_params
)
1610 _params
['entities'] = entities
1611 reply
= await self
.rpc(msg
)
1616 @ReturnMapping(ErrorResults
)
1617 async def SetUnitStatus(self
, entities
):
1619 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1620 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1622 # map input types to rpc msg
1624 msg
= dict(type='Uniter', request
='SetUnitStatus', version
=5, params
=_params
)
1625 _params
['entities'] = entities
1626 reply
= await self
.rpc(msg
)
1631 @ReturnMapping(ErrorResults
)
1632 async def SetWorkloadVersion(self
, entities
):
1634 entities : typing.Sequence<+T_co>[~EntityWorkloadVersion]<~EntityWorkloadVersion>
1635 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1637 # map input types to rpc msg
1639 msg
= dict(type='Uniter', request
='SetWorkloadVersion', version
=5, params
=_params
)
1640 _params
['entities'] = entities
1641 reply
= await self
.rpc(msg
)
1646 @ReturnMapping(LifeResults
)
1647 async def StorageAttachmentLife(self
, ids
):
1649 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1650 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
1652 # map input types to rpc msg
1654 msg
= dict(type='Uniter', request
='StorageAttachmentLife', version
=5, params
=_params
)
1655 _params
['ids'] = ids
1656 reply
= await self
.rpc(msg
)
1661 @ReturnMapping(StorageAttachmentResults
)
1662 async def StorageAttachments(self
, ids
):
1664 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1665 Returns -> typing.Sequence<+T_co>[~StorageAttachmentResult]<~StorageAttachmentResult>
1667 # map input types to rpc msg
1669 msg
= dict(type='Uniter', request
='StorageAttachments', version
=5, params
=_params
)
1670 _params
['ids'] = ids
1671 reply
= await self
.rpc(msg
)
1676 @ReturnMapping(StatusResults
)
1677 async def UnitStatus(self
, entities
):
1679 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1680 Returns -> typing.Sequence<+T_co>[~StatusResult]<~StatusResult>
1682 # map input types to rpc msg
1684 msg
= dict(type='Uniter', request
='UnitStatus', version
=5, params
=_params
)
1685 _params
['entities'] = entities
1686 reply
= await self
.rpc(msg
)
1691 @ReturnMapping(StorageAttachmentIdsResults
)
1692 async def UnitStorageAttachments(self
, entities
):
1694 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1695 Returns -> typing.Sequence<+T_co>[~StorageAttachmentIdsResult]<~StorageAttachmentIdsResult>
1697 # map input types to rpc msg
1699 msg
= dict(type='Uniter', request
='UnitStorageAttachments', version
=5, params
=_params
)
1700 _params
['entities'] = entities
1701 reply
= await self
.rpc(msg
)
1706 @ReturnMapping(ErrorResults
)
1707 async def UpdateSettings(self
, relation_units
):
1709 relation_units : typing.Sequence<+T_co>[~RelationUnitSettings]<~RelationUnitSettings>
1710 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1712 # map input types to rpc msg
1714 msg
= dict(type='Uniter', request
='UpdateSettings', version
=5, params
=_params
)
1715 _params
['relation-units'] = relation_units
1716 reply
= await self
.rpc(msg
)
1721 @ReturnMapping(NotifyWatchResults
)
1722 async def Watch(self
, entities
):
1724 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1725 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1727 # map input types to rpc msg
1729 msg
= dict(type='Uniter', request
='Watch', version
=5, params
=_params
)
1730 _params
['entities'] = entities
1731 reply
= await self
.rpc(msg
)
1736 @ReturnMapping(NotifyWatchResult
)
1737 async def WatchAPIHostPorts(self
):
1740 Returns -> typing.Union[str, _ForwardRef('Error')]
1742 # map input types to rpc msg
1744 msg
= dict(type='Uniter', request
='WatchAPIHostPorts', version
=5, params
=_params
)
1746 reply
= await self
.rpc(msg
)
1751 @ReturnMapping(StringsWatchResults
)
1752 async def WatchActionNotifications(self
, entities
):
1754 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1755 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1757 # map input types to rpc msg
1759 msg
= dict(type='Uniter', request
='WatchActionNotifications', version
=5, params
=_params
)
1760 _params
['entities'] = entities
1761 reply
= await self
.rpc(msg
)
1766 @ReturnMapping(StringsWatchResults
)
1767 async def WatchApplicationRelations(self
, entities
):
1769 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1770 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1772 # map input types to rpc msg
1774 msg
= dict(type='Uniter', request
='WatchApplicationRelations', version
=5, params
=_params
)
1775 _params
['entities'] = entities
1776 reply
= await self
.rpc(msg
)
1781 @ReturnMapping(NotifyWatchResults
)
1782 async def WatchConfigSettings(self
, entities
):
1784 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1785 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1787 # map input types to rpc msg
1789 msg
= dict(type='Uniter', request
='WatchConfigSettings', version
=5, params
=_params
)
1790 _params
['entities'] = entities
1791 reply
= await self
.rpc(msg
)
1796 @ReturnMapping(NotifyWatchResult
)
1797 async def WatchForModelConfigChanges(self
):
1800 Returns -> typing.Union[str, _ForwardRef('Error')]
1802 # map input types to rpc msg
1804 msg
= dict(type='Uniter', request
='WatchForModelConfigChanges', version
=5, params
=_params
)
1806 reply
= await self
.rpc(msg
)
1811 @ReturnMapping(NotifyWatchResults
)
1812 async def WatchLeadershipSettings(self
, entities
):
1814 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1815 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1817 # map input types to rpc msg
1819 msg
= dict(type='Uniter', request
='WatchLeadershipSettings', version
=5, params
=_params
)
1820 _params
['entities'] = entities
1821 reply
= await self
.rpc(msg
)
1826 @ReturnMapping(NotifyWatchResults
)
1827 async def WatchMeterStatus(self
, entities
):
1829 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1830 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1832 # map input types to rpc msg
1834 msg
= dict(type='Uniter', request
='WatchMeterStatus', version
=5, params
=_params
)
1835 _params
['entities'] = entities
1836 reply
= await self
.rpc(msg
)
1841 @ReturnMapping(RelationUnitsWatchResults
)
1842 async def WatchRelationUnits(self
, relation_units
):
1844 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1845 Returns -> typing.Sequence<+T_co>[~RelationUnitsWatchResult]<~RelationUnitsWatchResult>
1847 # map input types to rpc msg
1849 msg
= dict(type='Uniter', request
='WatchRelationUnits', version
=5, params
=_params
)
1850 _params
['relation-units'] = relation_units
1851 reply
= await self
.rpc(msg
)
1856 @ReturnMapping(NotifyWatchResults
)
1857 async def WatchStorageAttachments(self
, ids
):
1859 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1860 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1862 # map input types to rpc msg
1864 msg
= dict(type='Uniter', request
='WatchStorageAttachments', version
=5, params
=_params
)
1865 _params
['ids'] = ids
1866 reply
= await self
.rpc(msg
)
1871 @ReturnMapping(NotifyWatchResults
)
1872 async def WatchUnitAddresses(self
, entities
):
1874 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1875 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1877 # map input types to rpc msg
1879 msg
= dict(type='Uniter', request
='WatchUnitAddresses', version
=5, params
=_params
)
1880 _params
['entities'] = entities
1881 reply
= await self
.rpc(msg
)
1886 @ReturnMapping(StringsWatchResults
)
1887 async def WatchUnitStorageAttachments(self
, entities
):
1889 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1890 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1892 # map input types to rpc msg
1894 msg
= dict(type='Uniter', request
='WatchUnitStorageAttachments', version
=5, params
=_params
)
1895 _params
['entities'] = entities
1896 reply
= await self
.rpc(msg
)
1901 @ReturnMapping(StringResults
)
1902 async def WorkloadVersion(self
, entities
):
1904 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1905 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1907 # map input types to rpc msg
1909 msg
= dict(type='Uniter', request
='WorkloadVersion', version
=5, params
=_params
)
1910 _params
['entities'] = entities
1911 reply
= await self
.rpc(msg
)