Feature/api version support (#109)
[osm/N2VC.git] / juju / client / _client5.py
1 # DO NOT CHANGE THIS FILE! This file is auto-generated by facade.py.
2 # Changes will be overwritten/lost when the file is regenerated.
3
4 from juju.client.facade import Type, ReturnMapping
5 from juju.client._definitions import *
6
7
8 class UniterFacade(Type):
9 name = 'Uniter'
10 version = 5
11 schema = {'definitions': {'APIHostPortsResult': {'additionalProperties': False,
12 'properties': {'servers': {'items': {'items': {'$ref': '#/definitions/HostPort'},
13 'type': 'array'},
14 'type': 'array'}},
15 'required': ['servers'],
16 'type': 'object'},
17 'Action': {'additionalProperties': False,
18 'properties': {'name': {'type': 'string'},
19 'parameters': {'patternProperties': {'.*': {'additionalProperties': True,
20 'type': 'object'}},
21 'type': 'object'},
22 'receiver': {'type': 'string'},
23 'tag': {'type': 'string'}},
24 'required': ['tag', 'receiver', 'name'],
25 'type': 'object'},
26 'ActionExecutionResult': {'additionalProperties': False,
27 'properties': {'action-tag': {'type': 'string'},
28 'message': {'type': 'string'},
29 'results': {'patternProperties': {'.*': {'additionalProperties': True,
30 'type': 'object'}},
31 'type': 'object'},
32 'status': {'type': 'string'}},
33 'required': ['action-tag', 'status'],
34 'type': 'object'},
35 'ActionExecutionResults': {'additionalProperties': False,
36 'properties': {'results': {'items': {'$ref': '#/definitions/ActionExecutionResult'},
37 'type': 'array'}},
38 'type': 'object'},
39 'ActionResult': {'additionalProperties': False,
40 'properties': {'action': {'$ref': '#/definitions/Action'},
41 'completed': {'format': 'date-time',
42 'type': 'string'},
43 'enqueued': {'format': 'date-time',
44 'type': 'string'},
45 'error': {'$ref': '#/definitions/Error'},
46 'message': {'type': 'string'},
47 'output': {'patternProperties': {'.*': {'additionalProperties': True,
48 'type': 'object'}},
49 'type': 'object'},
50 'started': {'format': 'date-time',
51 'type': 'string'},
52 'status': {'type': 'string'}},
53 'type': 'object'},
54 'ActionResults': {'additionalProperties': False,
55 'properties': {'results': {'items': {'$ref': '#/definitions/ActionResult'},
56 'type': 'array'}},
57 'type': 'object'},
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'],
64 'type': 'object'},
65 'ApplicationStatusResult': {'additionalProperties': False,
66 'properties': {'application': {'$ref': '#/definitions/StatusResult'},
67 'error': {'$ref': '#/definitions/Error'},
68 'units': {'patternProperties': {'.*': {'$ref': '#/definitions/StatusResult'}},
69 'type': 'object'}},
70 'required': ['application',
71 'units'],
72 'type': 'object'},
73 'ApplicationStatusResults': {'additionalProperties': False,
74 'properties': {'results': {'items': {'$ref': '#/definitions/ApplicationStatusResult'},
75 'type': 'array'}},
76 'required': ['results'],
77 'type': 'object'},
78 'BoolResult': {'additionalProperties': False,
79 'properties': {'error': {'$ref': '#/definitions/Error'},
80 'result': {'type': 'boolean'}},
81 'required': ['result'],
82 'type': 'object'},
83 'BoolResults': {'additionalProperties': False,
84 'properties': {'results': {'items': {'$ref': '#/definitions/BoolResult'},
85 'type': 'array'}},
86 'required': ['results'],
87 'type': 'object'},
88 'BytesResult': {'additionalProperties': False,
89 'properties': {'result': {'items': {'type': 'integer'},
90 'type': 'array'}},
91 'required': ['result'],
92 'type': 'object'},
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'}},
100 'required': ['name',
101 'role',
102 'interface',
103 'optional',
104 'limit',
105 'scope'],
106 'type': 'object'},
107 'CharmURL': {'additionalProperties': False,
108 'properties': {'url': {'type': 'string'}},
109 'required': ['url'],
110 'type': 'object'},
111 'CharmURLs': {'additionalProperties': False,
112 'properties': {'urls': {'items': {'$ref': '#/definitions/CharmURL'},
113 'type': 'array'}},
114 'required': ['urls'],
115 'type': 'object'},
116 'ConfigSettingsResult': {'additionalProperties': False,
117 'properties': {'error': {'$ref': '#/definitions/Error'},
118 'settings': {'patternProperties': {'.*': {'additionalProperties': True,
119 'type': 'object'}},
120 'type': 'object'}},
121 'required': ['settings'],
122 'type': 'object'},
123 'ConfigSettingsResults': {'additionalProperties': False,
124 'properties': {'results': {'items': {'$ref': '#/definitions/ConfigSettingsResult'},
125 'type': 'array'}},
126 'required': ['results'],
127 'type': 'object'},
128 'Endpoint': {'additionalProperties': False,
129 'properties': {'application-name': {'type': 'string'},
130 'relation': {'$ref': '#/definitions/CharmRelation'}},
131 'required': ['application-name', 'relation'],
132 'type': 'object'},
133 'Entities': {'additionalProperties': False,
134 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
135 'type': 'array'}},
136 'required': ['entities'],
137 'type': 'object'},
138 'EntitiesCharmURL': {'additionalProperties': False,
139 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityCharmURL'},
140 'type': 'array'}},
141 'required': ['entities'],
142 'type': 'object'},
143 'EntitiesPortRanges': {'additionalProperties': False,
144 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityPortRange'},
145 'type': 'array'}},
146 'required': ['entities'],
147 'type': 'object'},
148 'Entity': {'additionalProperties': False,
149 'properties': {'tag': {'type': 'string'}},
150 'required': ['tag'],
151 'type': 'object'},
152 'EntityCharmURL': {'additionalProperties': False,
153 'properties': {'charm-url': {'type': 'string'},
154 'tag': {'type': 'string'}},
155 'required': ['tag', 'charm-url'],
156 'type': 'object'},
157 'EntityPortRange': {'additionalProperties': False,
158 'properties': {'from-port': {'type': 'integer'},
159 'protocol': {'type': 'string'},
160 'tag': {'type': 'string'},
161 'to-port': {'type': 'integer'}},
162 'required': ['tag',
163 'protocol',
164 'from-port',
165 'to-port'],
166 'type': 'object'},
167 'EntityStatusArgs': {'additionalProperties': False,
168 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
169 'type': 'object'}},
170 'type': 'object'},
171 'info': {'type': 'string'},
172 'status': {'type': 'string'},
173 'tag': {'type': 'string'}},
174 'required': ['tag',
175 'status',
176 'info',
177 'data'],
178 'type': 'object'},
179 'EntityWorkloadVersion': {'additionalProperties': False,
180 'properties': {'tag': {'type': 'string'},
181 'workload-version': {'type': 'string'}},
182 'required': ['tag',
183 'workload-version'],
184 'type': 'object'},
185 'EntityWorkloadVersions': {'additionalProperties': False,
186 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityWorkloadVersion'},
187 'type': 'array'}},
188 'required': ['entities'],
189 'type': 'object'},
190 'Error': {'additionalProperties': False,
191 'properties': {'code': {'type': 'string'},
192 'info': {'$ref': '#/definitions/ErrorInfo'},
193 'message': {'type': 'string'}},
194 'required': ['message', 'code'],
195 'type': 'object'},
196 'ErrorInfo': {'additionalProperties': False,
197 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
198 'macaroon-path': {'type': 'string'}},
199 'type': 'object'},
200 'ErrorResult': {'additionalProperties': False,
201 'properties': {'error': {'$ref': '#/definitions/Error'}},
202 'type': 'object'},
203 'ErrorResults': {'additionalProperties': False,
204 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
205 'type': 'array'}},
206 'required': ['results'],
207 'type': 'object'},
208 'GetLeadershipSettingsBulkResults': {'additionalProperties': False,
209 'properties': {'results': {'items': {'$ref': '#/definitions/GetLeadershipSettingsResult'},
210 'type': 'array'}},
211 'required': ['results'],
212 'type': 'object'},
213 'GetLeadershipSettingsResult': {'additionalProperties': False,
214 'properties': {'error': {'$ref': '#/definitions/Error'},
215 'settings': {'patternProperties': {'.*': {'type': 'string'}},
216 'type': 'object'}},
217 'required': ['settings'],
218 'type': 'object'},
219 'HostPort': {'additionalProperties': False,
220 'properties': {'Address': {'$ref': '#/definitions/Address'},
221 'port': {'type': 'integer'}},
222 'required': ['Address', 'port'],
223 'type': 'object'},
224 'IntResult': {'additionalProperties': False,
225 'properties': {'error': {'$ref': '#/definitions/Error'},
226 'result': {'type': 'integer'}},
227 'required': ['result'],
228 'type': 'object'},
229 'IntResults': {'additionalProperties': False,
230 'properties': {'results': {'items': {'$ref': '#/definitions/IntResult'},
231 'type': 'array'}},
232 'required': ['results'],
233 'type': 'object'},
234 'LifeResult': {'additionalProperties': False,
235 'properties': {'error': {'$ref': '#/definitions/Error'},
236 'life': {'type': 'string'}},
237 'required': ['life'],
238 'type': 'object'},
239 'LifeResults': {'additionalProperties': False,
240 'properties': {'results': {'items': {'$ref': '#/definitions/LifeResult'},
241 'type': 'array'}},
242 'required': ['results'],
243 'type': 'object'},
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',
250 'relation-tag',
251 'port-range'],
252 'type': 'object'},
253 'MachinePortsResult': {'additionalProperties': False,
254 'properties': {'error': {'$ref': '#/definitions/Error'},
255 'ports': {'items': {'$ref': '#/definitions/MachinePortRange'},
256 'type': 'array'}},
257 'required': ['ports'],
258 'type': 'object'},
259 'MachinePortsResults': {'additionalProperties': False,
260 'properties': {'results': {'items': {'$ref': '#/definitions/MachinePortsResult'},
261 'type': 'array'}},
262 'required': ['results'],
263 'type': 'object'},
264 'MergeLeadershipSettingsBulkParams': {'additionalProperties': False,
265 'properties': {'params': {'items': {'$ref': '#/definitions/MergeLeadershipSettingsParam'},
266 'type': 'array'}},
267 'required': ['params'],
268 'type': 'object'},
269 'MergeLeadershipSettingsParam': {'additionalProperties': False,
270 'properties': {'application-tag': {'type': 'string'},
271 'settings': {'patternProperties': {'.*': {'type': 'string'}},
272 'type': 'object'}},
273 'required': ['application-tag',
274 'settings'],
275 'type': 'object'},
276 'MeterStatusResult': {'additionalProperties': False,
277 'properties': {'code': {'type': 'string'},
278 'error': {'$ref': '#/definitions/Error'},
279 'info': {'type': 'string'}},
280 'required': ['code', 'info'],
281 'type': 'object'},
282 'MeterStatusResults': {'additionalProperties': False,
283 'properties': {'results': {'items': {'$ref': '#/definitions/MeterStatusResult'},
284 'type': 'array'}},
285 'required': ['results'],
286 'type': 'object'},
287 'Metric': {'additionalProperties': False,
288 'properties': {'key': {'type': 'string'},
289 'time': {'format': 'date-time',
290 'type': 'string'},
291 'value': {'type': 'string'}},
292 'required': ['key', 'value', 'time'],
293 'type': 'object'},
294 'MetricBatch': {'additionalProperties': False,
295 'properties': {'charm-url': {'type': 'string'},
296 'created': {'format': 'date-time',
297 'type': 'string'},
298 'metrics': {'items': {'$ref': '#/definitions/Metric'},
299 'type': 'array'},
300 'uuid': {'type': 'string'}},
301 'required': ['uuid',
302 'charm-url',
303 'created',
304 'metrics'],
305 'type': 'object'},
306 'MetricBatchParam': {'additionalProperties': False,
307 'properties': {'batch': {'$ref': '#/definitions/MetricBatch'},
308 'tag': {'type': 'string'}},
309 'required': ['tag', 'batch'],
310 'type': 'object'},
311 'MetricBatchParams': {'additionalProperties': False,
312 'properties': {'batches': {'items': {'$ref': '#/definitions/MetricBatchParam'},
313 'type': 'array'}},
314 'required': ['batches'],
315 'type': 'object'},
316 'ModelConfigResult': {'additionalProperties': False,
317 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
318 'type': 'object'}},
319 'type': 'object'}},
320 'required': ['config'],
321 'type': 'object'},
322 'ModelResult': {'additionalProperties': False,
323 'properties': {'error': {'$ref': '#/definitions/Error'},
324 'name': {'type': 'string'},
325 'uuid': {'type': 'string'}},
326 'required': ['name', 'uuid'],
327 'type': 'object'},
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'},
335 'type': 'array'},
336 'dns-servers': {'items': {'type': 'string'},
337 'type': 'array'},
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'},
351 'type': 'array'},
352 'vlan-tag': {'type': 'integer'}},
353 'required': ['device-index',
354 'mac-address',
355 'cidr',
356 'mtu',
357 'provider-id',
358 'provider-subnet-id',
359 'provider-space-id',
360 'provider-address-id',
361 'provider-vlan-id',
362 'vlan-tag',
363 'interface-name',
364 'parent-interface-name',
365 'interface-type',
366 'disabled'],
367 'type': 'object'},
368 'NetworkRoute': {'additionalProperties': False,
369 'properties': {'destination-cidr': {'type': 'string'},
370 'gateway-ip': {'type': 'string'},
371 'metric': {'type': 'integer'}},
372 'required': ['destination-cidr',
373 'gateway-ip',
374 'metric'],
375 'type': 'object'},
376 'NotifyWatchResult': {'additionalProperties': False,
377 'properties': {'NotifyWatcherId': {'type': 'string'},
378 'error': {'$ref': '#/definitions/Error'}},
379 'required': ['NotifyWatcherId'],
380 'type': 'object'},
381 'NotifyWatchResults': {'additionalProperties': False,
382 'properties': {'results': {'items': {'$ref': '#/definitions/NotifyWatchResult'},
383 'type': 'array'}},
384 'required': ['results'],
385 'type': 'object'},
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'],
391 'type': 'object'},
392 'RelationIds': {'additionalProperties': False,
393 'properties': {'relation-ids': {'items': {'type': 'integer'},
394 'type': 'array'}},
395 'required': ['relation-ids'],
396 'type': 'object'},
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'}},
403 'required': ['life',
404 'id',
405 'key',
406 'endpoint'],
407 'type': 'object'},
408 'RelationResults': {'additionalProperties': False,
409 'properties': {'results': {'items': {'$ref': '#/definitions/RelationResult'},
410 'type': 'array'}},
411 'required': ['results'],
412 'type': 'object'},
413 'RelationUnit': {'additionalProperties': False,
414 'properties': {'relation': {'type': 'string'},
415 'unit': {'type': 'string'}},
416 'required': ['relation', 'unit'],
417 'type': 'object'},
418 'RelationUnitPair': {'additionalProperties': False,
419 'properties': {'local-unit': {'type': 'string'},
420 'relation': {'type': 'string'},
421 'remote-unit': {'type': 'string'}},
422 'required': ['relation',
423 'local-unit',
424 'remote-unit'],
425 'type': 'object'},
426 'RelationUnitPairs': {'additionalProperties': False,
427 'properties': {'relation-unit-pairs': {'items': {'$ref': '#/definitions/RelationUnitPair'},
428 'type': 'array'}},
429 'required': ['relation-unit-pairs'],
430 'type': 'object'},
431 'RelationUnitSettings': {'additionalProperties': False,
432 'properties': {'relation': {'type': 'string'},
433 'settings': {'patternProperties': {'.*': {'type': 'string'}},
434 'type': 'object'},
435 'unit': {'type': 'string'}},
436 'required': ['relation',
437 'unit',
438 'settings'],
439 'type': 'object'},
440 'RelationUnits': {'additionalProperties': False,
441 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnit'},
442 'type': 'array'}},
443 'required': ['relation-units'],
444 'type': 'object'},
445 'RelationUnitsChange': {'additionalProperties': False,
446 'properties': {'changed': {'patternProperties': {'.*': {'$ref': '#/definitions/UnitSettings'}},
447 'type': 'object'},
448 'departed': {'items': {'type': 'string'},
449 'type': 'array'}},
450 'required': ['changed'],
451 'type': 'object'},
452 'RelationUnitsSettings': {'additionalProperties': False,
453 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnitSettings'},
454 'type': 'array'}},
455 'required': ['relation-units'],
456 'type': 'object'},
457 'RelationUnitsWatchResult': {'additionalProperties': False,
458 'properties': {'changes': {'$ref': '#/definitions/RelationUnitsChange'},
459 'error': {'$ref': '#/definitions/Error'},
460 'watcher-id': {'type': 'string'}},
461 'required': ['watcher-id',
462 'changes'],
463 'type': 'object'},
464 'RelationUnitsWatchResults': {'additionalProperties': False,
465 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitsWatchResult'},
466 'type': 'array'}},
467 'required': ['results'],
468 'type': 'object'},
469 'ResolvedModeResult': {'additionalProperties': False,
470 'properties': {'error': {'$ref': '#/definitions/Error'},
471 'mode': {'type': 'string'}},
472 'required': ['mode'],
473 'type': 'object'},
474 'ResolvedModeResults': {'additionalProperties': False,
475 'properties': {'results': {'items': {'$ref': '#/definitions/ResolvedModeResult'},
476 'type': 'array'}},
477 'required': ['results'],
478 'type': 'object'},
479 'SetStatus': {'additionalProperties': False,
480 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityStatusArgs'},
481 'type': 'array'}},
482 'required': ['entities'],
483 'type': 'object'},
484 'SettingsResult': {'additionalProperties': False,
485 'properties': {'error': {'$ref': '#/definitions/Error'},
486 'settings': {'patternProperties': {'.*': {'type': 'string'}},
487 'type': 'object'}},
488 'required': ['settings'],
489 'type': 'object'},
490 'SettingsResults': {'additionalProperties': False,
491 'properties': {'results': {'items': {'$ref': '#/definitions/SettingsResult'},
492 'type': 'array'}},
493 'required': ['results'],
494 'type': 'object'},
495 'StatusResult': {'additionalProperties': False,
496 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
497 'type': 'object'}},
498 'type': 'object'},
499 'error': {'$ref': '#/definitions/Error'},
500 'id': {'type': 'string'},
501 'info': {'type': 'string'},
502 'life': {'type': 'string'},
503 'since': {'format': 'date-time',
504 'type': 'string'},
505 'status': {'type': 'string'}},
506 'required': ['id',
507 'life',
508 'status',
509 'info',
510 'data',
511 'since'],
512 'type': 'object'},
513 'StatusResults': {'additionalProperties': False,
514 'properties': {'results': {'items': {'$ref': '#/definitions/StatusResult'},
515 'type': 'array'}},
516 'required': ['results'],
517 'type': 'object'},
518 'StorageAddParams': {'additionalProperties': False,
519 'properties': {'name': {'type': 'string'},
520 'storage': {'$ref': '#/definitions/StorageConstraints'},
521 'unit': {'type': 'string'}},
522 'required': ['unit', 'name', 'storage'],
523 'type': 'object'},
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',
532 'owner-tag',
533 'unit-tag',
534 'kind',
535 'location',
536 'life'],
537 'type': 'object'},
538 'StorageAttachmentId': {'additionalProperties': False,
539 'properties': {'storage-tag': {'type': 'string'},
540 'unit-tag': {'type': 'string'}},
541 'required': ['storage-tag',
542 'unit-tag'],
543 'type': 'object'},
544 'StorageAttachmentIds': {'additionalProperties': False,
545 'properties': {'ids': {'items': {'$ref': '#/definitions/StorageAttachmentId'},
546 'type': 'array'}},
547 'required': ['ids'],
548 'type': 'object'},
549 'StorageAttachmentIdsResult': {'additionalProperties': False,
550 'properties': {'error': {'$ref': '#/definitions/Error'},
551 'result': {'$ref': '#/definitions/StorageAttachmentIds'}},
552 'required': ['result'],
553 'type': 'object'},
554 'StorageAttachmentIdsResults': {'additionalProperties': False,
555 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentIdsResult'},
556 'type': 'array'}},
557 'type': 'object'},
558 'StorageAttachmentResult': {'additionalProperties': False,
559 'properties': {'error': {'$ref': '#/definitions/Error'},
560 'result': {'$ref': '#/definitions/StorageAttachment'}},
561 'required': ['result'],
562 'type': 'object'},
563 'StorageAttachmentResults': {'additionalProperties': False,
564 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentResult'},
565 'type': 'array'}},
566 'type': 'object'},
567 'StorageConstraints': {'additionalProperties': False,
568 'properties': {'count': {'type': 'integer'},
569 'pool': {'type': 'string'},
570 'size': {'type': 'integer'}},
571 'type': 'object'},
572 'StoragesAddParams': {'additionalProperties': False,
573 'properties': {'storages': {'items': {'$ref': '#/definitions/StorageAddParams'},
574 'type': 'array'}},
575 'required': ['storages'],
576 'type': 'object'},
577 'StringBoolResult': {'additionalProperties': False,
578 'properties': {'error': {'$ref': '#/definitions/Error'},
579 'ok': {'type': 'boolean'},
580 'result': {'type': 'string'}},
581 'required': ['result', 'ok'],
582 'type': 'object'},
583 'StringBoolResults': {'additionalProperties': False,
584 'properties': {'results': {'items': {'$ref': '#/definitions/StringBoolResult'},
585 'type': 'array'}},
586 'required': ['results'],
587 'type': 'object'},
588 'StringResult': {'additionalProperties': False,
589 'properties': {'error': {'$ref': '#/definitions/Error'},
590 'result': {'type': 'string'}},
591 'required': ['result'],
592 'type': 'object'},
593 'StringResults': {'additionalProperties': False,
594 'properties': {'results': {'items': {'$ref': '#/definitions/StringResult'},
595 'type': 'array'}},
596 'required': ['results'],
597 'type': 'object'},
598 'StringsResult': {'additionalProperties': False,
599 'properties': {'error': {'$ref': '#/definitions/Error'},
600 'result': {'items': {'type': 'string'},
601 'type': 'array'}},
602 'type': 'object'},
603 'StringsResults': {'additionalProperties': False,
604 'properties': {'results': {'items': {'$ref': '#/definitions/StringsResult'},
605 'type': 'array'}},
606 'required': ['results'],
607 'type': 'object'},
608 'StringsWatchResult': {'additionalProperties': False,
609 'properties': {'changes': {'items': {'type': 'string'},
610 'type': 'array'},
611 'error': {'$ref': '#/definitions/Error'},
612 'watcher-id': {'type': 'string'}},
613 'required': ['watcher-id'],
614 'type': 'object'},
615 'StringsWatchResults': {'additionalProperties': False,
616 'properties': {'results': {'items': {'$ref': '#/definitions/StringsWatchResult'},
617 'type': 'array'}},
618 'required': ['results'],
619 'type': 'object'},
620 'UnitNetworkConfig': {'additionalProperties': False,
621 'properties': {'binding-name': {'type': 'string'},
622 'unit-tag': {'type': 'string'}},
623 'required': ['unit-tag', 'binding-name'],
624 'type': 'object'},
625 'UnitNetworkConfigResult': {'additionalProperties': False,
626 'properties': {'error': {'$ref': '#/definitions/Error'},
627 'info': {'items': {'$ref': '#/definitions/NetworkConfig'},
628 'type': 'array'}},
629 'required': ['info'],
630 'type': 'object'},
631 'UnitNetworkConfigResults': {'additionalProperties': False,
632 'properties': {'results': {'items': {'$ref': '#/definitions/UnitNetworkConfigResult'},
633 'type': 'array'}},
634 'required': ['results'],
635 'type': 'object'},
636 'UnitSettings': {'additionalProperties': False,
637 'properties': {'version': {'type': 'integer'}},
638 'required': ['version'],
639 'type': 'object'},
640 'UnitsNetworkConfig': {'additionalProperties': False,
641 'properties': {'args': {'items': {'$ref': '#/definitions/UnitNetworkConfig'},
642 'type': 'array'}},
643 'required': ['args'],
644 'type': 'object'}},
645 'properties': {'APIAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
646 'type': 'object'},
647 'APIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/APIHostPortsResult'}},
648 'type': 'object'},
649 'Actions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
650 'Result': {'$ref': '#/definitions/ActionResults'}},
651 'type': 'object'},
652 'AddMetricBatches': {'properties': {'Params': {'$ref': '#/definitions/MetricBatchParams'},
653 'Result': {'$ref': '#/definitions/ErrorResults'}},
654 'type': 'object'},
655 'AddUnitStorage': {'properties': {'Params': {'$ref': '#/definitions/StoragesAddParams'},
656 'Result': {'$ref': '#/definitions/ErrorResults'}},
657 'type': 'object'},
658 'AllMachinePorts': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
659 'Result': {'$ref': '#/definitions/MachinePortsResults'}},
660 'type': 'object'},
661 'ApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
662 'Result': {'$ref': '#/definitions/ApplicationStatusResults'}},
663 'type': 'object'},
664 'AssignedMachine': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
665 'Result': {'$ref': '#/definitions/StringResults'}},
666 'type': 'object'},
667 'AvailabilityZone': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
668 'Result': {'$ref': '#/definitions/StringResults'}},
669 'type': 'object'},
670 'BeginActions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
671 'Result': {'$ref': '#/definitions/ErrorResults'}},
672 'type': 'object'},
673 'CACert': {'properties': {'Result': {'$ref': '#/definitions/BytesResult'}},
674 'type': 'object'},
675 'CharmArchiveSha256': {'properties': {'Params': {'$ref': '#/definitions/CharmURLs'},
676 'Result': {'$ref': '#/definitions/StringResults'}},
677 'type': 'object'},
678 'CharmModifiedVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
679 'Result': {'$ref': '#/definitions/IntResults'}},
680 'type': 'object'},
681 'CharmURL': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
682 'Result': {'$ref': '#/definitions/StringBoolResults'}},
683 'type': 'object'},
684 'ClearResolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
685 'Result': {'$ref': '#/definitions/ErrorResults'}},
686 'type': 'object'},
687 'ClosePorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
688 'Result': {'$ref': '#/definitions/ErrorResults'}},
689 'type': 'object'},
690 'ConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
691 'Result': {'$ref': '#/definitions/ConfigSettingsResults'}},
692 'type': 'object'},
693 'CurrentModel': {'properties': {'Result': {'$ref': '#/definitions/ModelResult'}},
694 'type': 'object'},
695 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
696 'Result': {'$ref': '#/definitions/ErrorResults'}},
697 'type': 'object'},
698 'DestroyAllSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
699 'Result': {'$ref': '#/definitions/ErrorResults'}},
700 'type': 'object'},
701 'DestroyUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
702 'Result': {'$ref': '#/definitions/ErrorResults'}},
703 'type': 'object'},
704 'EnsureDead': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
705 'Result': {'$ref': '#/definitions/ErrorResults'}},
706 'type': 'object'},
707 'EnterScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
708 'Result': {'$ref': '#/definitions/ErrorResults'}},
709 'type': 'object'},
710 'FinishActions': {'properties': {'Params': {'$ref': '#/definitions/ActionExecutionResults'},
711 'Result': {'$ref': '#/definitions/ErrorResults'}},
712 'type': 'object'},
713 'GetMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
714 'Result': {'$ref': '#/definitions/MeterStatusResults'}},
715 'type': 'object'},
716 'GetPrincipal': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
717 'Result': {'$ref': '#/definitions/StringBoolResults'}},
718 'type': 'object'},
719 'HasSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
720 'Result': {'$ref': '#/definitions/BoolResults'}},
721 'type': 'object'},
722 'JoinedRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
723 'Result': {'$ref': '#/definitions/StringsResults'}},
724 'type': 'object'},
725 'LeaveScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
726 'Result': {'$ref': '#/definitions/ErrorResults'}},
727 'type': 'object'},
728 'Life': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
729 'Result': {'$ref': '#/definitions/LifeResults'}},
730 'type': 'object'},
731 'Merge': {'properties': {'Params': {'$ref': '#/definitions/MergeLeadershipSettingsBulkParams'},
732 'Result': {'$ref': '#/definitions/ErrorResults'}},
733 'type': 'object'},
734 'ModelConfig': {'properties': {'Result': {'$ref': '#/definitions/ModelConfigResult'}},
735 'type': 'object'},
736 'ModelUUID': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
737 'type': 'object'},
738 'NetworkConfig': {'properties': {'Params': {'$ref': '#/definitions/UnitsNetworkConfig'},
739 'Result': {'$ref': '#/definitions/UnitNetworkConfigResults'}},
740 'type': 'object'},
741 'OpenPorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
742 'Result': {'$ref': '#/definitions/ErrorResults'}},
743 'type': 'object'},
744 'PrivateAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
745 'Result': {'$ref': '#/definitions/StringResults'}},
746 'type': 'object'},
747 'ProviderType': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
748 'type': 'object'},
749 'PublicAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
750 'Result': {'$ref': '#/definitions/StringResults'}},
751 'type': 'object'},
752 'Read': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
753 'Result': {'$ref': '#/definitions/GetLeadershipSettingsBulkResults'}},
754 'type': 'object'},
755 'ReadRemoteSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitPairs'},
756 'Result': {'$ref': '#/definitions/SettingsResults'}},
757 'type': 'object'},
758 'ReadSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
759 'Result': {'$ref': '#/definitions/SettingsResults'}},
760 'type': 'object'},
761 'Relation': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
762 'Result': {'$ref': '#/definitions/RelationResults'}},
763 'type': 'object'},
764 'RelationById': {'properties': {'Params': {'$ref': '#/definitions/RelationIds'},
765 'Result': {'$ref': '#/definitions/RelationResults'}},
766 'type': 'object'},
767 'RemoveStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
768 'Result': {'$ref': '#/definitions/ErrorResults'}},
769 'type': 'object'},
770 'RequestReboot': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
771 'Result': {'$ref': '#/definitions/ErrorResults'}},
772 'type': 'object'},
773 'Resolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
774 'Result': {'$ref': '#/definitions/ResolvedModeResults'}},
775 'type': 'object'},
776 'SLALevel': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
777 'type': 'object'},
778 'SetAgentStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
779 'Result': {'$ref': '#/definitions/ErrorResults'}},
780 'type': 'object'},
781 'SetApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
782 'Result': {'$ref': '#/definitions/ErrorResults'}},
783 'type': 'object'},
784 'SetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/EntitiesCharmURL'},
785 'Result': {'$ref': '#/definitions/ErrorResults'}},
786 'type': 'object'},
787 'SetStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
788 'Result': {'$ref': '#/definitions/ErrorResults'}},
789 'type': 'object'},
790 'SetUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
791 'Result': {'$ref': '#/definitions/ErrorResults'}},
792 'type': 'object'},
793 'SetWorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/EntityWorkloadVersions'},
794 'Result': {'$ref': '#/definitions/ErrorResults'}},
795 'type': 'object'},
796 'StorageAttachmentLife': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
797 'Result': {'$ref': '#/definitions/LifeResults'}},
798 'type': 'object'},
799 'StorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
800 'Result': {'$ref': '#/definitions/StorageAttachmentResults'}},
801 'type': 'object'},
802 'UnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
803 'Result': {'$ref': '#/definitions/StatusResults'}},
804 'type': 'object'},
805 'UnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
806 'Result': {'$ref': '#/definitions/StorageAttachmentIdsResults'}},
807 'type': 'object'},
808 'UpdateSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitsSettings'},
809 'Result': {'$ref': '#/definitions/ErrorResults'}},
810 'type': 'object'},
811 'Watch': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
812 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
813 'type': 'object'},
814 'WatchAPIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
815 'type': 'object'},
816 'WatchActionNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
817 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
818 'type': 'object'},
819 'WatchApplicationRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
820 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
821 'type': 'object'},
822 'WatchConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
823 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
824 'type': 'object'},
825 'WatchForModelConfigChanges': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
826 'type': 'object'},
827 'WatchLeadershipSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
828 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
829 'type': 'object'},
830 'WatchMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
831 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
832 'type': 'object'},
833 'WatchRelationUnits': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
834 'Result': {'$ref': '#/definitions/RelationUnitsWatchResults'}},
835 'type': 'object'},
836 'WatchStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
837 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
838 'type': 'object'},
839 'WatchUnitAddresses': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
840 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
841 'type': 'object'},
842 'WatchUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
843 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
844 'type': 'object'},
845 'WorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
846 'Result': {'$ref': '#/definitions/StringResults'}},
847 'type': 'object'}},
848 'type': 'object'}
849
850
851 @ReturnMapping(StringsResult)
852 async def APIAddresses(self):
853 '''
854
855 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence<+T_co>[str]]
856 '''
857 # map input types to rpc msg
858 _params = dict()
859 msg = dict(type='Uniter', request='APIAddresses', version=5, params=_params)
860
861 reply = await self.rpc(msg)
862 return reply
863
864
865
866 @ReturnMapping(APIHostPortsResult)
867 async def APIHostPorts(self):
868 '''
869
870 Returns -> typing.Sequence<+T_co>[~HostPort]<~HostPort>
871 '''
872 # map input types to rpc msg
873 _params = dict()
874 msg = dict(type='Uniter', request='APIHostPorts', version=5, params=_params)
875
876 reply = await self.rpc(msg)
877 return reply
878
879
880
881 @ReturnMapping(ActionResults)
882 async def Actions(self, entities):
883 '''
884 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
885 Returns -> typing.Sequence<+T_co>[~ActionResult]<~ActionResult>
886 '''
887 # map input types to rpc msg
888 _params = dict()
889 msg = dict(type='Uniter', request='Actions', version=5, params=_params)
890 _params['entities'] = entities
891 reply = await self.rpc(msg)
892 return reply
893
894
895
896 @ReturnMapping(ErrorResults)
897 async def AddMetricBatches(self, batches):
898 '''
899 batches : typing.Sequence<+T_co>[~MetricBatchParam]<~MetricBatchParam>
900 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
901 '''
902 # map input types to rpc msg
903 _params = dict()
904 msg = dict(type='Uniter', request='AddMetricBatches', version=5, params=_params)
905 _params['batches'] = batches
906 reply = await self.rpc(msg)
907 return reply
908
909
910
911 @ReturnMapping(ErrorResults)
912 async def AddUnitStorage(self, storages):
913 '''
914 storages : typing.Sequence<+T_co>[~StorageAddParams]<~StorageAddParams>
915 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
916 '''
917 # map input types to rpc msg
918 _params = dict()
919 msg = dict(type='Uniter', request='AddUnitStorage', version=5, params=_params)
920 _params['storages'] = storages
921 reply = await self.rpc(msg)
922 return reply
923
924
925
926 @ReturnMapping(MachinePortsResults)
927 async def AllMachinePorts(self, entities):
928 '''
929 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
930 Returns -> typing.Sequence<+T_co>[~MachinePortsResult]<~MachinePortsResult>
931 '''
932 # map input types to rpc msg
933 _params = dict()
934 msg = dict(type='Uniter', request='AllMachinePorts', version=5, params=_params)
935 _params['entities'] = entities
936 reply = await self.rpc(msg)
937 return reply
938
939
940
941 @ReturnMapping(ApplicationStatusResults)
942 async def ApplicationStatus(self, entities):
943 '''
944 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
945 Returns -> typing.Sequence<+T_co>[~ApplicationStatusResult]<~ApplicationStatusResult>
946 '''
947 # map input types to rpc msg
948 _params = dict()
949 msg = dict(type='Uniter', request='ApplicationStatus', version=5, params=_params)
950 _params['entities'] = entities
951 reply = await self.rpc(msg)
952 return reply
953
954
955
956 @ReturnMapping(StringResults)
957 async def AssignedMachine(self, entities):
958 '''
959 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
960 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
961 '''
962 # map input types to rpc msg
963 _params = dict()
964 msg = dict(type='Uniter', request='AssignedMachine', version=5, params=_params)
965 _params['entities'] = entities
966 reply = await self.rpc(msg)
967 return reply
968
969
970
971 @ReturnMapping(StringResults)
972 async def AvailabilityZone(self, entities):
973 '''
974 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
975 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
976 '''
977 # map input types to rpc msg
978 _params = dict()
979 msg = dict(type='Uniter', request='AvailabilityZone', version=5, params=_params)
980 _params['entities'] = entities
981 reply = await self.rpc(msg)
982 return reply
983
984
985
986 @ReturnMapping(ErrorResults)
987 async def BeginActions(self, entities):
988 '''
989 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
990 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
991 '''
992 # map input types to rpc msg
993 _params = dict()
994 msg = dict(type='Uniter', request='BeginActions', version=5, params=_params)
995 _params['entities'] = entities
996 reply = await self.rpc(msg)
997 return reply
998
999
1000
1001 @ReturnMapping(BytesResult)
1002 async def CACert(self):
1003 '''
1004
1005 Returns -> typing.Sequence<+T_co>[int]
1006 '''
1007 # map input types to rpc msg
1008 _params = dict()
1009 msg = dict(type='Uniter', request='CACert', version=5, params=_params)
1010
1011 reply = await self.rpc(msg)
1012 return reply
1013
1014
1015
1016 @ReturnMapping(StringResults)
1017 async def CharmArchiveSha256(self, urls):
1018 '''
1019 urls : typing.Sequence<+T_co>[~CharmURL]<~CharmURL>
1020 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1021 '''
1022 # map input types to rpc msg
1023 _params = dict()
1024 msg = dict(type='Uniter', request='CharmArchiveSha256', version=5, params=_params)
1025 _params['urls'] = urls
1026 reply = await self.rpc(msg)
1027 return reply
1028
1029
1030
1031 @ReturnMapping(IntResults)
1032 async def CharmModifiedVersion(self, entities):
1033 '''
1034 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1035 Returns -> typing.Sequence<+T_co>[~IntResult]<~IntResult>
1036 '''
1037 # map input types to rpc msg
1038 _params = dict()
1039 msg = dict(type='Uniter', request='CharmModifiedVersion', version=5, params=_params)
1040 _params['entities'] = entities
1041 reply = await self.rpc(msg)
1042 return reply
1043
1044
1045
1046 @ReturnMapping(StringBoolResults)
1047 async def CharmURL(self, entities):
1048 '''
1049 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1050 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
1051 '''
1052 # map input types to rpc msg
1053 _params = dict()
1054 msg = dict(type='Uniter', request='CharmURL', version=5, params=_params)
1055 _params['entities'] = entities
1056 reply = await self.rpc(msg)
1057 return reply
1058
1059
1060
1061 @ReturnMapping(ErrorResults)
1062 async def ClearResolved(self, entities):
1063 '''
1064 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1065 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1066 '''
1067 # map input types to rpc msg
1068 _params = dict()
1069 msg = dict(type='Uniter', request='ClearResolved', version=5, params=_params)
1070 _params['entities'] = entities
1071 reply = await self.rpc(msg)
1072 return reply
1073
1074
1075
1076 @ReturnMapping(ErrorResults)
1077 async def ClosePorts(self, entities):
1078 '''
1079 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
1080 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1081 '''
1082 # map input types to rpc msg
1083 _params = dict()
1084 msg = dict(type='Uniter', request='ClosePorts', version=5, params=_params)
1085 _params['entities'] = entities
1086 reply = await self.rpc(msg)
1087 return reply
1088
1089
1090
1091 @ReturnMapping(ConfigSettingsResults)
1092 async def ConfigSettings(self, entities):
1093 '''
1094 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1095 Returns -> typing.Sequence<+T_co>[~ConfigSettingsResult]<~ConfigSettingsResult>
1096 '''
1097 # map input types to rpc msg
1098 _params = dict()
1099 msg = dict(type='Uniter', request='ConfigSettings', version=5, params=_params)
1100 _params['entities'] = entities
1101 reply = await self.rpc(msg)
1102 return reply
1103
1104
1105
1106 @ReturnMapping(ModelResult)
1107 async def CurrentModel(self):
1108 '''
1109
1110 Returns -> typing.Union[_ForwardRef('Error'), str]
1111 '''
1112 # map input types to rpc msg
1113 _params = dict()
1114 msg = dict(type='Uniter', request='CurrentModel', version=5, params=_params)
1115
1116 reply = await self.rpc(msg)
1117 return reply
1118
1119
1120
1121 @ReturnMapping(ErrorResults)
1122 async def Destroy(self, entities):
1123 '''
1124 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1125 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1126 '''
1127 # map input types to rpc msg
1128 _params = dict()
1129 msg = dict(type='Uniter', request='Destroy', version=5, params=_params)
1130 _params['entities'] = entities
1131 reply = await self.rpc(msg)
1132 return reply
1133
1134
1135
1136 @ReturnMapping(ErrorResults)
1137 async def DestroyAllSubordinates(self, entities):
1138 '''
1139 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1140 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1141 '''
1142 # map input types to rpc msg
1143 _params = dict()
1144 msg = dict(type='Uniter', request='DestroyAllSubordinates', version=5, params=_params)
1145 _params['entities'] = entities
1146 reply = await self.rpc(msg)
1147 return reply
1148
1149
1150
1151 @ReturnMapping(ErrorResults)
1152 async def DestroyUnitStorageAttachments(self, entities):
1153 '''
1154 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1155 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1156 '''
1157 # map input types to rpc msg
1158 _params = dict()
1159 msg = dict(type='Uniter', request='DestroyUnitStorageAttachments', version=5, params=_params)
1160 _params['entities'] = entities
1161 reply = await self.rpc(msg)
1162 return reply
1163
1164
1165
1166 @ReturnMapping(ErrorResults)
1167 async def EnsureDead(self, entities):
1168 '''
1169 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1170 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1171 '''
1172 # map input types to rpc msg
1173 _params = dict()
1174 msg = dict(type='Uniter', request='EnsureDead', version=5, params=_params)
1175 _params['entities'] = entities
1176 reply = await self.rpc(msg)
1177 return reply
1178
1179
1180
1181 @ReturnMapping(ErrorResults)
1182 async def EnterScope(self, relation_units):
1183 '''
1184 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1185 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1186 '''
1187 # map input types to rpc msg
1188 _params = dict()
1189 msg = dict(type='Uniter', request='EnterScope', version=5, params=_params)
1190 _params['relation-units'] = relation_units
1191 reply = await self.rpc(msg)
1192 return reply
1193
1194
1195
1196 @ReturnMapping(ErrorResults)
1197 async def FinishActions(self, results):
1198 '''
1199 results : typing.Sequence<+T_co>[~ActionExecutionResult]<~ActionExecutionResult>
1200 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1201 '''
1202 # map input types to rpc msg
1203 _params = dict()
1204 msg = dict(type='Uniter', request='FinishActions', version=5, params=_params)
1205 _params['results'] = results
1206 reply = await self.rpc(msg)
1207 return reply
1208
1209
1210
1211 @ReturnMapping(MeterStatusResults)
1212 async def GetMeterStatus(self, entities):
1213 '''
1214 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1215 Returns -> typing.Sequence<+T_co>[~MeterStatusResult]<~MeterStatusResult>
1216 '''
1217 # map input types to rpc msg
1218 _params = dict()
1219 msg = dict(type='Uniter', request='GetMeterStatus', version=5, params=_params)
1220 _params['entities'] = entities
1221 reply = await self.rpc(msg)
1222 return reply
1223
1224
1225
1226 @ReturnMapping(StringBoolResults)
1227 async def GetPrincipal(self, entities):
1228 '''
1229 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1230 Returns -> typing.Sequence<+T_co>[~StringBoolResult]<~StringBoolResult>
1231 '''
1232 # map input types to rpc msg
1233 _params = dict()
1234 msg = dict(type='Uniter', request='GetPrincipal', version=5, params=_params)
1235 _params['entities'] = entities
1236 reply = await self.rpc(msg)
1237 return reply
1238
1239
1240
1241 @ReturnMapping(BoolResults)
1242 async def HasSubordinates(self, entities):
1243 '''
1244 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1245 Returns -> typing.Sequence<+T_co>[~BoolResult]<~BoolResult>
1246 '''
1247 # map input types to rpc msg
1248 _params = dict()
1249 msg = dict(type='Uniter', request='HasSubordinates', version=5, params=_params)
1250 _params['entities'] = entities
1251 reply = await self.rpc(msg)
1252 return reply
1253
1254
1255
1256 @ReturnMapping(StringsResults)
1257 async def JoinedRelations(self, entities):
1258 '''
1259 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1260 Returns -> typing.Sequence<+T_co>[~StringsResult]<~StringsResult>
1261 '''
1262 # map input types to rpc msg
1263 _params = dict()
1264 msg = dict(type='Uniter', request='JoinedRelations', version=5, params=_params)
1265 _params['entities'] = entities
1266 reply = await self.rpc(msg)
1267 return reply
1268
1269
1270
1271 @ReturnMapping(ErrorResults)
1272 async def LeaveScope(self, relation_units):
1273 '''
1274 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1275 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1276 '''
1277 # map input types to rpc msg
1278 _params = dict()
1279 msg = dict(type='Uniter', request='LeaveScope', version=5, params=_params)
1280 _params['relation-units'] = relation_units
1281 reply = await self.rpc(msg)
1282 return reply
1283
1284
1285
1286 @ReturnMapping(LifeResults)
1287 async def Life(self, entities):
1288 '''
1289 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1290 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
1291 '''
1292 # map input types to rpc msg
1293 _params = dict()
1294 msg = dict(type='Uniter', request='Life', version=5, params=_params)
1295 _params['entities'] = entities
1296 reply = await self.rpc(msg)
1297 return reply
1298
1299
1300
1301 @ReturnMapping(ErrorResults)
1302 async def Merge(self, params):
1303 '''
1304 params : typing.Sequence<+T_co>[~MergeLeadershipSettingsParam]<~MergeLeadershipSettingsParam>
1305 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1306 '''
1307 # map input types to rpc msg
1308 _params = dict()
1309 msg = dict(type='Uniter', request='Merge', version=5, params=_params)
1310 _params['params'] = params
1311 reply = await self.rpc(msg)
1312 return reply
1313
1314
1315
1316 @ReturnMapping(ModelConfigResult)
1317 async def ModelConfig(self):
1318 '''
1319
1320 Returns -> typing.Mapping<~KT, +VT_co>[str, typing.Any]
1321 '''
1322 # map input types to rpc msg
1323 _params = dict()
1324 msg = dict(type='Uniter', request='ModelConfig', version=5, params=_params)
1325
1326 reply = await self.rpc(msg)
1327 return reply
1328
1329
1330
1331 @ReturnMapping(StringResult)
1332 async def ModelUUID(self):
1333 '''
1334
1335 Returns -> typing.Union[_ForwardRef('Error'), str]
1336 '''
1337 # map input types to rpc msg
1338 _params = dict()
1339 msg = dict(type='Uniter', request='ModelUUID', version=5, params=_params)
1340
1341 reply = await self.rpc(msg)
1342 return reply
1343
1344
1345
1346 @ReturnMapping(UnitNetworkConfigResults)
1347 async def NetworkConfig(self, args):
1348 '''
1349 args : typing.Sequence<+T_co>[~UnitNetworkConfig]<~UnitNetworkConfig>
1350 Returns -> typing.Sequence<+T_co>[~UnitNetworkConfigResult]<~UnitNetworkConfigResult>
1351 '''
1352 # map input types to rpc msg
1353 _params = dict()
1354 msg = dict(type='Uniter', request='NetworkConfig', version=5, params=_params)
1355 _params['args'] = args
1356 reply = await self.rpc(msg)
1357 return reply
1358
1359
1360
1361 @ReturnMapping(ErrorResults)
1362 async def OpenPorts(self, entities):
1363 '''
1364 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
1365 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1366 '''
1367 # map input types to rpc msg
1368 _params = dict()
1369 msg = dict(type='Uniter', request='OpenPorts', version=5, params=_params)
1370 _params['entities'] = entities
1371 reply = await self.rpc(msg)
1372 return reply
1373
1374
1375
1376 @ReturnMapping(StringResults)
1377 async def PrivateAddress(self, entities):
1378 '''
1379 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1380 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1381 '''
1382 # map input types to rpc msg
1383 _params = dict()
1384 msg = dict(type='Uniter', request='PrivateAddress', version=5, params=_params)
1385 _params['entities'] = entities
1386 reply = await self.rpc(msg)
1387 return reply
1388
1389
1390
1391 @ReturnMapping(StringResult)
1392 async def ProviderType(self):
1393 '''
1394
1395 Returns -> typing.Union[_ForwardRef('Error'), str]
1396 '''
1397 # map input types to rpc msg
1398 _params = dict()
1399 msg = dict(type='Uniter', request='ProviderType', version=5, params=_params)
1400
1401 reply = await self.rpc(msg)
1402 return reply
1403
1404
1405
1406 @ReturnMapping(StringResults)
1407 async def PublicAddress(self, entities):
1408 '''
1409 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1410 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1411 '''
1412 # map input types to rpc msg
1413 _params = dict()
1414 msg = dict(type='Uniter', request='PublicAddress', version=5, params=_params)
1415 _params['entities'] = entities
1416 reply = await self.rpc(msg)
1417 return reply
1418
1419
1420
1421 @ReturnMapping(GetLeadershipSettingsBulkResults)
1422 async def Read(self, entities):
1423 '''
1424 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1425 Returns -> typing.Sequence<+T_co>[~GetLeadershipSettingsResult]<~GetLeadershipSettingsResult>
1426 '''
1427 # map input types to rpc msg
1428 _params = dict()
1429 msg = dict(type='Uniter', request='Read', version=5, params=_params)
1430 _params['entities'] = entities
1431 reply = await self.rpc(msg)
1432 return reply
1433
1434
1435
1436 @ReturnMapping(SettingsResults)
1437 async def ReadRemoteSettings(self, relation_unit_pairs):
1438 '''
1439 relation_unit_pairs : typing.Sequence<+T_co>[~RelationUnitPair]<~RelationUnitPair>
1440 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
1441 '''
1442 # map input types to rpc msg
1443 _params = dict()
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)
1447 return reply
1448
1449
1450
1451 @ReturnMapping(SettingsResults)
1452 async def ReadSettings(self, relation_units):
1453 '''
1454 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1455 Returns -> typing.Sequence<+T_co>[~SettingsResult]<~SettingsResult>
1456 '''
1457 # map input types to rpc msg
1458 _params = dict()
1459 msg = dict(type='Uniter', request='ReadSettings', version=5, params=_params)
1460 _params['relation-units'] = relation_units
1461 reply = await self.rpc(msg)
1462 return reply
1463
1464
1465
1466 @ReturnMapping(RelationResults)
1467 async def Relation(self, relation_units):
1468 '''
1469 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1470 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
1471 '''
1472 # map input types to rpc msg
1473 _params = dict()
1474 msg = dict(type='Uniter', request='Relation', version=5, params=_params)
1475 _params['relation-units'] = relation_units
1476 reply = await self.rpc(msg)
1477 return reply
1478
1479
1480
1481 @ReturnMapping(RelationResults)
1482 async def RelationById(self, relation_ids):
1483 '''
1484 relation_ids : typing.Sequence<+T_co>[int]
1485 Returns -> typing.Sequence<+T_co>[~RelationResult]<~RelationResult>
1486 '''
1487 # map input types to rpc msg
1488 _params = dict()
1489 msg = dict(type='Uniter', request='RelationById', version=5, params=_params)
1490 _params['relation-ids'] = relation_ids
1491 reply = await self.rpc(msg)
1492 return reply
1493
1494
1495
1496 @ReturnMapping(ErrorResults)
1497 async def RemoveStorageAttachments(self, ids):
1498 '''
1499 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1500 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1501 '''
1502 # map input types to rpc msg
1503 _params = dict()
1504 msg = dict(type='Uniter', request='RemoveStorageAttachments', version=5, params=_params)
1505 _params['ids'] = ids
1506 reply = await self.rpc(msg)
1507 return reply
1508
1509
1510
1511 @ReturnMapping(ErrorResults)
1512 async def RequestReboot(self, entities):
1513 '''
1514 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1515 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1516 '''
1517 # map input types to rpc msg
1518 _params = dict()
1519 msg = dict(type='Uniter', request='RequestReboot', version=5, params=_params)
1520 _params['entities'] = entities
1521 reply = await self.rpc(msg)
1522 return reply
1523
1524
1525
1526 @ReturnMapping(ResolvedModeResults)
1527 async def Resolved(self, entities):
1528 '''
1529 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1530 Returns -> typing.Sequence<+T_co>[~ResolvedModeResult]<~ResolvedModeResult>
1531 '''
1532 # map input types to rpc msg
1533 _params = dict()
1534 msg = dict(type='Uniter', request='Resolved', version=5, params=_params)
1535 _params['entities'] = entities
1536 reply = await self.rpc(msg)
1537 return reply
1538
1539
1540
1541 @ReturnMapping(StringResult)
1542 async def SLALevel(self):
1543 '''
1544
1545 Returns -> typing.Union[_ForwardRef('Error'), str]
1546 '''
1547 # map input types to rpc msg
1548 _params = dict()
1549 msg = dict(type='Uniter', request='SLALevel', version=5, params=_params)
1550
1551 reply = await self.rpc(msg)
1552 return reply
1553
1554
1555
1556 @ReturnMapping(ErrorResults)
1557 async def SetAgentStatus(self, entities):
1558 '''
1559 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1560 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1561 '''
1562 # map input types to rpc msg
1563 _params = dict()
1564 msg = dict(type='Uniter', request='SetAgentStatus', version=5, params=_params)
1565 _params['entities'] = entities
1566 reply = await self.rpc(msg)
1567 return reply
1568
1569
1570
1571 @ReturnMapping(ErrorResults)
1572 async def SetApplicationStatus(self, entities):
1573 '''
1574 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1575 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1576 '''
1577 # map input types to rpc msg
1578 _params = dict()
1579 msg = dict(type='Uniter', request='SetApplicationStatus', version=5, params=_params)
1580 _params['entities'] = entities
1581 reply = await self.rpc(msg)
1582 return reply
1583
1584
1585
1586 @ReturnMapping(ErrorResults)
1587 async def SetCharmURL(self, entities):
1588 '''
1589 entities : typing.Sequence<+T_co>[~EntityCharmURL]<~EntityCharmURL>
1590 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1591 '''
1592 # map input types to rpc msg
1593 _params = dict()
1594 msg = dict(type='Uniter', request='SetCharmURL', version=5, params=_params)
1595 _params['entities'] = entities
1596 reply = await self.rpc(msg)
1597 return reply
1598
1599
1600
1601 @ReturnMapping(ErrorResults)
1602 async def SetStatus(self, entities):
1603 '''
1604 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1605 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1606 '''
1607 # map input types to rpc msg
1608 _params = dict()
1609 msg = dict(type='Uniter', request='SetStatus', version=5, params=_params)
1610 _params['entities'] = entities
1611 reply = await self.rpc(msg)
1612 return reply
1613
1614
1615
1616 @ReturnMapping(ErrorResults)
1617 async def SetUnitStatus(self, entities):
1618 '''
1619 entities : typing.Sequence<+T_co>[~EntityStatusArgs]<~EntityStatusArgs>
1620 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1621 '''
1622 # map input types to rpc msg
1623 _params = dict()
1624 msg = dict(type='Uniter', request='SetUnitStatus', version=5, params=_params)
1625 _params['entities'] = entities
1626 reply = await self.rpc(msg)
1627 return reply
1628
1629
1630
1631 @ReturnMapping(ErrorResults)
1632 async def SetWorkloadVersion(self, entities):
1633 '''
1634 entities : typing.Sequence<+T_co>[~EntityWorkloadVersion]<~EntityWorkloadVersion>
1635 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1636 '''
1637 # map input types to rpc msg
1638 _params = dict()
1639 msg = dict(type='Uniter', request='SetWorkloadVersion', version=5, params=_params)
1640 _params['entities'] = entities
1641 reply = await self.rpc(msg)
1642 return reply
1643
1644
1645
1646 @ReturnMapping(LifeResults)
1647 async def StorageAttachmentLife(self, ids):
1648 '''
1649 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1650 Returns -> typing.Sequence<+T_co>[~LifeResult]<~LifeResult>
1651 '''
1652 # map input types to rpc msg
1653 _params = dict()
1654 msg = dict(type='Uniter', request='StorageAttachmentLife', version=5, params=_params)
1655 _params['ids'] = ids
1656 reply = await self.rpc(msg)
1657 return reply
1658
1659
1660
1661 @ReturnMapping(StorageAttachmentResults)
1662 async def StorageAttachments(self, ids):
1663 '''
1664 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1665 Returns -> typing.Sequence<+T_co>[~StorageAttachmentResult]<~StorageAttachmentResult>
1666 '''
1667 # map input types to rpc msg
1668 _params = dict()
1669 msg = dict(type='Uniter', request='StorageAttachments', version=5, params=_params)
1670 _params['ids'] = ids
1671 reply = await self.rpc(msg)
1672 return reply
1673
1674
1675
1676 @ReturnMapping(StatusResults)
1677 async def UnitStatus(self, entities):
1678 '''
1679 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1680 Returns -> typing.Sequence<+T_co>[~StatusResult]<~StatusResult>
1681 '''
1682 # map input types to rpc msg
1683 _params = dict()
1684 msg = dict(type='Uniter', request='UnitStatus', version=5, params=_params)
1685 _params['entities'] = entities
1686 reply = await self.rpc(msg)
1687 return reply
1688
1689
1690
1691 @ReturnMapping(StorageAttachmentIdsResults)
1692 async def UnitStorageAttachments(self, entities):
1693 '''
1694 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1695 Returns -> typing.Sequence<+T_co>[~StorageAttachmentIdsResult]<~StorageAttachmentIdsResult>
1696 '''
1697 # map input types to rpc msg
1698 _params = dict()
1699 msg = dict(type='Uniter', request='UnitStorageAttachments', version=5, params=_params)
1700 _params['entities'] = entities
1701 reply = await self.rpc(msg)
1702 return reply
1703
1704
1705
1706 @ReturnMapping(ErrorResults)
1707 async def UpdateSettings(self, relation_units):
1708 '''
1709 relation_units : typing.Sequence<+T_co>[~RelationUnitSettings]<~RelationUnitSettings>
1710 Returns -> typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1711 '''
1712 # map input types to rpc msg
1713 _params = dict()
1714 msg = dict(type='Uniter', request='UpdateSettings', version=5, params=_params)
1715 _params['relation-units'] = relation_units
1716 reply = await self.rpc(msg)
1717 return reply
1718
1719
1720
1721 @ReturnMapping(NotifyWatchResults)
1722 async def Watch(self, entities):
1723 '''
1724 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1725 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1726 '''
1727 # map input types to rpc msg
1728 _params = dict()
1729 msg = dict(type='Uniter', request='Watch', version=5, params=_params)
1730 _params['entities'] = entities
1731 reply = await self.rpc(msg)
1732 return reply
1733
1734
1735
1736 @ReturnMapping(NotifyWatchResult)
1737 async def WatchAPIHostPorts(self):
1738 '''
1739
1740 Returns -> typing.Union[str, _ForwardRef('Error')]
1741 '''
1742 # map input types to rpc msg
1743 _params = dict()
1744 msg = dict(type='Uniter', request='WatchAPIHostPorts', version=5, params=_params)
1745
1746 reply = await self.rpc(msg)
1747 return reply
1748
1749
1750
1751 @ReturnMapping(StringsWatchResults)
1752 async def WatchActionNotifications(self, entities):
1753 '''
1754 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1755 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1756 '''
1757 # map input types to rpc msg
1758 _params = dict()
1759 msg = dict(type='Uniter', request='WatchActionNotifications', version=5, params=_params)
1760 _params['entities'] = entities
1761 reply = await self.rpc(msg)
1762 return reply
1763
1764
1765
1766 @ReturnMapping(StringsWatchResults)
1767 async def WatchApplicationRelations(self, entities):
1768 '''
1769 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1770 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1771 '''
1772 # map input types to rpc msg
1773 _params = dict()
1774 msg = dict(type='Uniter', request='WatchApplicationRelations', version=5, params=_params)
1775 _params['entities'] = entities
1776 reply = await self.rpc(msg)
1777 return reply
1778
1779
1780
1781 @ReturnMapping(NotifyWatchResults)
1782 async def WatchConfigSettings(self, entities):
1783 '''
1784 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1785 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1786 '''
1787 # map input types to rpc msg
1788 _params = dict()
1789 msg = dict(type='Uniter', request='WatchConfigSettings', version=5, params=_params)
1790 _params['entities'] = entities
1791 reply = await self.rpc(msg)
1792 return reply
1793
1794
1795
1796 @ReturnMapping(NotifyWatchResult)
1797 async def WatchForModelConfigChanges(self):
1798 '''
1799
1800 Returns -> typing.Union[str, _ForwardRef('Error')]
1801 '''
1802 # map input types to rpc msg
1803 _params = dict()
1804 msg = dict(type='Uniter', request='WatchForModelConfigChanges', version=5, params=_params)
1805
1806 reply = await self.rpc(msg)
1807 return reply
1808
1809
1810
1811 @ReturnMapping(NotifyWatchResults)
1812 async def WatchLeadershipSettings(self, entities):
1813 '''
1814 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1815 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1816 '''
1817 # map input types to rpc msg
1818 _params = dict()
1819 msg = dict(type='Uniter', request='WatchLeadershipSettings', version=5, params=_params)
1820 _params['entities'] = entities
1821 reply = await self.rpc(msg)
1822 return reply
1823
1824
1825
1826 @ReturnMapping(NotifyWatchResults)
1827 async def WatchMeterStatus(self, entities):
1828 '''
1829 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1830 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1831 '''
1832 # map input types to rpc msg
1833 _params = dict()
1834 msg = dict(type='Uniter', request='WatchMeterStatus', version=5, params=_params)
1835 _params['entities'] = entities
1836 reply = await self.rpc(msg)
1837 return reply
1838
1839
1840
1841 @ReturnMapping(RelationUnitsWatchResults)
1842 async def WatchRelationUnits(self, relation_units):
1843 '''
1844 relation_units : typing.Sequence<+T_co>[~RelationUnit]<~RelationUnit>
1845 Returns -> typing.Sequence<+T_co>[~RelationUnitsWatchResult]<~RelationUnitsWatchResult>
1846 '''
1847 # map input types to rpc msg
1848 _params = dict()
1849 msg = dict(type='Uniter', request='WatchRelationUnits', version=5, params=_params)
1850 _params['relation-units'] = relation_units
1851 reply = await self.rpc(msg)
1852 return reply
1853
1854
1855
1856 @ReturnMapping(NotifyWatchResults)
1857 async def WatchStorageAttachments(self, ids):
1858 '''
1859 ids : typing.Sequence<+T_co>[~StorageAttachmentId]<~StorageAttachmentId>
1860 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1861 '''
1862 # map input types to rpc msg
1863 _params = dict()
1864 msg = dict(type='Uniter', request='WatchStorageAttachments', version=5, params=_params)
1865 _params['ids'] = ids
1866 reply = await self.rpc(msg)
1867 return reply
1868
1869
1870
1871 @ReturnMapping(NotifyWatchResults)
1872 async def WatchUnitAddresses(self, entities):
1873 '''
1874 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1875 Returns -> typing.Sequence<+T_co>[~NotifyWatchResult]<~NotifyWatchResult>
1876 '''
1877 # map input types to rpc msg
1878 _params = dict()
1879 msg = dict(type='Uniter', request='WatchUnitAddresses', version=5, params=_params)
1880 _params['entities'] = entities
1881 reply = await self.rpc(msg)
1882 return reply
1883
1884
1885
1886 @ReturnMapping(StringsWatchResults)
1887 async def WatchUnitStorageAttachments(self, entities):
1888 '''
1889 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1890 Returns -> typing.Sequence<+T_co>[~StringsWatchResult]<~StringsWatchResult>
1891 '''
1892 # map input types to rpc msg
1893 _params = dict()
1894 msg = dict(type='Uniter', request='WatchUnitStorageAttachments', version=5, params=_params)
1895 _params['entities'] = entities
1896 reply = await self.rpc(msg)
1897 return reply
1898
1899
1900
1901 @ReturnMapping(StringResults)
1902 async def WorkloadVersion(self, entities):
1903 '''
1904 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
1905 Returns -> typing.Sequence<+T_co>[~StringResult]<~StringResult>
1906 '''
1907 # map input types to rpc msg
1908 _params = dict()
1909 msg = dict(type='Uniter', request='WorkloadVersion', version=5, params=_params)
1910 _params['entities'] = entities
1911 reply = await self.rpc(msg)
1912 return reply
1913
1914