1 # DO NOT CHANGE THIS FILE! This file is auto-generated by facade.py.
2 # Changes will be overwritten/lost when the file is regenerated.
4 from juju
.client
.facade
import ReturnMapping
, Type
7 class APIHostPortsResult(Type
):
8 _toSchema
= {'servers': 'servers'}
9 _toPy
= {'servers': 'servers'}
10 def __init__(self
, servers
=None, **unknown_fields
):
12 servers : typing.Sequence[~HostPort]
14 self
.servers
= [HostPort
.from_json(o
) for o
in servers
or []]
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
):
24 parameters : typing.Mapping[str, typing.Any]
29 self
.parameters
= parameters
30 self
.receiver
= receiver
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
):
42 results : typing.Mapping[str, typing.Any]
45 self
.action_tag
= action_tag
46 self
.message
= message
47 self
.results
= results
52 class ActionExecutionResults(Type
):
53 _toSchema
= {'results': 'results'}
54 _toPy
= {'results': 'results'}
55 def __init__(self
, results
=None, **unknown_fields
):
57 results : typing.Sequence[~ActionExecutionResult]
59 self
.results
= [ActionExecutionResult
.from_json(o
) for o
in results
or []]
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
):
69 max_history_time : int
71 self
.max_history_mb
= max_history_mb
72 self
.max_history_time
= max_history_time
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
):
86 output : typing.Mapping[str, typing.Any]
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
96 self
.started
= started
101 class ActionResults(Type
):
102 _toSchema
= {'results': 'results'}
103 _toPy
= {'results': 'results'}
104 def __init__(self
, results
=None, **unknown_fields
):
106 results : typing.Sequence[~ActionResult]
108 self
.results
= [ActionResult
.from_json(o
) for o
in results
or []]
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
):
118 params : typing.Mapping[str, typing.Any]
120 self
.description
= description
126 _toSchema
= {'actions': 'actions'}
127 _toPy
= {'actions': 'actions'}
128 def __init__(self
, actions
=None, **unknown_fields
):
130 actions : typing.Sequence[~Action]
132 self
.actions
= [Action
.from_json(o
) for o
in actions
or []]
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
):
141 actions : typing.Sequence[~ActionResult]
145 self
.actions
= [ActionResult
.from_json(o
) for o
in actions
or []]
146 self
.error
= Error
.from_json(error
) if error
else None
151 class ActionsByNames(Type
):
152 _toSchema
= {'actions': 'actions'}
153 _toPy
= {'actions': 'actions'}
154 def __init__(self
, actions
=None, **unknown_fields
):
156 actions : typing.Sequence[~ActionsByName]
158 self
.actions
= [ActionsByName
.from_json(o
) for o
in actions
or []]
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
):
167 actions : typing.Sequence[~ActionResult]
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
177 class ActionsByReceivers(Type
):
178 _toSchema
= {'actions': 'actions'}
179 _toPy
= {'actions': 'actions'}
180 def __init__(self
, actions
=None, **unknown_fields
):
182 actions : typing.Sequence[~ActionsByReceiver]
184 self
.actions
= [ActionsByReceiver
.from_json(o
) for o
in actions
or []]
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
):
193 application_description : str
194 application_name : str
195 endpoints : typing.Mapping[str, str]
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
207 class AddApplicationOffers(Type
):
208 _toSchema
= {'offers': 'Offers'}
209 _toPy
= {'Offers': 'offers'}
210 def __init__(self
, offers
=None, **unknown_fields
):
212 offers : typing.Sequence[~AddApplicationOffer]
214 self
.offers
= [AddApplicationOffer
.from_json(o
) for o
in offers
or []]
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
):
225 placement : typing.Sequence[~Placement]
227 self
.application
= application
228 self
.num_units
= num_units
229 self
.placement
= [Placement
.from_json(o
) for o
in placement
or []]
233 class AddApplicationUnitsResults(Type
):
234 _toSchema
= {'units': 'units'}
235 _toPy
= {'units': 'units'}
236 def __init__(self
, units
=None, **unknown_fields
):
238 units : typing.Sequence[str]
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
):
252 self
.channel
= channel
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
):
266 self
.channel
= channel
267 self
.macaroon
= Macaroon
.from_json(macaroon
) if macaroon
else None
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
):
280 self
.cloud
= Cloud
.from_json(cloud
) if cloud
else None
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
):
290 addresses : typing.Sequence[~Address]
293 disks : typing.Sequence[~Constraints]
294 hardware_characteristics : HardwareCharacteristics
296 jobs : typing.Sequence[str]
299 placement : Placement
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
310 self
.parent_id
= parent_id
311 self
.placement
= Placement
.from_json(placement
) if placement
else None
316 class AddMachines(Type
):
317 _toSchema
= {'params': 'params'}
318 _toPy
= {'params': 'params'}
319 def __init__(self
, params
=None, **unknown_fields
):
321 params : typing.Sequence[~AddMachineParams]
323 self
.params
= [AddMachineParams
.from_json(o
) for o
in params
or []]
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
):
335 self
.error
= Error
.from_json(error
) if error
else None
336 self
.machine
= machine
340 class AddMachinesResults(Type
):
341 _toSchema
= {'machines': 'machines'}
342 _toPy
= {'machines': 'machines'}
343 def __init__(self
, machines
=None, **unknown_fields
):
345 machines : typing.Sequence[~AddMachinesResult]
347 self
.machines
= [AddMachinesResult
.from_json(o
) for o
in machines
or []]
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
):
356 addcharmwithauthorization : AddCharmWithAuthorization
358 resources : typing.Sequence[~CharmResource]
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 []]
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
):
371 errorresult : ErrorResult
372 pending_ids : typing.Sequence[str]
374 self
.errorresult
= ErrorResult
.from_json(errorresult
) if errorresult
else None
375 self
.pending_ids
= pending_ids
379 class AddRelation(Type
):
380 _toSchema
= {'endpoints': 'endpoints'}
381 _toPy
= {'endpoints': 'endpoints'}
382 def __init__(self
, endpoints
=None, **unknown_fields
):
384 endpoints : typing.Sequence[str]
386 self
.endpoints
= endpoints
390 class AddRelationResults(Type
):
391 _toSchema
= {'endpoints': 'endpoints'}
392 _toPy
= {'endpoints': 'endpoints'}
393 def __init__(self
, endpoints
=None, **unknown_fields
):
395 endpoints : typing.Mapping[str, ~CharmRelation]
397 self
.endpoints
= endpoints
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
):
406 storage_tags : typing.Sequence[str]
408 self
.storage_tags
= storage_tags
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
):
418 result : AddStorageDetails
420 self
.error
= Error
.from_json(error
) if error
else None
421 self
.result
= AddStorageDetails
.from_json(result
) if result
else None
425 class AddStorageResults(Type
):
426 _toSchema
= {'results': 'results'}
427 _toPy
= {'results': 'results'}
428 def __init__(self
, results
=None, **unknown_fields
):
430 results : typing.Sequence[~AddStorageResult]
432 self
.results
= [AddStorageResult
.from_json(o
) for o
in results
or []]
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
):
442 subnet_provider_id : str
444 zones : typing.Sequence[str]
446 self
.space_tag
= space_tag
447 self
.subnet_provider_id
= subnet_provider_id
448 self
.subnet_tag
= subnet_tag
453 class AddSubnetsParams(Type
):
454 _toSchema
= {'subnets': 'subnets'}
455 _toPy
= {'subnets': 'subnets'}
456 def __init__(self
, subnets
=None, **unknown_fields
):
458 subnets : typing.Sequence[~AddSubnetParams]
460 self
.subnets
= [AddSubnetParams
.from_json(o
) for o
in subnets
or []]
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
):
473 self
.display_name
= display_name
474 self
.password
= password
475 self
.username
= username
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
):
485 secret_key : typing.Sequence[int]
488 self
.error
= Error
.from_json(error
) if error
else None
489 self
.secret_key
= secret_key
494 class AddUserResults(Type
):
495 _toSchema
= {'results': 'results'}
496 _toPy
= {'results': 'results'}
497 def __init__(self
, results
=None, **unknown_fields
):
499 results : typing.Sequence[~AddUserResult]
501 self
.results
= [AddUserResult
.from_json(o
) for o
in results
or []]
505 class AddUsers(Type
):
506 _toSchema
= {'users': 'users'}
507 _toPy
= {'users': 'users'}
508 def __init__(self
, users
=None, **unknown_fields
):
510 users : typing.Sequence[~AddUser]
512 self
.users
= [AddUser
.from_json(o
) for o
in users
or []]
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
):
527 self
.space_name
= space_name
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
):
539 source_controller_version : Number
541 self
.model_tag
= model_tag
542 self
.source_controller_version
= Number
.from_json(source_controller_version
) if source_controller_version
else None
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
):
553 jobs : typing.Sequence[str]
556 self
.container_type
= container_type
557 self
.error
= Error
.from_json(error
) if error
else None
563 class AgentGetEntitiesResults(Type
):
564 _toSchema
= {'entities': 'entities'}
565 _toPy
= {'entities': 'entities'}
566 def __init__(self
, entities
=None, **unknown_fields
):
568 entities : typing.Sequence[~AgentGetEntitiesResult]
570 self
.entities
= [AgentGetEntitiesResult
.from_json(o
) for o
in entities
or []]
574 class AgentVersionResult(Type
):
575 _toSchema
= {'version': 'version'}
576 _toPy
= {'version': 'version'}
577 def __init__(self
, version
=None, **unknown_fields
):
581 self
.version
= Number
.from_json(version
) if version
else None
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
):
592 self
.watcher_id
= watcher_id
596 class AllWatcherNextResults(Type
):
597 _toSchema
= {'deltas': 'deltas'}
598 _toPy
= {'deltas': 'deltas'}
599 def __init__(self
, deltas
=None, **unknown_fields
):
601 deltas : typing.Sequence[~Delta]
603 self
.deltas
= [Delta
.from_json(o
) for o
in deltas
or []]
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
):
612 annotations : typing.Mapping[str, str]
616 self
.annotations
= annotations
618 self
.error
= ErrorResult
.from_json(error
) if error
else None
622 class AnnotationsGetResults(Type
):
623 _toSchema
= {'results': 'results'}
624 _toPy
= {'results': 'results'}
625 def __init__(self
, results
=None, **unknown_fields
):
627 results : typing.Sequence[~AnnotationsGetResult]
629 self
.results
= [AnnotationsGetResult
.from_json(o
) for o
in results
or []]
633 class AnnotationsSet(Type
):
634 _toSchema
= {'annotations': 'annotations'}
635 _toPy
= {'annotations': 'annotations'}
636 def __init__(self
, annotations
=None, **unknown_fields
):
638 annotations : typing.Sequence[~EntityAnnotations]
640 self
.annotations
= [EntityAnnotations
.from_json(o
) for o
in annotations
or []]
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
):
649 charm_modified_version : int
654 self
.charm_modified_version
= charm_modified_version
655 self
.force_upgrade
= force_upgrade
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
):
666 actions : typing.Mapping[str, ~ActionSpec]
667 application_tag : str
670 self
.actions
= actions
671 self
.application_tag
= application_tag
672 self
.error
= Error
.from_json(error
) if error
else None
676 class ApplicationCharmRelations(Type
):
677 _toSchema
= {'application': 'application'}
678 _toPy
= {'application': 'application'}
679 def __init__(self
, application
=None, **unknown_fields
):
683 self
.application
= application
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
):
692 charm_relations : typing.Sequence[str]
694 self
.charm_relations
= charm_relations
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
):
704 result : ApplicationCharm
706 self
.error
= Error
.from_json(error
) if error
else None
707 self
.result
= ApplicationCharm
.from_json(result
) if result
else None
711 class ApplicationCharmResults(Type
):
712 _toSchema
= {'results': 'results'}
713 _toPy
= {'results': 'results'}
714 def __init__(self
, results
=None, **unknown_fields
):
716 results : typing.Sequence[~ApplicationCharmResult]
718 self
.results
= [ApplicationCharmResult
.from_json(o
) for o
in results
or []]
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
):
728 config : typing.Mapping[str, str]
730 self
.application
= application
735 class ApplicationConfigSetArgs(Type
):
736 _toSchema
= {'args': 'Args'}
737 _toPy
= {'Args': 'args'}
738 def __init__(self
, args
=None, **unknown_fields
):
740 args : typing.Sequence[~ApplicationConfigSet]
742 self
.args
= [ApplicationConfigSet
.from_json(o
) for o
in args
or []]
746 class ApplicationConfigUnsetArgs(Type
):
747 _toSchema
= {'args': 'Args'}
748 _toPy
= {'Args': 'args'}
749 def __init__(self
, args
=None, **unknown_fields
):
751 args : typing.Sequence[~ApplicationUnset]
753 self
.args
= [ApplicationUnset
.from_json(o
) for o
in args
or []]
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
):
765 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
766 self
.error
= Error
.from_json(error
) if error
else None
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
):
776 attach_storage : typing.Sequence[str]
779 config : typing.Mapping[str, str]
782 devices : typing.Mapping[str, ~Constraints]
783 endpoint_bindings : typing.Mapping[str, str]
785 placement : typing.Sequence[~Placement]
787 resources : typing.Mapping[str, str]
789 storage : typing.Mapping[str, ~Constraints]
791 self
.application
= application
792 self
.attach_storage
= attach_storage
793 self
.channel
= channel
794 self
.charm_url
= charm_url
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 []]
803 self
.resources
= resources
805 self
.storage
= storage
809 class ApplicationDestroy(Type
):
810 _toSchema
= {'application': 'application'}
811 _toPy
= {'application': 'application'}
812 def __init__(self
, application
=None, **unknown_fields
):
816 self
.application
= application
820 class ApplicationExpose(Type
):
821 _toSchema
= {'application': 'application'}
822 _toPy
= {'application': 'application'}
823 def __init__(self
, application
=None, **unknown_fields
):
827 self
.application
= application
831 class ApplicationGet(Type
):
832 _toSchema
= {'application': 'application'}
833 _toPy
= {'application': 'application'}
834 def __init__(self
, application
=None, **unknown_fields
):
838 self
.application
= application
842 class ApplicationGetConfigResults(Type
):
843 _toSchema
= {'results': 'Results'}
844 _toPy
= {'Results': 'results'}
845 def __init__(self
, results
=None, **unknown_fields
):
847 results : typing.Sequence[~ConfigResult]
849 self
.results
= [ConfigResult
.from_json(o
) for o
in results
or []]
853 class ApplicationGetConstraintsResults(Type
):
854 _toSchema
= {'results': 'results'}
855 _toPy
= {'results': 'results'}
856 def __init__(self
, results
=None, **unknown_fields
):
858 results : typing.Sequence[~ApplicationConstraint]
860 self
.results
= [ApplicationConstraint
.from_json(o
) for o
in results
or []]
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
):
871 config : typing.Mapping[str, typing.Any]
875 self
.application
= application
878 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
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
):
889 metrics_credentials : typing.Sequence[int]
891 self
.application
= application
892 self
.metrics_credentials
= metrics_credentials
896 class ApplicationMetricCredentials(Type
):
897 _toSchema
= {'creds': 'creds'}
898 _toPy
= {'creds': 'creds'}
899 def __init__(self
, creds
=None, **unknown_fields
):
901 creds : typing.Sequence[~ApplicationMetricCredential]
903 self
.creds
= [ApplicationMetricCredential
.from_json(o
) for o
in creds
or []]
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
):
913 application_description : str
914 bindings : typing.Mapping[str, str]
915 endpoints : typing.Sequence[~RemoteEndpoint]
918 source_model_tag : str
919 spaces : typing.Sequence[~RemoteSpace]
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 []]
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
):
937 applicationofferdetails : ApplicationOfferDetails
938 application_name : str
940 connections : typing.Sequence[~OfferConnection]
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 []]
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
):
954 application_description : str
955 bindings : typing.Mapping[str, str]
956 endpoints : typing.Sequence[~RemoteEndpoint]
960 source_model_tag : str
961 spaces : typing.Sequence[~RemoteSpace]
962 users : typing.Sequence[~OfferUserDetails]
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 []]
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
):
982 result : ApplicationOfferAdminDetails
984 self
.error
= Error
.from_json(error
) if error
else None
985 self
.result
= ApplicationOfferAdminDetails
.from_json(result
) if result
else None
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
):
994 active_connected_count : int
995 application_name : str
997 endpoints : typing.Mapping[str, ~RemoteEndpoint]
998 err : typing.Mapping[str, typing.Any]
1000 total_connected_count : int
1002 self
.active_connected_count
= active_connected_count
1003 self
.application_name
= application_name
1005 self
.endpoints
= endpoints
1007 self
.offer_name
= offer_name
1008 self
.total_connected_count
= total_connected_count
1012 class ApplicationOffersResults(Type
):
1013 _toSchema
= {'results': 'results'}
1014 _toPy
= {'results': 'results'}
1015 def __init__(self
, results
=None, **unknown_fields
):
1017 results : typing.Sequence[~ApplicationOfferResult]
1019 self
.results
= [ApplicationOfferResult
.from_json(o
) for o
in results
or []]
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
):
1028 changed : typing.Sequence[~RelationChange]
1029 removed : typing.Sequence[int]
1031 self
.changed
= [RelationChange
.from_json(o
) for o
in changed
or []]
1032 self
.removed
= removed
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
):
1041 applicationrelationswatcherid : str
1042 changes : ApplicationRelationsChange
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
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
):
1057 options : typing.Mapping[str, str]
1059 self
.application
= application
1060 self
.options
= options
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
):
1072 config_settings : typing.Mapping[str, str]
1073 config_settings_yaml : str
1076 resource_ids : typing.Mapping[str, str]
1077 storage_constraints : typing.Mapping[str, ~StorageConstraints]
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
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
):
1099 self
.application
= application
1100 self
.charm_url
= charm_url
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
):
1109 can_upgrade_to : str
1111 err : typing.Mapping[str, typing.Any]
1114 meter_statuses : typing.Mapping[str, ~MeterStatus]
1115 relations : typing.Sequence[str]
1117 status : DetailedStatus
1118 subordinate_to : typing.Sequence[str]
1119 units : typing.Mapping[str, ~UnitStatus]
1120 workload_version : str
1122 self
.can_upgrade_to
= can_upgrade_to
1125 self
.exposed
= exposed
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
1133 self
.workload_version
= workload_version
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
):
1142 application : StatusResult
1144 units : typing.Mapping[str, ~StatusResult]
1146 self
.application
= StatusResult
.from_json(application
) if application
else None
1147 self
.error
= Error
.from_json(error
) if error
else None
1152 class ApplicationStatusResults(Type
):
1153 _toSchema
= {'results': 'results'}
1154 _toPy
= {'results': 'results'}
1155 def __init__(self
, results
=None, **unknown_fields
):
1157 results : typing.Sequence[~ApplicationStatusResult]
1159 self
.results
= [ApplicationStatusResult
.from_json(o
) for o
in results
or []]
1163 class ApplicationTag(Type
):
1164 _toSchema
= {'name': 'Name'}
1165 _toPy
= {'Name': 'name'}
1166 def __init__(self
, name
=None, **unknown_fields
):
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
):
1179 application_urls : typing.Sequence[str]
1181 self
.application_urls
= application_urls
1185 class ApplicationUnexpose(Type
):
1186 _toSchema
= {'application': 'application'}
1187 _toPy
= {'application': 'application'}
1188 def __init__(self
, application
=None, **unknown_fields
):
1192 self
.application
= application
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
):
1202 data : typing.Mapping[str, typing.Any]
1203 filesystem_info : typing.Sequence[~KubernetesFilesystemInfo]
1205 ports : typing.Sequence[str]
1210 self
.address
= address
1212 self
.filesystem_info
= [KubernetesFilesystemInfo
.from_json(o
) for o
in filesystem_info
or []]
1215 self
.provider_id
= provider_id
1216 self
.status
= status
1217 self
.unit_tag
= unit_tag
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
):
1227 options : typing.Sequence[str]
1229 self
.application
= application
1230 self
.options
= options
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
):
1242 force_charm_url : bool
1245 settings : typing.Mapping[str, str]
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
1259 class ApplicationsCharmActionsResults(Type
):
1260 _toSchema
= {'results': 'results'}
1261 _toPy
= {'results': 'results'}
1262 def __init__(self
, results
=None, **unknown_fields
):
1264 results : typing.Sequence[~ApplicationCharmActionsResult]
1266 self
.results
= [ApplicationCharmActionsResult
.from_json(o
) for o
in results
or []]
1270 class ApplicationsDeploy(Type
):
1271 _toSchema
= {'applications': 'applications'}
1272 _toPy
= {'applications': 'applications'}
1273 def __init__(self
, applications
=None, **unknown_fields
):
1275 applications : typing.Sequence[~ApplicationDeploy]
1277 self
.applications
= [ApplicationDeploy
.from_json(o
) for o
in applications
or []]
1281 class BackupsCreateArgs(Type
):
1282 _toSchema
= {'notes': 'notes'}
1283 _toPy
= {'notes': 'notes'}
1284 def __init__(self
, notes
=None, **unknown_fields
):
1292 class BackupsInfoArgs(Type
):
1293 _toSchema
= {'id_': 'id'}
1294 _toPy
= {'id': 'id_'}
1295 def __init__(self
, id_
=None, **unknown_fields
):
1303 class BackupsListArgs(Type
):
1306 def __init__(self
, **unknown_fields
):
1314 class BackupsListResult(Type
):
1315 _toSchema
= {'list_': 'list'}
1316 _toPy
= {'list': 'list_'}
1317 def __init__(self
, list_
=None, **unknown_fields
):
1319 list_ : typing.Sequence[~BackupsMetadataResult]
1321 self
.list_
= [BackupsMetadataResult
.from_json(o
) for o
in list_
or []]
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
):
1331 ca_private_key : str
1333 checksum_format : str
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
1353 self
.machine
= machine
1356 self
.series
= series
1358 self
.started
= started
1359 self
.stored
= stored
1360 self
.version
= Number
.from_json(version
) if version
else None
1364 class BackupsRemoveArgs(Type
):
1365 _toSchema
= {'id_': 'id'}
1366 _toPy
= {'id': 'id_'}
1367 def __init__(self
, id_
=None, **unknown_fields
):
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
):
1385 self
.number
= Number
.from_json(number
) if number
else None
1386 self
.series
= series
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
):
1401 self
.message
= message
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
):
1413 devicelinks : typing.Sequence[str]
1415 filesystemtype : str
1423 self
.busaddress
= busaddress
1424 self
.devicelinks
= devicelinks
1425 self
.devicename
= devicename
1426 self
.filesystemtype
= filesystemtype
1427 self
.hardwareid
= hardwareid
1430 self
.mountpoint
= mountpoint
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
):
1442 result : BlockDevice
1444 self
.error
= Error
.from_json(error
) if error
else None
1445 self
.result
= BlockDevice
.from_json(result
) if result
else None
1449 class BlockDeviceResults(Type
):
1450 _toSchema
= {'results': 'results'}
1451 _toPy
= {'results': 'results'}
1452 def __init__(self
, results
=None, **unknown_fields
):
1454 results : typing.Sequence[~BlockDeviceResult]
1456 self
.results
= [BlockDeviceResult
.from_json(o
) for o
in results
or []]
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
):
1468 self
.error
= Error
.from_json(error
) if error
else None
1469 self
.result
= Block
.from_json(result
) if result
else None
1473 class BlockResults(Type
):
1474 _toSchema
= {'results': 'results'}
1475 _toPy
= {'results': 'results'}
1476 def __init__(self
, results
=None, **unknown_fields
):
1478 results : typing.Sequence[~BlockResult]
1480 self
.results
= [BlockResult
.from_json(o
) for o
in results
or []]
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
):
1492 self
.message
= message
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
):
1505 self
.error
= Error
.from_json(error
) if error
else None
1506 self
.result
= result
1510 class BoolResults(Type
):
1511 _toSchema
= {'results': 'results'}
1512 _toPy
= {'results': 'results'}
1513 def __init__(self
, results
=None, **unknown_fields
):
1515 results : typing.Sequence[~BoolResult]
1517 self
.results
= [BoolResult
.from_json(o
) for o
in results
or []]
1521 class BulkImportStorageParams(Type
):
1522 _toSchema
= {'storage': 'storage'}
1523 _toPy
= {'storage': 'storage'}
1524 def __init__(self
, storage
=None, **unknown_fields
):
1526 storage : typing.Sequence[~ImportStorageParams]
1528 self
.storage
= [ImportStorageParams
.from_json(o
) for o
in storage
or []]
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
):
1537 args : typing.Sequence[typing.Any]
1540 requires : typing.Sequence[str]
1544 self
.method
= method
1545 self
.requires
= requires
1549 class BundleChangesParams(Type
):
1550 _toSchema
= {'yaml': 'yaml'}
1551 _toPy
= {'yaml': 'yaml'}
1552 def __init__(self
, yaml
=None, **unknown_fields
):
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
):
1565 changes : typing.Sequence[~BundleChange]
1566 errors : typing.Sequence[str]
1568 self
.changes
= [BundleChange
.from_json(o
) for o
in changes
or []]
1569 self
.errors
= errors
1573 class BytesResult(Type
):
1574 _toSchema
= {'result': 'result'}
1575 _toPy
= {'result': 'result'}
1576 def __init__(self
, result
=None, **unknown_fields
):
1578 result : typing.Sequence[int]
1580 self
.result
= result
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
):
1589 credential_tag : str
1592 self
.credential_tag
= credential_tag
1593 self
.model_tag
= model_tag
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
):
1602 model_credentials : typing.Sequence[~ChangeModelCredentialParams]
1604 self
.model_credentials
= [ChangeModelCredentialParams
.from_json(o
) for o
in model_credentials
or []]
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
):
1614 params : typing.Mapping[str, typing.Any]
1616 self
.description
= description
1617 self
.params
= params
1621 class CharmActions(Type
):
1622 _toSchema
= {'specs': 'specs'}
1623 _toPy
= {'specs': 'specs'}
1624 def __init__(self
, specs
=None, **unknown_fields
):
1626 specs : typing.Mapping[str, ~CharmActionSpec]
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
):
1643 self
.countmax
= countmax
1644 self
.countmin
= countmin
1645 self
.description
= description
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
):
1656 actions : CharmActions
1657 config : typing.Mapping[str, ~CharmOption]
1659 metrics : CharmMetrics
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
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
):
1677 config : typing.Mapping[str, str]
1679 devices : typing.Mapping[str, typing.Any]
1681 self
.config
= config
1682 self
.description
= description
1683 self
.devices
= devices
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
):
1692 categories : typing.Sequence[str]
1694 extra_bindings : typing.Mapping[str, str]
1695 min_juju_version : 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]
1706 tags : typing.Sequence[str]
1707 terms : typing.Sequence[str]
1709 self
.categories
= categories
1710 self
.description
= description
1711 self
.extra_bindings
= extra_bindings
1712 self
.min_juju_version
= min_juju_version
1714 self
.payload_classes
= payload_classes
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
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
):
1736 self
.description
= description
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
):
1746 metrics : typing.Mapping[str, ~CharmMetric]
1749 self
.metrics
= metrics
1750 self
.plan
= CharmPlan
.from_json(plan
) if plan
else None
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
):
1759 default : typing.Mapping[str, typing.Any]
1763 self
.default
= default
1764 self
.description
= description
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
):
1782 class CharmPlan(Type
):
1783 _toSchema
= {'required': 'required'}
1784 _toPy
= {'required': 'required'}
1785 def __init__(self
, required
=None, **unknown_fields
):
1789 self
.required
= required
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
):
1805 self
.interface
= interface
1808 self
.optional
= optional
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
):
1820 fingerprint : typing.Sequence[int]
1828 self
.description
= description
1829 self
.fingerprint
= fingerprint
1831 self
.origin
= origin
1833 self
.revision
= revision
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
):
1849 self
.description
= description
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
):
1867 properties : typing.Sequence[str]
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
1878 self
.properties
= properties
1879 self
.read_only
= read_only
1880 self
.shared
= shared
1885 class CharmURL(Type
):
1886 _toSchema
= {'url': 'url'}
1887 _toPy
= {'url': 'url'}
1888 def __init__(self
, url
=None, **unknown_fields
):
1896 class CharmURLs(Type
):
1897 _toSchema
= {'urls': 'urls'}
1898 _toPy
= {'urls': 'urls'}
1899 def __init__(self
, urls
=None, **unknown_fields
):
1901 urls : typing.Sequence[~CharmURL]
1903 self
.urls
= [CharmURL
.from_json(o
) for o
in urls
or []]
1907 class CharmsList(Type
):
1908 _toSchema
= {'names': 'names'}
1909 _toPy
= {'names': 'names'}
1910 def __init__(self
, names
=None, **unknown_fields
):
1912 names : typing.Sequence[str]
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
):
1923 charm_urls : typing.Sequence[str]
1925 self
.charm_urls
= charm_urls
1929 class ClaimLeadershipBulkParams(Type
):
1930 _toSchema
= {'params': 'params'}
1931 _toPy
= {'params': 'params'}
1932 def __init__(self
, params
=None, **unknown_fields
):
1934 params : typing.Sequence[~ClaimLeadershipParams]
1936 self
.params
= [ClaimLeadershipParams
.from_json(o
) for o
in params
or []]
1940 class ClaimLeadershipBulkResults(Type
):
1941 _toSchema
= {'results': 'results'}
1942 _toPy
= {'results': 'results'}
1943 def __init__(self
, results
=None, **unknown_fields
):
1945 results : typing.Sequence[~ErrorResult]
1947 self
.results
= [ErrorResult
.from_json(o
) for o
in results
or []]
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
):
1956 application_tag : str
1960 self
.application_tag
= application_tag
1961 self
.duration
= duration
1962 self
.unit_tag
= unit_tag
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
):
1971 auth_types : typing.Sequence[str]
1973 identity_endpoint : str
1974 regions : typing.Sequence[~CloudRegion]
1975 storage_endpoint : str
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
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
):
1992 attrs : typing.Mapping[str, str]
1994 redacted : typing.Sequence[str]
1997 self
.auth_type
= auth_type
1998 self
.redacted
= redacted
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
):
2008 credential_name : str
2010 self
.cloud_name
= cloud_name
2011 self
.credential_name
= credential_name
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
):
2020 credentials : typing.Sequence[~CloudCredentialArg]
2021 include_secrets : bool
2023 self
.credentials
= [CloudCredentialArg
.from_json(o
) for o
in credentials
or []]
2024 self
.include_secrets
= include_secrets
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
):
2034 result : CloudCredential
2036 self
.error
= Error
.from_json(error
) if error
else None
2037 self
.result
= CloudCredential
.from_json(result
) if result
else None
2041 class CloudCredentialResults(Type
):
2042 _toSchema
= {'results': 'results'}
2043 _toPy
= {'results': 'results'}
2044 def __init__(self
, results
=None, **unknown_fields
):
2046 results : typing.Sequence[~CloudCredentialResult]
2048 self
.results
= [CloudCredentialResult
.from_json(o
) for o
in results
or []]
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
):
2057 auth_types : typing.Sequence[str]
2059 identity_endpoint : str
2060 regions : typing.Sequence[~CloudRegion]
2061 storage_endpoint : str
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
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
):
2082 root_storage_size : int
2083 root_storage_type : str
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
2104 class CloudImageMetadataList(Type
):
2105 _toSchema
= {'metadata': 'metadata'}
2106 _toPy
= {'metadata': 'metadata'}
2107 def __init__(self
, metadata
=None, **unknown_fields
):
2109 metadata : typing.Sequence[~CloudImageMetadata]
2111 self
.metadata
= [CloudImageMetadata
.from_json(o
) for o
in metadata
or []]
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
):
2120 clouddetails : CloudDetails
2121 users : typing.Sequence[~CloudUserInfo]
2123 self
.clouddetails
= CloudDetails
.from_json(clouddetails
) if clouddetails
else None
2124 self
.users
= [CloudUserInfo
.from_json(o
) for o
in users
or []]
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
):
2136 self
.error
= Error
.from_json(error
) if error
else None
2137 self
.result
= CloudInfo
.from_json(result
) if result
else None
2141 class CloudInfoResults(Type
):
2142 _toSchema
= {'results': 'results'}
2143 _toPy
= {'results': 'results'}
2144 def __init__(self
, results
=None, **unknown_fields
):
2146 results : typing.Sequence[~CloudInfoResult]
2148 self
.results
= [CloudInfoResult
.from_json(o
) for o
in results
or []]
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
):
2161 self
.cloud_tag
= cloud_tag
2162 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
2163 self
.region
= region
2167 class CloudInstanceTypesConstraints(Type
):
2168 _toSchema
= {'constraints': 'constraints'}
2169 _toPy
= {'constraints': 'constraints'}
2170 def __init__(self
, constraints
=None, **unknown_fields
):
2172 constraints : typing.Sequence[~CloudInstanceTypesConstraint]
2174 self
.constraints
= [CloudInstanceTypesConstraint
.from_json(o
) for o
in constraints
or []]
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
):
2184 identity_endpoint : str
2186 storage_endpoint : str
2188 self
.endpoint
= endpoint
2189 self
.identity_endpoint
= identity_endpoint
2191 self
.storage_endpoint
= storage_endpoint
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
):
2203 self
.cloud
= Cloud
.from_json(cloud
) if cloud
else None
2204 self
.error
= Error
.from_json(error
) if error
else None
2208 class CloudResults(Type
):
2209 _toSchema
= {'results': 'results'}
2210 _toPy
= {'results': 'results'}
2211 def __init__(self
, results
=None, **unknown_fields
):
2213 results : typing.Sequence[~CloudResult]
2215 self
.results
= [CloudResult
.from_json(o
) for o
in results
or []]
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
):
2224 credential : CloudCredential
2226 identity_endpoint : str
2229 storage_endpoint : str
2232 self
.credential
= CloudCredential
.from_json(credential
) if credential
else None
2233 self
.endpoint
= endpoint
2234 self
.identity_endpoint
= identity_endpoint
2236 self
.region
= region
2237 self
.storage_endpoint
= storage_endpoint
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
):
2250 self
.error
= Error
.from_json(error
) if error
else None
2251 self
.result
= CloudSpec
.from_json(result
) if result
else None
2255 class CloudSpecResults(Type
):
2256 _toSchema
= {'results': 'results'}
2257 _toPy
= {'results': 'results'}
2258 def __init__(self
, results
=None, **unknown_fields
):
2260 results : typing.Sequence[~CloudSpecResult]
2262 self
.results
= [CloudSpecResult
.from_json(o
) for o
in results
or []]
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
):
2275 self
.access
= access
2276 self
.display_name
= display_name
2281 class CloudsResult(Type
):
2282 _toSchema
= {'clouds': 'clouds'}
2283 _toPy
= {'clouds': 'clouds'}
2284 def __init__(self
, clouds
=None, **unknown_fields
):
2286 clouds : typing.Mapping[str, ~Cloud]
2288 self
.clouds
= clouds
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
):
2297 config : typing.Mapping[str, typing.Any]
2300 self
.config
= config
2301 self
.error
= Error
.from_json(error
) if error
else None
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
):
2311 settings : typing.Mapping[str, typing.Any]
2313 self
.error
= Error
.from_json(error
) if error
else None
2314 self
.settings
= settings
2318 class ConfigSettingsResults(Type
):
2319 _toSchema
= {'results': 'results'}
2320 _toPy
= {'results': 'results'}
2321 def __init__(self
, results
=None, **unknown_fields
):
2323 results : typing.Sequence[~ConfigSettingsResult]
2325 self
.results
= [ConfigSettingsResult
.from_json(o
) for o
in results
or []]
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
):
2335 value : typing.Mapping[str, typing.Any]
2337 self
.source
= source
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
):
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
):
2365 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
2366 self
.error
= Error
.from_json(error
) if error
else None
2370 class ConstraintsResults(Type
):
2371 _toSchema
= {'results': 'results'}
2372 _toPy
= {'results': 'results'}
2373 def __init__(self
, results
=None, **unknown_fields
):
2375 results : typing.Sequence[~ConstraintsResult]
2377 self
.results
= [ConstraintsResult
.from_json(o
) for o
in results
or []]
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
):
2386 application_alias : str
2387 application_url : str
2389 self
.application_alias
= application_alias
2390 self
.application_url
= application_url
2394 class ConsumeApplicationArgs(Type
):
2395 _toSchema
= {'args': 'args'}
2396 _toPy
= {'args': 'args'}
2397 def __init__(self
, args
=None, **unknown_fields
):
2399 args : typing.Sequence[~ConsumeApplicationArg]
2401 self
.args
= [ConsumeApplicationArg
.from_json(o
) for o
in args
or []]
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
):
2413 self
.error
= Error
.from_json(error
) if error
else None
2414 self
.local_name
= local_name
2418 class ConsumeApplicationResults(Type
):
2419 _toSchema
= {'results': 'results'}
2420 _toPy
= {'results': 'results'}
2421 def __init__(self
, results
=None, **unknown_fields
):
2423 results : typing.Sequence[~ConsumeApplicationResult]
2425 self
.results
= [ConsumeApplicationResult
.from_json(o
) for o
in results
or []]
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
):
2434 external_controller : ExternalControllerInfo
2436 offer : ApplicationOfferDetails
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
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
):
2449 consumeofferdetails : ConsumeOfferDetails
2452 self
.consumeofferdetails
= ConsumeOfferDetails
.from_json(consumeofferdetails
) if consumeofferdetails
else None
2453 self
.error
= Error
.from_json(error
) if error
else None
2457 class ConsumeOfferDetailsResults(Type
):
2458 _toSchema
= {'results': 'results'}
2459 _toPy
= {'results': 'results'}
2460 def __init__(self
, results
=None, **unknown_fields
):
2462 results : typing.Sequence[~ConsumeOfferDetailsResult]
2464 self
.results
= [ConsumeOfferDetailsResult
.from_json(o
) for o
in results
or []]
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
):
2473 updatebehavior : UpdateBehavior
2475 apt_proxy : Settings
2476 authorized_keys : str
2479 ssl_hostname_verification : bool
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
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
):
2497 profile : CharmLXDProfile
2500 self
.profile
= CharmLXDProfile
.from_json(profile
) if profile
else None
2504 class ContainerManagerConfig(Type
):
2505 _toSchema
= {'config': 'config'}
2506 _toPy
= {'config': 'config'}
2507 def __init__(self
, config
=None, **unknown_fields
):
2509 config : typing.Mapping[str, str]
2511 self
.config
= config
2515 class ContainerManagerConfigParams(Type
):
2516 _toSchema
= {'type_': 'type'}
2517 _toPy
= {'type': 'type_'}
2518 def __init__(self
, type_
=None, **unknown_fields
):
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
):
2532 lxd_profiles : typing.Sequence[~ContainerLXDProfile]
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 []]
2539 class ContainerProfileResults(Type
):
2540 _toSchema
= {'results': 'results'}
2541 _toPy
= {'results': 'results'}
2542 def __init__(self
, results
=None, **unknown_fields
):
2544 results : typing.Sequence[~ContainerProfileResult]
2546 self
.results
= [ContainerProfileResult
.from_json(o
) for o
in results
or []]
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
):
2555 addresses : typing.Sequence[str]
2559 self
.addresses
= addresses
2560 self
.cacert
= cacert
2561 self
.error
= Error
.from_json(error
) if error
else None
2565 class ControllerAPIInfoResults(Type
):
2566 _toSchema
= {'results': 'results'}
2567 _toPy
= {'results': 'results'}
2568 def __init__(self
, results
=None, **unknown_fields
):
2570 results : typing.Sequence[~ControllerAPIInfoResult]
2572 self
.results
= [ControllerAPIInfoResult
.from_json(o
) for o
in results
or []]
2576 class ControllerConfigResult(Type
):
2577 _toSchema
= {'config': 'config'}
2578 _toPy
= {'config': 'config'}
2579 def __init__(self
, config
=None, **unknown_fields
):
2581 config : typing.Mapping[str, typing.Any]
2583 self
.config
= config
2587 class ControllerConfigSet(Type
):
2588 _toSchema
= {'config': 'config'}
2589 _toPy
= {'config': 'config'}
2590 def __init__(self
, config
=None, **unknown_fields
):
2592 config : typing.Mapping[str, typing.Any]
2594 self
.config
= config
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
):
2603 content : CredentialContent
2604 models : typing.Sequence[~ModelAccess]
2606 self
.content
= CredentialContent
.from_json(content
) if content
else None
2607 self
.models
= [ModelAccess
.from_json(o
) for o
in models
or []]
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
):
2617 result : ControllersChanges
2619 self
.error
= Error
.from_json(error
) if error
else None
2620 self
.result
= ControllersChanges
.from_json(result
) if result
else None
2624 class ControllersChangeResults(Type
):
2625 _toSchema
= {'results': 'results'}
2626 _toPy
= {'results': 'results'}
2627 def __init__(self
, results
=None, **unknown_fields
):
2629 results : typing.Sequence[~ControllersChangeResult]
2631 self
.results
= [ControllersChangeResult
.from_json(o
) for o
in results
or []]
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
):
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]
2648 self
.converted
= converted
2649 self
.demoted
= demoted
2650 self
.maintained
= maintained
2651 self
.promoted
= promoted
2652 self
.removed
= removed