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 ProvisionerFacade(Type
):
11 schema
= {'definitions': {'APIHostPortsResult': {'additionalProperties': False,
12 'properties': {'servers': {'items': {'items': {'$ref': '#/definitions/HostPort'},
15 'required': ['servers'],
17 'Address': {'additionalProperties': False,
18 'properties': {'scope': {'type': 'string'},
19 'space-name': {'type': 'string'},
20 'type': {'type': 'string'},
21 'value': {'type': 'string'}},
22 'required': ['value', 'type', 'scope'],
24 'Binary': {'additionalProperties': False,
25 'properties': {'Arch': {'type': 'string'},
26 'Number': {'$ref': '#/definitions/Number'},
27 'Series': {'type': 'string'}},
28 'required': ['Number', 'Series', 'Arch'],
30 'BoolResult': {'additionalProperties': False,
31 'properties': {'error': {'$ref': '#/definitions/Error'},
32 'result': {'type': 'boolean'}},
33 'required': ['result'],
35 'BoolResults': {'additionalProperties': False,
36 'properties': {'results': {'items': {'$ref': '#/definitions/BoolResult'},
38 'required': ['results'],
40 'BytesResult': {'additionalProperties': False,
41 'properties': {'result': {'items': {'type': 'integer'},
43 'required': ['result'],
45 'CharmLXDProfile': {'additionalProperties': False,
46 'properties': {'config': {'patternProperties': {'.*': {'type': 'string'}},
48 'description': {'type': 'string'},
49 'devices': {'patternProperties': {'.*': {'patternProperties': {'.*': {'type': 'string'}},
52 'required': ['config',
56 'CloudImageMetadata': {'additionalProperties': False,
57 'properties': {'arch': {'type': 'string'},
58 'image-id': {'type': 'string'},
59 'priority': {'type': 'integer'},
60 'region': {'type': 'string'},
61 'root-storage-size': {'type': 'integer'},
62 'root-storage-type': {'type': 'string'},
63 'series': {'type': 'string'},
64 'source': {'type': 'string'},
65 'stream': {'type': 'string'},
66 'version': {'type': 'string'},
67 'virt-type': {'type': 'string'}},
68 'required': ['image-id',
76 'ConstraintsResult': {'additionalProperties': False,
77 'properties': {'constraints': {'$ref': '#/definitions/Value'},
78 'error': {'$ref': '#/definitions/Error'}},
79 'required': ['constraints'],
81 'ConstraintsResults': {'additionalProperties': False,
82 'properties': {'results': {'items': {'$ref': '#/definitions/ConstraintsResult'},
84 'required': ['results'],
86 'ContainerConfig': {'additionalProperties': False,
87 'properties': {'UpdateBehavior': {'$ref': '#/definitions/UpdateBehavior'},
88 'apt-mirror': {'type': 'string'},
89 'apt-proxy': {'$ref': '#/definitions/Settings'},
90 'authorized-keys': {'type': 'string'},
91 'cloudinit-userdata': {'patternProperties': {'.*': {'additionalProperties': True,
94 'container-inherit-properties': {'type': 'string'},
95 'juju-proxy': {'$ref': '#/definitions/Settings'},
96 'legacy-proxy': {'$ref': '#/definitions/Settings'},
97 'provider-type': {'type': 'string'},
98 'snap-proxy': {'$ref': '#/definitions/Settings'},
99 'ssl-hostname-verification': {'type': 'boolean'}},
100 'required': ['provider-type',
102 'ssl-hostname-verification',
110 'ContainerLXDProfile': {'additionalProperties': False,
111 'properties': {'name': {'type': 'string'},
112 'profile': {'$ref': '#/definitions/CharmLXDProfile'}},
113 'required': ['profile', 'name'],
115 'ContainerManagerConfig': {'additionalProperties': False,
116 'properties': {'config': {'patternProperties': {'.*': {'type': 'string'}},
118 'required': ['config'],
120 'ContainerManagerConfigParams': {'additionalProperties': False,
121 'properties': {'type': {'type': 'string'}},
122 'required': ['type'],
124 'ContainerProfileResult': {'additionalProperties': False,
125 'properties': {'error': {'$ref': '#/definitions/Error'},
126 'lxd-profiles': {'items': {'$ref': '#/definitions/ContainerLXDProfile'},
129 'ContainerProfileResults': {'additionalProperties': False,
130 'properties': {'results': {'items': {'$ref': '#/definitions/ContainerProfileResult'},
132 'required': ['results'],
134 'ControllerAPIInfoResult': {'additionalProperties': False,
135 'properties': {'addresses': {'items': {'type': 'string'},
137 'cacert': {'type': 'string'},
138 'error': {'$ref': '#/definitions/Error'}},
139 'required': ['addresses',
142 'ControllerAPIInfoResults': {'additionalProperties': False,
143 'properties': {'results': {'items': {'$ref': '#/definitions/ControllerAPIInfoResult'},
145 'required': ['results'],
147 'ControllerConfigResult': {'additionalProperties': False,
148 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
151 'required': ['config'],
153 'DeviceBridgeInfo': {'additionalProperties': False,
154 'properties': {'bridge-name': {'type': 'string'},
155 'host-device-name': {'type': 'string'},
156 'mac-address': {'type': 'string'}},
157 'required': ['host-device-name',
161 'DistributionGroupResult': {'additionalProperties': False,
162 'properties': {'error': {'$ref': '#/definitions/Error'},
163 'result': {'items': {'type': 'string'},
165 'required': ['result'],
167 'DistributionGroupResults': {'additionalProperties': False,
168 'properties': {'results': {'items': {'$ref': '#/definitions/DistributionGroupResult'},
170 'required': ['results'],
172 'Entities': {'additionalProperties': False,
173 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
175 'required': ['entities'],
177 'Entity': {'additionalProperties': False,
178 'properties': {'tag': {'type': 'string'}},
181 'EntityPassword': {'additionalProperties': False,
182 'properties': {'password': {'type': 'string'},
183 'tag': {'type': 'string'}},
184 'required': ['tag', 'password'],
186 'EntityPasswords': {'additionalProperties': False,
187 'properties': {'changes': {'items': {'$ref': '#/definitions/EntityPassword'},
189 'required': ['changes'],
191 'EntityStatusArgs': {'additionalProperties': False,
192 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
195 'info': {'type': 'string'},
196 'status': {'type': 'string'},
197 'tag': {'type': 'string'}},
203 'Error': {'additionalProperties': False,
204 'properties': {'code': {'type': 'string'},
205 'info': {'$ref': '#/definitions/ErrorInfo'},
206 'message': {'type': 'string'}},
207 'required': ['message', 'code'],
209 'ErrorInfo': {'additionalProperties': False,
210 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
211 'macaroon-path': {'type': 'string'}},
213 'ErrorResult': {'additionalProperties': False,
214 'properties': {'error': {'$ref': '#/definitions/Error'}},
216 'ErrorResults': {'additionalProperties': False,
217 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
219 'required': ['results'],
221 'FindToolsParams': {'additionalProperties': False,
222 'properties': {'agentstream': {'type': 'string'},
223 'arch': {'type': 'string'},
224 'major': {'type': 'integer'},
225 'minor': {'type': 'integer'},
226 'number': {'$ref': '#/definitions/Number'},
227 'series': {'type': 'string'}},
228 'required': ['number',
235 'FindToolsResult': {'additionalProperties': False,
236 'properties': {'error': {'$ref': '#/definitions/Error'},
237 'list': {'items': {'$ref': '#/definitions/Tools'},
239 'required': ['list'],
241 'HardwareCharacteristics': {'additionalProperties': False,
242 'properties': {'arch': {'type': 'string'},
243 'availability-zone': {'type': 'string'},
244 'cpu-cores': {'type': 'integer'},
245 'cpu-power': {'type': 'integer'},
246 'mem': {'type': 'integer'},
247 'root-disk': {'type': 'integer'},
248 'tags': {'items': {'type': 'string'},
251 'HostNetworkChange': {'additionalProperties': False,
252 'properties': {'error': {'$ref': '#/definitions/Error'},
253 'new-bridges': {'items': {'$ref': '#/definitions/DeviceBridgeInfo'},
255 'reconfigure-delay': {'type': 'integer'}},
256 'required': ['new-bridges',
257 'reconfigure-delay'],
259 'HostNetworkChangeResults': {'additionalProperties': False,
260 'properties': {'results': {'items': {'$ref': '#/definitions/HostNetworkChange'},
262 'required': ['results'],
264 'HostPort': {'additionalProperties': False,
265 'properties': {'Address': {'$ref': '#/definitions/Address'},
266 'port': {'type': 'integer'}},
267 'required': ['Address', 'port'],
269 'InstanceInfo': {'additionalProperties': False,
270 'properties': {'characteristics': {'$ref': '#/definitions/HardwareCharacteristics'},
271 'charm-profiles': {'items': {'type': 'string'},
273 'instance-id': {'type': 'string'},
274 'network-config': {'items': {'$ref': '#/definitions/NetworkConfig'},
276 'nonce': {'type': 'string'},
277 'tag': {'type': 'string'},
278 'volume-attachments': {'patternProperties': {'.*': {'$ref': '#/definitions/VolumeAttachmentInfo'}},
280 'volumes': {'items': {'$ref': '#/definitions/Volume'},
287 'volume-attachments',
291 'InstancesInfo': {'additionalProperties': False,
292 'properties': {'machines': {'items': {'$ref': '#/definitions/InstanceInfo'},
294 'required': ['machines'],
296 'LifeResult': {'additionalProperties': False,
297 'properties': {'error': {'$ref': '#/definitions/Error'},
298 'life': {'type': 'string'}},
299 'required': ['life'],
301 'LifeResults': {'additionalProperties': False,
302 'properties': {'results': {'items': {'$ref': '#/definitions/LifeResult'},
304 'required': ['results'],
306 'Macaroon': {'additionalProperties': False, 'type': 'object'},
307 'MachineContainers': {'additionalProperties': False,
308 'properties': {'container-types': {'items': {'type': 'string'},
310 'machine-tag': {'type': 'string'}},
311 'required': ['machine-tag',
314 'MachineContainersParams': {'additionalProperties': False,
315 'properties': {'params': {'items': {'$ref': '#/definitions/MachineContainers'},
317 'required': ['params'],
319 'MachineNetworkConfigResult': {'additionalProperties': False,
320 'properties': {'error': {'$ref': '#/definitions/Error'},
321 'info': {'items': {'$ref': '#/definitions/NetworkConfig'},
323 'required': ['info'],
325 'MachineNetworkConfigResults': {'additionalProperties': False,
326 'properties': {'results': {'items': {'$ref': '#/definitions/MachineNetworkConfigResult'},
328 'required': ['results'],
330 'ModelConfigResult': {'additionalProperties': False,
331 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
334 'required': ['config'],
336 'NetworkConfig': {'additionalProperties': False,
337 'properties': {'address': {'type': 'string'},
338 'cidr': {'type': 'string'},
339 'config-type': {'type': 'string'},
340 'device-index': {'type': 'integer'},
341 'disabled': {'type': 'boolean'},
342 'dns-search-domains': {'items': {'type': 'string'},
344 'dns-servers': {'items': {'type': 'string'},
346 'gateway-address': {'type': 'string'},
347 'interface-name': {'type': 'string'},
348 'interface-type': {'type': 'string'},
349 'is-default-gateway': {'type': 'boolean'},
350 'mac-address': {'type': 'string'},
351 'mtu': {'type': 'integer'},
352 'no-auto-start': {'type': 'boolean'},
353 'parent-interface-name': {'type': 'string'},
354 'provider-address-id': {'type': 'string'},
355 'provider-id': {'type': 'string'},
356 'provider-space-id': {'type': 'string'},
357 'provider-subnet-id': {'type': 'string'},
358 'provider-vlan-id': {'type': 'string'},
359 'routes': {'items': {'$ref': '#/definitions/NetworkRoute'},
361 'vlan-tag': {'type': 'integer'}},
362 'required': ['device-index',
367 'provider-subnet-id',
369 'provider-address-id',
373 'parent-interface-name',
377 'NetworkRoute': {'additionalProperties': False,
378 'properties': {'destination-cidr': {'type': 'string'},
379 'gateway-ip': {'type': 'string'},
380 'metric': {'type': 'integer'}},
381 'required': ['destination-cidr',
385 'NotifyWatchResult': {'additionalProperties': False,
386 'properties': {'NotifyWatcherId': {'type': 'string'},
387 'error': {'$ref': '#/definitions/Error'}},
388 'required': ['NotifyWatcherId'],
390 'Number': {'additionalProperties': False,
391 'properties': {'Build': {'type': 'integer'},
392 'Major': {'type': 'integer'},
393 'Minor': {'type': 'integer'},
394 'Patch': {'type': 'integer'},
395 'Tag': {'type': 'string'}},
396 'required': ['Major',
402 'ProfileChangeResult': {'additionalProperties': False,
403 'properties': {'error': {'$ref': '#/definitions/Error'},
404 'new-profile-name': {'type': 'string'},
405 'old-profile-name': {'type': 'string'},
406 'profile': {'$ref': '#/definitions/CharmLXDProfile'},
407 'subordinate': {'type': 'boolean'}},
409 'ProfileChangeResults': {'additionalProperties': False,
410 'properties': {'results': {'items': {'$ref': '#/definitions/ProfileChangeResult'},
412 'required': ['results'],
414 'ProvisioningInfo': {'additionalProperties': False,
415 'properties': {'charm-lxd-profiles': {'items': {'type': 'string'},
417 'cloudinit-userdata': {'patternProperties': {'.*': {'additionalProperties': True,
420 'constraints': {'$ref': '#/definitions/Value'},
421 'controller-config': {'patternProperties': {'.*': {'additionalProperties': True,
424 'endpoint-bindings': {'patternProperties': {'.*': {'type': 'string'}},
426 'image-metadata': {'items': {'$ref': '#/definitions/CloudImageMetadata'},
428 'jobs': {'items': {'type': 'string'},
430 'placement': {'type': 'string'},
431 'series': {'type': 'string'},
432 'subnets-to-zones': {'patternProperties': {'.*': {'items': {'type': 'string'},
435 'tags': {'patternProperties': {'.*': {'type': 'string'}},
437 'volume-attachments': {'items': {'$ref': '#/definitions/VolumeAttachmentParams'},
439 'volumes': {'items': {'$ref': '#/definitions/VolumeParams'},
441 'required': ['constraints',
446 'ProvisioningInfoResult': {'additionalProperties': False,
447 'properties': {'error': {'$ref': '#/definitions/Error'},
448 'result': {'$ref': '#/definitions/ProvisioningInfo'}},
449 'required': ['result'],
451 'ProvisioningInfoResults': {'additionalProperties': False,
452 'properties': {'results': {'items': {'$ref': '#/definitions/ProvisioningInfoResult'},
454 'required': ['results'],
456 'SetMachineNetworkConfig': {'additionalProperties': False,
457 'properties': {'config': {'items': {'$ref': '#/definitions/NetworkConfig'},
459 'tag': {'type': 'string'}},
460 'required': ['tag', 'config'],
462 'SetProfileArg': {'additionalProperties': False,
463 'properties': {'entity': {'$ref': '#/definitions/Entity'},
464 'profiles': {'items': {'type': 'string'},
466 'required': ['entity', 'profiles'],
468 'SetProfileArgs': {'additionalProperties': False,
469 'properties': {'args': {'items': {'$ref': '#/definitions/SetProfileArg'},
471 'required': ['args'],
473 'SetProfileUpgradeCompleteArg': {'additionalProperties': False,
474 'properties': {'entity': {'$ref': '#/definitions/Entity'},
475 'message': {'type': 'string'}},
476 'required': ['entity',
479 'SetProfileUpgradeCompleteArgs': {'additionalProperties': False,
480 'properties': {'args': {'items': {'$ref': '#/definitions/SetProfileUpgradeCompleteArg'},
482 'required': ['args'],
484 'SetStatus': {'additionalProperties': False,
485 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityStatusArgs'},
487 'required': ['entities'],
489 'Settings': {'additionalProperties': False,
490 'properties': {'AutoNoProxy': {'type': 'string'},
491 'Ftp': {'type': 'string'},
492 'Http': {'type': 'string'},
493 'Https': {'type': 'string'},
494 'NoProxy': {'type': 'string'}},
501 'StatusResult': {'additionalProperties': False,
502 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
505 'error': {'$ref': '#/definitions/Error'},
506 'id': {'type': 'string'},
507 'info': {'type': 'string'},
508 'life': {'type': 'string'},
509 'since': {'format': 'date-time',
511 'status': {'type': 'string'}},
519 'StatusResults': {'additionalProperties': False,
520 'properties': {'results': {'items': {'$ref': '#/definitions/StatusResult'},
522 'required': ['results'],
524 'StringResult': {'additionalProperties': False,
525 'properties': {'error': {'$ref': '#/definitions/Error'},
526 'result': {'type': 'string'}},
527 'required': ['result'],
529 'StringResults': {'additionalProperties': False,
530 'properties': {'results': {'items': {'$ref': '#/definitions/StringResult'},
532 'required': ['results'],
534 'StringsResult': {'additionalProperties': False,
535 'properties': {'error': {'$ref': '#/definitions/Error'},
536 'result': {'items': {'type': 'string'},
539 'StringsResults': {'additionalProperties': False,
540 'properties': {'results': {'items': {'$ref': '#/definitions/StringsResult'},
542 'required': ['results'],
544 'StringsWatchResult': {'additionalProperties': False,
545 'properties': {'changes': {'items': {'type': 'string'},
547 'error': {'$ref': '#/definitions/Error'},
548 'watcher-id': {'type': 'string'}},
549 'required': ['watcher-id'],
551 'StringsWatchResults': {'additionalProperties': False,
552 'properties': {'results': {'items': {'$ref': '#/definitions/StringsWatchResult'},
554 'required': ['results'],
556 'Tools': {'additionalProperties': False,
557 'properties': {'sha256': {'type': 'string'},
558 'size': {'type': 'integer'},
559 'url': {'type': 'string'},
560 'version': {'$ref': '#/definitions/Binary'}},
561 'required': ['version', 'url', 'size'],
563 'ToolsResult': {'additionalProperties': False,
564 'properties': {'disable-ssl-hostname-verification': {'type': 'boolean'},
565 'error': {'$ref': '#/definitions/Error'},
566 'tools': {'items': {'$ref': '#/definitions/Tools'},
568 'required': ['tools',
569 'disable-ssl-hostname-verification'],
571 'ToolsResults': {'additionalProperties': False,
572 'properties': {'results': {'items': {'$ref': '#/definitions/ToolsResult'},
574 'required': ['results'],
576 'UpdateBehavior': {'additionalProperties': False,
577 'properties': {'enable-os-refresh-update': {'type': 'boolean'},
578 'enable-os-upgrade': {'type': 'boolean'}},
579 'required': ['enable-os-refresh-update',
580 'enable-os-upgrade'],
582 'Value': {'additionalProperties': False,
583 'properties': {'arch': {'type': 'string'},
584 'container': {'type': 'string'},
585 'cores': {'type': 'integer'},
586 'cpu-power': {'type': 'integer'},
587 'instance-type': {'type': 'string'},
588 'mem': {'type': 'integer'},
589 'root-disk': {'type': 'integer'},
590 'spaces': {'items': {'type': 'string'},
592 'tags': {'items': {'type': 'string'},
594 'virt-type': {'type': 'string'},
595 'zones': {'items': {'type': 'string'},
598 'Volume': {'additionalProperties': False,
599 'properties': {'info': {'$ref': '#/definitions/VolumeInfo'},
600 'volume-tag': {'type': 'string'}},
601 'required': ['volume-tag', 'info'],
603 'VolumeAttachmentInfo': {'additionalProperties': False,
604 'properties': {'bus-address': {'type': 'string'},
605 'device-link': {'type': 'string'},
606 'device-name': {'type': 'string'},
607 'plan-info': {'$ref': '#/definitions/VolumeAttachmentPlanInfo'},
608 'read-only': {'type': 'boolean'}},
610 'VolumeAttachmentParams': {'additionalProperties': False,
611 'properties': {'instance-id': {'type': 'string'},
612 'machine-tag': {'type': 'string'},
613 'provider': {'type': 'string'},
614 'read-only': {'type': 'boolean'},
615 'volume-id': {'type': 'string'},
616 'volume-tag': {'type': 'string'}},
617 'required': ['volume-tag',
621 'VolumeAttachmentPlanInfo': {'additionalProperties': False,
622 'properties': {'device-attributes': {'patternProperties': {'.*': {'type': 'string'}},
624 'device-type': {'type': 'string'}},
626 'VolumeInfo': {'additionalProperties': False,
627 'properties': {'hardware-id': {'type': 'string'},
628 'persistent': {'type': 'boolean'},
629 'pool': {'type': 'string'},
630 'size': {'type': 'integer'},
631 'volume-id': {'type': 'string'},
632 'wwn': {'type': 'string'}},
633 'required': ['volume-id', 'size', 'persistent'],
635 'VolumeParams': {'additionalProperties': False,
636 'properties': {'attachment': {'$ref': '#/definitions/VolumeAttachmentParams'},
637 'attributes': {'patternProperties': {'.*': {'additionalProperties': True,
640 'provider': {'type': 'string'},
641 'size': {'type': 'integer'},
642 'tags': {'patternProperties': {'.*': {'type': 'string'}},
644 'volume-tag': {'type': 'string'}},
645 'required': ['volume-tag',
649 'WatchContainer': {'additionalProperties': False,
650 'properties': {'container-type': {'type': 'string'},
651 'machine-tag': {'type': 'string'}},
652 'required': ['machine-tag',
655 'WatchContainers': {'additionalProperties': False,
656 'properties': {'params': {'items': {'$ref': '#/definitions/WatchContainer'},
658 'required': ['params'],
660 'properties': {'APIAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
662 'APIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/APIHostPortsResult'}},
664 'AvailabilityZone': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
665 'Result': {'$ref': '#/definitions/StringResults'}},
667 'CACert': {'properties': {'Result': {'$ref': '#/definitions/BytesResult'}},
669 'CharmProfileChangeInfo': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
670 'Result': {'$ref': '#/definitions/ProfileChangeResults'}},
672 'Constraints': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
673 'Result': {'$ref': '#/definitions/ConstraintsResults'}},
675 'ContainerConfig': {'properties': {'Result': {'$ref': '#/definitions/ContainerConfig'}},
677 'ContainerManagerConfig': {'properties': {'Params': {'$ref': '#/definitions/ContainerManagerConfigParams'},
678 'Result': {'$ref': '#/definitions/ContainerManagerConfig'}},
680 'ControllerAPIInfoForModels': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
681 'Result': {'$ref': '#/definitions/ControllerAPIInfoResults'}},
683 'ControllerConfig': {'properties': {'Result': {'$ref': '#/definitions/ControllerConfigResult'}},
685 'DistributionGroup': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
686 'Result': {'$ref': '#/definitions/DistributionGroupResults'}},
688 'DistributionGroupByMachineId': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
689 'Result': {'$ref': '#/definitions/StringsResults'}},
691 'EnsureDead': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
692 'Result': {'$ref': '#/definitions/ErrorResults'}},
694 'FindTools': {'properties': {'Params': {'$ref': '#/definitions/FindToolsParams'},
695 'Result': {'$ref': '#/definitions/FindToolsResult'}},
697 'GetContainerInterfaceInfo': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
698 'Result': {'$ref': '#/definitions/MachineNetworkConfigResults'}},
700 'GetContainerProfileInfo': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
701 'Result': {'$ref': '#/definitions/ContainerProfileResults'}},
703 'HostChangesForContainers': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
704 'Result': {'$ref': '#/definitions/HostNetworkChangeResults'}},
706 'InstanceId': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
707 'Result': {'$ref': '#/definitions/StringResults'}},
709 'InstanceStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
710 'Result': {'$ref': '#/definitions/StatusResults'}},
712 'KeepInstance': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
713 'Result': {'$ref': '#/definitions/BoolResults'}},
715 'Life': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
716 'Result': {'$ref': '#/definitions/LifeResults'}},
718 'MachinesWithTransientErrors': {'properties': {'Result': {'$ref': '#/definitions/StatusResults'}},
720 'MarkMachinesForRemoval': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
721 'Result': {'$ref': '#/definitions/ErrorResults'}},
723 'ModelConfig': {'properties': {'Result': {'$ref': '#/definitions/ModelConfigResult'}},
725 'ModelUUID': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
727 'PrepareContainerInterfaceInfo': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
728 'Result': {'$ref': '#/definitions/MachineNetworkConfigResults'}},
730 'ProvisioningInfo': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
731 'Result': {'$ref': '#/definitions/ProvisioningInfoResults'}},
733 'ReleaseContainerAddresses': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
734 'Result': {'$ref': '#/definitions/ErrorResults'}},
736 'Remove': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
737 'Result': {'$ref': '#/definitions/ErrorResults'}},
739 'RemoveUpgradeCharmProfileData': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
740 'Result': {'$ref': '#/definitions/ErrorResults'}},
742 'Series': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
743 'Result': {'$ref': '#/definitions/StringResults'}},
745 'SetCharmProfiles': {'properties': {'Params': {'$ref': '#/definitions/SetProfileArgs'},
746 'Result': {'$ref': '#/definitions/ErrorResults'}},
748 'SetHostMachineNetworkConfig': {'properties': {'Params': {'$ref': '#/definitions/SetMachineNetworkConfig'}},
750 'SetInstanceInfo': {'properties': {'Params': {'$ref': '#/definitions/InstancesInfo'},
751 'Result': {'$ref': '#/definitions/ErrorResults'}},
753 'SetInstanceStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
754 'Result': {'$ref': '#/definitions/ErrorResults'}},
756 'SetObservedNetworkConfig': {'properties': {'Params': {'$ref': '#/definitions/SetMachineNetworkConfig'}},
758 'SetPasswords': {'properties': {'Params': {'$ref': '#/definitions/EntityPasswords'},
759 'Result': {'$ref': '#/definitions/ErrorResults'}},
761 'SetProviderNetworkConfig': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
762 'Result': {'$ref': '#/definitions/ErrorResults'}},
764 'SetStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
765 'Result': {'$ref': '#/definitions/ErrorResults'}},
767 'SetSupportedContainers': {'properties': {'Params': {'$ref': '#/definitions/MachineContainersParams'},
768 'Result': {'$ref': '#/definitions/ErrorResults'}},
770 'SetUpgradeCharmProfileComplete': {'properties': {'Params': {'$ref': '#/definitions/SetProfileUpgradeCompleteArgs'},
771 'Result': {'$ref': '#/definitions/ErrorResults'}},
773 'StateAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
775 'Status': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
776 'Result': {'$ref': '#/definitions/StatusResults'}},
778 'Tools': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
779 'Result': {'$ref': '#/definitions/ToolsResults'}},
781 'UpdateStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
782 'Result': {'$ref': '#/definitions/ErrorResults'}},
784 'WatchAPIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
786 'WatchAllContainers': {'properties': {'Params': {'$ref': '#/definitions/WatchContainers'},
787 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
789 'WatchContainers': {'properties': {'Params': {'$ref': '#/definitions/WatchContainers'},
790 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
792 'WatchContainersCharmProfiles': {'properties': {'Params': {'$ref': '#/definitions/WatchContainers'},
793 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
795 'WatchForModelConfigChanges': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
797 'WatchMachineErrorRetry': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
799 'WatchModelMachines': {'properties': {'Result': {'$ref': '#/definitions/StringsWatchResult'}},
801 'WatchModelMachinesCharmProfiles': {'properties': {'Result': {'$ref': '#/definitions/StringsWatchResult'}},
806 @ReturnMapping(StringsResult
)
807 async def APIAddresses(self
):
810 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence[str]]
812 # map input types to rpc msg
814 msg
= dict(type='Provisioner',
815 request
='APIAddresses',
819 reply
= await self
.rpc(msg
)
824 @ReturnMapping(APIHostPortsResult
)
825 async def APIHostPorts(self
):
828 Returns -> typing.Sequence[~HostPort]
830 # map input types to rpc msg
832 msg
= dict(type='Provisioner',
833 request
='APIHostPorts',
837 reply
= await self
.rpc(msg
)
842 @ReturnMapping(StringResults
)
843 async def AvailabilityZone(self
, entities
):
845 entities : typing.Sequence[~Entity]
846 Returns -> typing.Sequence[~StringResult]
848 # map input types to rpc msg
850 msg
= dict(type='Provisioner',
851 request
='AvailabilityZone',
854 _params
['entities'] = entities
855 reply
= await self
.rpc(msg
)
860 @ReturnMapping(BytesResult
)
861 async def CACert(self
):
864 Returns -> typing.Sequence[int]
866 # map input types to rpc msg
868 msg
= dict(type='Provisioner',
873 reply
= await self
.rpc(msg
)
878 @ReturnMapping(ProfileChangeResults
)
879 async def CharmProfileChangeInfo(self
, entities
):
881 entities : typing.Sequence[~Entity]
882 Returns -> typing.Sequence[~ProfileChangeResult]
884 # map input types to rpc msg
886 msg
= dict(type='Provisioner',
887 request
='CharmProfileChangeInfo',
890 _params
['entities'] = entities
891 reply
= await self
.rpc(msg
)
896 @ReturnMapping(ConstraintsResults
)
897 async def Constraints(self
, entities
):
899 entities : typing.Sequence[~Entity]
900 Returns -> typing.Sequence[~ConstraintsResult]
902 # map input types to rpc msg
904 msg
= dict(type='Provisioner',
905 request
='Constraints',
908 _params
['entities'] = entities
909 reply
= await self
.rpc(msg
)
914 @ReturnMapping(ContainerConfig
)
915 async def ContainerConfig(self
):
918 Returns -> typing.Union[_ForwardRef('UpdateBehavior'), str, _ForwardRef('Settings'), bool]
920 # map input types to rpc msg
922 msg
= dict(type='Provisioner',
923 request
='ContainerConfig',
927 reply
= await self
.rpc(msg
)
932 @ReturnMapping(ContainerManagerConfig
)
933 async def ContainerManagerConfig(self
, type_
):
936 Returns -> typing.Mapping[str, str]
938 # map input types to rpc msg
940 msg
= dict(type='Provisioner',
941 request
='ContainerManagerConfig',
944 _params
['type'] = type_
945 reply
= await self
.rpc(msg
)
950 @ReturnMapping(ControllerAPIInfoResults
)
951 async def ControllerAPIInfoForModels(self
, entities
):
953 entities : typing.Sequence[~Entity]
954 Returns -> typing.Sequence[~ControllerAPIInfoResult]
956 # map input types to rpc msg
958 msg
= dict(type='Provisioner',
959 request
='ControllerAPIInfoForModels',
962 _params
['entities'] = entities
963 reply
= await self
.rpc(msg
)
968 @ReturnMapping(ControllerConfigResult
)
969 async def ControllerConfig(self
):
972 Returns -> typing.Mapping[str, typing.Any]
974 # map input types to rpc msg
976 msg
= dict(type='Provisioner',
977 request
='ControllerConfig',
981 reply
= await self
.rpc(msg
)
986 @ReturnMapping(DistributionGroupResults
)
987 async def DistributionGroup(self
, entities
):
989 entities : typing.Sequence[~Entity]
990 Returns -> typing.Sequence[~DistributionGroupResult]
992 # map input types to rpc msg
994 msg
= dict(type='Provisioner',
995 request
='DistributionGroup',
998 _params
['entities'] = entities
999 reply
= await self
.rpc(msg
)
1004 @ReturnMapping(StringsResults
)
1005 async def DistributionGroupByMachineId(self
, entities
):
1007 entities : typing.Sequence[~Entity]
1008 Returns -> typing.Sequence[~StringsResult]
1010 # map input types to rpc msg
1012 msg
= dict(type='Provisioner',
1013 request
='DistributionGroupByMachineId',
1016 _params
['entities'] = entities
1017 reply
= await self
.rpc(msg
)
1022 @ReturnMapping(ErrorResults
)
1023 async def EnsureDead(self
, entities
):
1025 entities : typing.Sequence[~Entity]
1026 Returns -> typing.Sequence[~ErrorResult]
1028 # map input types to rpc msg
1030 msg
= dict(type='Provisioner',
1031 request
='EnsureDead',
1034 _params
['entities'] = entities
1035 reply
= await self
.rpc(msg
)
1040 @ReturnMapping(FindToolsResult
)
1041 async def FindTools(self
, arch
, major
, minor
, number
, series
):
1048 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence[~Tools]]
1050 # map input types to rpc msg
1052 msg
= dict(type='Provisioner',
1053 request
='FindTools',
1056 _params
['arch'] = arch
1057 _params
['major'] = major
1058 _params
['minor'] = minor
1059 _params
['number'] = number
1060 _params
['series'] = series
1061 reply
= await self
.rpc(msg
)
1066 @ReturnMapping(MachineNetworkConfigResults
)
1067 async def GetContainerInterfaceInfo(self
, entities
):
1069 entities : typing.Sequence[~Entity]
1070 Returns -> typing.Sequence[~MachineNetworkConfigResult]
1072 # map input types to rpc msg
1074 msg
= dict(type='Provisioner',
1075 request
='GetContainerInterfaceInfo',
1078 _params
['entities'] = entities
1079 reply
= await self
.rpc(msg
)
1084 @ReturnMapping(ContainerProfileResults
)
1085 async def GetContainerProfileInfo(self
, entities
):
1087 entities : typing.Sequence[~Entity]
1088 Returns -> typing.Sequence[~ContainerProfileResult]
1090 # map input types to rpc msg
1092 msg
= dict(type='Provisioner',
1093 request
='GetContainerProfileInfo',
1096 _params
['entities'] = entities
1097 reply
= await self
.rpc(msg
)
1102 @ReturnMapping(HostNetworkChangeResults
)
1103 async def HostChangesForContainers(self
, entities
):
1105 entities : typing.Sequence[~Entity]
1106 Returns -> typing.Sequence[~HostNetworkChange]
1108 # map input types to rpc msg
1110 msg
= dict(type='Provisioner',
1111 request
='HostChangesForContainers',
1114 _params
['entities'] = entities
1115 reply
= await self
.rpc(msg
)
1120 @ReturnMapping(StringResults
)
1121 async def InstanceId(self
, entities
):
1123 entities : typing.Sequence[~Entity]
1124 Returns -> typing.Sequence[~StringResult]
1126 # map input types to rpc msg
1128 msg
= dict(type='Provisioner',
1129 request
='InstanceId',
1132 _params
['entities'] = entities
1133 reply
= await self
.rpc(msg
)
1138 @ReturnMapping(StatusResults
)
1139 async def InstanceStatus(self
, entities
):
1141 entities : typing.Sequence[~Entity]
1142 Returns -> typing.Sequence[~StatusResult]
1144 # map input types to rpc msg
1146 msg
= dict(type='Provisioner',
1147 request
='InstanceStatus',
1150 _params
['entities'] = entities
1151 reply
= await self
.rpc(msg
)
1156 @ReturnMapping(BoolResults
)
1157 async def KeepInstance(self
, entities
):
1159 entities : typing.Sequence[~Entity]
1160 Returns -> typing.Sequence[~BoolResult]
1162 # map input types to rpc msg
1164 msg
= dict(type='Provisioner',
1165 request
='KeepInstance',
1168 _params
['entities'] = entities
1169 reply
= await self
.rpc(msg
)
1174 @ReturnMapping(LifeResults
)
1175 async def Life(self
, entities
):
1177 entities : typing.Sequence[~Entity]
1178 Returns -> typing.Sequence[~LifeResult]
1180 # map input types to rpc msg
1182 msg
= dict(type='Provisioner',
1186 _params
['entities'] = entities
1187 reply
= await self
.rpc(msg
)
1192 @ReturnMapping(StatusResults
)
1193 async def MachinesWithTransientErrors(self
):
1196 Returns -> typing.Sequence[~StatusResult]
1198 # map input types to rpc msg
1200 msg
= dict(type='Provisioner',
1201 request
='MachinesWithTransientErrors',
1205 reply
= await self
.rpc(msg
)
1210 @ReturnMapping(ErrorResults
)
1211 async def MarkMachinesForRemoval(self
, entities
):
1213 entities : typing.Sequence[~Entity]
1214 Returns -> typing.Sequence[~ErrorResult]
1216 # map input types to rpc msg
1218 msg
= dict(type='Provisioner',
1219 request
='MarkMachinesForRemoval',
1222 _params
['entities'] = entities
1223 reply
= await self
.rpc(msg
)
1228 @ReturnMapping(ModelConfigResult
)
1229 async def ModelConfig(self
):
1232 Returns -> typing.Mapping[str, typing.Any]
1234 # map input types to rpc msg
1236 msg
= dict(type='Provisioner',
1237 request
='ModelConfig',
1241 reply
= await self
.rpc(msg
)
1246 @ReturnMapping(StringResult
)
1247 async def ModelUUID(self
):
1250 Returns -> typing.Union[_ForwardRef('Error'), str]
1252 # map input types to rpc msg
1254 msg
= dict(type='Provisioner',
1255 request
='ModelUUID',
1259 reply
= await self
.rpc(msg
)
1264 @ReturnMapping(MachineNetworkConfigResults
)
1265 async def PrepareContainerInterfaceInfo(self
, entities
):
1267 entities : typing.Sequence[~Entity]
1268 Returns -> typing.Sequence[~MachineNetworkConfigResult]
1270 # map input types to rpc msg
1272 msg
= dict(type='Provisioner',
1273 request
='PrepareContainerInterfaceInfo',
1276 _params
['entities'] = entities
1277 reply
= await self
.rpc(msg
)
1282 @ReturnMapping(ProvisioningInfoResults
)
1283 async def ProvisioningInfo(self
, entities
):
1285 entities : typing.Sequence[~Entity]
1286 Returns -> typing.Sequence[~ProvisioningInfoResult]
1288 # map input types to rpc msg
1290 msg
= dict(type='Provisioner',
1291 request
='ProvisioningInfo',
1294 _params
['entities'] = entities
1295 reply
= await self
.rpc(msg
)
1300 @ReturnMapping(ErrorResults
)
1301 async def ReleaseContainerAddresses(self
, entities
):
1303 entities : typing.Sequence[~Entity]
1304 Returns -> typing.Sequence[~ErrorResult]
1306 # map input types to rpc msg
1308 msg
= dict(type='Provisioner',
1309 request
='ReleaseContainerAddresses',
1312 _params
['entities'] = entities
1313 reply
= await self
.rpc(msg
)
1318 @ReturnMapping(ErrorResults
)
1319 async def Remove(self
, entities
):
1321 entities : typing.Sequence[~Entity]
1322 Returns -> typing.Sequence[~ErrorResult]
1324 # map input types to rpc msg
1326 msg
= dict(type='Provisioner',
1330 _params
['entities'] = entities
1331 reply
= await self
.rpc(msg
)
1336 @ReturnMapping(ErrorResults
)
1337 async def RemoveUpgradeCharmProfileData(self
, entities
):
1339 entities : typing.Sequence[~Entity]
1340 Returns -> typing.Sequence[~ErrorResult]
1342 # map input types to rpc msg
1344 msg
= dict(type='Provisioner',
1345 request
='RemoveUpgradeCharmProfileData',
1348 _params
['entities'] = entities
1349 reply
= await self
.rpc(msg
)
1354 @ReturnMapping(StringResults
)
1355 async def Series(self
, entities
):
1357 entities : typing.Sequence[~Entity]
1358 Returns -> typing.Sequence[~StringResult]
1360 # map input types to rpc msg
1362 msg
= dict(type='Provisioner',
1366 _params
['entities'] = entities
1367 reply
= await self
.rpc(msg
)
1372 @ReturnMapping(ErrorResults
)
1373 async def SetCharmProfiles(self
, args
):
1375 args : typing.Sequence[~SetProfileArg]
1376 Returns -> typing.Sequence[~ErrorResult]
1378 # map input types to rpc msg
1380 msg
= dict(type='Provisioner',
1381 request
='SetCharmProfiles',
1384 _params
['args'] = args
1385 reply
= await self
.rpc(msg
)
1390 @ReturnMapping(None)
1391 async def SetHostMachineNetworkConfig(self
, config
, tag
):
1393 config : typing.Sequence[~NetworkConfig]
1397 # map input types to rpc msg
1399 msg
= dict(type='Provisioner',
1400 request
='SetHostMachineNetworkConfig',
1403 _params
['config'] = config
1404 _params
['tag'] = tag
1405 reply
= await self
.rpc(msg
)
1410 @ReturnMapping(ErrorResults
)
1411 async def SetInstanceInfo(self
, machines
):
1413 machines : typing.Sequence[~InstanceInfo]
1414 Returns -> typing.Sequence[~ErrorResult]
1416 # map input types to rpc msg
1418 msg
= dict(type='Provisioner',
1419 request
='SetInstanceInfo',
1422 _params
['machines'] = machines
1423 reply
= await self
.rpc(msg
)
1428 @ReturnMapping(ErrorResults
)
1429 async def SetInstanceStatus(self
, entities
):
1431 entities : typing.Sequence[~EntityStatusArgs]
1432 Returns -> typing.Sequence[~ErrorResult]
1434 # map input types to rpc msg
1436 msg
= dict(type='Provisioner',
1437 request
='SetInstanceStatus',
1440 _params
['entities'] = entities
1441 reply
= await self
.rpc(msg
)
1446 @ReturnMapping(None)
1447 async def SetObservedNetworkConfig(self
, config
, tag
):
1449 config : typing.Sequence[~NetworkConfig]
1453 # map input types to rpc msg
1455 msg
= dict(type='Provisioner',
1456 request
='SetObservedNetworkConfig',
1459 _params
['config'] = config
1460 _params
['tag'] = tag
1461 reply
= await self
.rpc(msg
)
1466 @ReturnMapping(ErrorResults
)
1467 async def SetPasswords(self
, changes
):
1469 changes : typing.Sequence[~EntityPassword]
1470 Returns -> typing.Sequence[~ErrorResult]
1472 # map input types to rpc msg
1474 msg
= dict(type='Provisioner',
1475 request
='SetPasswords',
1478 _params
['changes'] = changes
1479 reply
= await self
.rpc(msg
)
1484 @ReturnMapping(ErrorResults
)
1485 async def SetProviderNetworkConfig(self
, entities
):
1487 entities : typing.Sequence[~Entity]
1488 Returns -> typing.Sequence[~ErrorResult]
1490 # map input types to rpc msg
1492 msg
= dict(type='Provisioner',
1493 request
='SetProviderNetworkConfig',
1496 _params
['entities'] = entities
1497 reply
= await self
.rpc(msg
)
1502 @ReturnMapping(ErrorResults
)
1503 async def SetStatus(self
, entities
):
1505 entities : typing.Sequence[~EntityStatusArgs]
1506 Returns -> typing.Sequence[~ErrorResult]
1508 # map input types to rpc msg
1510 msg
= dict(type='Provisioner',
1511 request
='SetStatus',
1514 _params
['entities'] = entities
1515 reply
= await self
.rpc(msg
)
1520 @ReturnMapping(ErrorResults
)
1521 async def SetSupportedContainers(self
, params
):
1523 params : typing.Sequence[~MachineContainers]
1524 Returns -> typing.Sequence[~ErrorResult]
1526 # map input types to rpc msg
1528 msg
= dict(type='Provisioner',
1529 request
='SetSupportedContainers',
1532 _params
['params'] = params
1533 reply
= await self
.rpc(msg
)
1538 @ReturnMapping(ErrorResults
)
1539 async def SetUpgradeCharmProfileComplete(self
, args
):
1541 args : typing.Sequence[~SetProfileUpgradeCompleteArg]
1542 Returns -> typing.Sequence[~ErrorResult]
1544 # map input types to rpc msg
1546 msg
= dict(type='Provisioner',
1547 request
='SetUpgradeCharmProfileComplete',
1550 _params
['args'] = args
1551 reply
= await self
.rpc(msg
)
1556 @ReturnMapping(StringsResult
)
1557 async def StateAddresses(self
):
1560 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence[str]]
1562 # map input types to rpc msg
1564 msg
= dict(type='Provisioner',
1565 request
='StateAddresses',
1569 reply
= await self
.rpc(msg
)
1574 @ReturnMapping(StatusResults
)
1575 async def Status(self
, entities
):
1577 entities : typing.Sequence[~Entity]
1578 Returns -> typing.Sequence[~StatusResult]
1580 # map input types to rpc msg
1582 msg
= dict(type='Provisioner',
1586 _params
['entities'] = entities
1587 reply
= await self
.rpc(msg
)
1592 @ReturnMapping(ToolsResults
)
1593 async def Tools(self
, entities
):
1595 entities : typing.Sequence[~Entity]
1596 Returns -> typing.Sequence[~ToolsResult]
1598 # map input types to rpc msg
1600 msg
= dict(type='Provisioner',
1604 _params
['entities'] = entities
1605 reply
= await self
.rpc(msg
)
1610 @ReturnMapping(ErrorResults
)
1611 async def UpdateStatus(self
, entities
):
1613 entities : typing.Sequence[~EntityStatusArgs]
1614 Returns -> typing.Sequence[~ErrorResult]
1616 # map input types to rpc msg
1618 msg
= dict(type='Provisioner',
1619 request
='UpdateStatus',
1622 _params
['entities'] = entities
1623 reply
= await self
.rpc(msg
)
1628 @ReturnMapping(NotifyWatchResult
)
1629 async def WatchAPIHostPorts(self
):
1632 Returns -> typing.Union[str, _ForwardRef('Error')]
1634 # map input types to rpc msg
1636 msg
= dict(type='Provisioner',
1637 request
='WatchAPIHostPorts',
1641 reply
= await self
.rpc(msg
)
1646 @ReturnMapping(StringsWatchResults
)
1647 async def WatchAllContainers(self
, params
):
1649 params : typing.Sequence[~WatchContainer]
1650 Returns -> typing.Sequence[~StringsWatchResult]
1652 # map input types to rpc msg
1654 msg
= dict(type='Provisioner',
1655 request
='WatchAllContainers',
1658 _params
['params'] = params
1659 reply
= await self
.rpc(msg
)
1664 @ReturnMapping(StringsWatchResults
)
1665 async def WatchContainers(self
, params
):
1667 params : typing.Sequence[~WatchContainer]
1668 Returns -> typing.Sequence[~StringsWatchResult]
1670 # map input types to rpc msg
1672 msg
= dict(type='Provisioner',
1673 request
='WatchContainers',
1676 _params
['params'] = params
1677 reply
= await self
.rpc(msg
)
1682 @ReturnMapping(StringsWatchResults
)
1683 async def WatchContainersCharmProfiles(self
, params
):
1685 params : typing.Sequence[~WatchContainer]
1686 Returns -> typing.Sequence[~StringsWatchResult]
1688 # map input types to rpc msg
1690 msg
= dict(type='Provisioner',
1691 request
='WatchContainersCharmProfiles',
1694 _params
['params'] = params
1695 reply
= await self
.rpc(msg
)
1700 @ReturnMapping(NotifyWatchResult
)
1701 async def WatchForModelConfigChanges(self
):
1704 Returns -> typing.Union[str, _ForwardRef('Error')]
1706 # map input types to rpc msg
1708 msg
= dict(type='Provisioner',
1709 request
='WatchForModelConfigChanges',
1713 reply
= await self
.rpc(msg
)
1718 @ReturnMapping(NotifyWatchResult
)
1719 async def WatchMachineErrorRetry(self
):
1722 Returns -> typing.Union[str, _ForwardRef('Error')]
1724 # map input types to rpc msg
1726 msg
= dict(type='Provisioner',
1727 request
='WatchMachineErrorRetry',
1731 reply
= await self
.rpc(msg
)
1736 @ReturnMapping(StringsWatchResult
)
1737 async def WatchModelMachines(self
):
1740 Returns -> typing.Union[typing.Sequence[str], _ForwardRef('Error'), str]
1742 # map input types to rpc msg
1744 msg
= dict(type='Provisioner',
1745 request
='WatchModelMachines',
1749 reply
= await self
.rpc(msg
)
1754 @ReturnMapping(StringsWatchResult
)
1755 async def WatchModelMachinesCharmProfiles(self
):
1758 Returns -> typing.Union[typing.Sequence[str], _ForwardRef('Error'), str]
1760 # map input types to rpc msg
1762 msg
= dict(type='Provisioner',
1763 request
='WatchModelMachinesCharmProfiles',
1767 reply
= await self
.rpc(msg
)