Merge upstream libjuju
[osm/N2VC.git] / modules / libjuju / juju / client / _client9.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 = 9
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 'CharmRelation': {'additionalProperties': False,
89 'properties': {'interface': {'type': 'string'},
90 'limit': {'type': 'integer'},
91 'name': {'type': 'string'},
92 'optional': {'type': 'boolean'},
93 'role': {'type': 'string'},
94 'scope': {'type': 'string'}},
95 'required': ['name',
96 'role',
97 'interface',
98 'optional',
99 'limit',
100 'scope'],
101 'type': 'object'},
102 'CharmURL': {'additionalProperties': False,
103 'properties': {'url': {'type': 'string'}},
104 'required': ['url'],
105 'type': 'object'},
106 'CharmURLs': {'additionalProperties': False,
107 'properties': {'urls': {'items': {'$ref': '#/definitions/CharmURL'},
108 'type': 'array'}},
109 'required': ['urls'],
110 'type': 'object'},
111 'CloudCredential': {'additionalProperties': False,
112 'properties': {'attrs': {'patternProperties': {'.*': {'type': 'string'}},
113 'type': 'object'},
114 'auth-type': {'type': 'string'},
115 'redacted': {'items': {'type': 'string'},
116 'type': 'array'}},
117 'required': ['auth-type'],
118 'type': 'object'},
119 'CloudSpec': {'additionalProperties': False,
120 'properties': {'cacertificates': {'items': {'type': 'string'},
121 'type': 'array'},
122 'credential': {'$ref': '#/definitions/CloudCredential'},
123 'endpoint': {'type': 'string'},
124 'identity-endpoint': {'type': 'string'},
125 'name': {'type': 'string'},
126 'region': {'type': 'string'},
127 'storage-endpoint': {'type': 'string'},
128 'type': {'type': 'string'}},
129 'required': ['type', 'name'],
130 'type': 'object'},
131 'CloudSpecResult': {'additionalProperties': False,
132 'properties': {'error': {'$ref': '#/definitions/Error'},
133 'result': {'$ref': '#/definitions/CloudSpec'}},
134 'type': 'object'},
135 'ConfigSettingsResult': {'additionalProperties': False,
136 'properties': {'error': {'$ref': '#/definitions/Error'},
137 'settings': {'patternProperties': {'.*': {'additionalProperties': True,
138 'type': 'object'}},
139 'type': 'object'}},
140 'required': ['settings'],
141 'type': 'object'},
142 'ConfigSettingsResults': {'additionalProperties': False,
143 'properties': {'results': {'items': {'$ref': '#/definitions/ConfigSettingsResult'},
144 'type': 'array'}},
145 'required': ['results'],
146 'type': 'object'},
147 'Endpoint': {'additionalProperties': False,
148 'properties': {'application-name': {'type': 'string'},
149 'relation': {'$ref': '#/definitions/CharmRelation'}},
150 'required': ['application-name', 'relation'],
151 'type': 'object'},
152 'Entities': {'additionalProperties': False,
153 'properties': {'entities': {'items': {'$ref': '#/definitions/Entity'},
154 'type': 'array'}},
155 'required': ['entities'],
156 'type': 'object'},
157 'EntitiesCharmURL': {'additionalProperties': False,
158 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityCharmURL'},
159 'type': 'array'}},
160 'required': ['entities'],
161 'type': 'object'},
162 'EntitiesPortRanges': {'additionalProperties': False,
163 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityPortRange'},
164 'type': 'array'}},
165 'required': ['entities'],
166 'type': 'object'},
167 'Entity': {'additionalProperties': False,
168 'properties': {'tag': {'type': 'string'}},
169 'required': ['tag'],
170 'type': 'object'},
171 'EntityCharmURL': {'additionalProperties': False,
172 'properties': {'charm-url': {'type': 'string'},
173 'tag': {'type': 'string'}},
174 'required': ['tag', 'charm-url'],
175 'type': 'object'},
176 'EntityPortRange': {'additionalProperties': False,
177 'properties': {'from-port': {'type': 'integer'},
178 'protocol': {'type': 'string'},
179 'tag': {'type': 'string'},
180 'to-port': {'type': 'integer'}},
181 'required': ['tag',
182 'protocol',
183 'from-port',
184 'to-port'],
185 'type': 'object'},
186 'EntityStatusArgs': {'additionalProperties': False,
187 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
188 'type': 'object'}},
189 'type': 'object'},
190 'info': {'type': 'string'},
191 'status': {'type': 'string'},
192 'tag': {'type': 'string'}},
193 'required': ['tag',
194 'status',
195 'info',
196 'data'],
197 'type': 'object'},
198 'EntityString': {'additionalProperties': False,
199 'properties': {'tag': {'type': 'string'},
200 'value': {'type': 'string'}},
201 'required': ['tag', 'value'],
202 'type': 'object'},
203 'EntityWorkloadVersion': {'additionalProperties': False,
204 'properties': {'tag': {'type': 'string'},
205 'workload-version': {'type': 'string'}},
206 'required': ['tag',
207 'workload-version'],
208 'type': 'object'},
209 'EntityWorkloadVersions': {'additionalProperties': False,
210 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityWorkloadVersion'},
211 'type': 'array'}},
212 'required': ['entities'],
213 'type': 'object'},
214 'Error': {'additionalProperties': False,
215 'properties': {'code': {'type': 'string'},
216 'info': {'$ref': '#/definitions/ErrorInfo'},
217 'message': {'type': 'string'}},
218 'required': ['message', 'code'],
219 'type': 'object'},
220 'ErrorInfo': {'additionalProperties': False,
221 'properties': {'macaroon': {'$ref': '#/definitions/Macaroon'},
222 'macaroon-path': {'type': 'string'}},
223 'type': 'object'},
224 'ErrorResult': {'additionalProperties': False,
225 'properties': {'error': {'$ref': '#/definitions/Error'}},
226 'type': 'object'},
227 'ErrorResults': {'additionalProperties': False,
228 'properties': {'results': {'items': {'$ref': '#/definitions/ErrorResult'},
229 'type': 'array'}},
230 'required': ['results'],
231 'type': 'object'},
232 'GetLeadershipSettingsBulkResults': {'additionalProperties': False,
233 'properties': {'results': {'items': {'$ref': '#/definitions/GetLeadershipSettingsResult'},
234 'type': 'array'}},
235 'required': ['results'],
236 'type': 'object'},
237 'GetLeadershipSettingsResult': {'additionalProperties': False,
238 'properties': {'error': {'$ref': '#/definitions/Error'},
239 'settings': {'patternProperties': {'.*': {'type': 'string'}},
240 'type': 'object'}},
241 'required': ['settings'],
242 'type': 'object'},
243 'GoalState': {'additionalProperties': False,
244 'properties': {'relations': {'patternProperties': {'.*': {'patternProperties': {'.*': {'$ref': '#/definitions/GoalStateStatus'}},
245 'type': 'object'}},
246 'type': 'object'},
247 'units': {'patternProperties': {'.*': {'$ref': '#/definitions/GoalStateStatus'}},
248 'type': 'object'}},
249 'required': ['units', 'relations'],
250 'type': 'object'},
251 'GoalStateResult': {'additionalProperties': False,
252 'properties': {'error': {'$ref': '#/definitions/Error'},
253 'result': {'$ref': '#/definitions/GoalState'}},
254 'required': ['result', 'error'],
255 'type': 'object'},
256 'GoalStateResults': {'additionalProperties': False,
257 'properties': {'results': {'items': {'$ref': '#/definitions/GoalStateResult'},
258 'type': 'array'}},
259 'required': ['results'],
260 'type': 'object'},
261 'GoalStateStatus': {'additionalProperties': False,
262 'properties': {'since': {'format': 'date-time',
263 'type': 'string'},
264 'status': {'type': 'string'}},
265 'required': ['status', 'since'],
266 'type': 'object'},
267 'HostPort': {'additionalProperties': False,
268 'properties': {'Address': {'$ref': '#/definitions/Address'},
269 'port': {'type': 'integer'}},
270 'required': ['Address', 'port'],
271 'type': 'object'},
272 'IntResult': {'additionalProperties': False,
273 'properties': {'error': {'$ref': '#/definitions/Error'},
274 'result': {'type': 'integer'}},
275 'required': ['result'],
276 'type': 'object'},
277 'IntResults': {'additionalProperties': False,
278 'properties': {'results': {'items': {'$ref': '#/definitions/IntResult'},
279 'type': 'array'}},
280 'required': ['results'],
281 'type': 'object'},
282 'InterfaceAddress': {'additionalProperties': False,
283 'properties': {'cidr': {'type': 'string'},
284 'hostname': {'type': 'string'},
285 'value': {'type': 'string'}},
286 'required': ['hostname', 'value', 'cidr'],
287 'type': 'object'},
288 'LifeResult': {'additionalProperties': False,
289 'properties': {'error': {'$ref': '#/definitions/Error'},
290 'life': {'type': 'string'}},
291 'required': ['life'],
292 'type': 'object'},
293 'LifeResults': {'additionalProperties': False,
294 'properties': {'results': {'items': {'$ref': '#/definitions/LifeResult'},
295 'type': 'array'}},
296 'required': ['results'],
297 'type': 'object'},
298 'Macaroon': {'additionalProperties': False, 'type': 'object'},
299 'MachinePortRange': {'additionalProperties': False,
300 'properties': {'port-range': {'$ref': '#/definitions/PortRange'},
301 'relation-tag': {'type': 'string'},
302 'unit-tag': {'type': 'string'}},
303 'required': ['unit-tag',
304 'relation-tag',
305 'port-range'],
306 'type': 'object'},
307 'MachinePortsResult': {'additionalProperties': False,
308 'properties': {'error': {'$ref': '#/definitions/Error'},
309 'ports': {'items': {'$ref': '#/definitions/MachinePortRange'},
310 'type': 'array'}},
311 'required': ['ports'],
312 'type': 'object'},
313 'MachinePortsResults': {'additionalProperties': False,
314 'properties': {'results': {'items': {'$ref': '#/definitions/MachinePortsResult'},
315 'type': 'array'}},
316 'required': ['results'],
317 'type': 'object'},
318 'MergeLeadershipSettingsBulkParams': {'additionalProperties': False,
319 'properties': {'params': {'items': {'$ref': '#/definitions/MergeLeadershipSettingsParam'},
320 'type': 'array'}},
321 'required': ['params'],
322 'type': 'object'},
323 'MergeLeadershipSettingsParam': {'additionalProperties': False,
324 'properties': {'application-tag': {'type': 'string'},
325 'settings': {'patternProperties': {'.*': {'type': 'string'}},
326 'type': 'object'},
327 'unit-tag': {'type': 'string'}},
328 'required': ['settings'],
329 'type': 'object'},
330 'MeterStatusResult': {'additionalProperties': False,
331 'properties': {'code': {'type': 'string'},
332 'error': {'$ref': '#/definitions/Error'},
333 'info': {'type': 'string'}},
334 'required': ['code', 'info'],
335 'type': 'object'},
336 'MeterStatusResults': {'additionalProperties': False,
337 'properties': {'results': {'items': {'$ref': '#/definitions/MeterStatusResult'},
338 'type': 'array'}},
339 'required': ['results'],
340 'type': 'object'},
341 'Metric': {'additionalProperties': False,
342 'properties': {'key': {'type': 'string'},
343 'labels': {'patternProperties': {'.*': {'type': 'string'}},
344 'type': 'object'},
345 'time': {'format': 'date-time',
346 'type': 'string'},
347 'value': {'type': 'string'}},
348 'required': ['key', 'value', 'time'],
349 'type': 'object'},
350 'MetricBatch': {'additionalProperties': False,
351 'properties': {'charm-url': {'type': 'string'},
352 'created': {'format': 'date-time',
353 'type': 'string'},
354 'metrics': {'items': {'$ref': '#/definitions/Metric'},
355 'type': 'array'},
356 'uuid': {'type': 'string'}},
357 'required': ['uuid',
358 'charm-url',
359 'created',
360 'metrics'],
361 'type': 'object'},
362 'MetricBatchParam': {'additionalProperties': False,
363 'properties': {'batch': {'$ref': '#/definitions/MetricBatch'},
364 'tag': {'type': 'string'}},
365 'required': ['tag', 'batch'],
366 'type': 'object'},
367 'MetricBatchParams': {'additionalProperties': False,
368 'properties': {'batches': {'items': {'$ref': '#/definitions/MetricBatchParam'},
369 'type': 'array'}},
370 'required': ['batches'],
371 'type': 'object'},
372 'ModelConfigResult': {'additionalProperties': False,
373 'properties': {'config': {'patternProperties': {'.*': {'additionalProperties': True,
374 'type': 'object'}},
375 'type': 'object'}},
376 'required': ['config'],
377 'type': 'object'},
378 'ModelResult': {'additionalProperties': False,
379 'properties': {'error': {'$ref': '#/definitions/Error'},
380 'name': {'type': 'string'},
381 'type': {'type': 'string'},
382 'uuid': {'type': 'string'}},
383 'required': ['name', 'uuid', 'type'],
384 'type': 'object'},
385 'NetworkInfo': {'additionalProperties': False,
386 'properties': {'addresses': {'items': {'$ref': '#/definitions/InterfaceAddress'},
387 'type': 'array'},
388 'interface-name': {'type': 'string'},
389 'mac-address': {'type': 'string'}},
390 'required': ['mac-address',
391 'interface-name',
392 'addresses'],
393 'type': 'object'},
394 'NetworkInfoParams': {'additionalProperties': False,
395 'properties': {'bindings': {'items': {'type': 'string'},
396 'type': 'array'},
397 'relation-id': {'type': 'integer'},
398 'unit': {'type': 'string'}},
399 'required': ['unit', 'bindings'],
400 'type': 'object'},
401 'NetworkInfoResult': {'additionalProperties': False,
402 'properties': {'bind-addresses': {'items': {'$ref': '#/definitions/NetworkInfo'},
403 'type': 'array'},
404 'egress-subnets': {'items': {'type': 'string'},
405 'type': 'array'},
406 'error': {'$ref': '#/definitions/Error'},
407 'ingress-addresses': {'items': {'type': 'string'},
408 'type': 'array'}},
409 'type': 'object'},
410 'NetworkInfoResults': {'additionalProperties': False,
411 'properties': {'results': {'patternProperties': {'.*': {'$ref': '#/definitions/NetworkInfoResult'}},
412 'type': 'object'}},
413 'required': ['results'],
414 'type': 'object'},
415 'NotifyWatchResult': {'additionalProperties': False,
416 'properties': {'NotifyWatcherId': {'type': 'string'},
417 'error': {'$ref': '#/definitions/Error'}},
418 'required': ['NotifyWatcherId'],
419 'type': 'object'},
420 'NotifyWatchResults': {'additionalProperties': False,
421 'properties': {'results': {'items': {'$ref': '#/definitions/NotifyWatchResult'},
422 'type': 'array'}},
423 'required': ['results'],
424 'type': 'object'},
425 'PortRange': {'additionalProperties': False,
426 'properties': {'from-port': {'type': 'integer'},
427 'protocol': {'type': 'string'},
428 'to-port': {'type': 'integer'}},
429 'required': ['from-port', 'to-port', 'protocol'],
430 'type': 'object'},
431 'RelationIds': {'additionalProperties': False,
432 'properties': {'relation-ids': {'items': {'type': 'integer'},
433 'type': 'array'}},
434 'required': ['relation-ids'],
435 'type': 'object'},
436 'RelationResult': {'additionalProperties': False,
437 'properties': {'bool': {'type': 'boolean'},
438 'endpoint': {'$ref': '#/definitions/Endpoint'},
439 'error': {'$ref': '#/definitions/Error'},
440 'id': {'type': 'integer'},
441 'key': {'type': 'string'},
442 'life': {'type': 'string'},
443 'other-application': {'type': 'string'}},
444 'required': ['life',
445 'id',
446 'key',
447 'endpoint'],
448 'type': 'object'},
449 'RelationResults': {'additionalProperties': False,
450 'properties': {'results': {'items': {'$ref': '#/definitions/RelationResult'},
451 'type': 'array'}},
452 'required': ['results'],
453 'type': 'object'},
454 'RelationStatusArg': {'additionalProperties': False,
455 'properties': {'message': {'type': 'string'},
456 'relation-id': {'type': 'integer'},
457 'status': {'type': 'string'},
458 'unit-tag': {'type': 'string'}},
459 'required': ['unit-tag',
460 'relation-id',
461 'status',
462 'message'],
463 'type': 'object'},
464 'RelationStatusArgs': {'additionalProperties': False,
465 'properties': {'args': {'items': {'$ref': '#/definitions/RelationStatusArg'},
466 'type': 'array'}},
467 'required': ['args'],
468 'type': 'object'},
469 'RelationUnit': {'additionalProperties': False,
470 'properties': {'relation': {'type': 'string'},
471 'unit': {'type': 'string'}},
472 'required': ['relation', 'unit'],
473 'type': 'object'},
474 'RelationUnitPair': {'additionalProperties': False,
475 'properties': {'local-unit': {'type': 'string'},
476 'relation': {'type': 'string'},
477 'remote-unit': {'type': 'string'}},
478 'required': ['relation',
479 'local-unit',
480 'remote-unit'],
481 'type': 'object'},
482 'RelationUnitPairs': {'additionalProperties': False,
483 'properties': {'relation-unit-pairs': {'items': {'$ref': '#/definitions/RelationUnitPair'},
484 'type': 'array'}},
485 'required': ['relation-unit-pairs'],
486 'type': 'object'},
487 'RelationUnitSettings': {'additionalProperties': False,
488 'properties': {'relation': {'type': 'string'},
489 'settings': {'patternProperties': {'.*': {'type': 'string'}},
490 'type': 'object'},
491 'unit': {'type': 'string'}},
492 'required': ['relation',
493 'unit',
494 'settings'],
495 'type': 'object'},
496 'RelationUnitStatus': {'additionalProperties': False,
497 'properties': {'in-scope': {'type': 'boolean'},
498 'relation-tag': {'type': 'string'},
499 'suspended': {'type': 'boolean'}},
500 'required': ['relation-tag',
501 'in-scope',
502 'suspended'],
503 'type': 'object'},
504 'RelationUnitStatusResult': {'additionalProperties': False,
505 'properties': {'error': {'$ref': '#/definitions/Error'},
506 'results': {'items': {'$ref': '#/definitions/RelationUnitStatus'},
507 'type': 'array'}},
508 'required': ['results'],
509 'type': 'object'},
510 'RelationUnitStatusResults': {'additionalProperties': False,
511 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitStatusResult'},
512 'type': 'array'}},
513 'required': ['results'],
514 'type': 'object'},
515 'RelationUnits': {'additionalProperties': False,
516 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnit'},
517 'type': 'array'}},
518 'required': ['relation-units'],
519 'type': 'object'},
520 'RelationUnitsChange': {'additionalProperties': False,
521 'properties': {'changed': {'patternProperties': {'.*': {'$ref': '#/definitions/UnitSettings'}},
522 'type': 'object'},
523 'departed': {'items': {'type': 'string'},
524 'type': 'array'}},
525 'required': ['changed'],
526 'type': 'object'},
527 'RelationUnitsSettings': {'additionalProperties': False,
528 'properties': {'relation-units': {'items': {'$ref': '#/definitions/RelationUnitSettings'},
529 'type': 'array'}},
530 'required': ['relation-units'],
531 'type': 'object'},
532 'RelationUnitsWatchResult': {'additionalProperties': False,
533 'properties': {'changes': {'$ref': '#/definitions/RelationUnitsChange'},
534 'error': {'$ref': '#/definitions/Error'},
535 'watcher-id': {'type': 'string'}},
536 'required': ['watcher-id',
537 'changes'],
538 'type': 'object'},
539 'RelationUnitsWatchResults': {'additionalProperties': False,
540 'properties': {'results': {'items': {'$ref': '#/definitions/RelationUnitsWatchResult'},
541 'type': 'array'}},
542 'required': ['results'],
543 'type': 'object'},
544 'ResolvedModeResult': {'additionalProperties': False,
545 'properties': {'error': {'$ref': '#/definitions/Error'},
546 'mode': {'type': 'string'}},
547 'required': ['mode'],
548 'type': 'object'},
549 'ResolvedModeResults': {'additionalProperties': False,
550 'properties': {'results': {'items': {'$ref': '#/definitions/ResolvedModeResult'},
551 'type': 'array'}},
552 'required': ['results'],
553 'type': 'object'},
554 'SetPodSpecParams': {'additionalProperties': False,
555 'properties': {'specs': {'items': {'$ref': '#/definitions/EntityString'},
556 'type': 'array'}},
557 'required': ['specs'],
558 'type': 'object'},
559 'SetStatus': {'additionalProperties': False,
560 'properties': {'entities': {'items': {'$ref': '#/definitions/EntityStatusArgs'},
561 'type': 'array'}},
562 'required': ['entities'],
563 'type': 'object'},
564 'SettingsResult': {'additionalProperties': False,
565 'properties': {'error': {'$ref': '#/definitions/Error'},
566 'settings': {'patternProperties': {'.*': {'type': 'string'}},
567 'type': 'object'}},
568 'required': ['settings'],
569 'type': 'object'},
570 'SettingsResults': {'additionalProperties': False,
571 'properties': {'results': {'items': {'$ref': '#/definitions/SettingsResult'},
572 'type': 'array'}},
573 'required': ['results'],
574 'type': 'object'},
575 'StatusResult': {'additionalProperties': False,
576 'properties': {'data': {'patternProperties': {'.*': {'additionalProperties': True,
577 'type': 'object'}},
578 'type': 'object'},
579 'error': {'$ref': '#/definitions/Error'},
580 'id': {'type': 'string'},
581 'info': {'type': 'string'},
582 'life': {'type': 'string'},
583 'since': {'format': 'date-time',
584 'type': 'string'},
585 'status': {'type': 'string'}},
586 'required': ['id',
587 'life',
588 'status',
589 'info',
590 'data',
591 'since'],
592 'type': 'object'},
593 'StatusResults': {'additionalProperties': False,
594 'properties': {'results': {'items': {'$ref': '#/definitions/StatusResult'},
595 'type': 'array'}},
596 'required': ['results'],
597 'type': 'object'},
598 'StorageAddParams': {'additionalProperties': False,
599 'properties': {'name': {'type': 'string'},
600 'storage': {'$ref': '#/definitions/StorageConstraints'},
601 'unit': {'type': 'string'}},
602 'required': ['unit', 'name', 'storage'],
603 'type': 'object'},
604 'StorageAttachment': {'additionalProperties': False,
605 'properties': {'kind': {'type': 'integer'},
606 'life': {'type': 'string'},
607 'location': {'type': 'string'},
608 'owner-tag': {'type': 'string'},
609 'storage-tag': {'type': 'string'},
610 'unit-tag': {'type': 'string'}},
611 'required': ['storage-tag',
612 'owner-tag',
613 'unit-tag',
614 'kind',
615 'location',
616 'life'],
617 'type': 'object'},
618 'StorageAttachmentId': {'additionalProperties': False,
619 'properties': {'storage-tag': {'type': 'string'},
620 'unit-tag': {'type': 'string'}},
621 'required': ['storage-tag',
622 'unit-tag'],
623 'type': 'object'},
624 'StorageAttachmentIds': {'additionalProperties': False,
625 'properties': {'ids': {'items': {'$ref': '#/definitions/StorageAttachmentId'},
626 'type': 'array'}},
627 'required': ['ids'],
628 'type': 'object'},
629 'StorageAttachmentIdsResult': {'additionalProperties': False,
630 'properties': {'error': {'$ref': '#/definitions/Error'},
631 'result': {'$ref': '#/definitions/StorageAttachmentIds'}},
632 'required': ['result'],
633 'type': 'object'},
634 'StorageAttachmentIdsResults': {'additionalProperties': False,
635 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentIdsResult'},
636 'type': 'array'}},
637 'type': 'object'},
638 'StorageAttachmentResult': {'additionalProperties': False,
639 'properties': {'error': {'$ref': '#/definitions/Error'},
640 'result': {'$ref': '#/definitions/StorageAttachment'}},
641 'required': ['result'],
642 'type': 'object'},
643 'StorageAttachmentResults': {'additionalProperties': False,
644 'properties': {'results': {'items': {'$ref': '#/definitions/StorageAttachmentResult'},
645 'type': 'array'}},
646 'type': 'object'},
647 'StorageConstraints': {'additionalProperties': False,
648 'properties': {'count': {'type': 'integer'},
649 'pool': {'type': 'string'},
650 'size': {'type': 'integer'}},
651 'type': 'object'},
652 'StoragesAddParams': {'additionalProperties': False,
653 'properties': {'storages': {'items': {'$ref': '#/definitions/StorageAddParams'},
654 'type': 'array'}},
655 'required': ['storages'],
656 'type': 'object'},
657 'StringBoolResult': {'additionalProperties': False,
658 'properties': {'error': {'$ref': '#/definitions/Error'},
659 'ok': {'type': 'boolean'},
660 'result': {'type': 'string'}},
661 'required': ['result', 'ok'],
662 'type': 'object'},
663 'StringBoolResults': {'additionalProperties': False,
664 'properties': {'results': {'items': {'$ref': '#/definitions/StringBoolResult'},
665 'type': 'array'}},
666 'required': ['results'],
667 'type': 'object'},
668 'StringResult': {'additionalProperties': False,
669 'properties': {'error': {'$ref': '#/definitions/Error'},
670 'result': {'type': 'string'}},
671 'required': ['result'],
672 'type': 'object'},
673 'StringResults': {'additionalProperties': False,
674 'properties': {'results': {'items': {'$ref': '#/definitions/StringResult'},
675 'type': 'array'}},
676 'required': ['results'],
677 'type': 'object'},
678 'StringsResult': {'additionalProperties': False,
679 'properties': {'error': {'$ref': '#/definitions/Error'},
680 'result': {'items': {'type': 'string'},
681 'type': 'array'}},
682 'type': 'object'},
683 'StringsWatchResult': {'additionalProperties': False,
684 'properties': {'changes': {'items': {'type': 'string'},
685 'type': 'array'},
686 'error': {'$ref': '#/definitions/Error'},
687 'watcher-id': {'type': 'string'}},
688 'required': ['watcher-id'],
689 'type': 'object'},
690 'StringsWatchResults': {'additionalProperties': False,
691 'properties': {'results': {'items': {'$ref': '#/definitions/StringsWatchResult'},
692 'type': 'array'}},
693 'required': ['results'],
694 'type': 'object'},
695 'UnitRefreshResult': {'additionalProperties': False,
696 'properties': {'Error': {'$ref': '#/definitions/Error'},
697 'Life': {'type': 'string'},
698 'Resolved': {'type': 'string'}},
699 'required': ['Life',
700 'Resolved',
701 'Error'],
702 'type': 'object'},
703 'UnitRefreshResults': {'additionalProperties': False,
704 'properties': {'Results': {'items': {'$ref': '#/definitions/UnitRefreshResult'},
705 'type': 'array'}},
706 'required': ['Results'],
707 'type': 'object'},
708 'UnitSettings': {'additionalProperties': False,
709 'properties': {'version': {'type': 'integer'}},
710 'required': ['version'],
711 'type': 'object'},
712 'UpgradeSeriesStatusParam': {'additionalProperties': False,
713 'properties': {'entity': {'$ref': '#/definitions/Entity'},
714 'message': {'type': 'string'},
715 'status': {'type': 'string'}},
716 'required': ['entity',
717 'status',
718 'message'],
719 'type': 'object'},
720 'UpgradeSeriesStatusParams': {'additionalProperties': False,
721 'properties': {'params': {'items': {'$ref': '#/definitions/UpgradeSeriesStatusParam'},
722 'type': 'array'}},
723 'required': ['params'],
724 'type': 'object'},
725 'UpgradeSeriesStatusResult': {'additionalProperties': False,
726 'properties': {'error': {'$ref': '#/definitions/Error'},
727 'status': {'type': 'string'}},
728 'type': 'object'},
729 'UpgradeSeriesStatusResults': {'additionalProperties': False,
730 'properties': {'results': {'items': {'$ref': '#/definitions/UpgradeSeriesStatusResult'},
731 'type': 'array'}},
732 'type': 'object'}},
733 'properties': {'APIAddresses': {'properties': {'Result': {'$ref': '#/definitions/StringsResult'}},
734 'type': 'object'},
735 'APIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/APIHostPortsResult'}},
736 'type': 'object'},
737 'Actions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
738 'Result': {'$ref': '#/definitions/ActionResults'}},
739 'type': 'object'},
740 'AddMetricBatches': {'properties': {'Params': {'$ref': '#/definitions/MetricBatchParams'},
741 'Result': {'$ref': '#/definitions/ErrorResults'}},
742 'type': 'object'},
743 'AddUnitStorage': {'properties': {'Params': {'$ref': '#/definitions/StoragesAddParams'},
744 'Result': {'$ref': '#/definitions/ErrorResults'}},
745 'type': 'object'},
746 'AllMachinePorts': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
747 'Result': {'$ref': '#/definitions/MachinePortsResults'}},
748 'type': 'object'},
749 'ApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
750 'Result': {'$ref': '#/definitions/ApplicationStatusResults'}},
751 'type': 'object'},
752 'AssignedMachine': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
753 'Result': {'$ref': '#/definitions/StringResults'}},
754 'type': 'object'},
755 'AvailabilityZone': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
756 'Result': {'$ref': '#/definitions/StringResults'}},
757 'type': 'object'},
758 'BeginActions': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
759 'Result': {'$ref': '#/definitions/ErrorResults'}},
760 'type': 'object'},
761 'CharmArchiveSha256': {'properties': {'Params': {'$ref': '#/definitions/CharmURLs'},
762 'Result': {'$ref': '#/definitions/StringResults'}},
763 'type': 'object'},
764 'CharmModifiedVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
765 'Result': {'$ref': '#/definitions/IntResults'}},
766 'type': 'object'},
767 'CharmURL': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
768 'Result': {'$ref': '#/definitions/StringBoolResults'}},
769 'type': 'object'},
770 'ClearResolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
771 'Result': {'$ref': '#/definitions/ErrorResults'}},
772 'type': 'object'},
773 'ClosePorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
774 'Result': {'$ref': '#/definitions/ErrorResults'}},
775 'type': 'object'},
776 'CloudSpec': {'properties': {'Result': {'$ref': '#/definitions/CloudSpecResult'}},
777 'type': 'object'},
778 'ConfigSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
779 'Result': {'$ref': '#/definitions/ConfigSettingsResults'}},
780 'type': 'object'},
781 'CurrentModel': {'properties': {'Result': {'$ref': '#/definitions/ModelResult'}},
782 'type': 'object'},
783 'Destroy': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
784 'Result': {'$ref': '#/definitions/ErrorResults'}},
785 'type': 'object'},
786 'DestroyAllSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
787 'Result': {'$ref': '#/definitions/ErrorResults'}},
788 'type': 'object'},
789 'DestroyUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
790 'Result': {'$ref': '#/definitions/ErrorResults'}},
791 'type': 'object'},
792 'EnsureDead': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
793 'Result': {'$ref': '#/definitions/ErrorResults'}},
794 'type': 'object'},
795 'EnterScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
796 'Result': {'$ref': '#/definitions/ErrorResults'}},
797 'type': 'object'},
798 'FinishActions': {'properties': {'Params': {'$ref': '#/definitions/ActionExecutionResults'},
799 'Result': {'$ref': '#/definitions/ErrorResults'}},
800 'type': 'object'},
801 'GetMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
802 'Result': {'$ref': '#/definitions/MeterStatusResults'}},
803 'type': 'object'},
804 'GetPrincipal': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
805 'Result': {'$ref': '#/definitions/StringBoolResults'}},
806 'type': 'object'},
807 'GoalStates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
808 'Result': {'$ref': '#/definitions/GoalStateResults'}},
809 'type': 'object'},
810 'HasSubordinates': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
811 'Result': {'$ref': '#/definitions/BoolResults'}},
812 'type': 'object'},
813 'LeaveScope': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
814 'Result': {'$ref': '#/definitions/ErrorResults'}},
815 'type': 'object'},
816 'Life': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
817 'Result': {'$ref': '#/definitions/LifeResults'}},
818 'type': 'object'},
819 'Merge': {'properties': {'Params': {'$ref': '#/definitions/MergeLeadershipSettingsBulkParams'},
820 'Result': {'$ref': '#/definitions/ErrorResults'}},
821 'type': 'object'},
822 'ModelConfig': {'properties': {'Result': {'$ref': '#/definitions/ModelConfigResult'}},
823 'type': 'object'},
824 'ModelUUID': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
825 'type': 'object'},
826 'NetworkInfo': {'properties': {'Params': {'$ref': '#/definitions/NetworkInfoParams'},
827 'Result': {'$ref': '#/definitions/NetworkInfoResults'}},
828 'type': 'object'},
829 'OpenPorts': {'properties': {'Params': {'$ref': '#/definitions/EntitiesPortRanges'},
830 'Result': {'$ref': '#/definitions/ErrorResults'}},
831 'type': 'object'},
832 'PrivateAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
833 'Result': {'$ref': '#/definitions/StringResults'}},
834 'type': 'object'},
835 'ProviderType': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
836 'type': 'object'},
837 'PublicAddress': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
838 'Result': {'$ref': '#/definitions/StringResults'}},
839 'type': 'object'},
840 'Read': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
841 'Result': {'$ref': '#/definitions/GetLeadershipSettingsBulkResults'}},
842 'type': 'object'},
843 'ReadRemoteSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitPairs'},
844 'Result': {'$ref': '#/definitions/SettingsResults'}},
845 'type': 'object'},
846 'ReadSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
847 'Result': {'$ref': '#/definitions/SettingsResults'}},
848 'type': 'object'},
849 'Refresh': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
850 'Result': {'$ref': '#/definitions/UnitRefreshResults'}},
851 'type': 'object'},
852 'Relation': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
853 'Result': {'$ref': '#/definitions/RelationResults'}},
854 'type': 'object'},
855 'RelationById': {'properties': {'Params': {'$ref': '#/definitions/RelationIds'},
856 'Result': {'$ref': '#/definitions/RelationResults'}},
857 'type': 'object'},
858 'RelationsStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
859 'Result': {'$ref': '#/definitions/RelationUnitStatusResults'}},
860 'type': 'object'},
861 'RemoveStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
862 'Result': {'$ref': '#/definitions/ErrorResults'}},
863 'type': 'object'},
864 'RequestReboot': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
865 'Result': {'$ref': '#/definitions/ErrorResults'}},
866 'type': 'object'},
867 'Resolved': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
868 'Result': {'$ref': '#/definitions/ResolvedModeResults'}},
869 'type': 'object'},
870 'SLALevel': {'properties': {'Result': {'$ref': '#/definitions/StringResult'}},
871 'type': 'object'},
872 'SetAgentStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
873 'Result': {'$ref': '#/definitions/ErrorResults'}},
874 'type': 'object'},
875 'SetApplicationStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
876 'Result': {'$ref': '#/definitions/ErrorResults'}},
877 'type': 'object'},
878 'SetCharmURL': {'properties': {'Params': {'$ref': '#/definitions/EntitiesCharmURL'},
879 'Result': {'$ref': '#/definitions/ErrorResults'}},
880 'type': 'object'},
881 'SetPodSpec': {'properties': {'Params': {'$ref': '#/definitions/SetPodSpecParams'},
882 'Result': {'$ref': '#/definitions/ErrorResults'}},
883 'type': 'object'},
884 'SetRelationStatus': {'properties': {'Params': {'$ref': '#/definitions/RelationStatusArgs'},
885 'Result': {'$ref': '#/definitions/ErrorResults'}},
886 'type': 'object'},
887 'SetStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
888 'Result': {'$ref': '#/definitions/ErrorResults'}},
889 'type': 'object'},
890 'SetUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/SetStatus'},
891 'Result': {'$ref': '#/definitions/ErrorResults'}},
892 'type': 'object'},
893 'SetUpgradeSeriesUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/UpgradeSeriesStatusParams'},
894 'Result': {'$ref': '#/definitions/ErrorResults'}},
895 'type': 'object'},
896 'SetWorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/EntityWorkloadVersions'},
897 'Result': {'$ref': '#/definitions/ErrorResults'}},
898 'type': 'object'},
899 'StorageAttachmentLife': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
900 'Result': {'$ref': '#/definitions/LifeResults'}},
901 'type': 'object'},
902 'StorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
903 'Result': {'$ref': '#/definitions/StorageAttachmentResults'}},
904 'type': 'object'},
905 'UnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
906 'Result': {'$ref': '#/definitions/StatusResults'}},
907 'type': 'object'},
908 'UnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
909 'Result': {'$ref': '#/definitions/StorageAttachmentIdsResults'}},
910 'type': 'object'},
911 'UpdateSettings': {'properties': {'Params': {'$ref': '#/definitions/RelationUnitsSettings'},
912 'Result': {'$ref': '#/definitions/ErrorResults'}},
913 'type': 'object'},
914 'UpgradeSeriesUnitStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
915 'Result': {'$ref': '#/definitions/UpgradeSeriesStatusResults'}},
916 'type': 'object'},
917 'Watch': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
918 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
919 'type': 'object'},
920 'WatchAPIHostPorts': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
921 'type': 'object'},
922 'WatchActionNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
923 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
924 'type': 'object'},
925 'WatchConfigSettingsHash': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
926 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
927 'type': 'object'},
928 'WatchForModelConfigChanges': {'properties': {'Result': {'$ref': '#/definitions/NotifyWatchResult'}},
929 'type': 'object'},
930 'WatchLeadershipSettings': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
931 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
932 'type': 'object'},
933 'WatchMeterStatus': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
934 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
935 'type': 'object'},
936 'WatchRelationUnits': {'properties': {'Params': {'$ref': '#/definitions/RelationUnits'},
937 'Result': {'$ref': '#/definitions/RelationUnitsWatchResults'}},
938 'type': 'object'},
939 'WatchStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/StorageAttachmentIds'},
940 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
941 'type': 'object'},
942 'WatchTrustConfigSettingsHash': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
943 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
944 'type': 'object'},
945 'WatchUnitAddressesHash': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
946 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
947 'type': 'object'},
948 'WatchUnitRelations': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
949 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
950 'type': 'object'},
951 'WatchUnitStorageAttachments': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
952 'Result': {'$ref': '#/definitions/StringsWatchResults'}},
953 'type': 'object'},
954 'WatchUpgradeSeriesNotifications': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
955 'Result': {'$ref': '#/definitions/NotifyWatchResults'}},
956 'type': 'object'},
957 'WorkloadVersion': {'properties': {'Params': {'$ref': '#/definitions/Entities'},
958 'Result': {'$ref': '#/definitions/StringResults'}},
959 'type': 'object'}},
960 'type': 'object'}
961
962
963 @ReturnMapping(StringsResult)
964 async def APIAddresses(self):
965 '''
966
967 Returns -> typing.Union[_ForwardRef('Error'), typing.Sequence[str]]
968 '''
969 # map input types to rpc msg
970 _params = dict()
971 msg = dict(type='Uniter',
972 request='APIAddresses',
973 version=9,
974 params=_params)
975
976 reply = await self.rpc(msg)
977 return reply
978
979
980
981 @ReturnMapping(APIHostPortsResult)
982 async def APIHostPorts(self):
983 '''
984
985 Returns -> typing.Sequence[~HostPort]
986 '''
987 # map input types to rpc msg
988 _params = dict()
989 msg = dict(type='Uniter',
990 request='APIHostPorts',
991 version=9,
992 params=_params)
993
994 reply = await self.rpc(msg)
995 return reply
996
997
998
999 @ReturnMapping(ActionResults)
1000 async def Actions(self, entities):
1001 '''
1002 entities : typing.Sequence[~Entity]
1003 Returns -> typing.Sequence[~ActionResult]
1004 '''
1005 # map input types to rpc msg
1006 _params = dict()
1007 msg = dict(type='Uniter',
1008 request='Actions',
1009 version=9,
1010 params=_params)
1011 _params['entities'] = entities
1012 reply = await self.rpc(msg)
1013 return reply
1014
1015
1016
1017 @ReturnMapping(ErrorResults)
1018 async def AddMetricBatches(self, batches):
1019 '''
1020 batches : typing.Sequence[~MetricBatchParam]
1021 Returns -> typing.Sequence[~ErrorResult]
1022 '''
1023 # map input types to rpc msg
1024 _params = dict()
1025 msg = dict(type='Uniter',
1026 request='AddMetricBatches',
1027 version=9,
1028 params=_params)
1029 _params['batches'] = batches
1030 reply = await self.rpc(msg)
1031 return reply
1032
1033
1034
1035 @ReturnMapping(ErrorResults)
1036 async def AddUnitStorage(self, storages):
1037 '''
1038 storages : typing.Sequence[~StorageAddParams]
1039 Returns -> typing.Sequence[~ErrorResult]
1040 '''
1041 # map input types to rpc msg
1042 _params = dict()
1043 msg = dict(type='Uniter',
1044 request='AddUnitStorage',
1045 version=9,
1046 params=_params)
1047 _params['storages'] = storages
1048 reply = await self.rpc(msg)
1049 return reply
1050
1051
1052
1053 @ReturnMapping(MachinePortsResults)
1054 async def AllMachinePorts(self, entities):
1055 '''
1056 entities : typing.Sequence[~Entity]
1057 Returns -> typing.Sequence[~MachinePortsResult]
1058 '''
1059 # map input types to rpc msg
1060 _params = dict()
1061 msg = dict(type='Uniter',
1062 request='AllMachinePorts',
1063 version=9,
1064 params=_params)
1065 _params['entities'] = entities
1066 reply = await self.rpc(msg)
1067 return reply
1068
1069
1070
1071 @ReturnMapping(ApplicationStatusResults)
1072 async def ApplicationStatus(self, entities):
1073 '''
1074 entities : typing.Sequence[~Entity]
1075 Returns -> typing.Sequence[~ApplicationStatusResult]
1076 '''
1077 # map input types to rpc msg
1078 _params = dict()
1079 msg = dict(type='Uniter',
1080 request='ApplicationStatus',
1081 version=9,
1082 params=_params)
1083 _params['entities'] = entities
1084 reply = await self.rpc(msg)
1085 return reply
1086
1087
1088
1089 @ReturnMapping(StringResults)
1090 async def AssignedMachine(self, entities):
1091 '''
1092 entities : typing.Sequence[~Entity]
1093 Returns -> typing.Sequence[~StringResult]
1094 '''
1095 # map input types to rpc msg
1096 _params = dict()
1097 msg = dict(type='Uniter',
1098 request='AssignedMachine',
1099 version=9,
1100 params=_params)
1101 _params['entities'] = entities
1102 reply = await self.rpc(msg)
1103 return reply
1104
1105
1106
1107 @ReturnMapping(StringResults)
1108 async def AvailabilityZone(self, entities):
1109 '''
1110 entities : typing.Sequence[~Entity]
1111 Returns -> typing.Sequence[~StringResult]
1112 '''
1113 # map input types to rpc msg
1114 _params = dict()
1115 msg = dict(type='Uniter',
1116 request='AvailabilityZone',
1117 version=9,
1118 params=_params)
1119 _params['entities'] = entities
1120 reply = await self.rpc(msg)
1121 return reply
1122
1123
1124
1125 @ReturnMapping(ErrorResults)
1126 async def BeginActions(self, entities):
1127 '''
1128 entities : typing.Sequence[~Entity]
1129 Returns -> typing.Sequence[~ErrorResult]
1130 '''
1131 # map input types to rpc msg
1132 _params = dict()
1133 msg = dict(type='Uniter',
1134 request='BeginActions',
1135 version=9,
1136 params=_params)
1137 _params['entities'] = entities
1138 reply = await self.rpc(msg)
1139 return reply
1140
1141
1142
1143 @ReturnMapping(StringResults)
1144 async def CharmArchiveSha256(self, urls):
1145 '''
1146 urls : typing.Sequence[~CharmURL]
1147 Returns -> typing.Sequence[~StringResult]
1148 '''
1149 # map input types to rpc msg
1150 _params = dict()
1151 msg = dict(type='Uniter',
1152 request='CharmArchiveSha256',
1153 version=9,
1154 params=_params)
1155 _params['urls'] = urls
1156 reply = await self.rpc(msg)
1157 return reply
1158
1159
1160
1161 @ReturnMapping(IntResults)
1162 async def CharmModifiedVersion(self, entities):
1163 '''
1164 entities : typing.Sequence[~Entity]
1165 Returns -> typing.Sequence[~IntResult]
1166 '''
1167 # map input types to rpc msg
1168 _params = dict()
1169 msg = dict(type='Uniter',
1170 request='CharmModifiedVersion',
1171 version=9,
1172 params=_params)
1173 _params['entities'] = entities
1174 reply = await self.rpc(msg)
1175 return reply
1176
1177
1178
1179 @ReturnMapping(StringBoolResults)
1180 async def CharmURL(self, entities):
1181 '''
1182 entities : typing.Sequence[~Entity]
1183 Returns -> typing.Sequence[~StringBoolResult]
1184 '''
1185 # map input types to rpc msg
1186 _params = dict()
1187 msg = dict(type='Uniter',
1188 request='CharmURL',
1189 version=9,
1190 params=_params)
1191 _params['entities'] = entities
1192 reply = await self.rpc(msg)
1193 return reply
1194
1195
1196
1197 @ReturnMapping(ErrorResults)
1198 async def ClearResolved(self, entities):
1199 '''
1200 entities : typing.Sequence[~Entity]
1201 Returns -> typing.Sequence[~ErrorResult]
1202 '''
1203 # map input types to rpc msg
1204 _params = dict()
1205 msg = dict(type='Uniter',
1206 request='ClearResolved',
1207 version=9,
1208 params=_params)
1209 _params['entities'] = entities
1210 reply = await self.rpc(msg)
1211 return reply
1212
1213
1214
1215 @ReturnMapping(ErrorResults)
1216 async def ClosePorts(self, entities):
1217 '''
1218 entities : typing.Sequence[~EntityPortRange]
1219 Returns -> typing.Sequence[~ErrorResult]
1220 '''
1221 # map input types to rpc msg
1222 _params = dict()
1223 msg = dict(type='Uniter',
1224 request='ClosePorts',
1225 version=9,
1226 params=_params)
1227 _params['entities'] = entities
1228 reply = await self.rpc(msg)
1229 return reply
1230
1231
1232
1233 @ReturnMapping(CloudSpecResult)
1234 async def CloudSpec(self):
1235 '''
1236
1237 Returns -> typing.Union[_ForwardRef('Error'), _ForwardRef('CloudSpec')]
1238 '''
1239 # map input types to rpc msg
1240 _params = dict()
1241 msg = dict(type='Uniter',
1242 request='CloudSpec',
1243 version=9,
1244 params=_params)
1245
1246 reply = await self.rpc(msg)
1247 return reply
1248
1249
1250
1251 @ReturnMapping(ConfigSettingsResults)
1252 async def ConfigSettings(self, entities):
1253 '''
1254 entities : typing.Sequence[~Entity]
1255 Returns -> typing.Sequence[~ConfigSettingsResult]
1256 '''
1257 # map input types to rpc msg
1258 _params = dict()
1259 msg = dict(type='Uniter',
1260 request='ConfigSettings',
1261 version=9,
1262 params=_params)
1263 _params['entities'] = entities
1264 reply = await self.rpc(msg)
1265 return reply
1266
1267
1268
1269 @ReturnMapping(ModelResult)
1270 async def CurrentModel(self):
1271 '''
1272
1273 Returns -> typing.Union[_ForwardRef('Error'), str]
1274 '''
1275 # map input types to rpc msg
1276 _params = dict()
1277 msg = dict(type='Uniter',
1278 request='CurrentModel',
1279 version=9,
1280 params=_params)
1281
1282 reply = await self.rpc(msg)
1283 return reply
1284
1285
1286
1287 @ReturnMapping(ErrorResults)
1288 async def Destroy(self, entities):
1289 '''
1290 entities : typing.Sequence[~Entity]
1291 Returns -> typing.Sequence[~ErrorResult]
1292 '''
1293 # map input types to rpc msg
1294 _params = dict()
1295 msg = dict(type='Uniter',
1296 request='Destroy',
1297 version=9,
1298 params=_params)
1299 _params['entities'] = entities
1300 reply = await self.rpc(msg)
1301 return reply
1302
1303
1304
1305 @ReturnMapping(ErrorResults)
1306 async def DestroyAllSubordinates(self, entities):
1307 '''
1308 entities : typing.Sequence[~Entity]
1309 Returns -> typing.Sequence[~ErrorResult]
1310 '''
1311 # map input types to rpc msg
1312 _params = dict()
1313 msg = dict(type='Uniter',
1314 request='DestroyAllSubordinates',
1315 version=9,
1316 params=_params)
1317 _params['entities'] = entities
1318 reply = await self.rpc(msg)
1319 return reply
1320
1321
1322
1323 @ReturnMapping(ErrorResults)
1324 async def DestroyUnitStorageAttachments(self, entities):
1325 '''
1326 entities : typing.Sequence[~Entity]
1327 Returns -> typing.Sequence[~ErrorResult]
1328 '''
1329 # map input types to rpc msg
1330 _params = dict()
1331 msg = dict(type='Uniter',
1332 request='DestroyUnitStorageAttachments',
1333 version=9,
1334 params=_params)
1335 _params['entities'] = entities
1336 reply = await self.rpc(msg)
1337 return reply
1338
1339
1340
1341 @ReturnMapping(ErrorResults)
1342 async def EnsureDead(self, entities):
1343 '''
1344 entities : typing.Sequence[~Entity]
1345 Returns -> typing.Sequence[~ErrorResult]
1346 '''
1347 # map input types to rpc msg
1348 _params = dict()
1349 msg = dict(type='Uniter',
1350 request='EnsureDead',
1351 version=9,
1352 params=_params)
1353 _params['entities'] = entities
1354 reply = await self.rpc(msg)
1355 return reply
1356
1357
1358
1359 @ReturnMapping(ErrorResults)
1360 async def EnterScope(self, relation_units):
1361 '''
1362 relation_units : typing.Sequence[~RelationUnit]
1363 Returns -> typing.Sequence[~ErrorResult]
1364 '''
1365 # map input types to rpc msg
1366 _params = dict()
1367 msg = dict(type='Uniter',
1368 request='EnterScope',
1369 version=9,
1370 params=_params)
1371 _params['relation-units'] = relation_units
1372 reply = await self.rpc(msg)
1373 return reply
1374
1375
1376
1377 @ReturnMapping(ErrorResults)
1378 async def FinishActions(self, results):
1379 '''
1380 results : typing.Sequence[~ActionExecutionResult]
1381 Returns -> typing.Sequence[~ErrorResult]
1382 '''
1383 # map input types to rpc msg
1384 _params = dict()
1385 msg = dict(type='Uniter',
1386 request='FinishActions',
1387 version=9,
1388 params=_params)
1389 _params['results'] = results
1390 reply = await self.rpc(msg)
1391 return reply
1392
1393
1394
1395 @ReturnMapping(MeterStatusResults)
1396 async def GetMeterStatus(self, entities):
1397 '''
1398 entities : typing.Sequence[~Entity]
1399 Returns -> typing.Sequence[~MeterStatusResult]
1400 '''
1401 # map input types to rpc msg
1402 _params = dict()
1403 msg = dict(type='Uniter',
1404 request='GetMeterStatus',
1405 version=9,
1406 params=_params)
1407 _params['entities'] = entities
1408 reply = await self.rpc(msg)
1409 return reply
1410
1411
1412
1413 @ReturnMapping(StringBoolResults)
1414 async def GetPrincipal(self, entities):
1415 '''
1416 entities : typing.Sequence[~Entity]
1417 Returns -> typing.Sequence[~StringBoolResult]
1418 '''
1419 # map input types to rpc msg
1420 _params = dict()
1421 msg = dict(type='Uniter',
1422 request='GetPrincipal',
1423 version=9,
1424 params=_params)
1425 _params['entities'] = entities
1426 reply = await self.rpc(msg)
1427 return reply
1428
1429
1430
1431 @ReturnMapping(GoalStateResults)
1432 async def GoalStates(self, entities):
1433 '''
1434 entities : typing.Sequence[~Entity]
1435 Returns -> typing.Sequence[~GoalStateResult]
1436 '''
1437 # map input types to rpc msg
1438 _params = dict()
1439 msg = dict(type='Uniter',
1440 request='GoalStates',
1441 version=9,
1442 params=_params)
1443 _params['entities'] = entities
1444 reply = await self.rpc(msg)
1445 return reply
1446
1447
1448
1449 @ReturnMapping(BoolResults)
1450 async def HasSubordinates(self, entities):
1451 '''
1452 entities : typing.Sequence[~Entity]
1453 Returns -> typing.Sequence[~BoolResult]
1454 '''
1455 # map input types to rpc msg
1456 _params = dict()
1457 msg = dict(type='Uniter',
1458 request='HasSubordinates',
1459 version=9,
1460 params=_params)
1461 _params['entities'] = entities
1462 reply = await self.rpc(msg)
1463 return reply
1464
1465
1466
1467 @ReturnMapping(ErrorResults)
1468 async def LeaveScope(self, relation_units):
1469 '''
1470 relation_units : typing.Sequence[~RelationUnit]
1471 Returns -> typing.Sequence[~ErrorResult]
1472 '''
1473 # map input types to rpc msg
1474 _params = dict()
1475 msg = dict(type='Uniter',
1476 request='LeaveScope',
1477 version=9,
1478 params=_params)
1479 _params['relation-units'] = relation_units
1480 reply = await self.rpc(msg)
1481 return reply
1482
1483
1484
1485 @ReturnMapping(LifeResults)
1486 async def Life(self, entities):
1487 '''
1488 entities : typing.Sequence[~Entity]
1489 Returns -> typing.Sequence[~LifeResult]
1490 '''
1491 # map input types to rpc msg
1492 _params = dict()
1493 msg = dict(type='Uniter',
1494 request='Life',
1495 version=9,
1496 params=_params)
1497 _params['entities'] = entities
1498 reply = await self.rpc(msg)
1499 return reply
1500
1501
1502
1503 @ReturnMapping(ErrorResults)
1504 async def Merge(self, params):
1505 '''
1506 params : typing.Sequence[~MergeLeadershipSettingsParam]
1507 Returns -> typing.Sequence[~ErrorResult]
1508 '''
1509 # map input types to rpc msg
1510 _params = dict()
1511 msg = dict(type='Uniter',
1512 request='Merge',
1513 version=9,
1514 params=_params)
1515 _params['params'] = params
1516 reply = await self.rpc(msg)
1517 return reply
1518
1519
1520
1521 @ReturnMapping(ModelConfigResult)
1522 async def ModelConfig(self):
1523 '''
1524
1525 Returns -> typing.Mapping[str, typing.Any]
1526 '''
1527 # map input types to rpc msg
1528 _params = dict()
1529 msg = dict(type='Uniter',
1530 request='ModelConfig',
1531 version=9,
1532 params=_params)
1533
1534 reply = await self.rpc(msg)
1535 return reply
1536
1537
1538
1539 @ReturnMapping(StringResult)
1540 async def ModelUUID(self):
1541 '''
1542
1543 Returns -> typing.Union[_ForwardRef('Error'), str]
1544 '''
1545 # map input types to rpc msg
1546 _params = dict()
1547 msg = dict(type='Uniter',
1548 request='ModelUUID',
1549 version=9,
1550 params=_params)
1551
1552 reply = await self.rpc(msg)
1553 return reply
1554
1555
1556
1557 @ReturnMapping(NetworkInfoResults)
1558 async def NetworkInfo(self, bindings, unit):
1559 '''
1560 bindings : typing.Sequence[str]
1561 unit : str
1562 Returns -> typing.Mapping[str, ~NetworkInfoResult]
1563 '''
1564 # map input types to rpc msg
1565 _params = dict()
1566 msg = dict(type='Uniter',
1567 request='NetworkInfo',
1568 version=9,
1569 params=_params)
1570 _params['bindings'] = bindings
1571 _params['unit'] = unit
1572 reply = await self.rpc(msg)
1573 return reply
1574
1575
1576
1577 @ReturnMapping(ErrorResults)
1578 async def OpenPorts(self, entities):
1579 '''
1580 entities : typing.Sequence[~EntityPortRange]
1581 Returns -> typing.Sequence[~ErrorResult]
1582 '''
1583 # map input types to rpc msg
1584 _params = dict()
1585 msg = dict(type='Uniter',
1586 request='OpenPorts',
1587 version=9,
1588 params=_params)
1589 _params['entities'] = entities
1590 reply = await self.rpc(msg)
1591 return reply
1592
1593
1594
1595 @ReturnMapping(StringResults)
1596 async def PrivateAddress(self, entities):
1597 '''
1598 entities : typing.Sequence[~Entity]
1599 Returns -> typing.Sequence[~StringResult]
1600 '''
1601 # map input types to rpc msg
1602 _params = dict()
1603 msg = dict(type='Uniter',
1604 request='PrivateAddress',
1605 version=9,
1606 params=_params)
1607 _params['entities'] = entities
1608 reply = await self.rpc(msg)
1609 return reply
1610
1611
1612
1613 @ReturnMapping(StringResult)
1614 async def ProviderType(self):
1615 '''
1616
1617 Returns -> typing.Union[_ForwardRef('Error'), str]
1618 '''
1619 # map input types to rpc msg
1620 _params = dict()
1621 msg = dict(type='Uniter',
1622 request='ProviderType',
1623 version=9,
1624 params=_params)
1625
1626 reply = await self.rpc(msg)
1627 return reply
1628
1629
1630
1631 @ReturnMapping(StringResults)
1632 async def PublicAddress(self, entities):
1633 '''
1634 entities : typing.Sequence[~Entity]
1635 Returns -> typing.Sequence[~StringResult]
1636 '''
1637 # map input types to rpc msg
1638 _params = dict()
1639 msg = dict(type='Uniter',
1640 request='PublicAddress',
1641 version=9,
1642 params=_params)
1643 _params['entities'] = entities
1644 reply = await self.rpc(msg)
1645 return reply
1646
1647
1648
1649 @ReturnMapping(GetLeadershipSettingsBulkResults)
1650 async def Read(self, entities):
1651 '''
1652 entities : typing.Sequence[~Entity]
1653 Returns -> typing.Sequence[~GetLeadershipSettingsResult]
1654 '''
1655 # map input types to rpc msg
1656 _params = dict()
1657 msg = dict(type='Uniter',
1658 request='Read',
1659 version=9,
1660 params=_params)
1661 _params['entities'] = entities
1662 reply = await self.rpc(msg)
1663 return reply
1664
1665
1666
1667 @ReturnMapping(SettingsResults)
1668 async def ReadRemoteSettings(self, relation_unit_pairs):
1669 '''
1670 relation_unit_pairs : typing.Sequence[~RelationUnitPair]
1671 Returns -> typing.Sequence[~SettingsResult]
1672 '''
1673 # map input types to rpc msg
1674 _params = dict()
1675 msg = dict(type='Uniter',
1676 request='ReadRemoteSettings',
1677 version=9,
1678 params=_params)
1679 _params['relation-unit-pairs'] = relation_unit_pairs
1680 reply = await self.rpc(msg)
1681 return reply
1682
1683
1684
1685 @ReturnMapping(SettingsResults)
1686 async def ReadSettings(self, relation_units):
1687 '''
1688 relation_units : typing.Sequence[~RelationUnit]
1689 Returns -> typing.Sequence[~SettingsResult]
1690 '''
1691 # map input types to rpc msg
1692 _params = dict()
1693 msg = dict(type='Uniter',
1694 request='ReadSettings',
1695 version=9,
1696 params=_params)
1697 _params['relation-units'] = relation_units
1698 reply = await self.rpc(msg)
1699 return reply
1700
1701
1702
1703 @ReturnMapping(UnitRefreshResults)
1704 async def Refresh(self, entities):
1705 '''
1706 entities : typing.Sequence[~Entity]
1707 Returns -> typing.Sequence[~UnitRefreshResult]
1708 '''
1709 # map input types to rpc msg
1710 _params = dict()
1711 msg = dict(type='Uniter',
1712 request='Refresh',
1713 version=9,
1714 params=_params)
1715 _params['entities'] = entities
1716 reply = await self.rpc(msg)
1717 return reply
1718
1719
1720
1721 @ReturnMapping(RelationResults)
1722 async def Relation(self, relation_units):
1723 '''
1724 relation_units : typing.Sequence[~RelationUnit]
1725 Returns -> typing.Sequence[~RelationResult]
1726 '''
1727 # map input types to rpc msg
1728 _params = dict()
1729 msg = dict(type='Uniter',
1730 request='Relation',
1731 version=9,
1732 params=_params)
1733 _params['relation-units'] = relation_units
1734 reply = await self.rpc(msg)
1735 return reply
1736
1737
1738
1739 @ReturnMapping(RelationResults)
1740 async def RelationById(self, relation_ids):
1741 '''
1742 relation_ids : typing.Sequence[int]
1743 Returns -> typing.Sequence[~RelationResult]
1744 '''
1745 # map input types to rpc msg
1746 _params = dict()
1747 msg = dict(type='Uniter',
1748 request='RelationById',
1749 version=9,
1750 params=_params)
1751 _params['relation-ids'] = relation_ids
1752 reply = await self.rpc(msg)
1753 return reply
1754
1755
1756
1757 @ReturnMapping(RelationUnitStatusResults)
1758 async def RelationsStatus(self, entities):
1759 '''
1760 entities : typing.Sequence[~Entity]
1761 Returns -> typing.Sequence[~RelationUnitStatusResult]
1762 '''
1763 # map input types to rpc msg
1764 _params = dict()
1765 msg = dict(type='Uniter',
1766 request='RelationsStatus',
1767 version=9,
1768 params=_params)
1769 _params['entities'] = entities
1770 reply = await self.rpc(msg)
1771 return reply
1772
1773
1774
1775 @ReturnMapping(ErrorResults)
1776 async def RemoveStorageAttachments(self, ids):
1777 '''
1778 ids : typing.Sequence[~StorageAttachmentId]
1779 Returns -> typing.Sequence[~ErrorResult]
1780 '''
1781 # map input types to rpc msg
1782 _params = dict()
1783 msg = dict(type='Uniter',
1784 request='RemoveStorageAttachments',
1785 version=9,
1786 params=_params)
1787 _params['ids'] = ids
1788 reply = await self.rpc(msg)
1789 return reply
1790
1791
1792
1793 @ReturnMapping(ErrorResults)
1794 async def RequestReboot(self, entities):
1795 '''
1796 entities : typing.Sequence[~Entity]
1797 Returns -> typing.Sequence[~ErrorResult]
1798 '''
1799 # map input types to rpc msg
1800 _params = dict()
1801 msg = dict(type='Uniter',
1802 request='RequestReboot',
1803 version=9,
1804 params=_params)
1805 _params['entities'] = entities
1806 reply = await self.rpc(msg)
1807 return reply
1808
1809
1810
1811 @ReturnMapping(ResolvedModeResults)
1812 async def Resolved(self, entities):
1813 '''
1814 entities : typing.Sequence[~Entity]
1815 Returns -> typing.Sequence[~ResolvedModeResult]
1816 '''
1817 # map input types to rpc msg
1818 _params = dict()
1819 msg = dict(type='Uniter',
1820 request='Resolved',
1821 version=9,
1822 params=_params)
1823 _params['entities'] = entities
1824 reply = await self.rpc(msg)
1825 return reply
1826
1827
1828
1829 @ReturnMapping(StringResult)
1830 async def SLALevel(self):
1831 '''
1832
1833 Returns -> typing.Union[_ForwardRef('Error'), str]
1834 '''
1835 # map input types to rpc msg
1836 _params = dict()
1837 msg = dict(type='Uniter',
1838 request='SLALevel',
1839 version=9,
1840 params=_params)
1841
1842 reply = await self.rpc(msg)
1843 return reply
1844
1845
1846
1847 @ReturnMapping(ErrorResults)
1848 async def SetAgentStatus(self, entities):
1849 '''
1850 entities : typing.Sequence[~EntityStatusArgs]
1851 Returns -> typing.Sequence[~ErrorResult]
1852 '''
1853 # map input types to rpc msg
1854 _params = dict()
1855 msg = dict(type='Uniter',
1856 request='SetAgentStatus',
1857 version=9,
1858 params=_params)
1859 _params['entities'] = entities
1860 reply = await self.rpc(msg)
1861 return reply
1862
1863
1864
1865 @ReturnMapping(ErrorResults)
1866 async def SetApplicationStatus(self, entities):
1867 '''
1868 entities : typing.Sequence[~EntityStatusArgs]
1869 Returns -> typing.Sequence[~ErrorResult]
1870 '''
1871 # map input types to rpc msg
1872 _params = dict()
1873 msg = dict(type='Uniter',
1874 request='SetApplicationStatus',
1875 version=9,
1876 params=_params)
1877 _params['entities'] = entities
1878 reply = await self.rpc(msg)
1879 return reply
1880
1881
1882
1883 @ReturnMapping(ErrorResults)
1884 async def SetCharmURL(self, entities):
1885 '''
1886 entities : typing.Sequence[~EntityCharmURL]
1887 Returns -> typing.Sequence[~ErrorResult]
1888 '''
1889 # map input types to rpc msg
1890 _params = dict()
1891 msg = dict(type='Uniter',
1892 request='SetCharmURL',
1893 version=9,
1894 params=_params)
1895 _params['entities'] = entities
1896 reply = await self.rpc(msg)
1897 return reply
1898
1899
1900
1901 @ReturnMapping(ErrorResults)
1902 async def SetPodSpec(self, specs):
1903 '''
1904 specs : typing.Sequence[~EntityString]
1905 Returns -> typing.Sequence[~ErrorResult]
1906 '''
1907 # map input types to rpc msg
1908 _params = dict()
1909 msg = dict(type='Uniter',
1910 request='SetPodSpec',
1911 version=9,
1912 params=_params)
1913 _params['specs'] = specs
1914 reply = await self.rpc(msg)
1915 return reply
1916
1917
1918
1919 @ReturnMapping(ErrorResults)
1920 async def SetRelationStatus(self, args):
1921 '''
1922 args : typing.Sequence[~RelationStatusArg]
1923 Returns -> typing.Sequence[~ErrorResult]
1924 '''
1925 # map input types to rpc msg
1926 _params = dict()
1927 msg = dict(type='Uniter',
1928 request='SetRelationStatus',
1929 version=9,
1930 params=_params)
1931 _params['args'] = args
1932 reply = await self.rpc(msg)
1933 return reply
1934
1935
1936
1937 @ReturnMapping(ErrorResults)
1938 async def SetStatus(self, entities):
1939 '''
1940 entities : typing.Sequence[~EntityStatusArgs]
1941 Returns -> typing.Sequence[~ErrorResult]
1942 '''
1943 # map input types to rpc msg
1944 _params = dict()
1945 msg = dict(type='Uniter',
1946 request='SetStatus',
1947 version=9,
1948 params=_params)
1949 _params['entities'] = entities
1950 reply = await self.rpc(msg)
1951 return reply
1952
1953
1954
1955 @ReturnMapping(ErrorResults)
1956 async def SetUnitStatus(self, entities):
1957 '''
1958 entities : typing.Sequence[~EntityStatusArgs]
1959 Returns -> typing.Sequence[~ErrorResult]
1960 '''
1961 # map input types to rpc msg
1962 _params = dict()
1963 msg = dict(type='Uniter',
1964 request='SetUnitStatus',
1965 version=9,
1966 params=_params)
1967 _params['entities'] = entities
1968 reply = await self.rpc(msg)
1969 return reply
1970
1971
1972
1973 @ReturnMapping(ErrorResults)
1974 async def SetUpgradeSeriesUnitStatus(self, params):
1975 '''
1976 params : typing.Sequence[~UpgradeSeriesStatusParam]
1977 Returns -> typing.Sequence[~ErrorResult]
1978 '''
1979 # map input types to rpc msg
1980 _params = dict()
1981 msg = dict(type='Uniter',
1982 request='SetUpgradeSeriesUnitStatus',
1983 version=9,
1984 params=_params)
1985 _params['params'] = params
1986 reply = await self.rpc(msg)
1987 return reply
1988
1989
1990
1991 @ReturnMapping(ErrorResults)
1992 async def SetWorkloadVersion(self, entities):
1993 '''
1994 entities : typing.Sequence[~EntityWorkloadVersion]
1995 Returns -> typing.Sequence[~ErrorResult]
1996 '''
1997 # map input types to rpc msg
1998 _params = dict()
1999 msg = dict(type='Uniter',
2000 request='SetWorkloadVersion',
2001 version=9,
2002 params=_params)
2003 _params['entities'] = entities
2004 reply = await self.rpc(msg)
2005 return reply
2006
2007
2008
2009 @ReturnMapping(LifeResults)
2010 async def StorageAttachmentLife(self, ids):
2011 '''
2012 ids : typing.Sequence[~StorageAttachmentId]
2013 Returns -> typing.Sequence[~LifeResult]
2014 '''
2015 # map input types to rpc msg
2016 _params = dict()
2017 msg = dict(type='Uniter',
2018 request='StorageAttachmentLife',
2019 version=9,
2020 params=_params)
2021 _params['ids'] = ids
2022 reply = await self.rpc(msg)
2023 return reply
2024
2025
2026
2027 @ReturnMapping(StorageAttachmentResults)
2028 async def StorageAttachments(self, ids):
2029 '''
2030 ids : typing.Sequence[~StorageAttachmentId]
2031 Returns -> typing.Sequence[~StorageAttachmentResult]
2032 '''
2033 # map input types to rpc msg
2034 _params = dict()
2035 msg = dict(type='Uniter',
2036 request='StorageAttachments',
2037 version=9,
2038 params=_params)
2039 _params['ids'] = ids
2040 reply = await self.rpc(msg)
2041 return reply
2042
2043
2044
2045 @ReturnMapping(StatusResults)
2046 async def UnitStatus(self, entities):
2047 '''
2048 entities : typing.Sequence[~Entity]
2049 Returns -> typing.Sequence[~StatusResult]
2050 '''
2051 # map input types to rpc msg
2052 _params = dict()
2053 msg = dict(type='Uniter',
2054 request='UnitStatus',
2055 version=9,
2056 params=_params)
2057 _params['entities'] = entities
2058 reply = await self.rpc(msg)
2059 return reply
2060
2061
2062
2063 @ReturnMapping(StorageAttachmentIdsResults)
2064 async def UnitStorageAttachments(self, entities):
2065 '''
2066 entities : typing.Sequence[~Entity]
2067 Returns -> typing.Sequence[~StorageAttachmentIdsResult]
2068 '''
2069 # map input types to rpc msg
2070 _params = dict()
2071 msg = dict(type='Uniter',
2072 request='UnitStorageAttachments',
2073 version=9,
2074 params=_params)
2075 _params['entities'] = entities
2076 reply = await self.rpc(msg)
2077 return reply
2078
2079
2080
2081 @ReturnMapping(ErrorResults)
2082 async def UpdateSettings(self, relation_units):
2083 '''
2084 relation_units : typing.Sequence[~RelationUnitSettings]
2085 Returns -> typing.Sequence[~ErrorResult]
2086 '''
2087 # map input types to rpc msg
2088 _params = dict()
2089 msg = dict(type='Uniter',
2090 request='UpdateSettings',
2091 version=9,
2092 params=_params)
2093 _params['relation-units'] = relation_units
2094 reply = await self.rpc(msg)
2095 return reply
2096
2097
2098
2099 @ReturnMapping(UpgradeSeriesStatusResults)
2100 async def UpgradeSeriesUnitStatus(self, entities):
2101 '''
2102 entities : typing.Sequence[~Entity]
2103 Returns -> typing.Sequence[~UpgradeSeriesStatusResult]
2104 '''
2105 # map input types to rpc msg
2106 _params = dict()
2107 msg = dict(type='Uniter',
2108 request='UpgradeSeriesUnitStatus',
2109 version=9,
2110 params=_params)
2111 _params['entities'] = entities
2112 reply = await self.rpc(msg)
2113 return reply
2114
2115
2116
2117 @ReturnMapping(NotifyWatchResults)
2118 async def Watch(self, entities):
2119 '''
2120 entities : typing.Sequence[~Entity]
2121 Returns -> typing.Sequence[~NotifyWatchResult]
2122 '''
2123 # map input types to rpc msg
2124 _params = dict()
2125 msg = dict(type='Uniter',
2126 request='Watch',
2127 version=9,
2128 params=_params)
2129 _params['entities'] = entities
2130 reply = await self.rpc(msg)
2131 return reply
2132
2133
2134
2135 @ReturnMapping(NotifyWatchResult)
2136 async def WatchAPIHostPorts(self):
2137 '''
2138
2139 Returns -> typing.Union[str, _ForwardRef('Error')]
2140 '''
2141 # map input types to rpc msg
2142 _params = dict()
2143 msg = dict(type='Uniter',
2144 request='WatchAPIHostPorts',
2145 version=9,
2146 params=_params)
2147
2148 reply = await self.rpc(msg)
2149 return reply
2150
2151
2152
2153 @ReturnMapping(StringsWatchResults)
2154 async def WatchActionNotifications(self, entities):
2155 '''
2156 entities : typing.Sequence[~Entity]
2157 Returns -> typing.Sequence[~StringsWatchResult]
2158 '''
2159 # map input types to rpc msg
2160 _params = dict()
2161 msg = dict(type='Uniter',
2162 request='WatchActionNotifications',
2163 version=9,
2164 params=_params)
2165 _params['entities'] = entities
2166 reply = await self.rpc(msg)
2167 return reply
2168
2169
2170
2171 @ReturnMapping(StringsWatchResults)
2172 async def WatchConfigSettingsHash(self, entities):
2173 '''
2174 entities : typing.Sequence[~Entity]
2175 Returns -> typing.Sequence[~StringsWatchResult]
2176 '''
2177 # map input types to rpc msg
2178 _params = dict()
2179 msg = dict(type='Uniter',
2180 request='WatchConfigSettingsHash',
2181 version=9,
2182 params=_params)
2183 _params['entities'] = entities
2184 reply = await self.rpc(msg)
2185 return reply
2186
2187
2188
2189 @ReturnMapping(NotifyWatchResult)
2190 async def WatchForModelConfigChanges(self):
2191 '''
2192
2193 Returns -> typing.Union[str, _ForwardRef('Error')]
2194 '''
2195 # map input types to rpc msg
2196 _params = dict()
2197 msg = dict(type='Uniter',
2198 request='WatchForModelConfigChanges',
2199 version=9,
2200 params=_params)
2201
2202 reply = await self.rpc(msg)
2203 return reply
2204
2205
2206
2207 @ReturnMapping(NotifyWatchResults)
2208 async def WatchLeadershipSettings(self, entities):
2209 '''
2210 entities : typing.Sequence[~Entity]
2211 Returns -> typing.Sequence[~NotifyWatchResult]
2212 '''
2213 # map input types to rpc msg
2214 _params = dict()
2215 msg = dict(type='Uniter',
2216 request='WatchLeadershipSettings',
2217 version=9,
2218 params=_params)
2219 _params['entities'] = entities
2220 reply = await self.rpc(msg)
2221 return reply
2222
2223
2224
2225 @ReturnMapping(NotifyWatchResults)
2226 async def WatchMeterStatus(self, entities):
2227 '''
2228 entities : typing.Sequence[~Entity]
2229 Returns -> typing.Sequence[~NotifyWatchResult]
2230 '''
2231 # map input types to rpc msg
2232 _params = dict()
2233 msg = dict(type='Uniter',
2234 request='WatchMeterStatus',
2235 version=9,
2236 params=_params)
2237 _params['entities'] = entities
2238 reply = await self.rpc(msg)
2239 return reply
2240
2241
2242
2243 @ReturnMapping(RelationUnitsWatchResults)
2244 async def WatchRelationUnits(self, relation_units):
2245 '''
2246 relation_units : typing.Sequence[~RelationUnit]
2247 Returns -> typing.Sequence[~RelationUnitsWatchResult]
2248 '''
2249 # map input types to rpc msg
2250 _params = dict()
2251 msg = dict(type='Uniter',
2252 request='WatchRelationUnits',
2253 version=9,
2254 params=_params)
2255 _params['relation-units'] = relation_units
2256 reply = await self.rpc(msg)
2257 return reply
2258
2259
2260
2261 @ReturnMapping(NotifyWatchResults)
2262 async def WatchStorageAttachments(self, ids):
2263 '''
2264 ids : typing.Sequence[~StorageAttachmentId]
2265 Returns -> typing.Sequence[~NotifyWatchResult]
2266 '''
2267 # map input types to rpc msg
2268 _params = dict()
2269 msg = dict(type='Uniter',
2270 request='WatchStorageAttachments',
2271 version=9,
2272 params=_params)
2273 _params['ids'] = ids
2274 reply = await self.rpc(msg)
2275 return reply
2276
2277
2278
2279 @ReturnMapping(StringsWatchResults)
2280 async def WatchTrustConfigSettingsHash(self, entities):
2281 '''
2282 entities : typing.Sequence[~Entity]
2283 Returns -> typing.Sequence[~StringsWatchResult]
2284 '''
2285 # map input types to rpc msg
2286 _params = dict()
2287 msg = dict(type='Uniter',
2288 request='WatchTrustConfigSettingsHash',
2289 version=9,
2290 params=_params)
2291 _params['entities'] = entities
2292 reply = await self.rpc(msg)
2293 return reply
2294
2295
2296
2297 @ReturnMapping(StringsWatchResults)
2298 async def WatchUnitAddressesHash(self, entities):
2299 '''
2300 entities : typing.Sequence[~Entity]
2301 Returns -> typing.Sequence[~StringsWatchResult]
2302 '''
2303 # map input types to rpc msg
2304 _params = dict()
2305 msg = dict(type='Uniter',
2306 request='WatchUnitAddressesHash',
2307 version=9,
2308 params=_params)
2309 _params['entities'] = entities
2310 reply = await self.rpc(msg)
2311 return reply
2312
2313
2314
2315 @ReturnMapping(StringsWatchResults)
2316 async def WatchUnitRelations(self, entities):
2317 '''
2318 entities : typing.Sequence[~Entity]
2319 Returns -> typing.Sequence[~StringsWatchResult]
2320 '''
2321 # map input types to rpc msg
2322 _params = dict()
2323 msg = dict(type='Uniter',
2324 request='WatchUnitRelations',
2325 version=9,
2326 params=_params)
2327 _params['entities'] = entities
2328 reply = await self.rpc(msg)
2329 return reply
2330
2331
2332
2333 @ReturnMapping(StringsWatchResults)
2334 async def WatchUnitStorageAttachments(self, entities):
2335 '''
2336 entities : typing.Sequence[~Entity]
2337 Returns -> typing.Sequence[~StringsWatchResult]
2338 '''
2339 # map input types to rpc msg
2340 _params = dict()
2341 msg = dict(type='Uniter',
2342 request='WatchUnitStorageAttachments',
2343 version=9,
2344 params=_params)
2345 _params['entities'] = entities
2346 reply = await self.rpc(msg)
2347 return reply
2348
2349
2350
2351 @ReturnMapping(NotifyWatchResults)
2352 async def WatchUpgradeSeriesNotifications(self, entities):
2353 '''
2354 entities : typing.Sequence[~Entity]
2355 Returns -> typing.Sequence[~NotifyWatchResult]
2356 '''
2357 # map input types to rpc msg
2358 _params = dict()
2359 msg = dict(type='Uniter',
2360 request='WatchUpgradeSeriesNotifications',
2361 version=9,
2362 params=_params)
2363 _params['entities'] = entities
2364 reply = await self.rpc(msg)
2365 return reply
2366
2367
2368
2369 @ReturnMapping(StringResults)
2370 async def WorkloadVersion(self, entities):
2371 '''
2372 entities : typing.Sequence[~Entity]
2373 Returns -> typing.Sequence[~StringResult]
2374 '''
2375 # map input types to rpc msg
2376 _params = dict()
2377 msg = dict(type='Uniter',
2378 request='WorkloadVersion',
2379 version=9,
2380 params=_params)
2381 _params['entities'] = entities
2382 reply = await self.rpc(msg)
2383 return reply
2384
2385