Squashed 'modules/libjuju/' changes from c50c361..c127833
[osm/N2VC.git] / juju / client / _definitions.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
6
7 class APIHostPortsResult(Type):
8 _toSchema = {'servers': 'servers'}
9 _toPy = {'servers': 'servers'}
10 def __init__(self, servers=None, **unknown_fields):
11 '''
12 servers : typing.Sequence[~HostPort]
13 '''
14 self.servers = [HostPort.from_json(o) for o in servers or []]
15
16
17
18 class Action(Type):
19 _toSchema = {'name': 'name', 'parameters': 'parameters', 'receiver': 'receiver', 'tag': 'tag'}
20 _toPy = {'name': 'name', 'parameters': 'parameters', 'receiver': 'receiver', 'tag': 'tag'}
21 def __init__(self, name=None, parameters=None, receiver=None, tag=None, **unknown_fields):
22 '''
23 name : str
24 parameters : typing.Mapping[str, typing.Any]
25 receiver : str
26 tag : str
27 '''
28 self.name = name
29 self.parameters = parameters
30 self.receiver = receiver
31 self.tag = tag
32
33
34
35 class ActionExecutionResult(Type):
36 _toSchema = {'action_tag': 'action-tag', 'message': 'message', 'results': 'results', 'status': 'status'}
37 _toPy = {'action-tag': 'action_tag', 'message': 'message', 'results': 'results', 'status': 'status'}
38 def __init__(self, action_tag=None, message=None, results=None, status=None, **unknown_fields):
39 '''
40 action_tag : str
41 message : str
42 results : typing.Mapping[str, typing.Any]
43 status : str
44 '''
45 self.action_tag = action_tag
46 self.message = message
47 self.results = results
48 self.status = status
49
50
51
52 class ActionExecutionResults(Type):
53 _toSchema = {'results': 'results'}
54 _toPy = {'results': 'results'}
55 def __init__(self, results=None, **unknown_fields):
56 '''
57 results : typing.Sequence[~ActionExecutionResult]
58 '''
59 self.results = [ActionExecutionResult.from_json(o) for o in results or []]
60
61
62
63 class ActionPruneArgs(Type):
64 _toSchema = {'max_history_mb': 'max-history-mb', 'max_history_time': 'max-history-time'}
65 _toPy = {'max-history-mb': 'max_history_mb', 'max-history-time': 'max_history_time'}
66 def __init__(self, max_history_mb=None, max_history_time=None, **unknown_fields):
67 '''
68 max_history_mb : int
69 max_history_time : int
70 '''
71 self.max_history_mb = max_history_mb
72 self.max_history_time = max_history_time
73
74
75
76 class ActionResult(Type):
77 _toSchema = {'action': 'action', 'completed': 'completed', 'enqueued': 'enqueued', 'error': 'error', 'message': 'message', 'output': 'output', 'started': 'started', 'status': 'status'}
78 _toPy = {'action': 'action', 'completed': 'completed', 'enqueued': 'enqueued', 'error': 'error', 'message': 'message', 'output': 'output', 'started': 'started', 'status': 'status'}
79 def __init__(self, action=None, completed=None, enqueued=None, error=None, message=None, output=None, started=None, status=None, **unknown_fields):
80 '''
81 action : Action
82 completed : str
83 enqueued : str
84 error : Error
85 message : str
86 output : typing.Mapping[str, typing.Any]
87 started : str
88 status : str
89 '''
90 self.action = Action.from_json(action) if action else None
91 self.completed = completed
92 self.enqueued = enqueued
93 self.error = Error.from_json(error) if error else None
94 self.message = message
95 self.output = output
96 self.started = started
97 self.status = status
98
99
100
101 class ActionResults(Type):
102 _toSchema = {'results': 'results'}
103 _toPy = {'results': 'results'}
104 def __init__(self, results=None, **unknown_fields):
105 '''
106 results : typing.Sequence[~ActionResult]
107 '''
108 self.results = [ActionResult.from_json(o) for o in results or []]
109
110
111
112 class ActionSpec(Type):
113 _toSchema = {'description': 'description', 'params': 'params'}
114 _toPy = {'description': 'description', 'params': 'params'}
115 def __init__(self, description=None, params=None, **unknown_fields):
116 '''
117 description : str
118 params : typing.Mapping[str, typing.Any]
119 '''
120 self.description = description
121 self.params = params
122
123
124
125 class Actions(Type):
126 _toSchema = {'actions': 'actions'}
127 _toPy = {'actions': 'actions'}
128 def __init__(self, actions=None, **unknown_fields):
129 '''
130 actions : typing.Sequence[~Action]
131 '''
132 self.actions = [Action.from_json(o) for o in actions or []]
133
134
135
136 class ActionsByName(Type):
137 _toSchema = {'actions': 'actions', 'error': 'error', 'name': 'name'}
138 _toPy = {'actions': 'actions', 'error': 'error', 'name': 'name'}
139 def __init__(self, actions=None, error=None, name=None, **unknown_fields):
140 '''
141 actions : typing.Sequence[~ActionResult]
142 error : Error
143 name : str
144 '''
145 self.actions = [ActionResult.from_json(o) for o in actions or []]
146 self.error = Error.from_json(error) if error else None
147 self.name = name
148
149
150
151 class ActionsByNames(Type):
152 _toSchema = {'actions': 'actions'}
153 _toPy = {'actions': 'actions'}
154 def __init__(self, actions=None, **unknown_fields):
155 '''
156 actions : typing.Sequence[~ActionsByName]
157 '''
158 self.actions = [ActionsByName.from_json(o) for o in actions or []]
159
160
161
162 class ActionsByReceiver(Type):
163 _toSchema = {'actions': 'actions', 'error': 'error', 'receiver': 'receiver'}
164 _toPy = {'actions': 'actions', 'error': 'error', 'receiver': 'receiver'}
165 def __init__(self, actions=None, error=None, receiver=None, **unknown_fields):
166 '''
167 actions : typing.Sequence[~ActionResult]
168 error : Error
169 receiver : str
170 '''
171 self.actions = [ActionResult.from_json(o) for o in actions or []]
172 self.error = Error.from_json(error) if error else None
173 self.receiver = receiver
174
175
176
177 class ActionsByReceivers(Type):
178 _toSchema = {'actions': 'actions'}
179 _toPy = {'actions': 'actions'}
180 def __init__(self, actions=None, **unknown_fields):
181 '''
182 actions : typing.Sequence[~ActionsByReceiver]
183 '''
184 self.actions = [ActionsByReceiver.from_json(o) for o in actions or []]
185
186
187
188 class AddApplicationOffer(Type):
189 _toSchema = {'application_description': 'application-description', 'application_name': 'application-name', 'endpoints': 'endpoints', 'model_tag': 'model-tag', 'offer_name': 'offer-name'}
190 _toPy = {'application-description': 'application_description', 'application-name': 'application_name', 'endpoints': 'endpoints', 'model-tag': 'model_tag', 'offer-name': 'offer_name'}
191 def __init__(self, application_description=None, application_name=None, endpoints=None, model_tag=None, offer_name=None, **unknown_fields):
192 '''
193 application_description : str
194 application_name : str
195 endpoints : typing.Mapping[str, str]
196 model_tag : str
197 offer_name : str
198 '''
199 self.application_description = application_description
200 self.application_name = application_name
201 self.endpoints = endpoints
202 self.model_tag = model_tag
203 self.offer_name = offer_name
204
205
206
207 class AddApplicationOffers(Type):
208 _toSchema = {'offers': 'Offers'}
209 _toPy = {'Offers': 'offers'}
210 def __init__(self, offers=None, **unknown_fields):
211 '''
212 offers : typing.Sequence[~AddApplicationOffer]
213 '''
214 self.offers = [AddApplicationOffer.from_json(o) for o in offers or []]
215
216
217
218 class AddApplicationUnits(Type):
219 _toSchema = {'application': 'application', 'num_units': 'num-units', 'placement': 'placement'}
220 _toPy = {'application': 'application', 'num-units': 'num_units', 'placement': 'placement'}
221 def __init__(self, application=None, num_units=None, placement=None, **unknown_fields):
222 '''
223 application : str
224 num_units : int
225 placement : typing.Sequence[~Placement]
226 '''
227 self.application = application
228 self.num_units = num_units
229 self.placement = [Placement.from_json(o) for o in placement or []]
230
231
232
233 class AddApplicationUnitsResults(Type):
234 _toSchema = {'units': 'units'}
235 _toPy = {'units': 'units'}
236 def __init__(self, units=None, **unknown_fields):
237 '''
238 units : typing.Sequence[str]
239 '''
240 self.units = units
241
242
243
244 class AddCharm(Type):
245 _toSchema = {'channel': 'channel', 'url': 'url'}
246 _toPy = {'channel': 'channel', 'url': 'url'}
247 def __init__(self, channel=None, url=None, **unknown_fields):
248 '''
249 channel : str
250 url : str
251 '''
252 self.channel = channel
253 self.url = url
254
255
256
257 class AddCharmWithAuthorization(Type):
258 _toSchema = {'channel': 'channel', 'macaroon': 'macaroon', 'url': 'url'}
259 _toPy = {'channel': 'channel', 'macaroon': 'macaroon', 'url': 'url'}
260 def __init__(self, channel=None, macaroon=None, url=None, **unknown_fields):
261 '''
262 channel : str
263 macaroon : Macaroon
264 url : str
265 '''
266 self.channel = channel
267 self.macaroon = Macaroon.from_json(macaroon) if macaroon else None
268 self.url = url
269
270
271
272 class AddCloudArgs(Type):
273 _toSchema = {'cloud': 'cloud', 'name': 'name'}
274 _toPy = {'cloud': 'cloud', 'name': 'name'}
275 def __init__(self, cloud=None, name=None, **unknown_fields):
276 '''
277 cloud : Cloud
278 name : str
279 '''
280 self.cloud = Cloud.from_json(cloud) if cloud else None
281 self.name = name
282
283
284
285 class AddMachineParams(Type):
286 _toSchema = {'addresses': 'addresses', 'constraints': 'constraints', 'container_type': 'container-type', 'disks': 'disks', 'hardware_characteristics': 'hardware-characteristics', 'instance_id': 'instance-id', 'jobs': 'jobs', 'nonce': 'nonce', 'parent_id': 'parent-id', 'placement': 'placement', 'series': 'series'}
287 _toPy = {'addresses': 'addresses', 'constraints': 'constraints', 'container-type': 'container_type', 'disks': 'disks', 'hardware-characteristics': 'hardware_characteristics', 'instance-id': 'instance_id', 'jobs': 'jobs', 'nonce': 'nonce', 'parent-id': 'parent_id', 'placement': 'placement', 'series': 'series'}
288 def __init__(self, addresses=None, constraints=None, container_type=None, disks=None, hardware_characteristics=None, instance_id=None, jobs=None, nonce=None, parent_id=None, placement=None, series=None, **unknown_fields):
289 '''
290 addresses : typing.Sequence[~Address]
291 constraints : Value
292 container_type : str
293 disks : typing.Sequence[~Constraints]
294 hardware_characteristics : HardwareCharacteristics
295 instance_id : str
296 jobs : typing.Sequence[str]
297 nonce : str
298 parent_id : str
299 placement : Placement
300 series : str
301 '''
302 self.addresses = [Address.from_json(o) for o in addresses or []]
303 self.constraints = Value.from_json(constraints) if constraints else None
304 self.container_type = container_type
305 self.disks = [Constraints.from_json(o) for o in disks or []]
306 self.hardware_characteristics = HardwareCharacteristics.from_json(hardware_characteristics) if hardware_characteristics else None
307 self.instance_id = instance_id
308 self.jobs = jobs
309 self.nonce = nonce
310 self.parent_id = parent_id
311 self.placement = Placement.from_json(placement) if placement else None
312 self.series = series
313
314
315
316 class AddMachines(Type):
317 _toSchema = {'params': 'params'}
318 _toPy = {'params': 'params'}
319 def __init__(self, params=None, **unknown_fields):
320 '''
321 params : typing.Sequence[~AddMachineParams]
322 '''
323 self.params = [AddMachineParams.from_json(o) for o in params or []]
324
325
326
327 class AddMachinesResult(Type):
328 _toSchema = {'error': 'error', 'machine': 'machine'}
329 _toPy = {'error': 'error', 'machine': 'machine'}
330 def __init__(self, error=None, machine=None, **unknown_fields):
331 '''
332 error : Error
333 machine : str
334 '''
335 self.error = Error.from_json(error) if error else None
336 self.machine = machine
337
338
339
340 class AddMachinesResults(Type):
341 _toSchema = {'machines': 'machines'}
342 _toPy = {'machines': 'machines'}
343 def __init__(self, machines=None, **unknown_fields):
344 '''
345 machines : typing.Sequence[~AddMachinesResult]
346 '''
347 self.machines = [AddMachinesResult.from_json(o) for o in machines or []]
348
349
350
351 class AddPendingResourcesArgs(Type):
352 _toSchema = {'addcharmwithauthorization': 'AddCharmWithAuthorization', 'entity': 'Entity', 'resources': 'Resources'}
353 _toPy = {'AddCharmWithAuthorization': 'addcharmwithauthorization', 'Entity': 'entity', 'Resources': 'resources'}
354 def __init__(self, addcharmwithauthorization=None, entity=None, resources=None, **unknown_fields):
355 '''
356 addcharmwithauthorization : AddCharmWithAuthorization
357 entity : Entity
358 resources : typing.Sequence[~CharmResource]
359 '''
360 self.addcharmwithauthorization = AddCharmWithAuthorization.from_json(addcharmwithauthorization) if addcharmwithauthorization else None
361 self.entity = Entity.from_json(entity) if entity else None
362 self.resources = [CharmResource.from_json(o) for o in resources or []]
363
364
365
366 class AddPendingResourcesResult(Type):
367 _toSchema = {'errorresult': 'ErrorResult', 'pending_ids': 'pending-ids'}
368 _toPy = {'ErrorResult': 'errorresult', 'pending-ids': 'pending_ids'}
369 def __init__(self, errorresult=None, pending_ids=None, **unknown_fields):
370 '''
371 errorresult : ErrorResult
372 pending_ids : typing.Sequence[str]
373 '''
374 self.errorresult = ErrorResult.from_json(errorresult) if errorresult else None
375 self.pending_ids = pending_ids
376
377
378
379 class AddRelation(Type):
380 _toSchema = {'endpoints': 'endpoints'}
381 _toPy = {'endpoints': 'endpoints'}
382 def __init__(self, endpoints=None, **unknown_fields):
383 '''
384 endpoints : typing.Sequence[str]
385 '''
386 self.endpoints = endpoints
387
388
389
390 class AddRelationResults(Type):
391 _toSchema = {'endpoints': 'endpoints'}
392 _toPy = {'endpoints': 'endpoints'}
393 def __init__(self, endpoints=None, **unknown_fields):
394 '''
395 endpoints : typing.Mapping[str, ~CharmRelation]
396 '''
397 self.endpoints = endpoints
398
399
400
401 class AddStorageDetails(Type):
402 _toSchema = {'storage_tags': 'storage-tags'}
403 _toPy = {'storage-tags': 'storage_tags'}
404 def __init__(self, storage_tags=None, **unknown_fields):
405 '''
406 storage_tags : typing.Sequence[str]
407 '''
408 self.storage_tags = storage_tags
409
410
411
412 class AddStorageResult(Type):
413 _toSchema = {'error': 'error', 'result': 'result'}
414 _toPy = {'error': 'error', 'result': 'result'}
415 def __init__(self, error=None, result=None, **unknown_fields):
416 '''
417 error : Error
418 result : AddStorageDetails
419 '''
420 self.error = Error.from_json(error) if error else None
421 self.result = AddStorageDetails.from_json(result) if result else None
422
423
424
425 class AddStorageResults(Type):
426 _toSchema = {'results': 'results'}
427 _toPy = {'results': 'results'}
428 def __init__(self, results=None, **unknown_fields):
429 '''
430 results : typing.Sequence[~AddStorageResult]
431 '''
432 self.results = [AddStorageResult.from_json(o) for o in results or []]
433
434
435
436 class AddSubnetParams(Type):
437 _toSchema = {'space_tag': 'space-tag', 'subnet_provider_id': 'subnet-provider-id', 'subnet_tag': 'subnet-tag', 'zones': 'zones'}
438 _toPy = {'space-tag': 'space_tag', 'subnet-provider-id': 'subnet_provider_id', 'subnet-tag': 'subnet_tag', 'zones': 'zones'}
439 def __init__(self, space_tag=None, subnet_provider_id=None, subnet_tag=None, zones=None, **unknown_fields):
440 '''
441 space_tag : str
442 subnet_provider_id : str
443 subnet_tag : str
444 zones : typing.Sequence[str]
445 '''
446 self.space_tag = space_tag
447 self.subnet_provider_id = subnet_provider_id
448 self.subnet_tag = subnet_tag
449 self.zones = zones
450
451
452
453 class AddSubnetsParams(Type):
454 _toSchema = {'subnets': 'subnets'}
455 _toPy = {'subnets': 'subnets'}
456 def __init__(self, subnets=None, **unknown_fields):
457 '''
458 subnets : typing.Sequence[~AddSubnetParams]
459 '''
460 self.subnets = [AddSubnetParams.from_json(o) for o in subnets or []]
461
462
463
464 class AddUser(Type):
465 _toSchema = {'display_name': 'display-name', 'password': 'password', 'username': 'username'}
466 _toPy = {'display-name': 'display_name', 'password': 'password', 'username': 'username'}
467 def __init__(self, display_name=None, password=None, username=None, **unknown_fields):
468 '''
469 display_name : str
470 password : str
471 username : str
472 '''
473 self.display_name = display_name
474 self.password = password
475 self.username = username
476
477
478
479 class AddUserResult(Type):
480 _toSchema = {'error': 'error', 'secret_key': 'secret-key', 'tag': 'tag'}
481 _toPy = {'error': 'error', 'secret-key': 'secret_key', 'tag': 'tag'}
482 def __init__(self, error=None, secret_key=None, tag=None, **unknown_fields):
483 '''
484 error : Error
485 secret_key : typing.Sequence[int]
486 tag : str
487 '''
488 self.error = Error.from_json(error) if error else None
489 self.secret_key = secret_key
490 self.tag = tag
491
492
493
494 class AddUserResults(Type):
495 _toSchema = {'results': 'results'}
496 _toPy = {'results': 'results'}
497 def __init__(self, results=None, **unknown_fields):
498 '''
499 results : typing.Sequence[~AddUserResult]
500 '''
501 self.results = [AddUserResult.from_json(o) for o in results or []]
502
503
504
505 class AddUsers(Type):
506 _toSchema = {'users': 'users'}
507 _toPy = {'users': 'users'}
508 def __init__(self, users=None, **unknown_fields):
509 '''
510 users : typing.Sequence[~AddUser]
511 '''
512 self.users = [AddUser.from_json(o) for o in users or []]
513
514
515
516 class Address(Type):
517 _toSchema = {'scope': 'scope', 'space_name': 'space-name', 'type_': 'type', 'value': 'value'}
518 _toPy = {'scope': 'scope', 'space-name': 'space_name', 'type': 'type_', 'value': 'value'}
519 def __init__(self, scope=None, space_name=None, type_=None, value=None, **unknown_fields):
520 '''
521 scope : str
522 space_name : str
523 type_ : str
524 value : str
525 '''
526 self.scope = scope
527 self.space_name = space_name
528 self.type_ = type_
529 self.value = value
530
531
532
533 class AdoptResourcesArgs(Type):
534 _toSchema = {'model_tag': 'model-tag', 'source_controller_version': 'source-controller-version'}
535 _toPy = {'model-tag': 'model_tag', 'source-controller-version': 'source_controller_version'}
536 def __init__(self, model_tag=None, source_controller_version=None, **unknown_fields):
537 '''
538 model_tag : str
539 source_controller_version : Number
540 '''
541 self.model_tag = model_tag
542 self.source_controller_version = Number.from_json(source_controller_version) if source_controller_version else None
543
544
545
546 class AgentGetEntitiesResult(Type):
547 _toSchema = {'container_type': 'container-type', 'error': 'error', 'jobs': 'jobs', 'life': 'life'}
548 _toPy = {'container-type': 'container_type', 'error': 'error', 'jobs': 'jobs', 'life': 'life'}
549 def __init__(self, container_type=None, error=None, jobs=None, life=None, **unknown_fields):
550 '''
551 container_type : str
552 error : Error
553 jobs : typing.Sequence[str]
554 life : str
555 '''
556 self.container_type = container_type
557 self.error = Error.from_json(error) if error else None
558 self.jobs = jobs
559 self.life = life
560
561
562
563 class AgentGetEntitiesResults(Type):
564 _toSchema = {'entities': 'entities'}
565 _toPy = {'entities': 'entities'}
566 def __init__(self, entities=None, **unknown_fields):
567 '''
568 entities : typing.Sequence[~AgentGetEntitiesResult]
569 '''
570 self.entities = [AgentGetEntitiesResult.from_json(o) for o in entities or []]
571
572
573
574 class AgentVersionResult(Type):
575 _toSchema = {'version': 'version'}
576 _toPy = {'version': 'version'}
577 def __init__(self, version=None, **unknown_fields):
578 '''
579 version : Number
580 '''
581 self.version = Number.from_json(version) if version else None
582
583
584
585 class AllWatcherId(Type):
586 _toSchema = {'watcher_id': 'watcher-id'}
587 _toPy = {'watcher-id': 'watcher_id'}
588 def __init__(self, watcher_id=None, **unknown_fields):
589 '''
590 watcher_id : str
591 '''
592 self.watcher_id = watcher_id
593
594
595
596 class AllWatcherNextResults(Type):
597 _toSchema = {'deltas': 'deltas'}
598 _toPy = {'deltas': 'deltas'}
599 def __init__(self, deltas=None, **unknown_fields):
600 '''
601 deltas : typing.Sequence[~Delta]
602 '''
603 self.deltas = [Delta.from_json(o) for o in deltas or []]
604
605
606
607 class AnnotationsGetResult(Type):
608 _toSchema = {'annotations': 'annotations', 'entity': 'entity', 'error': 'error'}
609 _toPy = {'annotations': 'annotations', 'entity': 'entity', 'error': 'error'}
610 def __init__(self, annotations=None, entity=None, error=None, **unknown_fields):
611 '''
612 annotations : typing.Mapping[str, str]
613 entity : str
614 error : ErrorResult
615 '''
616 self.annotations = annotations
617 self.entity = entity
618 self.error = ErrorResult.from_json(error) if error else None
619
620
621
622 class AnnotationsGetResults(Type):
623 _toSchema = {'results': 'results'}
624 _toPy = {'results': 'results'}
625 def __init__(self, results=None, **unknown_fields):
626 '''
627 results : typing.Sequence[~AnnotationsGetResult]
628 '''
629 self.results = [AnnotationsGetResult.from_json(o) for o in results or []]
630
631
632
633 class AnnotationsSet(Type):
634 _toSchema = {'annotations': 'annotations'}
635 _toPy = {'annotations': 'annotations'}
636 def __init__(self, annotations=None, **unknown_fields):
637 '''
638 annotations : typing.Sequence[~EntityAnnotations]
639 '''
640 self.annotations = [EntityAnnotations.from_json(o) for o in annotations or []]
641
642
643
644 class ApplicationCharm(Type):
645 _toSchema = {'charm_modified_version': 'charm-modified-version', 'force_upgrade': 'force-upgrade', 'sha256': 'sha256', 'url': 'url'}
646 _toPy = {'charm-modified-version': 'charm_modified_version', 'force-upgrade': 'force_upgrade', 'sha256': 'sha256', 'url': 'url'}
647 def __init__(self, charm_modified_version=None, force_upgrade=None, sha256=None, url=None, **unknown_fields):
648 '''
649 charm_modified_version : int
650 force_upgrade : bool
651 sha256 : str
652 url : str
653 '''
654 self.charm_modified_version = charm_modified_version
655 self.force_upgrade = force_upgrade
656 self.sha256 = sha256
657 self.url = url
658
659
660
661 class ApplicationCharmActionsResult(Type):
662 _toSchema = {'actions': 'actions', 'application_tag': 'application-tag', 'error': 'error'}
663 _toPy = {'actions': 'actions', 'application-tag': 'application_tag', 'error': 'error'}
664 def __init__(self, actions=None, application_tag=None, error=None, **unknown_fields):
665 '''
666 actions : typing.Mapping[str, ~ActionSpec]
667 application_tag : str
668 error : Error
669 '''
670 self.actions = actions
671 self.application_tag = application_tag
672 self.error = Error.from_json(error) if error else None
673
674
675
676 class ApplicationCharmRelations(Type):
677 _toSchema = {'application': 'application'}
678 _toPy = {'application': 'application'}
679 def __init__(self, application=None, **unknown_fields):
680 '''
681 application : str
682 '''
683 self.application = application
684
685
686
687 class ApplicationCharmRelationsResults(Type):
688 _toSchema = {'charm_relations': 'charm-relations'}
689 _toPy = {'charm-relations': 'charm_relations'}
690 def __init__(self, charm_relations=None, **unknown_fields):
691 '''
692 charm_relations : typing.Sequence[str]
693 '''
694 self.charm_relations = charm_relations
695
696
697
698 class ApplicationCharmResult(Type):
699 _toSchema = {'error': 'error', 'result': 'result'}
700 _toPy = {'error': 'error', 'result': 'result'}
701 def __init__(self, error=None, result=None, **unknown_fields):
702 '''
703 error : Error
704 result : ApplicationCharm
705 '''
706 self.error = Error.from_json(error) if error else None
707 self.result = ApplicationCharm.from_json(result) if result else None
708
709
710
711 class ApplicationCharmResults(Type):
712 _toSchema = {'results': 'results'}
713 _toPy = {'results': 'results'}
714 def __init__(self, results=None, **unknown_fields):
715 '''
716 results : typing.Sequence[~ApplicationCharmResult]
717 '''
718 self.results = [ApplicationCharmResult.from_json(o) for o in results or []]
719
720
721
722 class ApplicationConfigSet(Type):
723 _toSchema = {'application': 'application', 'config': 'config'}
724 _toPy = {'application': 'application', 'config': 'config'}
725 def __init__(self, application=None, config=None, **unknown_fields):
726 '''
727 application : str
728 config : typing.Mapping[str, str]
729 '''
730 self.application = application
731 self.config = config
732
733
734
735 class ApplicationConfigSetArgs(Type):
736 _toSchema = {'args': 'Args'}
737 _toPy = {'Args': 'args'}
738 def __init__(self, args=None, **unknown_fields):
739 '''
740 args : typing.Sequence[~ApplicationConfigSet]
741 '''
742 self.args = [ApplicationConfigSet.from_json(o) for o in args or []]
743
744
745
746 class ApplicationConfigUnsetArgs(Type):
747 _toSchema = {'args': 'Args'}
748 _toPy = {'Args': 'args'}
749 def __init__(self, args=None, **unknown_fields):
750 '''
751 args : typing.Sequence[~ApplicationUnset]
752 '''
753 self.args = [ApplicationUnset.from_json(o) for o in args or []]
754
755
756
757 class ApplicationConstraint(Type):
758 _toSchema = {'constraints': 'constraints', 'error': 'error'}
759 _toPy = {'constraints': 'constraints', 'error': 'error'}
760 def __init__(self, constraints=None, error=None, **unknown_fields):
761 '''
762 constraints : Value
763 error : Error
764 '''
765 self.constraints = Value.from_json(constraints) if constraints else None
766 self.error = Error.from_json(error) if error else None
767
768
769
770 class ApplicationDeploy(Type):
771 _toSchema = {'application': 'application', 'attach_storage': 'attach-storage', 'channel': 'channel', 'charm_url': 'charm-url', 'config': 'config', 'config_yaml': 'config-yaml', 'constraints': 'constraints', 'devices': 'devices', 'endpoint_bindings': 'endpoint-bindings', 'num_units': 'num-units', 'placement': 'placement', 'policy': 'policy', 'resources': 'resources', 'series': 'series', 'storage': 'storage'}
772 _toPy = {'application': 'application', 'attach-storage': 'attach_storage', 'channel': 'channel', 'charm-url': 'charm_url', 'config': 'config', 'config-yaml': 'config_yaml', 'constraints': 'constraints', 'devices': 'devices', 'endpoint-bindings': 'endpoint_bindings', 'num-units': 'num_units', 'placement': 'placement', 'policy': 'policy', 'resources': 'resources', 'series': 'series', 'storage': 'storage'}
773 def __init__(self, application=None, attach_storage=None, channel=None, charm_url=None, config=None, config_yaml=None, constraints=None, devices=None, endpoint_bindings=None, num_units=None, placement=None, policy=None, resources=None, series=None, storage=None, **unknown_fields):
774 '''
775 application : str
776 attach_storage : typing.Sequence[str]
777 channel : str
778 charm_url : str
779 config : typing.Mapping[str, str]
780 config_yaml : str
781 constraints : Value
782 devices : typing.Mapping[str, ~Constraints]
783 endpoint_bindings : typing.Mapping[str, str]
784 num_units : int
785 placement : typing.Sequence[~Placement]
786 policy : str
787 resources : typing.Mapping[str, str]
788 series : str
789 storage : typing.Mapping[str, ~Constraints]
790 '''
791 self.application = application
792 self.attach_storage = attach_storage
793 self.channel = channel
794 self.charm_url = charm_url
795 self.config = config
796 self.config_yaml = config_yaml
797 self.constraints = Value.from_json(constraints) if constraints else None
798 self.devices = devices
799 self.endpoint_bindings = endpoint_bindings
800 self.num_units = num_units
801 self.placement = [Placement.from_json(o) for o in placement or []]
802 self.policy = policy
803 self.resources = resources
804 self.series = series
805 self.storage = storage
806
807
808
809 class ApplicationDestroy(Type):
810 _toSchema = {'application': 'application'}
811 _toPy = {'application': 'application'}
812 def __init__(self, application=None, **unknown_fields):
813 '''
814 application : str
815 '''
816 self.application = application
817
818
819
820 class ApplicationExpose(Type):
821 _toSchema = {'application': 'application'}
822 _toPy = {'application': 'application'}
823 def __init__(self, application=None, **unknown_fields):
824 '''
825 application : str
826 '''
827 self.application = application
828
829
830
831 class ApplicationGet(Type):
832 _toSchema = {'application': 'application'}
833 _toPy = {'application': 'application'}
834 def __init__(self, application=None, **unknown_fields):
835 '''
836 application : str
837 '''
838 self.application = application
839
840
841
842 class ApplicationGetConfigResults(Type):
843 _toSchema = {'results': 'Results'}
844 _toPy = {'Results': 'results'}
845 def __init__(self, results=None, **unknown_fields):
846 '''
847 results : typing.Sequence[~ConfigResult]
848 '''
849 self.results = [ConfigResult.from_json(o) for o in results or []]
850
851
852
853 class ApplicationGetConstraintsResults(Type):
854 _toSchema = {'results': 'results'}
855 _toPy = {'results': 'results'}
856 def __init__(self, results=None, **unknown_fields):
857 '''
858 results : typing.Sequence[~ApplicationConstraint]
859 '''
860 self.results = [ApplicationConstraint.from_json(o) for o in results or []]
861
862
863
864 class ApplicationGetResults(Type):
865 _toSchema = {'application': 'application', 'charm': 'charm', 'config': 'config', 'constraints': 'constraints', 'series': 'series'}
866 _toPy = {'application': 'application', 'charm': 'charm', 'config': 'config', 'constraints': 'constraints', 'series': 'series'}
867 def __init__(self, application=None, charm=None, config=None, constraints=None, series=None, **unknown_fields):
868 '''
869 application : str
870 charm : str
871 config : typing.Mapping[str, typing.Any]
872 constraints : Value
873 series : str
874 '''
875 self.application = application
876 self.charm = charm
877 self.config = config
878 self.constraints = Value.from_json(constraints) if constraints else None
879 self.series = series
880
881
882
883 class ApplicationMetricCredential(Type):
884 _toSchema = {'application': 'application', 'metrics_credentials': 'metrics-credentials'}
885 _toPy = {'application': 'application', 'metrics-credentials': 'metrics_credentials'}
886 def __init__(self, application=None, metrics_credentials=None, **unknown_fields):
887 '''
888 application : str
889 metrics_credentials : typing.Sequence[int]
890 '''
891 self.application = application
892 self.metrics_credentials = metrics_credentials
893
894
895
896 class ApplicationMetricCredentials(Type):
897 _toSchema = {'creds': 'creds'}
898 _toPy = {'creds': 'creds'}
899 def __init__(self, creds=None, **unknown_fields):
900 '''
901 creds : typing.Sequence[~ApplicationMetricCredential]
902 '''
903 self.creds = [ApplicationMetricCredential.from_json(o) for o in creds or []]
904
905
906
907 class ApplicationOffer(Type):
908 _toSchema = {'access': 'access', 'application_description': 'application-description', 'bindings': 'bindings', 'endpoints': 'endpoints', 'offer_name': 'offer-name', 'offer_url': 'offer-url', 'source_model_tag': 'source-model-tag', 'spaces': 'spaces'}
909 _toPy = {'access': 'access', 'application-description': 'application_description', 'bindings': 'bindings', 'endpoints': 'endpoints', 'offer-name': 'offer_name', 'offer-url': 'offer_url', 'source-model-tag': 'source_model_tag', 'spaces': 'spaces'}
910 def __init__(self, access=None, application_description=None, bindings=None, endpoints=None, offer_name=None, offer_url=None, source_model_tag=None, spaces=None, **unknown_fields):
911 '''
912 access : str
913 application_description : str
914 bindings : typing.Mapping[str, str]
915 endpoints : typing.Sequence[~RemoteEndpoint]
916 offer_name : str
917 offer_url : str
918 source_model_tag : str
919 spaces : typing.Sequence[~RemoteSpace]
920 '''
921 self.access = access
922 self.application_description = application_description
923 self.bindings = bindings
924 self.endpoints = [RemoteEndpoint.from_json(o) for o in endpoints or []]
925 self.offer_name = offer_name
926 self.offer_url = offer_url
927 self.source_model_tag = source_model_tag
928 self.spaces = [RemoteSpace.from_json(o) for o in spaces or []]
929
930
931
932 class ApplicationOfferAdminDetails(Type):
933 _toSchema = {'application_name': 'application-name', 'applicationofferdetails': 'ApplicationOfferDetails', 'charm_url': 'charm-url', 'connections': 'connections'}
934 _toPy = {'ApplicationOfferDetails': 'applicationofferdetails', 'application-name': 'application_name', 'charm-url': 'charm_url', 'connections': 'connections'}
935 def __init__(self, applicationofferdetails=None, application_name=None, charm_url=None, connections=None, **unknown_fields):
936 '''
937 applicationofferdetails : ApplicationOfferDetails
938 application_name : str
939 charm_url : str
940 connections : typing.Sequence[~OfferConnection]
941 '''
942 self.applicationofferdetails = ApplicationOfferDetails.from_json(applicationofferdetails) if applicationofferdetails else None
943 self.application_name = application_name
944 self.charm_url = charm_url
945 self.connections = [OfferConnection.from_json(o) for o in connections or []]
946
947
948
949 class ApplicationOfferDetails(Type):
950 _toSchema = {'application_description': 'application-description', 'bindings': 'bindings', 'endpoints': 'endpoints', 'offer_name': 'offer-name', 'offer_url': 'offer-url', 'offer_uuid': 'offer-uuid', 'source_model_tag': 'source-model-tag', 'spaces': 'spaces', 'users': 'users'}
951 _toPy = {'application-description': 'application_description', 'bindings': 'bindings', 'endpoints': 'endpoints', 'offer-name': 'offer_name', 'offer-url': 'offer_url', 'offer-uuid': 'offer_uuid', 'source-model-tag': 'source_model_tag', 'spaces': 'spaces', 'users': 'users'}
952 def __init__(self, application_description=None, bindings=None, endpoints=None, offer_name=None, offer_url=None, offer_uuid=None, source_model_tag=None, spaces=None, users=None, **unknown_fields):
953 '''
954 application_description : str
955 bindings : typing.Mapping[str, str]
956 endpoints : typing.Sequence[~RemoteEndpoint]
957 offer_name : str
958 offer_url : str
959 offer_uuid : str
960 source_model_tag : str
961 spaces : typing.Sequence[~RemoteSpace]
962 users : typing.Sequence[~OfferUserDetails]
963 '''
964 self.application_description = application_description
965 self.bindings = bindings
966 self.endpoints = [RemoteEndpoint.from_json(o) for o in endpoints or []]
967 self.offer_name = offer_name
968 self.offer_url = offer_url
969 self.offer_uuid = offer_uuid
970 self.source_model_tag = source_model_tag
971 self.spaces = [RemoteSpace.from_json(o) for o in spaces or []]
972 self.users = [OfferUserDetails.from_json(o) for o in users or []]
973
974
975
976 class ApplicationOfferResult(Type):
977 _toSchema = {'error': 'error', 'result': 'result'}
978 _toPy = {'error': 'error', 'result': 'result'}
979 def __init__(self, error=None, result=None, **unknown_fields):
980 '''
981 error : Error
982 result : ApplicationOfferAdminDetails
983 '''
984 self.error = Error.from_json(error) if error else None
985 self.result = ApplicationOfferAdminDetails.from_json(result) if result else None
986
987
988
989 class ApplicationOfferStatus(Type):
990 _toSchema = {'active_connected_count': 'active-connected-count', 'application_name': 'application-name', 'charm': 'charm', 'endpoints': 'endpoints', 'err': 'err', 'offer_name': 'offer-name', 'total_connected_count': 'total-connected-count'}
991 _toPy = {'active-connected-count': 'active_connected_count', 'application-name': 'application_name', 'charm': 'charm', 'endpoints': 'endpoints', 'err': 'err', 'offer-name': 'offer_name', 'total-connected-count': 'total_connected_count'}
992 def __init__(self, active_connected_count=None, application_name=None, charm=None, endpoints=None, err=None, offer_name=None, total_connected_count=None, **unknown_fields):
993 '''
994 active_connected_count : int
995 application_name : str
996 charm : str
997 endpoints : typing.Mapping[str, ~RemoteEndpoint]
998 err : typing.Mapping[str, typing.Any]
999 offer_name : str
1000 total_connected_count : int
1001 '''
1002 self.active_connected_count = active_connected_count
1003 self.application_name = application_name
1004 self.charm = charm
1005 self.endpoints = endpoints
1006 self.err = err
1007 self.offer_name = offer_name
1008 self.total_connected_count = total_connected_count
1009
1010
1011
1012 class ApplicationOffersResults(Type):
1013 _toSchema = {'results': 'results'}
1014 _toPy = {'results': 'results'}
1015 def __init__(self, results=None, **unknown_fields):
1016 '''
1017 results : typing.Sequence[~ApplicationOfferResult]
1018 '''
1019 self.results = [ApplicationOfferResult.from_json(o) for o in results or []]
1020
1021
1022
1023 class ApplicationRelationsChange(Type):
1024 _toSchema = {'changed': 'changed', 'removed': 'removed'}
1025 _toPy = {'changed': 'changed', 'removed': 'removed'}
1026 def __init__(self, changed=None, removed=None, **unknown_fields):
1027 '''
1028 changed : typing.Sequence[~RelationChange]
1029 removed : typing.Sequence[int]
1030 '''
1031 self.changed = [RelationChange.from_json(o) for o in changed or []]
1032 self.removed = removed
1033
1034
1035
1036 class ApplicationRelationsWatchResult(Type):
1037 _toSchema = {'applicationrelationswatcherid': 'ApplicationRelationsWatcherId', 'changes': 'changes', 'error': 'error'}
1038 _toPy = {'ApplicationRelationsWatcherId': 'applicationrelationswatcherid', 'changes': 'changes', 'error': 'error'}
1039 def __init__(self, applicationrelationswatcherid=None, changes=None, error=None, **unknown_fields):
1040 '''
1041 applicationrelationswatcherid : str
1042 changes : ApplicationRelationsChange
1043 error : Error
1044 '''
1045 self.applicationrelationswatcherid = applicationrelationswatcherid
1046 self.changes = ApplicationRelationsChange.from_json(changes) if changes else None
1047 self.error = Error.from_json(error) if error else None
1048
1049
1050
1051 class ApplicationSet(Type):
1052 _toSchema = {'application': 'application', 'options': 'options'}
1053 _toPy = {'application': 'application', 'options': 'options'}
1054 def __init__(self, application=None, options=None, **unknown_fields):
1055 '''
1056 application : str
1057 options : typing.Mapping[str, str]
1058 '''
1059 self.application = application
1060 self.options = options
1061
1062
1063
1064 class ApplicationSetCharm(Type):
1065 _toSchema = {'application': 'application', 'channel': 'channel', 'charm_url': 'charm-url', 'config_settings': 'config-settings', 'config_settings_yaml': 'config-settings-yaml', 'force_series': 'force-series', 'force_units': 'force-units', 'resource_ids': 'resource-ids', 'storage_constraints': 'storage-constraints'}
1066 _toPy = {'application': 'application', 'channel': 'channel', 'charm-url': 'charm_url', 'config-settings': 'config_settings', 'config-settings-yaml': 'config_settings_yaml', 'force-series': 'force_series', 'force-units': 'force_units', 'resource-ids': 'resource_ids', 'storage-constraints': 'storage_constraints'}
1067 def __init__(self, application=None, channel=None, charm_url=None, config_settings=None, config_settings_yaml=None, force_series=None, force_units=None, resource_ids=None, storage_constraints=None, **unknown_fields):
1068 '''
1069 application : str
1070 channel : str
1071 charm_url : str
1072 config_settings : typing.Mapping[str, str]
1073 config_settings_yaml : str
1074 force_series : bool
1075 force_units : bool
1076 resource_ids : typing.Mapping[str, str]
1077 storage_constraints : typing.Mapping[str, ~StorageConstraints]
1078 '''
1079 self.application = application
1080 self.channel = channel
1081 self.charm_url = charm_url
1082 self.config_settings = config_settings
1083 self.config_settings_yaml = config_settings_yaml
1084 self.force_series = force_series
1085 self.force_units = force_units
1086 self.resource_ids = resource_ids
1087 self.storage_constraints = storage_constraints
1088
1089
1090
1091 class ApplicationSetCharmProfile(Type):
1092 _toSchema = {'application': 'application', 'charm_url': 'charm-url'}
1093 _toPy = {'application': 'application', 'charm-url': 'charm_url'}
1094 def __init__(self, application=None, charm_url=None, **unknown_fields):
1095 '''
1096 application : str
1097 charm_url : str
1098 '''
1099 self.application = application
1100 self.charm_url = charm_url
1101
1102
1103
1104 class ApplicationStatus(Type):
1105 _toSchema = {'can_upgrade_to': 'can-upgrade-to', 'charm': 'charm', 'err': 'err', 'exposed': 'exposed', 'life': 'life', 'meter_statuses': 'meter-statuses', 'relations': 'relations', 'series': 'series', 'status': 'status', 'subordinate_to': 'subordinate-to', 'units': 'units', 'workload_version': 'workload-version'}
1106 _toPy = {'can-upgrade-to': 'can_upgrade_to', 'charm': 'charm', 'err': 'err', 'exposed': 'exposed', 'life': 'life', 'meter-statuses': 'meter_statuses', 'relations': 'relations', 'series': 'series', 'status': 'status', 'subordinate-to': 'subordinate_to', 'units': 'units', 'workload-version': 'workload_version'}
1107 def __init__(self, can_upgrade_to=None, charm=None, err=None, exposed=None, life=None, meter_statuses=None, relations=None, series=None, status=None, subordinate_to=None, units=None, workload_version=None, **unknown_fields):
1108 '''
1109 can_upgrade_to : str
1110 charm : str
1111 err : typing.Mapping[str, typing.Any]
1112 exposed : bool
1113 life : str
1114 meter_statuses : typing.Mapping[str, ~MeterStatus]
1115 relations : typing.Sequence[str]
1116 series : str
1117 status : DetailedStatus
1118 subordinate_to : typing.Sequence[str]
1119 units : typing.Mapping[str, ~UnitStatus]
1120 workload_version : str
1121 '''
1122 self.can_upgrade_to = can_upgrade_to
1123 self.charm = charm
1124 self.err = err
1125 self.exposed = exposed
1126 self.life = life
1127 self.meter_statuses = meter_statuses
1128 self.relations = relations
1129 self.series = series
1130 self.status = DetailedStatus.from_json(status) if status else None
1131 self.subordinate_to = subordinate_to
1132 self.units = units
1133 self.workload_version = workload_version
1134
1135
1136
1137 class ApplicationStatusResult(Type):
1138 _toSchema = {'application': 'application', 'error': 'error', 'units': 'units'}
1139 _toPy = {'application': 'application', 'error': 'error', 'units': 'units'}
1140 def __init__(self, application=None, error=None, units=None, **unknown_fields):
1141 '''
1142 application : StatusResult
1143 error : Error
1144 units : typing.Mapping[str, ~StatusResult]
1145 '''
1146 self.application = StatusResult.from_json(application) if application else None
1147 self.error = Error.from_json(error) if error else None
1148 self.units = units
1149
1150
1151
1152 class ApplicationStatusResults(Type):
1153 _toSchema = {'results': 'results'}
1154 _toPy = {'results': 'results'}
1155 def __init__(self, results=None, **unknown_fields):
1156 '''
1157 results : typing.Sequence[~ApplicationStatusResult]
1158 '''
1159 self.results = [ApplicationStatusResult.from_json(o) for o in results or []]
1160
1161
1162
1163 class ApplicationTag(Type):
1164 _toSchema = {'name': 'Name'}
1165 _toPy = {'Name': 'name'}
1166 def __init__(self, name=None, **unknown_fields):
1167 '''
1168 name : str
1169 '''
1170 self.name = name
1171
1172
1173
1174 class ApplicationURLs(Type):
1175 _toSchema = {'application_urls': 'application-urls'}
1176 _toPy = {'application-urls': 'application_urls'}
1177 def __init__(self, application_urls=None, **unknown_fields):
1178 '''
1179 application_urls : typing.Sequence[str]
1180 '''
1181 self.application_urls = application_urls
1182
1183
1184
1185 class ApplicationUnexpose(Type):
1186 _toSchema = {'application': 'application'}
1187 _toPy = {'application': 'application'}
1188 def __init__(self, application=None, **unknown_fields):
1189 '''
1190 application : str
1191 '''
1192 self.application = application
1193
1194
1195
1196 class ApplicationUnitParams(Type):
1197 _toSchema = {'address': 'address', 'data': 'data', 'filesystem_info': 'filesystem-info', 'info': 'info', 'ports': 'ports', 'provider_id': 'provider-id', 'status': 'status', 'unit_tag': 'unit-tag'}
1198 _toPy = {'address': 'address', 'data': 'data', 'filesystem-info': 'filesystem_info', 'info': 'info', 'ports': 'ports', 'provider-id': 'provider_id', 'status': 'status', 'unit-tag': 'unit_tag'}
1199 def __init__(self, address=None, data=None, filesystem_info=None, info=None, ports=None, provider_id=None, status=None, unit_tag=None, **unknown_fields):
1200 '''
1201 address : str
1202 data : typing.Mapping[str, typing.Any]
1203 filesystem_info : typing.Sequence[~KubernetesFilesystemInfo]
1204 info : str
1205 ports : typing.Sequence[str]
1206 provider_id : str
1207 status : str
1208 unit_tag : str
1209 '''
1210 self.address = address
1211 self.data = data
1212 self.filesystem_info = [KubernetesFilesystemInfo.from_json(o) for o in filesystem_info or []]
1213 self.info = info
1214 self.ports = ports
1215 self.provider_id = provider_id
1216 self.status = status
1217 self.unit_tag = unit_tag
1218
1219
1220
1221 class ApplicationUnset(Type):
1222 _toSchema = {'application': 'application', 'options': 'options'}
1223 _toPy = {'application': 'application', 'options': 'options'}
1224 def __init__(self, application=None, options=None, **unknown_fields):
1225 '''
1226 application : str
1227 options : typing.Sequence[str]
1228 '''
1229 self.application = application
1230 self.options = options
1231
1232
1233
1234 class ApplicationUpdate(Type):
1235 _toSchema = {'application': 'application', 'charm_url': 'charm-url', 'constraints': 'constraints', 'force_charm_url': 'force-charm-url', 'force_series': 'force-series', 'min_units': 'min-units', 'settings': 'settings', 'settings_yaml': 'settings-yaml'}
1236 _toPy = {'application': 'application', 'charm-url': 'charm_url', 'constraints': 'constraints', 'force-charm-url': 'force_charm_url', 'force-series': 'force_series', 'min-units': 'min_units', 'settings': 'settings', 'settings-yaml': 'settings_yaml'}
1237 def __init__(self, application=None, charm_url=None, constraints=None, force_charm_url=None, force_series=None, min_units=None, settings=None, settings_yaml=None, **unknown_fields):
1238 '''
1239 application : str
1240 charm_url : str
1241 constraints : Value
1242 force_charm_url : bool
1243 force_series : bool
1244 min_units : int
1245 settings : typing.Mapping[str, str]
1246 settings_yaml : str
1247 '''
1248 self.application = application
1249 self.charm_url = charm_url
1250 self.constraints = Value.from_json(constraints) if constraints else None
1251 self.force_charm_url = force_charm_url
1252 self.force_series = force_series
1253 self.min_units = min_units
1254 self.settings = settings
1255 self.settings_yaml = settings_yaml
1256
1257
1258
1259 class ApplicationsCharmActionsResults(Type):
1260 _toSchema = {'results': 'results'}
1261 _toPy = {'results': 'results'}
1262 def __init__(self, results=None, **unknown_fields):
1263 '''
1264 results : typing.Sequence[~ApplicationCharmActionsResult]
1265 '''
1266 self.results = [ApplicationCharmActionsResult.from_json(o) for o in results or []]
1267
1268
1269
1270 class ApplicationsDeploy(Type):
1271 _toSchema = {'applications': 'applications'}
1272 _toPy = {'applications': 'applications'}
1273 def __init__(self, applications=None, **unknown_fields):
1274 '''
1275 applications : typing.Sequence[~ApplicationDeploy]
1276 '''
1277 self.applications = [ApplicationDeploy.from_json(o) for o in applications or []]
1278
1279
1280
1281 class BackupsCreateArgs(Type):
1282 _toSchema = {'notes': 'notes'}
1283 _toPy = {'notes': 'notes'}
1284 def __init__(self, notes=None, **unknown_fields):
1285 '''
1286 notes : str
1287 '''
1288 self.notes = notes
1289
1290
1291
1292 class BackupsInfoArgs(Type):
1293 _toSchema = {'id_': 'id'}
1294 _toPy = {'id': 'id_'}
1295 def __init__(self, id_=None, **unknown_fields):
1296 '''
1297 id_ : str
1298 '''
1299 self.id_ = id_
1300
1301
1302
1303 class BackupsListArgs(Type):
1304 _toSchema = {}
1305 _toPy = {}
1306 def __init__(self, **unknown_fields):
1307 '''
1308
1309 '''
1310 pass
1311
1312
1313
1314 class BackupsListResult(Type):
1315 _toSchema = {'list_': 'list'}
1316 _toPy = {'list': 'list_'}
1317 def __init__(self, list_=None, **unknown_fields):
1318 '''
1319 list_ : typing.Sequence[~BackupsMetadataResult]
1320 '''
1321 self.list_ = [BackupsMetadataResult.from_json(o) for o in list_ or []]
1322
1323
1324
1325 class BackupsMetadataResult(Type):
1326 _toSchema = {'ca_cert': 'ca-cert', 'ca_private_key': 'ca-private-key', 'checksum': 'checksum', 'checksum_format': 'checksum-format', 'finished': 'finished', 'hostname': 'hostname', 'id_': 'id', 'machine': 'machine', 'model': 'model', 'notes': 'notes', 'series': 'series', 'size': 'size', 'started': 'started', 'stored': 'stored', 'version': 'version'}
1327 _toPy = {'ca-cert': 'ca_cert', 'ca-private-key': 'ca_private_key', 'checksum': 'checksum', 'checksum-format': 'checksum_format', 'finished': 'finished', 'hostname': 'hostname', 'id': 'id_', 'machine': 'machine', 'model': 'model', 'notes': 'notes', 'series': 'series', 'size': 'size', 'started': 'started', 'stored': 'stored', 'version': 'version'}
1328 def __init__(self, ca_cert=None, ca_private_key=None, checksum=None, checksum_format=None, finished=None, hostname=None, id_=None, machine=None, model=None, notes=None, series=None, size=None, started=None, stored=None, version=None, **unknown_fields):
1329 '''
1330 ca_cert : str
1331 ca_private_key : str
1332 checksum : str
1333 checksum_format : str
1334 finished : str
1335 hostname : str
1336 id_ : str
1337 machine : str
1338 model : str
1339 notes : str
1340 series : str
1341 size : int
1342 started : str
1343 stored : str
1344 version : Number
1345 '''
1346 self.ca_cert = ca_cert
1347 self.ca_private_key = ca_private_key
1348 self.checksum = checksum
1349 self.checksum_format = checksum_format
1350 self.finished = finished
1351 self.hostname = hostname
1352 self.id_ = id_
1353 self.machine = machine
1354 self.model = model
1355 self.notes = notes
1356 self.series = series
1357 self.size = size
1358 self.started = started
1359 self.stored = stored
1360 self.version = Number.from_json(version) if version else None
1361
1362
1363
1364 class BackupsRemoveArgs(Type):
1365 _toSchema = {'id_': 'id'}
1366 _toPy = {'id': 'id_'}
1367 def __init__(self, id_=None, **unknown_fields):
1368 '''
1369 id_ : str
1370 '''
1371 self.id_ = id_
1372
1373
1374
1375 class Binary(Type):
1376 _toSchema = {'arch': 'Arch', 'number': 'Number', 'series': 'Series'}
1377 _toPy = {'Arch': 'arch', 'Number': 'number', 'Series': 'series'}
1378 def __init__(self, arch=None, number=None, series=None, **unknown_fields):
1379 '''
1380 arch : str
1381 number : Number
1382 series : str
1383 '''
1384 self.arch = arch
1385 self.number = Number.from_json(number) if number else None
1386 self.series = series
1387
1388
1389
1390 class Block(Type):
1391 _toSchema = {'id_': 'id', 'message': 'message', 'tag': 'tag', 'type_': 'type'}
1392 _toPy = {'id': 'id_', 'message': 'message', 'tag': 'tag', 'type': 'type_'}
1393 def __init__(self, id_=None, message=None, tag=None, type_=None, **unknown_fields):
1394 '''
1395 id_ : str
1396 message : str
1397 tag : str
1398 type_ : str
1399 '''
1400 self.id_ = id_
1401 self.message = message
1402 self.tag = tag
1403 self.type_ = type_
1404
1405
1406
1407 class BlockDevice(Type):
1408 _toSchema = {'busaddress': 'BusAddress', 'devicelinks': 'DeviceLinks', 'devicename': 'DeviceName', 'filesystemtype': 'FilesystemType', 'hardwareid': 'HardwareId', 'inuse': 'InUse', 'label': 'Label', 'mountpoint': 'MountPoint', 'size': 'Size', 'uuid': 'UUID'}
1409 _toPy = {'BusAddress': 'busaddress', 'DeviceLinks': 'devicelinks', 'DeviceName': 'devicename', 'FilesystemType': 'filesystemtype', 'HardwareId': 'hardwareid', 'InUse': 'inuse', 'Label': 'label', 'MountPoint': 'mountpoint', 'Size': 'size', 'UUID': 'uuid'}
1410 def __init__(self, busaddress=None, devicelinks=None, devicename=None, filesystemtype=None, hardwareid=None, inuse=None, label=None, mountpoint=None, size=None, uuid=None, **unknown_fields):
1411 '''
1412 busaddress : str
1413 devicelinks : typing.Sequence[str]
1414 devicename : str
1415 filesystemtype : str
1416 hardwareid : str
1417 inuse : bool
1418 label : str
1419 mountpoint : str
1420 size : int
1421 uuid : str
1422 '''
1423 self.busaddress = busaddress
1424 self.devicelinks = devicelinks
1425 self.devicename = devicename
1426 self.filesystemtype = filesystemtype
1427 self.hardwareid = hardwareid
1428 self.inuse = inuse
1429 self.label = label
1430 self.mountpoint = mountpoint
1431 self.size = size
1432 self.uuid = uuid
1433
1434
1435
1436 class BlockDeviceResult(Type):
1437 _toSchema = {'error': 'error', 'result': 'result'}
1438 _toPy = {'error': 'error', 'result': 'result'}
1439 def __init__(self, error=None, result=None, **unknown_fields):
1440 '''
1441 error : Error
1442 result : BlockDevice
1443 '''
1444 self.error = Error.from_json(error) if error else None
1445 self.result = BlockDevice.from_json(result) if result else None
1446
1447
1448
1449 class BlockDeviceResults(Type):
1450 _toSchema = {'results': 'results'}
1451 _toPy = {'results': 'results'}
1452 def __init__(self, results=None, **unknown_fields):
1453 '''
1454 results : typing.Sequence[~BlockDeviceResult]
1455 '''
1456 self.results = [BlockDeviceResult.from_json(o) for o in results or []]
1457
1458
1459
1460 class BlockResult(Type):
1461 _toSchema = {'error': 'error', 'result': 'result'}
1462 _toPy = {'error': 'error', 'result': 'result'}
1463 def __init__(self, error=None, result=None, **unknown_fields):
1464 '''
1465 error : Error
1466 result : Block
1467 '''
1468 self.error = Error.from_json(error) if error else None
1469 self.result = Block.from_json(result) if result else None
1470
1471
1472
1473 class BlockResults(Type):
1474 _toSchema = {'results': 'results'}
1475 _toPy = {'results': 'results'}
1476 def __init__(self, results=None, **unknown_fields):
1477 '''
1478 results : typing.Sequence[~BlockResult]
1479 '''
1480 self.results = [BlockResult.from_json(o) for o in results or []]
1481
1482
1483
1484 class BlockSwitchParams(Type):
1485 _toSchema = {'message': 'message', 'type_': 'type'}
1486 _toPy = {'message': 'message', 'type': 'type_'}
1487 def __init__(self, message=None, type_=None, **unknown_fields):
1488 '''
1489 message : str
1490 type_ : str
1491 '''
1492 self.message = message
1493 self.type_ = type_
1494
1495
1496
1497 class BoolResult(Type):
1498 _toSchema = {'error': 'error', 'result': 'result'}
1499 _toPy = {'error': 'error', 'result': 'result'}
1500 def __init__(self, error=None, result=None, **unknown_fields):
1501 '''
1502 error : Error
1503 result : bool
1504 '''
1505 self.error = Error.from_json(error) if error else None
1506 self.result = result
1507
1508
1509
1510 class BoolResults(Type):
1511 _toSchema = {'results': 'results'}
1512 _toPy = {'results': 'results'}
1513 def __init__(self, results=None, **unknown_fields):
1514 '''
1515 results : typing.Sequence[~BoolResult]
1516 '''
1517 self.results = [BoolResult.from_json(o) for o in results or []]
1518
1519
1520
1521 class BulkImportStorageParams(Type):
1522 _toSchema = {'storage': 'storage'}
1523 _toPy = {'storage': 'storage'}
1524 def __init__(self, storage=None, **unknown_fields):
1525 '''
1526 storage : typing.Sequence[~ImportStorageParams]
1527 '''
1528 self.storage = [ImportStorageParams.from_json(o) for o in storage or []]
1529
1530
1531
1532 class BundleChange(Type):
1533 _toSchema = {'args': 'args', 'id_': 'id', 'method': 'method', 'requires': 'requires'}
1534 _toPy = {'args': 'args', 'id': 'id_', 'method': 'method', 'requires': 'requires'}
1535 def __init__(self, args=None, id_=None, method=None, requires=None, **unknown_fields):
1536 '''
1537 args : typing.Sequence[typing.Any]
1538 id_ : str
1539 method : str
1540 requires : typing.Sequence[str]
1541 '''
1542 self.args = args
1543 self.id_ = id_
1544 self.method = method
1545 self.requires = requires
1546
1547
1548
1549 class BundleChangesParams(Type):
1550 _toSchema = {'yaml': 'yaml'}
1551 _toPy = {'yaml': 'yaml'}
1552 def __init__(self, yaml=None, **unknown_fields):
1553 '''
1554 yaml : str
1555 '''
1556 self.yaml = yaml
1557
1558
1559
1560 class BundleChangesResults(Type):
1561 _toSchema = {'changes': 'changes', 'errors': 'errors'}
1562 _toPy = {'changes': 'changes', 'errors': 'errors'}
1563 def __init__(self, changes=None, errors=None, **unknown_fields):
1564 '''
1565 changes : typing.Sequence[~BundleChange]
1566 errors : typing.Sequence[str]
1567 '''
1568 self.changes = [BundleChange.from_json(o) for o in changes or []]
1569 self.errors = errors
1570
1571
1572
1573 class BytesResult(Type):
1574 _toSchema = {'result': 'result'}
1575 _toPy = {'result': 'result'}
1576 def __init__(self, result=None, **unknown_fields):
1577 '''
1578 result : typing.Sequence[int]
1579 '''
1580 self.result = result
1581
1582
1583
1584 class ChangeModelCredentialParams(Type):
1585 _toSchema = {'credential_tag': 'credential-tag', 'model_tag': 'model-tag'}
1586 _toPy = {'credential-tag': 'credential_tag', 'model-tag': 'model_tag'}
1587 def __init__(self, credential_tag=None, model_tag=None, **unknown_fields):
1588 '''
1589 credential_tag : str
1590 model_tag : str
1591 '''
1592 self.credential_tag = credential_tag
1593 self.model_tag = model_tag
1594
1595
1596
1597 class ChangeModelCredentialsParams(Type):
1598 _toSchema = {'model_credentials': 'model-credentials'}
1599 _toPy = {'model-credentials': 'model_credentials'}
1600 def __init__(self, model_credentials=None, **unknown_fields):
1601 '''
1602 model_credentials : typing.Sequence[~ChangeModelCredentialParams]
1603 '''
1604 self.model_credentials = [ChangeModelCredentialParams.from_json(o) for o in model_credentials or []]
1605
1606
1607
1608 class CharmActionSpec(Type):
1609 _toSchema = {'description': 'description', 'params': 'params'}
1610 _toPy = {'description': 'description', 'params': 'params'}
1611 def __init__(self, description=None, params=None, **unknown_fields):
1612 '''
1613 description : str
1614 params : typing.Mapping[str, typing.Any]
1615 '''
1616 self.description = description
1617 self.params = params
1618
1619
1620
1621 class CharmActions(Type):
1622 _toSchema = {'specs': 'specs'}
1623 _toPy = {'specs': 'specs'}
1624 def __init__(self, specs=None, **unknown_fields):
1625 '''
1626 specs : typing.Mapping[str, ~CharmActionSpec]
1627 '''
1628 self.specs = specs
1629
1630
1631
1632 class CharmDevice(Type):
1633 _toSchema = {'countmax': 'CountMax', 'countmin': 'CountMin', 'description': 'Description', 'name': 'Name', 'type_': 'Type'}
1634 _toPy = {'CountMax': 'countmax', 'CountMin': 'countmin', 'Description': 'description', 'Name': 'name', 'Type': 'type_'}
1635 def __init__(self, countmax=None, countmin=None, description=None, name=None, type_=None, **unknown_fields):
1636 '''
1637 countmax : int
1638 countmin : int
1639 description : str
1640 name : str
1641 type_ : str
1642 '''
1643 self.countmax = countmax
1644 self.countmin = countmin
1645 self.description = description
1646 self.name = name
1647 self.type_ = type_
1648
1649
1650
1651 class CharmInfo(Type):
1652 _toSchema = {'actions': 'actions', 'config': 'config', 'meta': 'meta', 'metrics': 'metrics', 'revision': 'revision', 'url': 'url'}
1653 _toPy = {'actions': 'actions', 'config': 'config', 'meta': 'meta', 'metrics': 'metrics', 'revision': 'revision', 'url': 'url'}
1654 def __init__(self, actions=None, config=None, meta=None, metrics=None, revision=None, url=None, **unknown_fields):
1655 '''
1656 actions : CharmActions
1657 config : typing.Mapping[str, ~CharmOption]
1658 meta : CharmMeta
1659 metrics : CharmMetrics
1660 revision : int
1661 url : str
1662 '''
1663 self.actions = CharmActions.from_json(actions) if actions else None
1664 self.config = config
1665 self.meta = CharmMeta.from_json(meta) if meta else None
1666 self.metrics = CharmMetrics.from_json(metrics) if metrics else None
1667 self.revision = revision
1668 self.url = url
1669
1670
1671
1672 class CharmLXDProfile(Type):
1673 _toSchema = {'config': 'config', 'description': 'description', 'devices': 'devices'}
1674 _toPy = {'config': 'config', 'description': 'description', 'devices': 'devices'}
1675 def __init__(self, config=None, description=None, devices=None, **unknown_fields):
1676 '''
1677 config : typing.Mapping[str, str]
1678 description : str
1679 devices : typing.Mapping[str, typing.Any]
1680 '''
1681 self.config = config
1682 self.description = description
1683 self.devices = devices
1684
1685
1686
1687 class CharmMeta(Type):
1688 _toSchema = {'categories': 'categories', 'description': 'description', 'extra_bindings': 'extra-bindings', 'min_juju_version': 'min-juju-version', 'name': 'name', 'payload_classes': 'payload-classes', 'peers': 'peers', 'provides': 'provides', 'requires': 'requires', 'resources': 'resources', 'series': 'series', 'storage': 'storage', 'subordinate': 'subordinate', 'summary': 'summary', 'tags': 'tags', 'terms': 'terms'}
1689 _toPy = {'categories': 'categories', 'description': 'description', 'extra-bindings': 'extra_bindings', 'min-juju-version': 'min_juju_version', 'name': 'name', 'payload-classes': 'payload_classes', 'peers': 'peers', 'provides': 'provides', 'requires': 'requires', 'resources': 'resources', 'series': 'series', 'storage': 'storage', 'subordinate': 'subordinate', 'summary': 'summary', 'tags': 'tags', 'terms': 'terms'}
1690 def __init__(self, categories=None, description=None, extra_bindings=None, min_juju_version=None, name=None, payload_classes=None, peers=None, provides=None, requires=None, resources=None, series=None, storage=None, subordinate=None, summary=None, tags=None, terms=None, **unknown_fields):
1691 '''
1692 categories : typing.Sequence[str]
1693 description : str
1694 extra_bindings : typing.Mapping[str, str]
1695 min_juju_version : str
1696 name : str
1697 payload_classes : typing.Mapping[str, ~CharmPayloadClass]
1698 peers : typing.Mapping[str, ~CharmRelation]
1699 provides : typing.Mapping[str, ~CharmRelation]
1700 requires : typing.Mapping[str, ~CharmRelation]
1701 resources : typing.Mapping[str, ~CharmResourceMeta]
1702 series : typing.Sequence[str]
1703 storage : typing.Mapping[str, ~CharmStorage]
1704 subordinate : bool
1705 summary : str
1706 tags : typing.Sequence[str]
1707 terms : typing.Sequence[str]
1708 '''
1709 self.categories = categories
1710 self.description = description
1711 self.extra_bindings = extra_bindings
1712 self.min_juju_version = min_juju_version
1713 self.name = name
1714 self.payload_classes = payload_classes
1715 self.peers = peers
1716 self.provides = provides
1717 self.requires = requires
1718 self.resources = resources
1719 self.series = series
1720 self.storage = storage
1721 self.subordinate = subordinate
1722 self.summary = summary
1723 self.tags = tags
1724 self.terms = terms
1725
1726
1727
1728 class CharmMetric(Type):
1729 _toSchema = {'description': 'description', 'type_': 'type'}
1730 _toPy = {'description': 'description', 'type': 'type_'}
1731 def __init__(self, description=None, type_=None, **unknown_fields):
1732 '''
1733 description : str
1734 type_ : str
1735 '''
1736 self.description = description
1737 self.type_ = type_
1738
1739
1740
1741 class CharmMetrics(Type):
1742 _toSchema = {'metrics': 'metrics', 'plan': 'plan'}
1743 _toPy = {'metrics': 'metrics', 'plan': 'plan'}
1744 def __init__(self, metrics=None, plan=None, **unknown_fields):
1745 '''
1746 metrics : typing.Mapping[str, ~CharmMetric]
1747 plan : CharmPlan
1748 '''
1749 self.metrics = metrics
1750 self.plan = CharmPlan.from_json(plan) if plan else None
1751
1752
1753
1754 class CharmOption(Type):
1755 _toSchema = {'default': 'default', 'description': 'description', 'type_': 'type'}
1756 _toPy = {'default': 'default', 'description': 'description', 'type': 'type_'}
1757 def __init__(self, default=None, description=None, type_=None, **unknown_fields):
1758 '''
1759 default : typing.Mapping[str, typing.Any]
1760 description : str
1761 type_ : str
1762 '''
1763 self.default = default
1764 self.description = description
1765 self.type_ = type_
1766
1767
1768
1769 class CharmPayloadClass(Type):
1770 _toSchema = {'name': 'name', 'type_': 'type'}
1771 _toPy = {'name': 'name', 'type': 'type_'}
1772 def __init__(self, name=None, type_=None, **unknown_fields):
1773 '''
1774 name : str
1775 type_ : str
1776 '''
1777 self.name = name
1778 self.type_ = type_
1779
1780
1781
1782 class CharmPlan(Type):
1783 _toSchema = {'required': 'required'}
1784 _toPy = {'required': 'required'}
1785 def __init__(self, required=None, **unknown_fields):
1786 '''
1787 required : bool
1788 '''
1789 self.required = required
1790
1791
1792
1793 class CharmRelation(Type):
1794 _toSchema = {'interface': 'interface', 'limit': 'limit', 'name': 'name', 'optional': 'optional', 'role': 'role', 'scope': 'scope'}
1795 _toPy = {'interface': 'interface', 'limit': 'limit', 'name': 'name', 'optional': 'optional', 'role': 'role', 'scope': 'scope'}
1796 def __init__(self, interface=None, limit=None, name=None, optional=None, role=None, scope=None, **unknown_fields):
1797 '''
1798 interface : str
1799 limit : int
1800 name : str
1801 optional : bool
1802 role : str
1803 scope : str
1804 '''
1805 self.interface = interface
1806 self.limit = limit
1807 self.name = name
1808 self.optional = optional
1809 self.role = role
1810 self.scope = scope
1811
1812
1813
1814 class CharmResource(Type):
1815 _toSchema = {'description': 'description', 'fingerprint': 'fingerprint', 'name': 'name', 'origin': 'origin', 'path': 'path', 'revision': 'revision', 'size': 'size', 'type_': 'type'}
1816 _toPy = {'description': 'description', 'fingerprint': 'fingerprint', 'name': 'name', 'origin': 'origin', 'path': 'path', 'revision': 'revision', 'size': 'size', 'type': 'type_'}
1817 def __init__(self, description=None, fingerprint=None, name=None, origin=None, path=None, revision=None, size=None, type_=None, **unknown_fields):
1818 '''
1819 description : str
1820 fingerprint : typing.Sequence[int]
1821 name : str
1822 origin : str
1823 path : str
1824 revision : int
1825 size : int
1826 type_ : str
1827 '''
1828 self.description = description
1829 self.fingerprint = fingerprint
1830 self.name = name
1831 self.origin = origin
1832 self.path = path
1833 self.revision = revision
1834 self.size = size
1835 self.type_ = type_
1836
1837
1838
1839 class CharmResourceMeta(Type):
1840 _toSchema = {'description': 'description', 'name': 'name', 'path': 'path', 'type_': 'type'}
1841 _toPy = {'description': 'description', 'name': 'name', 'path': 'path', 'type': 'type_'}
1842 def __init__(self, description=None, name=None, path=None, type_=None, **unknown_fields):
1843 '''
1844 description : str
1845 name : str
1846 path : str
1847 type_ : str
1848 '''
1849 self.description = description
1850 self.name = name
1851 self.path = path
1852 self.type_ = type_
1853
1854
1855
1856 class CharmStorage(Type):
1857 _toSchema = {'count_max': 'count-max', 'count_min': 'count-min', 'description': 'description', 'location': 'location', 'minimum_size': 'minimum-size', 'name': 'name', 'properties': 'properties', 'read_only': 'read-only', 'shared': 'shared', 'type_': 'type'}
1858 _toPy = {'count-max': 'count_max', 'count-min': 'count_min', 'description': 'description', 'location': 'location', 'minimum-size': 'minimum_size', 'name': 'name', 'properties': 'properties', 'read-only': 'read_only', 'shared': 'shared', 'type': 'type_'}
1859 def __init__(self, count_max=None, count_min=None, description=None, location=None, minimum_size=None, name=None, properties=None, read_only=None, shared=None, type_=None, **unknown_fields):
1860 '''
1861 count_max : int
1862 count_min : int
1863 description : str
1864 location : str
1865 minimum_size : int
1866 name : str
1867 properties : typing.Sequence[str]
1868 read_only : bool
1869 shared : bool
1870 type_ : str
1871 '''
1872 self.count_max = count_max
1873 self.count_min = count_min
1874 self.description = description
1875 self.location = location
1876 self.minimum_size = minimum_size
1877 self.name = name
1878 self.properties = properties
1879 self.read_only = read_only
1880 self.shared = shared
1881 self.type_ = type_
1882
1883
1884
1885 class CharmURL(Type):
1886 _toSchema = {'url': 'url'}
1887 _toPy = {'url': 'url'}
1888 def __init__(self, url=None, **unknown_fields):
1889 '''
1890 url : str
1891 '''
1892 self.url = url
1893
1894
1895
1896 class CharmURLs(Type):
1897 _toSchema = {'urls': 'urls'}
1898 _toPy = {'urls': 'urls'}
1899 def __init__(self, urls=None, **unknown_fields):
1900 '''
1901 urls : typing.Sequence[~CharmURL]
1902 '''
1903 self.urls = [CharmURL.from_json(o) for o in urls or []]
1904
1905
1906
1907 class CharmsList(Type):
1908 _toSchema = {'names': 'names'}
1909 _toPy = {'names': 'names'}
1910 def __init__(self, names=None, **unknown_fields):
1911 '''
1912 names : typing.Sequence[str]
1913 '''
1914 self.names = names
1915
1916
1917
1918 class CharmsListResult(Type):
1919 _toSchema = {'charm_urls': 'charm-urls'}
1920 _toPy = {'charm-urls': 'charm_urls'}
1921 def __init__(self, charm_urls=None, **unknown_fields):
1922 '''
1923 charm_urls : typing.Sequence[str]
1924 '''
1925 self.charm_urls = charm_urls
1926
1927
1928
1929 class ClaimLeadershipBulkParams(Type):
1930 _toSchema = {'params': 'params'}
1931 _toPy = {'params': 'params'}
1932 def __init__(self, params=None, **unknown_fields):
1933 '''
1934 params : typing.Sequence[~ClaimLeadershipParams]
1935 '''
1936 self.params = [ClaimLeadershipParams.from_json(o) for o in params or []]
1937
1938
1939
1940 class ClaimLeadershipBulkResults(Type):
1941 _toSchema = {'results': 'results'}
1942 _toPy = {'results': 'results'}
1943 def __init__(self, results=None, **unknown_fields):
1944 '''
1945 results : typing.Sequence[~ErrorResult]
1946 '''
1947 self.results = [ErrorResult.from_json(o) for o in results or []]
1948
1949
1950
1951 class ClaimLeadershipParams(Type):
1952 _toSchema = {'application_tag': 'application-tag', 'duration': 'duration', 'unit_tag': 'unit-tag'}
1953 _toPy = {'application-tag': 'application_tag', 'duration': 'duration', 'unit-tag': 'unit_tag'}
1954 def __init__(self, application_tag=None, duration=None, unit_tag=None, **unknown_fields):
1955 '''
1956 application_tag : str
1957 duration : float
1958 unit_tag : str
1959 '''
1960 self.application_tag = application_tag
1961 self.duration = duration
1962 self.unit_tag = unit_tag
1963
1964
1965
1966 class Cloud(Type):
1967 _toSchema = {'auth_types': 'auth-types', 'endpoint': 'endpoint', 'identity_endpoint': 'identity-endpoint', 'regions': 'regions', 'storage_endpoint': 'storage-endpoint', 'type_': 'type'}
1968 _toPy = {'auth-types': 'auth_types', 'endpoint': 'endpoint', 'identity-endpoint': 'identity_endpoint', 'regions': 'regions', 'storage-endpoint': 'storage_endpoint', 'type': 'type_'}
1969 def __init__(self, auth_types=None, endpoint=None, identity_endpoint=None, regions=None, storage_endpoint=None, type_=None, **unknown_fields):
1970 '''
1971 auth_types : typing.Sequence[str]
1972 endpoint : str
1973 identity_endpoint : str
1974 regions : typing.Sequence[~CloudRegion]
1975 storage_endpoint : str
1976 type_ : str
1977 '''
1978 self.auth_types = auth_types
1979 self.endpoint = endpoint
1980 self.identity_endpoint = identity_endpoint
1981 self.regions = [CloudRegion.from_json(o) for o in regions or []]
1982 self.storage_endpoint = storage_endpoint
1983 self.type_ = type_
1984
1985
1986
1987 class CloudCredential(Type):
1988 _toSchema = {'attrs': 'attrs', 'auth_type': 'auth-type', 'redacted': 'redacted'}
1989 _toPy = {'attrs': 'attrs', 'auth-type': 'auth_type', 'redacted': 'redacted'}
1990 def __init__(self, attrs=None, auth_type=None, redacted=None, **unknown_fields):
1991 '''
1992 attrs : typing.Mapping[str, str]
1993 auth_type : str
1994 redacted : typing.Sequence[str]
1995 '''
1996 self.attrs = attrs
1997 self.auth_type = auth_type
1998 self.redacted = redacted
1999
2000
2001
2002 class CloudCredentialArg(Type):
2003 _toSchema = {'cloud_name': 'cloud-name', 'credential_name': 'credential-name'}
2004 _toPy = {'cloud-name': 'cloud_name', 'credential-name': 'credential_name'}
2005 def __init__(self, cloud_name=None, credential_name=None, **unknown_fields):
2006 '''
2007 cloud_name : str
2008 credential_name : str
2009 '''
2010 self.cloud_name = cloud_name
2011 self.credential_name = credential_name
2012
2013
2014
2015 class CloudCredentialArgs(Type):
2016 _toSchema = {'credentials': 'credentials', 'include_secrets': 'include-secrets'}
2017 _toPy = {'credentials': 'credentials', 'include-secrets': 'include_secrets'}
2018 def __init__(self, credentials=None, include_secrets=None, **unknown_fields):
2019 '''
2020 credentials : typing.Sequence[~CloudCredentialArg]
2021 include_secrets : bool
2022 '''
2023 self.credentials = [CloudCredentialArg.from_json(o) for o in credentials or []]
2024 self.include_secrets = include_secrets
2025
2026
2027
2028 class CloudCredentialResult(Type):
2029 _toSchema = {'error': 'error', 'result': 'result'}
2030 _toPy = {'error': 'error', 'result': 'result'}
2031 def __init__(self, error=None, result=None, **unknown_fields):
2032 '''
2033 error : Error
2034 result : CloudCredential
2035 '''
2036 self.error = Error.from_json(error) if error else None
2037 self.result = CloudCredential.from_json(result) if result else None
2038
2039
2040
2041 class CloudCredentialResults(Type):
2042 _toSchema = {'results': 'results'}
2043 _toPy = {'results': 'results'}
2044 def __init__(self, results=None, **unknown_fields):
2045 '''
2046 results : typing.Sequence[~CloudCredentialResult]
2047 '''
2048 self.results = [CloudCredentialResult.from_json(o) for o in results or []]
2049
2050
2051
2052 class CloudDetails(Type):
2053 _toSchema = {'auth_types': 'auth-types', 'endpoint': 'endpoint', 'identity_endpoint': 'identity-endpoint', 'regions': 'regions', 'storage_endpoint': 'storage-endpoint', 'type_': 'type'}
2054 _toPy = {'auth-types': 'auth_types', 'endpoint': 'endpoint', 'identity-endpoint': 'identity_endpoint', 'regions': 'regions', 'storage-endpoint': 'storage_endpoint', 'type': 'type_'}
2055 def __init__(self, auth_types=None, endpoint=None, identity_endpoint=None, regions=None, storage_endpoint=None, type_=None, **unknown_fields):
2056 '''
2057 auth_types : typing.Sequence[str]
2058 endpoint : str
2059 identity_endpoint : str
2060 regions : typing.Sequence[~CloudRegion]
2061 storage_endpoint : str
2062 type_ : str
2063 '''
2064 self.auth_types = auth_types
2065 self.endpoint = endpoint
2066 self.identity_endpoint = identity_endpoint
2067 self.regions = [CloudRegion.from_json(o) for o in regions or []]
2068 self.storage_endpoint = storage_endpoint
2069 self.type_ = type_
2070
2071
2072
2073 class CloudImageMetadata(Type):
2074 _toSchema = {'arch': 'arch', 'image_id': 'image-id', 'priority': 'priority', 'region': 'region', 'root_storage_size': 'root-storage-size', 'root_storage_type': 'root-storage-type', 'series': 'series', 'source': 'source', 'stream': 'stream', 'version': 'version', 'virt_type': 'virt-type'}
2075 _toPy = {'arch': 'arch', 'image-id': 'image_id', 'priority': 'priority', 'region': 'region', 'root-storage-size': 'root_storage_size', 'root-storage-type': 'root_storage_type', 'series': 'series', 'source': 'source', 'stream': 'stream', 'version': 'version', 'virt-type': 'virt_type'}
2076 def __init__(self, arch=None, image_id=None, priority=None, region=None, root_storage_size=None, root_storage_type=None, series=None, source=None, stream=None, version=None, virt_type=None, **unknown_fields):
2077 '''
2078 arch : str
2079 image_id : str
2080 priority : int
2081 region : str
2082 root_storage_size : int
2083 root_storage_type : str
2084 series : str
2085 source : str
2086 stream : str
2087 version : str
2088 virt_type : str
2089 '''
2090 self.arch = arch
2091 self.image_id = image_id
2092 self.priority = priority
2093 self.region = region
2094 self.root_storage_size = root_storage_size
2095 self.root_storage_type = root_storage_type
2096 self.series = series
2097 self.source = source
2098 self.stream = stream
2099 self.version = version
2100 self.virt_type = virt_type
2101
2102
2103
2104 class CloudImageMetadataList(Type):
2105 _toSchema = {'metadata': 'metadata'}
2106 _toPy = {'metadata': 'metadata'}
2107 def __init__(self, metadata=None, **unknown_fields):
2108 '''
2109 metadata : typing.Sequence[~CloudImageMetadata]
2110 '''
2111 self.metadata = [CloudImageMetadata.from_json(o) for o in metadata or []]
2112
2113
2114
2115 class CloudInfo(Type):
2116 _toSchema = {'clouddetails': 'CloudDetails', 'users': 'users'}
2117 _toPy = {'CloudDetails': 'clouddetails', 'users': 'users'}
2118 def __init__(self, clouddetails=None, users=None, **unknown_fields):
2119 '''
2120 clouddetails : CloudDetails
2121 users : typing.Sequence[~CloudUserInfo]
2122 '''
2123 self.clouddetails = CloudDetails.from_json(clouddetails) if clouddetails else None
2124 self.users = [CloudUserInfo.from_json(o) for o in users or []]
2125
2126
2127
2128 class CloudInfoResult(Type):
2129 _toSchema = {'error': 'error', 'result': 'result'}
2130 _toPy = {'error': 'error', 'result': 'result'}
2131 def __init__(self, error=None, result=None, **unknown_fields):
2132 '''
2133 error : Error
2134 result : CloudInfo
2135 '''
2136 self.error = Error.from_json(error) if error else None
2137 self.result = CloudInfo.from_json(result) if result else None
2138
2139
2140
2141 class CloudInfoResults(Type):
2142 _toSchema = {'results': 'results'}
2143 _toPy = {'results': 'results'}
2144 def __init__(self, results=None, **unknown_fields):
2145 '''
2146 results : typing.Sequence[~CloudInfoResult]
2147 '''
2148 self.results = [CloudInfoResult.from_json(o) for o in results or []]
2149
2150
2151
2152 class CloudInstanceTypesConstraint(Type):
2153 _toSchema = {'cloud_tag': 'cloud-tag', 'constraints': 'constraints', 'region': 'region'}
2154 _toPy = {'cloud-tag': 'cloud_tag', 'constraints': 'constraints', 'region': 'region'}
2155 def __init__(self, cloud_tag=None, constraints=None, region=None, **unknown_fields):
2156 '''
2157 cloud_tag : str
2158 constraints : Value
2159 region : str
2160 '''
2161 self.cloud_tag = cloud_tag
2162 self.constraints = Value.from_json(constraints) if constraints else None
2163 self.region = region
2164
2165
2166
2167 class CloudInstanceTypesConstraints(Type):
2168 _toSchema = {'constraints': 'constraints'}
2169 _toPy = {'constraints': 'constraints'}
2170 def __init__(self, constraints=None, **unknown_fields):
2171 '''
2172 constraints : typing.Sequence[~CloudInstanceTypesConstraint]
2173 '''
2174 self.constraints = [CloudInstanceTypesConstraint.from_json(o) for o in constraints or []]
2175
2176
2177
2178 class CloudRegion(Type):
2179 _toSchema = {'endpoint': 'endpoint', 'identity_endpoint': 'identity-endpoint', 'name': 'name', 'storage_endpoint': 'storage-endpoint'}
2180 _toPy = {'endpoint': 'endpoint', 'identity-endpoint': 'identity_endpoint', 'name': 'name', 'storage-endpoint': 'storage_endpoint'}
2181 def __init__(self, endpoint=None, identity_endpoint=None, name=None, storage_endpoint=None, **unknown_fields):
2182 '''
2183 endpoint : str
2184 identity_endpoint : str
2185 name : str
2186 storage_endpoint : str
2187 '''
2188 self.endpoint = endpoint
2189 self.identity_endpoint = identity_endpoint
2190 self.name = name
2191 self.storage_endpoint = storage_endpoint
2192
2193
2194
2195 class CloudResult(Type):
2196 _toSchema = {'cloud': 'cloud', 'error': 'error'}
2197 _toPy = {'cloud': 'cloud', 'error': 'error'}
2198 def __init__(self, cloud=None, error=None, **unknown_fields):
2199 '''
2200 cloud : Cloud
2201 error : Error
2202 '''
2203 self.cloud = Cloud.from_json(cloud) if cloud else None
2204 self.error = Error.from_json(error) if error else None
2205
2206
2207
2208 class CloudResults(Type):
2209 _toSchema = {'results': 'results'}
2210 _toPy = {'results': 'results'}
2211 def __init__(self, results=None, **unknown_fields):
2212 '''
2213 results : typing.Sequence[~CloudResult]
2214 '''
2215 self.results = [CloudResult.from_json(o) for o in results or []]
2216
2217
2218
2219 class CloudSpec(Type):
2220 _toSchema = {'credential': 'credential', 'endpoint': 'endpoint', 'identity_endpoint': 'identity-endpoint', 'name': 'name', 'region': 'region', 'storage_endpoint': 'storage-endpoint', 'type_': 'type'}
2221 _toPy = {'credential': 'credential', 'endpoint': 'endpoint', 'identity-endpoint': 'identity_endpoint', 'name': 'name', 'region': 'region', 'storage-endpoint': 'storage_endpoint', 'type': 'type_'}
2222 def __init__(self, credential=None, endpoint=None, identity_endpoint=None, name=None, region=None, storage_endpoint=None, type_=None, **unknown_fields):
2223 '''
2224 credential : CloudCredential
2225 endpoint : str
2226 identity_endpoint : str
2227 name : str
2228 region : str
2229 storage_endpoint : str
2230 type_ : str
2231 '''
2232 self.credential = CloudCredential.from_json(credential) if credential else None
2233 self.endpoint = endpoint
2234 self.identity_endpoint = identity_endpoint
2235 self.name = name
2236 self.region = region
2237 self.storage_endpoint = storage_endpoint
2238 self.type_ = type_
2239
2240
2241
2242 class CloudSpecResult(Type):
2243 _toSchema = {'error': 'error', 'result': 'result'}
2244 _toPy = {'error': 'error', 'result': 'result'}
2245 def __init__(self, error=None, result=None, **unknown_fields):
2246 '''
2247 error : Error
2248 result : CloudSpec
2249 '''
2250 self.error = Error.from_json(error) if error else None
2251 self.result = CloudSpec.from_json(result) if result else None
2252
2253
2254
2255 class CloudSpecResults(Type):
2256 _toSchema = {'results': 'results'}
2257 _toPy = {'results': 'results'}
2258 def __init__(self, results=None, **unknown_fields):
2259 '''
2260 results : typing.Sequence[~CloudSpecResult]
2261 '''
2262 self.results = [CloudSpecResult.from_json(o) for o in results or []]
2263
2264
2265
2266 class CloudUserInfo(Type):
2267 _toSchema = {'access': 'access', 'display_name': 'display-name', 'user': 'user'}
2268 _toPy = {'access': 'access', 'display-name': 'display_name', 'user': 'user'}
2269 def __init__(self, access=None, display_name=None, user=None, **unknown_fields):
2270 '''
2271 access : str
2272 display_name : str
2273 user : str
2274 '''
2275 self.access = access
2276 self.display_name = display_name
2277 self.user = user
2278
2279
2280
2281 class CloudsResult(Type):
2282 _toSchema = {'clouds': 'clouds'}
2283 _toPy = {'clouds': 'clouds'}
2284 def __init__(self, clouds=None, **unknown_fields):
2285 '''
2286 clouds : typing.Mapping[str, ~Cloud]
2287 '''
2288 self.clouds = clouds
2289
2290
2291
2292 class ConfigResult(Type):
2293 _toSchema = {'config': 'config', 'error': 'error'}
2294 _toPy = {'config': 'config', 'error': 'error'}
2295 def __init__(self, config=None, error=None, **unknown_fields):
2296 '''
2297 config : typing.Mapping[str, typing.Any]
2298 error : Error
2299 '''
2300 self.config = config
2301 self.error = Error.from_json(error) if error else None
2302
2303
2304
2305 class ConfigSettingsResult(Type):
2306 _toSchema = {'error': 'error', 'settings': 'settings'}
2307 _toPy = {'error': 'error', 'settings': 'settings'}
2308 def __init__(self, error=None, settings=None, **unknown_fields):
2309 '''
2310 error : Error
2311 settings : typing.Mapping[str, typing.Any]
2312 '''
2313 self.error = Error.from_json(error) if error else None
2314 self.settings = settings
2315
2316
2317
2318 class ConfigSettingsResults(Type):
2319 _toSchema = {'results': 'results'}
2320 _toPy = {'results': 'results'}
2321 def __init__(self, results=None, **unknown_fields):
2322 '''
2323 results : typing.Sequence[~ConfigSettingsResult]
2324 '''
2325 self.results = [ConfigSettingsResult.from_json(o) for o in results or []]
2326
2327
2328
2329 class ConfigValue(Type):
2330 _toSchema = {'source': 'source', 'value': 'value'}
2331 _toPy = {'source': 'source', 'value': 'value'}
2332 def __init__(self, source=None, value=None, **unknown_fields):
2333 '''
2334 source : str
2335 value : typing.Mapping[str, typing.Any]
2336 '''
2337 self.source = source
2338 self.value = value
2339
2340
2341
2342 class Constraints(Type):
2343 _toSchema = {'count': 'Count', 'pool': 'Pool', 'size': 'Size'}
2344 _toPy = {'Count': 'count', 'Pool': 'pool', 'Size': 'size'}
2345 def __init__(self, count=None, pool=None, size=None, **unknown_fields):
2346 '''
2347 count : int
2348 pool : str
2349 size : int
2350 '''
2351 self.count = count
2352 self.pool = pool
2353 self.size = size
2354
2355
2356
2357 class ConstraintsResult(Type):
2358 _toSchema = {'constraints': 'constraints', 'error': 'error'}
2359 _toPy = {'constraints': 'constraints', 'error': 'error'}
2360 def __init__(self, constraints=None, error=None, **unknown_fields):
2361 '''
2362 constraints : Value
2363 error : Error
2364 '''
2365 self.constraints = Value.from_json(constraints) if constraints else None
2366 self.error = Error.from_json(error) if error else None
2367
2368
2369
2370 class ConstraintsResults(Type):
2371 _toSchema = {'results': 'results'}
2372 _toPy = {'results': 'results'}
2373 def __init__(self, results=None, **unknown_fields):
2374 '''
2375 results : typing.Sequence[~ConstraintsResult]
2376 '''
2377 self.results = [ConstraintsResult.from_json(o) for o in results or []]
2378
2379
2380
2381 class ConsumeApplicationArg(Type):
2382 _toSchema = {'application_alias': 'application-alias', 'application_url': 'application-url'}
2383 _toPy = {'application-alias': 'application_alias', 'application-url': 'application_url'}
2384 def __init__(self, application_alias=None, application_url=None, **unknown_fields):
2385 '''
2386 application_alias : str
2387 application_url : str
2388 '''
2389 self.application_alias = application_alias
2390 self.application_url = application_url
2391
2392
2393
2394 class ConsumeApplicationArgs(Type):
2395 _toSchema = {'args': 'args'}
2396 _toPy = {'args': 'args'}
2397 def __init__(self, args=None, **unknown_fields):
2398 '''
2399 args : typing.Sequence[~ConsumeApplicationArg]
2400 '''
2401 self.args = [ConsumeApplicationArg.from_json(o) for o in args or []]
2402
2403
2404
2405 class ConsumeApplicationResult(Type):
2406 _toSchema = {'error': 'error', 'local_name': 'local-name'}
2407 _toPy = {'error': 'error', 'local-name': 'local_name'}
2408 def __init__(self, error=None, local_name=None, **unknown_fields):
2409 '''
2410 error : Error
2411 local_name : str
2412 '''
2413 self.error = Error.from_json(error) if error else None
2414 self.local_name = local_name
2415
2416
2417
2418 class ConsumeApplicationResults(Type):
2419 _toSchema = {'results': 'results'}
2420 _toPy = {'results': 'results'}
2421 def __init__(self, results=None, **unknown_fields):
2422 '''
2423 results : typing.Sequence[~ConsumeApplicationResult]
2424 '''
2425 self.results = [ConsumeApplicationResult.from_json(o) for o in results or []]
2426
2427
2428
2429 class ConsumeOfferDetails(Type):
2430 _toSchema = {'external_controller': 'external-controller', 'macaroon': 'macaroon', 'offer': 'offer'}
2431 _toPy = {'external-controller': 'external_controller', 'macaroon': 'macaroon', 'offer': 'offer'}
2432 def __init__(self, external_controller=None, macaroon=None, offer=None, **unknown_fields):
2433 '''
2434 external_controller : ExternalControllerInfo
2435 macaroon : Macaroon
2436 offer : ApplicationOfferDetails
2437 '''
2438 self.external_controller = ExternalControllerInfo.from_json(external_controller) if external_controller else None
2439 self.macaroon = Macaroon.from_json(macaroon) if macaroon else None
2440 self.offer = ApplicationOfferDetails.from_json(offer) if offer else None
2441
2442
2443
2444 class ConsumeOfferDetailsResult(Type):
2445 _toSchema = {'consumeofferdetails': 'ConsumeOfferDetails', 'error': 'error'}
2446 _toPy = {'ConsumeOfferDetails': 'consumeofferdetails', 'error': 'error'}
2447 def __init__(self, consumeofferdetails=None, error=None, **unknown_fields):
2448 '''
2449 consumeofferdetails : ConsumeOfferDetails
2450 error : Error
2451 '''
2452 self.consumeofferdetails = ConsumeOfferDetails.from_json(consumeofferdetails) if consumeofferdetails else None
2453 self.error = Error.from_json(error) if error else None
2454
2455
2456
2457 class ConsumeOfferDetailsResults(Type):
2458 _toSchema = {'results': 'results'}
2459 _toPy = {'results': 'results'}
2460 def __init__(self, results=None, **unknown_fields):
2461 '''
2462 results : typing.Sequence[~ConsumeOfferDetailsResult]
2463 '''
2464 self.results = [ConsumeOfferDetailsResult.from_json(o) for o in results or []]
2465
2466
2467
2468 class ContainerConfig(Type):
2469 _toSchema = {'apt_mirror': 'apt-mirror', 'apt_proxy': 'apt-proxy', 'authorized_keys': 'authorized-keys', 'provider_type': 'provider-type', 'proxy': 'proxy', 'ssl_hostname_verification': 'ssl-hostname-verification', 'updatebehavior': 'UpdateBehavior'}
2470 _toPy = {'UpdateBehavior': 'updatebehavior', 'apt-mirror': 'apt_mirror', 'apt-proxy': 'apt_proxy', 'authorized-keys': 'authorized_keys', 'provider-type': 'provider_type', 'proxy': 'proxy', 'ssl-hostname-verification': 'ssl_hostname_verification'}
2471 def __init__(self, updatebehavior=None, apt_mirror=None, apt_proxy=None, authorized_keys=None, provider_type=None, proxy=None, ssl_hostname_verification=None, **unknown_fields):
2472 '''
2473 updatebehavior : UpdateBehavior
2474 apt_mirror : str
2475 apt_proxy : Settings
2476 authorized_keys : str
2477 provider_type : str
2478 proxy : Settings
2479 ssl_hostname_verification : bool
2480 '''
2481 self.updatebehavior = UpdateBehavior.from_json(updatebehavior) if updatebehavior else None
2482 self.apt_mirror = apt_mirror
2483 self.apt_proxy = Settings.from_json(apt_proxy) if apt_proxy else None
2484 self.authorized_keys = authorized_keys
2485 self.provider_type = provider_type
2486 self.proxy = Settings.from_json(proxy) if proxy else None
2487 self.ssl_hostname_verification = ssl_hostname_verification
2488
2489
2490
2491 class ContainerLXDProfile(Type):
2492 _toSchema = {'name': 'name', 'profile': 'profile'}
2493 _toPy = {'name': 'name', 'profile': 'profile'}
2494 def __init__(self, name=None, profile=None, **unknown_fields):
2495 '''
2496 name : str
2497 profile : CharmLXDProfile
2498 '''
2499 self.name = name
2500 self.profile = CharmLXDProfile.from_json(profile) if profile else None
2501
2502
2503
2504 class ContainerManagerConfig(Type):
2505 _toSchema = {'config': 'config'}
2506 _toPy = {'config': 'config'}
2507 def __init__(self, config=None, **unknown_fields):
2508 '''
2509 config : typing.Mapping[str, str]
2510 '''
2511 self.config = config
2512
2513
2514
2515 class ContainerManagerConfigParams(Type):
2516 _toSchema = {'type_': 'type'}
2517 _toPy = {'type': 'type_'}
2518 def __init__(self, type_=None, **unknown_fields):
2519 '''
2520 type_ : str
2521 '''
2522 self.type_ = type_
2523
2524
2525
2526 class ContainerProfileResult(Type):
2527 _toSchema = {'error': 'error', 'lxd_profiles': 'lxd-profiles'}
2528 _toPy = {'error': 'error', 'lxd-profiles': 'lxd_profiles'}
2529 def __init__(self, error=None, lxd_profiles=None, **unknown_fields):
2530 '''
2531 error : Error
2532 lxd_profiles : typing.Sequence[~ContainerLXDProfile]
2533 '''
2534 self.error = Error.from_json(error) if error else None
2535 self.lxd_profiles = [ContainerLXDProfile.from_json(o) for o in lxd_profiles or []]
2536
2537
2538
2539 class ContainerProfileResults(Type):
2540 _toSchema = {'results': 'results'}
2541 _toPy = {'results': 'results'}
2542 def __init__(self, results=None, **unknown_fields):
2543 '''
2544 results : typing.Sequence[~ContainerProfileResult]
2545 '''
2546 self.results = [ContainerProfileResult.from_json(o) for o in results or []]
2547
2548
2549
2550 class ControllerAPIInfoResult(Type):
2551 _toSchema = {'addresses': 'addresses', 'cacert': 'cacert', 'error': 'error'}
2552 _toPy = {'addresses': 'addresses', 'cacert': 'cacert', 'error': 'error'}
2553 def __init__(self, addresses=None, cacert=None, error=None, **unknown_fields):
2554 '''
2555 addresses : typing.Sequence[str]
2556 cacert : str
2557 error : Error
2558 '''
2559 self.addresses = addresses
2560 self.cacert = cacert
2561 self.error = Error.from_json(error) if error else None
2562
2563
2564
2565 class ControllerAPIInfoResults(Type):
2566 _toSchema = {'results': 'results'}
2567 _toPy = {'results': 'results'}
2568 def __init__(self, results=None, **unknown_fields):
2569 '''
2570 results : typing.Sequence[~ControllerAPIInfoResult]
2571 '''
2572 self.results = [ControllerAPIInfoResult.from_json(o) for o in results or []]
2573
2574
2575
2576 class ControllerConfigResult(Type):
2577 _toSchema = {'config': 'config'}
2578 _toPy = {'config': 'config'}
2579 def __init__(self, config=None, **unknown_fields):
2580 '''
2581 config : typing.Mapping[str, typing.Any]
2582 '''
2583 self.config = config
2584
2585
2586
2587 class ControllerConfigSet(Type):
2588 _toSchema = {'config': 'config'}
2589 _toPy = {'config': 'config'}
2590 def __init__(self, config=None, **unknown_fields):
2591 '''
2592 config : typing.Mapping[str, typing.Any]
2593 '''
2594 self.config = config
2595
2596
2597
2598 class ControllerCredentialInfo(Type):
2599 _toSchema = {'content': 'content', 'models': 'models'}
2600 _toPy = {'content': 'content', 'models': 'models'}
2601 def __init__(self, content=None, models=None, **unknown_fields):
2602 '''
2603 content : CredentialContent
2604 models : typing.Sequence[~ModelAccess]
2605 '''
2606 self.content = CredentialContent.from_json(content) if content else None
2607 self.models = [ModelAccess.from_json(o) for o in models or []]
2608
2609
2610
2611 class ControllersChangeResult(Type):
2612 _toSchema = {'error': 'error', 'result': 'result'}
2613 _toPy = {'error': 'error', 'result': 'result'}
2614 def __init__(self, error=None, result=None, **unknown_fields):
2615 '''
2616 error : Error
2617 result : ControllersChanges
2618 '''
2619 self.error = Error.from_json(error) if error else None
2620 self.result = ControllersChanges.from_json(result) if result else None
2621
2622
2623
2624 class ControllersChangeResults(Type):
2625 _toSchema = {'results': 'results'}
2626 _toPy = {'results': 'results'}
2627 def __init__(self, results=None, **unknown_fields):
2628 '''
2629 results : typing.Sequence[~ControllersChangeResult]
2630 '''
2631 self.results = [ControllersChangeResult.from_json(o) for o in results or []]
2632
2633
2634
2635 class ControllersChanges(Type):
2636 _toSchema = {'added': 'added', 'converted': 'converted', 'demoted': 'demoted', 'maintained': 'maintained', 'promoted': 'promoted', 'removed': 'removed'}
2637 _toPy = {'added': 'added', 'converted': 'converted', 'demoted': 'demoted', 'maintained': 'maintained', 'promoted': 'promoted', 'removed': 'removed'}
2638 def __init__(self, added=None, converted=None, demoted=None, maintained=None, promoted=None, removed=None, **unknown_fields):
2639 '''
2640 added : typing.Sequence[str]
2641 converted : typing.Sequence[str]
2642 demoted : typing.Sequence[str]
2643 maintained : typing.Sequence[str]
2644 promoted : typing.Sequence[str]
2645 removed : typing.Sequence[str]
2646 '''
2647 self.added = added
2648 self.converted = converted
2649 self.demoted = demoted
2650 self.maintained = maintained
2651 self.promoted = promoted
2652 self.removed = removed
2653
2654
2655
2656 class ControllersSpec(Type):
2657 _toSchema = {'constraints': 'constraints', 'num_controllers': 'num-controllers', 'placement': 'placement', 'series': 'series'}
2658 _toPy = {'constraints': 'constraints', 'num-controllers': 'num_controllers', 'placement': 'placement', 'series': 'series'}
2659 def __init__(self, constraints=None, num_controllers=None, placement=None, series=None, **unknown_fields):
2660 '''
2661 constraints : Value
2662 num_controllers : int
2663 placement : typing.Sequence[str]
2664 series : str
2665 '''
2666 self.constraints = Value.from_json(constraints) if constraints else None
2667 self.num_controllers = num_controllers
2668 self.placement = placement
2669 self.series = series
2670
2671
2672
2673 class ControllersSpecs(Type):
2674 _toSchema = {'specs': 'specs'}
2675 _toPy = {'specs': 'specs'}
2676 def __init__(self, specs=None, **unknown_fields):
2677 '''
2678 specs : typing.Sequence[~ControllersSpec]
2679 '''
2680 self.specs = [ControllersSpec.from_json(o) for o in specs or []]
2681
2682
2683
2684 class CreateSpaceParams(Type):
2685 _toSchema = {'provider_id': 'provider-id', 'public': 'public', 'space_tag': 'space-tag', 'subnet_tags': 'subnet-tags'}
2686 _toPy = {'provider-id': 'provider_id', 'public': 'public', 'space-tag': 'space_tag', 'subnet-tags': 'subnet_tags'}
2687 def __init__(self, provider_id=None, public=None, space_tag=None, subnet_tags=None, **unknown_fields):
2688 '''
2689 provider_id : str
2690 public : bool
2691 space_tag : str
2692 subnet_tags : typing.Sequence[str]
2693 '''
2694 self.provider_id = provider_id
2695 self.public = public
2696 self.space_tag = space_tag
2697 self.subnet_tags = subnet_tags
2698
2699
2700
2701 class CreateSpacesParams(Type):
2702 _toSchema = {'spaces': 'spaces'}
2703 _toPy = {'spaces': 'spaces'}
2704 def __init__(self, spaces=None, **unknown_fields):
2705 '''
2706 spaces : typing.Sequence[~CreateSpaceParams]
2707 '''
2708 self.spaces = [CreateSpaceParams.from_json(o) for o in spaces or []]
2709
2710
2711
2712 class CredentialContent(Type):
2713 _toSchema = {'attrs': 'attrs', 'auth_type': 'auth-type', 'cloud': 'cloud', 'name': 'name'}
2714 _toPy = {'attrs': 'attrs', 'auth-type': 'auth_type', 'cloud': 'cloud', 'name': 'name'}
2715 def __init__(self, attrs=None, auth_type=None, cloud=None, name=None, **unknown_fields):
2716 '''
2717 attrs : typing.Mapping[str, str]
2718 auth_type : str
2719 cloud : str
2720 name : str
2721 '''
2722 self.attrs = attrs
2723 self.auth_type = auth_type
2724 self.cloud = cloud
2725 self.name = name
2726
2727
2728
2729 class CredentialContentResult(Type):
2730 _toSchema = {'error': 'error', 'result': 'result'}
2731 _toPy = {'error': 'error', 'result': 'result'}
2732 def __init__(self, error=None, result=None, **unknown_fields):
2733 '''
2734 error : Error
2735 result : ControllerCredentialInfo
2736 '''
2737 self.error = Error.from_json(error) if error else None
2738 self.result = ControllerCredentialInfo.from_json(result) if result else None
2739
2740
2741
2742 class CredentialContentResults(Type):
2743 _toSchema = {'results': 'results'}
2744 _toPy = {'results': 'results'}
2745 def __init__(self, results=None, **unknown_fields):
2746 '''
2747 results : typing.Sequence[~CredentialContentResult]
2748 '''
2749 self.results = [CredentialContentResult.from_json(o) for o in results or []]
2750
2751
2752
2753 class Delta(Type):
2754 _toSchema = {'entity': 'entity', 'removed': 'removed'}
2755 _toPy = {'entity': 'entity', 'removed': 'removed'}
2756 def __init__(self, entity=None, removed=None, **unknown_fields):
2757 '''
2758 entity : typing.Mapping[str, typing.Any]
2759 removed : bool
2760 '''
2761 self.entity = entity
2762 self.removed = removed
2763
2764
2765
2766 class DeployerConnectionValues(Type):
2767 _toSchema = {'api_addresses': 'api-addresses', 'state_addresses': 'state-addresses'}
2768 _toPy = {'api-addresses': 'api_addresses', 'state-addresses': 'state_addresses'}
2769 def __init__(self, api_addresses=None, state_addresses=None, **unknown_fields):
2770 '''
2771 api_addresses : typing.Sequence[str]
2772 state_addresses : typing.Sequence[str]
2773 '''
2774 self.api_addresses = api_addresses
2775 self.state_addresses = state_addresses
2776
2777
2778
2779 class DestroyApplicationInfo(Type):
2780 _toSchema = {'destroyed_storage': 'destroyed-storage', 'destroyed_units': 'destroyed-units', 'detached_storage': 'detached-storage'}
2781 _toPy = {'destroyed-storage': 'destroyed_storage', 'destroyed-units': 'destroyed_units', 'detached-storage': 'detached_storage'}
2782 def __init__(self, destroyed_storage=None, destroyed_units=None, detached_storage=None, **unknown_fields):
2783 '''
2784 destroyed_storage : typing.Sequence[~Entity]
2785 destroyed_units : typing.Sequence[~Entity]
2786 detached_storage : typing.Sequence[~Entity]
2787 '''
2788 self.destroyed_storage = [Entity.from_json(o) for o in destroyed_storage or []]
2789 self.destroyed_units = [Entity.from_json(o) for o in destroyed_units or []]
2790 self.detached_storage = [Entity.from_json(o) for o in detached_storage or []]
2791
2792
2793
2794 class DestroyApplicationOffers(Type):
2795 _toSchema = {'force': 'force', 'offer_urls': 'offer-urls'}
2796 _toPy = {'force': 'force', 'offer-urls': 'offer_urls'}
2797 def __init__(self, force=None, offer_urls=None, **unknown_fields):
2798 '''
2799 force : bool
2800 offer_urls : typing.Sequence[str]
2801 '''
2802 self.force = force
2803 self.offer_urls = offer_urls
2804
2805
2806
2807 class DestroyApplicationParams(Type):
2808 _toSchema = {'application_tag': 'application-tag', 'destroy_storage': 'destroy-storage'}
2809 _toPy = {'application-tag': 'application_tag', 'destroy-storage': 'destroy_storage'}
2810 def __init__(self, application_tag=None, destroy_storage=None, **unknown_fields):
2811 '''
2812 application_tag : str
2813 destroy_storage : bool
2814 '''
2815 self.application_tag = application_tag
2816 self.destroy_storage = destroy_storage
2817
2818
2819
2820 class DestroyApplicationResult(Type):
2821 _toSchema = {'error': 'error', 'info': 'info'}
2822 _toPy = {'error': 'error', 'info': 'info'}
2823 def __init__(self, error=None, info=None, **unknown_fields):
2824 '''
2825 error : Error
2826 info : DestroyApplicationInfo
2827 '''
2828 self.error = Error.from_json(error) if error else None
2829 self.info = DestroyApplicationInfo.from_json(info) if info else None
2830
2831
2832
2833 class DestroyApplicationResults(Type):
2834 _toSchema = {'results': 'results'}
2835 _toPy = {'results': 'results'}
2836 def __init__(self, results=None, **unknown_fields):
2837 '''
2838 results : typing.Sequence[~DestroyApplicationResult]
2839 '''
2840 self.results = [DestroyApplicationResult.from_json(o) for o in results or []]
2841
2842
2843