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