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 Type
, ReturnMapping
7 class APIHostPortsResult(Type
):
8 _toSchema
= {'servers': 'servers'}
9 _toPy
= {'servers': 'servers'}
10 def __init__(self
, servers
=None, **unknown_fields
):
12 servers : typing.Sequence<+T_co>[~HostPort]<~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<~KT, +VT_co>[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<~KT, +VT_co>[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<+T_co>[~ActionExecutionResult]<~ActionExecutionResult>
59 self
.results
= [ActionExecutionResult
.from_json(o
) for o
in results
or []]
63 class ActionResult(Type
):
64 _toSchema
= {'action': 'action', 'completed': 'completed', 'enqueued': 'enqueued', 'error': 'error', 'message': 'message', 'output': 'output', 'started': 'started', 'status': 'status'}
65 _toPy
= {'action': 'action', 'completed': 'completed', 'enqueued': 'enqueued', 'error': 'error', 'message': 'message', 'output': 'output', 'started': 'started', 'status': 'status'}
66 def __init__(self
, action
=None, completed
=None, enqueued
=None, error
=None, message
=None, output
=None, started
=None, status
=None, **unknown_fields
):
73 output : typing.Mapping<~KT, +VT_co>[str, typing.Any]
77 self
.action
= Action
.from_json(action
) if action
else None
78 self
.completed
= completed
79 self
.enqueued
= enqueued
80 self
.error
= Error
.from_json(error
) if error
else None
81 self
.message
= message
83 self
.started
= started
88 class ActionResults(Type
):
89 _toSchema
= {'results': 'results'}
90 _toPy
= {'results': 'results'}
91 def __init__(self
, results
=None, **unknown_fields
):
93 results : typing.Sequence<+T_co>[~ActionResult]<~ActionResult>
95 self
.results
= [ActionResult
.from_json(o
) for o
in results
or []]
99 class ActionSpec(Type
):
100 _toSchema
= {'description': 'description', 'params': 'params'}
101 _toPy
= {'description': 'description', 'params': 'params'}
102 def __init__(self
, description
=None, params
=None, **unknown_fields
):
105 params : typing.Mapping<~KT, +VT_co>[str, typing.Any]
107 self
.description
= description
113 _toSchema
= {'actions': 'actions'}
114 _toPy
= {'actions': 'actions'}
115 def __init__(self
, actions
=None, **unknown_fields
):
117 actions : typing.Sequence<+T_co>[~Action]<~Action>
119 self
.actions
= [Action
.from_json(o
) for o
in actions
or []]
123 class ActionsByName(Type
):
124 _toSchema
= {'actions': 'actions', 'error': 'error', 'name': 'name'}
125 _toPy
= {'actions': 'actions', 'error': 'error', 'name': 'name'}
126 def __init__(self
, actions
=None, error
=None, name
=None, **unknown_fields
):
128 actions : typing.Sequence<+T_co>[~ActionResult]<~ActionResult>
132 self
.actions
= [ActionResult
.from_json(o
) for o
in actions
or []]
133 self
.error
= Error
.from_json(error
) if error
else None
138 class ActionsByNames(Type
):
139 _toSchema
= {'actions': 'actions'}
140 _toPy
= {'actions': 'actions'}
141 def __init__(self
, actions
=None, **unknown_fields
):
143 actions : typing.Sequence<+T_co>[~ActionsByName]<~ActionsByName>
145 self
.actions
= [ActionsByName
.from_json(o
) for o
in actions
or []]
149 class ActionsByReceiver(Type
):
150 _toSchema
= {'actions': 'actions', 'error': 'error', 'receiver': 'receiver'}
151 _toPy
= {'actions': 'actions', 'error': 'error', 'receiver': 'receiver'}
152 def __init__(self
, actions
=None, error
=None, receiver
=None, **unknown_fields
):
154 actions : typing.Sequence<+T_co>[~ActionResult]<~ActionResult>
158 self
.actions
= [ActionResult
.from_json(o
) for o
in actions
or []]
159 self
.error
= Error
.from_json(error
) if error
else None
160 self
.receiver
= receiver
164 class ActionsByReceivers(Type
):
165 _toSchema
= {'actions': 'actions'}
166 _toPy
= {'actions': 'actions'}
167 def __init__(self
, actions
=None, **unknown_fields
):
169 actions : typing.Sequence<+T_co>[~ActionsByReceiver]<~ActionsByReceiver>
171 self
.actions
= [ActionsByReceiver
.from_json(o
) for o
in actions
or []]
175 class AddApplicationUnits(Type
):
176 _toSchema
= {'application': 'application', 'num_units': 'num-units', 'placement': 'placement'}
177 _toPy
= {'application': 'application', 'num-units': 'num_units', 'placement': 'placement'}
178 def __init__(self
, application
=None, num_units
=None, placement
=None, **unknown_fields
):
182 placement : typing.Sequence<+T_co>[~Placement]<~Placement>
184 self
.application
= application
185 self
.num_units
= num_units
186 self
.placement
= [Placement
.from_json(o
) for o
in placement
or []]
190 class AddApplicationUnitsResults(Type
):
191 _toSchema
= {'units': 'units'}
192 _toPy
= {'units': 'units'}
193 def __init__(self
, units
=None, **unknown_fields
):
195 units : typing.Sequence<+T_co>[str]
201 class AddCharm(Type
):
202 _toSchema
= {'channel': 'channel', 'url': 'url'}
203 _toPy
= {'channel': 'channel', 'url': 'url'}
204 def __init__(self
, channel
=None, url
=None, **unknown_fields
):
209 self
.channel
= channel
214 class AddCharmWithAuthorization(Type
):
215 _toSchema
= {'channel': 'channel', 'macaroon': 'macaroon', 'url': 'url'}
216 _toPy
= {'channel': 'channel', 'macaroon': 'macaroon', 'url': 'url'}
217 def __init__(self
, channel
=None, macaroon
=None, url
=None, **unknown_fields
):
223 self
.channel
= channel
224 self
.macaroon
= Macaroon
.from_json(macaroon
) if macaroon
else None
229 class AddMachineParams(Type
):
230 _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'}
231 _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'}
232 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
):
234 addresses : typing.Sequence<+T_co>[~Address]<~Address>
237 disks : typing.Sequence<+T_co>[~Constraints]<~Constraints>
238 hardware_characteristics : HardwareCharacteristics
240 jobs : typing.Sequence<+T_co>[str]
243 placement : Placement
246 self
.addresses
= [Address
.from_json(o
) for o
in addresses
or []]
247 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
248 self
.container_type
= container_type
249 self
.disks
= [Constraints
.from_json(o
) for o
in disks
or []]
250 self
.hardware_characteristics
= HardwareCharacteristics
.from_json(hardware_characteristics
) if hardware_characteristics
else None
251 self
.instance_id
= instance_id
254 self
.parent_id
= parent_id
255 self
.placement
= Placement
.from_json(placement
) if placement
else None
260 class AddMachines(Type
):
261 _toSchema
= {'params': 'params'}
262 _toPy
= {'params': 'params'}
263 def __init__(self
, params
=None, **unknown_fields
):
265 params : typing.Sequence<+T_co>[~AddMachineParams]<~AddMachineParams>
267 self
.params
= [AddMachineParams
.from_json(o
) for o
in params
or []]
271 class AddMachinesResult(Type
):
272 _toSchema
= {'error': 'error', 'machine': 'machine'}
273 _toPy
= {'error': 'error', 'machine': 'machine'}
274 def __init__(self
, error
=None, machine
=None, **unknown_fields
):
279 self
.error
= Error
.from_json(error
) if error
else None
280 self
.machine
= machine
284 class AddMachinesResults(Type
):
285 _toSchema
= {'machines': 'machines'}
286 _toPy
= {'machines': 'machines'}
287 def __init__(self
, machines
=None, **unknown_fields
):
289 machines : typing.Sequence<+T_co>[~AddMachinesResult]<~AddMachinesResult>
291 self
.machines
= [AddMachinesResult
.from_json(o
) for o
in machines
or []]
295 class AddPendingResourcesArgs(Type
):
296 _toSchema
= {'addcharmwithauthorization': 'AddCharmWithAuthorization', 'entity': 'Entity', 'resources': 'Resources'}
297 _toPy
= {'AddCharmWithAuthorization': 'addcharmwithauthorization', 'Entity': 'entity', 'Resources': 'resources'}
298 def __init__(self
, addcharmwithauthorization
=None, entity
=None, resources
=None, **unknown_fields
):
300 addcharmwithauthorization : AddCharmWithAuthorization
302 resources : typing.Sequence<+T_co>[~CharmResource]<~CharmResource>
304 self
.addcharmwithauthorization
= AddCharmWithAuthorization
.from_json(addcharmwithauthorization
) if addcharmwithauthorization
else None
305 self
.entity
= Entity
.from_json(entity
) if entity
else None
306 self
.resources
= [CharmResource
.from_json(o
) for o
in resources
or []]
310 class AddPendingResourcesResult(Type
):
311 _toSchema
= {'errorresult': 'ErrorResult', 'pending_ids': 'pending-ids'}
312 _toPy
= {'ErrorResult': 'errorresult', 'pending-ids': 'pending_ids'}
313 def __init__(self
, errorresult
=None, pending_ids
=None, **unknown_fields
):
315 errorresult : ErrorResult
316 pending_ids : typing.Sequence<+T_co>[str]
318 self
.errorresult
= ErrorResult
.from_json(errorresult
) if errorresult
else None
319 self
.pending_ids
= pending_ids
323 class AddRelation(Type
):
324 _toSchema
= {'endpoints': 'endpoints'}
325 _toPy
= {'endpoints': 'endpoints'}
326 def __init__(self
, endpoints
=None, **unknown_fields
):
328 endpoints : typing.Sequence<+T_co>[str]
330 self
.endpoints
= endpoints
334 class AddRelationResults(Type
):
335 _toSchema
= {'endpoints': 'endpoints'}
336 _toPy
= {'endpoints': 'endpoints'}
337 def __init__(self
, endpoints
=None, **unknown_fields
):
339 endpoints : typing.Mapping<~KT, +VT_co>[str, ~CharmRelation]<~CharmRelation>
341 self
.endpoints
= endpoints
345 class AddSubnetParams(Type
):
346 _toSchema
= {'space_tag': 'space-tag', 'subnet_provider_id': 'subnet-provider-id', 'subnet_tag': 'subnet-tag', 'zones': 'zones'}
347 _toPy
= {'space-tag': 'space_tag', 'subnet-provider-id': 'subnet_provider_id', 'subnet-tag': 'subnet_tag', 'zones': 'zones'}
348 def __init__(self
, space_tag
=None, subnet_provider_id
=None, subnet_tag
=None, zones
=None, **unknown_fields
):
351 subnet_provider_id : str
353 zones : typing.Sequence<+T_co>[str]
355 self
.space_tag
= space_tag
356 self
.subnet_provider_id
= subnet_provider_id
357 self
.subnet_tag
= subnet_tag
362 class AddSubnetsParams(Type
):
363 _toSchema
= {'subnets': 'subnets'}
364 _toPy
= {'subnets': 'subnets'}
365 def __init__(self
, subnets
=None, **unknown_fields
):
367 subnets : typing.Sequence<+T_co>[~AddSubnetParams]<~AddSubnetParams>
369 self
.subnets
= [AddSubnetParams
.from_json(o
) for o
in subnets
or []]
374 _toSchema
= {'display_name': 'display-name', 'password': 'password', 'username': 'username'}
375 _toPy
= {'display-name': 'display_name', 'password': 'password', 'username': 'username'}
376 def __init__(self
, display_name
=None, password
=None, username
=None, **unknown_fields
):
382 self
.display_name
= display_name
383 self
.password
= password
384 self
.username
= username
388 class AddUserResult(Type
):
389 _toSchema
= {'error': 'error', 'secret_key': 'secret-key', 'tag': 'tag'}
390 _toPy
= {'error': 'error', 'secret-key': 'secret_key', 'tag': 'tag'}
391 def __init__(self
, error
=None, secret_key
=None, tag
=None, **unknown_fields
):
394 secret_key : typing.Sequence<+T_co>[int]
397 self
.error
= Error
.from_json(error
) if error
else None
398 self
.secret_key
= secret_key
403 class AddUserResults(Type
):
404 _toSchema
= {'results': 'results'}
405 _toPy
= {'results': 'results'}
406 def __init__(self
, results
=None, **unknown_fields
):
408 results : typing.Sequence<+T_co>[~AddUserResult]<~AddUserResult>
410 self
.results
= [AddUserResult
.from_json(o
) for o
in results
or []]
414 class AddUsers(Type
):
415 _toSchema
= {'users': 'users'}
416 _toPy
= {'users': 'users'}
417 def __init__(self
, users
=None, **unknown_fields
):
419 users : typing.Sequence<+T_co>[~AddUser]<~AddUser>
421 self
.users
= [AddUser
.from_json(o
) for o
in users
or []]
426 _toSchema
= {'scope': 'scope', 'space_name': 'space-name', 'type_': 'type', 'value': 'value'}
427 _toPy
= {'scope': 'scope', 'space-name': 'space_name', 'type': 'type_', 'value': 'value'}
428 def __init__(self
, scope
=None, space_name
=None, type_
=None, value
=None, **unknown_fields
):
436 self
.space_name
= space_name
442 class AdoptResourcesArgs(Type
):
443 _toSchema
= {'model_tag': 'model-tag', 'source_controller_version': 'source-controller-version'}
444 _toPy
= {'model-tag': 'model_tag', 'source-controller-version': 'source_controller_version'}
445 def __init__(self
, model_tag
=None, source_controller_version
=None, **unknown_fields
):
448 source_controller_version : Number
450 self
.model_tag
= model_tag
451 self
.source_controller_version
= Number
.from_json(source_controller_version
) if source_controller_version
else None
455 class AgentGetEntitiesResult(Type
):
456 _toSchema
= {'container_type': 'container-type', 'error': 'error', 'jobs': 'jobs', 'life': 'life'}
457 _toPy
= {'container-type': 'container_type', 'error': 'error', 'jobs': 'jobs', 'life': 'life'}
458 def __init__(self
, container_type
=None, error
=None, jobs
=None, life
=None, **unknown_fields
):
462 jobs : typing.Sequence<+T_co>[str]
465 self
.container_type
= container_type
466 self
.error
= Error
.from_json(error
) if error
else None
472 class AgentGetEntitiesResults(Type
):
473 _toSchema
= {'entities': 'entities'}
474 _toPy
= {'entities': 'entities'}
475 def __init__(self
, entities
=None, **unknown_fields
):
477 entities : typing.Sequence<+T_co>[~AgentGetEntitiesResult]<~AgentGetEntitiesResult>
479 self
.entities
= [AgentGetEntitiesResult
.from_json(o
) for o
in entities
or []]
483 class AgentVersionResult(Type
):
484 _toSchema
= {'version': 'version'}
485 _toPy
= {'version': 'version'}
486 def __init__(self
, version
=None, **unknown_fields
):
490 self
.version
= Number
.from_json(version
) if version
else None
494 class AllWatcherId(Type
):
495 _toSchema
= {'watcher_id': 'watcher-id'}
496 _toPy
= {'watcher-id': 'watcher_id'}
497 def __init__(self
, watcher_id
=None, **unknown_fields
):
501 self
.watcher_id
= watcher_id
505 class AllWatcherNextResults(Type
):
506 _toSchema
= {'deltas': 'deltas'}
507 _toPy
= {'deltas': 'deltas'}
508 def __init__(self
, deltas
=None, **unknown_fields
):
510 deltas : typing.Sequence<+T_co>[~Delta]<~Delta>
512 self
.deltas
= [Delta
.from_json(o
) for o
in deltas
or []]
516 class AnnotationsGetResult(Type
):
517 _toSchema
= {'annotations': 'annotations', 'entity': 'entity', 'error': 'error'}
518 _toPy
= {'annotations': 'annotations', 'entity': 'entity', 'error': 'error'}
519 def __init__(self
, annotations
=None, entity
=None, error
=None, **unknown_fields
):
521 annotations : typing.Mapping<~KT, +VT_co>[str, str]
525 self
.annotations
= annotations
527 self
.error
= ErrorResult
.from_json(error
) if error
else None
531 class AnnotationsGetResults(Type
):
532 _toSchema
= {'results': 'results'}
533 _toPy
= {'results': 'results'}
534 def __init__(self
, results
=None, **unknown_fields
):
536 results : typing.Sequence<+T_co>[~AnnotationsGetResult]<~AnnotationsGetResult>
538 self
.results
= [AnnotationsGetResult
.from_json(o
) for o
in results
or []]
542 class AnnotationsSet(Type
):
543 _toSchema
= {'annotations': 'annotations'}
544 _toPy
= {'annotations': 'annotations'}
545 def __init__(self
, annotations
=None, **unknown_fields
):
547 annotations : typing.Sequence<+T_co>[~EntityAnnotations]<~EntityAnnotations>
549 self
.annotations
= [EntityAnnotations
.from_json(o
) for o
in annotations
or []]
553 class ApplicationCharmActionsResult(Type
):
554 _toSchema
= {'actions': 'actions', 'application_tag': 'application-tag', 'error': 'error'}
555 _toPy
= {'actions': 'actions', 'application-tag': 'application_tag', 'error': 'error'}
556 def __init__(self
, actions
=None, application_tag
=None, error
=None, **unknown_fields
):
558 actions : typing.Mapping<~KT, +VT_co>[str, ~ActionSpec]<~ActionSpec>
559 application_tag : str
562 self
.actions
= actions
563 self
.application_tag
= application_tag
564 self
.error
= Error
.from_json(error
) if error
else None
568 class ApplicationCharmRelations(Type
):
569 _toSchema
= {'application': 'application'}
570 _toPy
= {'application': 'application'}
571 def __init__(self
, application
=None, **unknown_fields
):
575 self
.application
= application
579 class ApplicationCharmRelationsResults(Type
):
580 _toSchema
= {'charm_relations': 'charm-relations'}
581 _toPy
= {'charm-relations': 'charm_relations'}
582 def __init__(self
, charm_relations
=None, **unknown_fields
):
584 charm_relations : typing.Sequence<+T_co>[str]
586 self
.charm_relations
= charm_relations
590 class ApplicationDeploy(Type
):
591 _toSchema
= {'application': 'application', 'channel': 'channel', 'charm_url': 'charm-url', 'config': 'config', 'config_yaml': 'config-yaml', 'constraints': 'constraints', 'endpoint_bindings': 'endpoint-bindings', 'num_units': 'num-units', 'placement': 'placement', 'resources': 'resources', 'series': 'series', 'storage': 'storage'}
592 _toPy
= {'application': 'application', 'channel': 'channel', 'charm-url': 'charm_url', 'config': 'config', 'config-yaml': 'config_yaml', 'constraints': 'constraints', 'endpoint-bindings': 'endpoint_bindings', 'num-units': 'num_units', 'placement': 'placement', 'resources': 'resources', 'series': 'series', 'storage': 'storage'}
593 def __init__(self
, application
=None, channel
=None, charm_url
=None, config
=None, config_yaml
=None, constraints
=None, endpoint_bindings
=None, num_units
=None, placement
=None, resources
=None, series
=None, storage
=None, **unknown_fields
):
598 config : typing.Mapping<~KT, +VT_co>[str, str]
601 endpoint_bindings : typing.Mapping<~KT, +VT_co>[str, str]
603 placement : typing.Sequence<+T_co>[~Placement]<~Placement>
604 resources : typing.Mapping<~KT, +VT_co>[str, str]
606 storage : typing.Mapping<~KT, +VT_co>[str, ~Constraints]<~Constraints>
608 self
.application
= application
609 self
.channel
= channel
610 self
.charm_url
= charm_url
612 self
.config_yaml
= config_yaml
613 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
614 self
.endpoint_bindings
= endpoint_bindings
615 self
.num_units
= num_units
616 self
.placement
= [Placement
.from_json(o
) for o
in placement
or []]
617 self
.resources
= resources
619 self
.storage
= storage
623 class ApplicationDestroy(Type
):
624 _toSchema
= {'application': 'application'}
625 _toPy
= {'application': 'application'}
626 def __init__(self
, application
=None, **unknown_fields
):
630 self
.application
= application
634 class ApplicationExpose(Type
):
635 _toSchema
= {'application': 'application'}
636 _toPy
= {'application': 'application'}
637 def __init__(self
, application
=None, **unknown_fields
):
641 self
.application
= application
645 class ApplicationGet(Type
):
646 _toSchema
= {'application': 'application'}
647 _toPy
= {'application': 'application'}
648 def __init__(self
, application
=None, **unknown_fields
):
652 self
.application
= application
656 class ApplicationGetResults(Type
):
657 _toSchema
= {'application': 'application', 'charm': 'charm', 'config': 'config', 'constraints': 'constraints', 'series': 'series'}
658 _toPy
= {'application': 'application', 'charm': 'charm', 'config': 'config', 'constraints': 'constraints', 'series': 'series'}
659 def __init__(self
, application
=None, charm
=None, config
=None, constraints
=None, series
=None, **unknown_fields
):
663 config : typing.Mapping<~KT, +VT_co>[str, typing.Any]
667 self
.application
= application
670 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
675 class ApplicationMetricCredential(Type
):
676 _toSchema
= {'application': 'application', 'metrics_credentials': 'metrics-credentials'}
677 _toPy
= {'application': 'application', 'metrics-credentials': 'metrics_credentials'}
678 def __init__(self
, application
=None, metrics_credentials
=None, **unknown_fields
):
681 metrics_credentials : typing.Sequence<+T_co>[int]
683 self
.application
= application
684 self
.metrics_credentials
= metrics_credentials
688 class ApplicationMetricCredentials(Type
):
689 _toSchema
= {'creds': 'creds'}
690 _toPy
= {'creds': 'creds'}
691 def __init__(self
, creds
=None, **unknown_fields
):
693 creds : typing.Sequence<+T_co>[~ApplicationMetricCredential]<~ApplicationMetricCredential>
695 self
.creds
= [ApplicationMetricCredential
.from_json(o
) for o
in creds
or []]
699 class ApplicationOffer(Type
):
700 _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'}
701 _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'}
702 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
):
705 application_description : str
706 bindings : typing.Mapping<~KT, +VT_co>[str, str]
707 endpoints : typing.Sequence<+T_co>[~RemoteEndpoint]<~RemoteEndpoint>
710 source_model_tag : str
711 spaces : typing.Sequence<+T_co>[~RemoteSpace]<~RemoteSpace>
714 self
.application_description
= application_description
715 self
.bindings
= bindings
716 self
.endpoints
= [RemoteEndpoint
.from_json(o
) for o
in endpoints
or []]
717 self
.offer_name
= offer_name
718 self
.offer_url
= offer_url
719 self
.source_model_tag
= source_model_tag
720 self
.spaces
= [RemoteSpace
.from_json(o
) for o
in spaces
or []]
724 class ApplicationRelationsChange(Type
):
725 _toSchema
= {'changed': 'changed', 'removed': 'removed'}
726 _toPy
= {'changed': 'changed', 'removed': 'removed'}
727 def __init__(self
, changed
=None, removed
=None, **unknown_fields
):
729 changed : typing.Sequence<+T_co>[~RelationChange]<~RelationChange>
730 removed : typing.Sequence<+T_co>[int]
732 self
.changed
= [RelationChange
.from_json(o
) for o
in changed
or []]
733 self
.removed
= removed
737 class ApplicationRelationsWatchResult(Type
):
738 _toSchema
= {'applicationrelationswatcherid': 'ApplicationRelationsWatcherId', 'changes': 'changes', 'error': 'error'}
739 _toPy
= {'ApplicationRelationsWatcherId': 'applicationrelationswatcherid', 'changes': 'changes', 'error': 'error'}
740 def __init__(self
, applicationrelationswatcherid
=None, changes
=None, error
=None, **unknown_fields
):
742 applicationrelationswatcherid : str
743 changes : ApplicationRelationsChange
746 self
.applicationrelationswatcherid
= applicationrelationswatcherid
747 self
.changes
= ApplicationRelationsChange
.from_json(changes
) if changes
else None
748 self
.error
= Error
.from_json(error
) if error
else None
752 class ApplicationSet(Type
):
753 _toSchema
= {'application': 'application', 'options': 'options'}
754 _toPy
= {'application': 'application', 'options': 'options'}
755 def __init__(self
, application
=None, options
=None, **unknown_fields
):
758 options : typing.Mapping<~KT, +VT_co>[str, str]
760 self
.application
= application
761 self
.options
= options
765 class ApplicationSetCharm(Type
):
766 _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'}
767 _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'}
768 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
):
773 config_settings : typing.Mapping<~KT, +VT_co>[str, str]
774 config_settings_yaml : str
777 resource_ids : typing.Mapping<~KT, +VT_co>[str, str]
778 storage_constraints : typing.Mapping<~KT, +VT_co>[str, ~StorageConstraints]<~StorageConstraints>
780 self
.application
= application
781 self
.channel
= channel
782 self
.charm_url
= charm_url
783 self
.config_settings
= config_settings
784 self
.config_settings_yaml
= config_settings_yaml
785 self
.force_series
= force_series
786 self
.force_units
= force_units
787 self
.resource_ids
= resource_ids
788 self
.storage_constraints
= storage_constraints
792 class ApplicationStatus(Type
):
793 _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'}
794 _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'}
795 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
):
799 err : typing.Mapping<~KT, +VT_co>[str, typing.Any]
802 meter_statuses : typing.Mapping<~KT, +VT_co>[str, ~MeterStatus]<~MeterStatus>
803 relations : typing.Sequence<+T_co>[str]
805 status : DetailedStatus
806 subordinate_to : typing.Sequence<+T_co>[str]
807 units : typing.Mapping<~KT, +VT_co>[str, ~UnitStatus]<~UnitStatus>
808 workload_version : str
810 self
.can_upgrade_to
= can_upgrade_to
813 self
.exposed
= exposed
815 self
.meter_statuses
= meter_statuses
816 self
.relations
= relations
818 self
.status
= DetailedStatus
.from_json(status
) if status
else None
819 self
.subordinate_to
= subordinate_to
821 self
.workload_version
= workload_version
825 class ApplicationStatusResult(Type
):
826 _toSchema
= {'application': 'application', 'error': 'error', 'units': 'units'}
827 _toPy
= {'application': 'application', 'error': 'error', 'units': 'units'}
828 def __init__(self
, application
=None, error
=None, units
=None, **unknown_fields
):
830 application : StatusResult
832 units : typing.Mapping<~KT, +VT_co>[str, ~StatusResult]<~StatusResult>
834 self
.application
= StatusResult
.from_json(application
) if application
else None
835 self
.error
= Error
.from_json(error
) if error
else None
840 class ApplicationStatusResults(Type
):
841 _toSchema
= {'results': 'results'}
842 _toPy
= {'results': 'results'}
843 def __init__(self
, results
=None, **unknown_fields
):
845 results : typing.Sequence<+T_co>[~ApplicationStatusResult]<~ApplicationStatusResult>
847 self
.results
= [ApplicationStatusResult
.from_json(o
) for o
in results
or []]
851 class ApplicationTag(Type
):
852 _toSchema
= {'name': 'Name'}
853 _toPy
= {'Name': 'name'}
854 def __init__(self
, name
=None, **unknown_fields
):
862 class ApplicationURLs(Type
):
863 _toSchema
= {'application_urls': 'application-urls'}
864 _toPy
= {'application-urls': 'application_urls'}
865 def __init__(self
, application_urls
=None, **unknown_fields
):
867 application_urls : typing.Sequence<+T_co>[str]
869 self
.application_urls
= application_urls
873 class ApplicationUnexpose(Type
):
874 _toSchema
= {'application': 'application'}
875 _toPy
= {'application': 'application'}
876 def __init__(self
, application
=None, **unknown_fields
):
880 self
.application
= application
884 class ApplicationUnset(Type
):
885 _toSchema
= {'application': 'application', 'options': 'options'}
886 _toPy
= {'application': 'application', 'options': 'options'}
887 def __init__(self
, application
=None, options
=None, **unknown_fields
):
890 options : typing.Sequence<+T_co>[str]
892 self
.application
= application
893 self
.options
= options
897 class ApplicationUpdate(Type
):
898 _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'}
899 _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'}
900 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
):
905 force_charm_url : bool
908 settings : typing.Mapping<~KT, +VT_co>[str, str]
911 self
.application
= application
912 self
.charm_url
= charm_url
913 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
914 self
.force_charm_url
= force_charm_url
915 self
.force_series
= force_series
916 self
.min_units
= min_units
917 self
.settings
= settings
918 self
.settings_yaml
= settings_yaml
922 class ApplicationsCharmActionsResults(Type
):
923 _toSchema
= {'results': 'results'}
924 _toPy
= {'results': 'results'}
925 def __init__(self
, results
=None, **unknown_fields
):
927 results : typing.Sequence<+T_co>[~ApplicationCharmActionsResult]<~ApplicationCharmActionsResult>
929 self
.results
= [ApplicationCharmActionsResult
.from_json(o
) for o
in results
or []]
933 class ApplicationsDeploy(Type
):
934 _toSchema
= {'applications': 'applications'}
935 _toPy
= {'applications': 'applications'}
936 def __init__(self
, applications
=None, **unknown_fields
):
938 applications : typing.Sequence<+T_co>[~ApplicationDeploy]<~ApplicationDeploy>
940 self
.applications
= [ApplicationDeploy
.from_json(o
) for o
in applications
or []]
944 class BackupsCreateArgs(Type
):
945 _toSchema
= {'notes': 'notes'}
946 _toPy
= {'notes': 'notes'}
947 def __init__(self
, notes
=None, **unknown_fields
):
955 class BackupsInfoArgs(Type
):
956 _toSchema
= {'id_': 'id'}
957 _toPy
= {'id': 'id_'}
958 def __init__(self
, id_
=None, **unknown_fields
):
966 class BackupsListArgs(Type
):
969 def __init__(self
, **unknown_fields
):
977 class BackupsListResult(Type
):
978 _toSchema
= {'list_': 'list'}
979 _toPy
= {'list': 'list_'}
980 def __init__(self
, list_
=None, **unknown_fields
):
982 list_ : typing.Sequence<+T_co>[~BackupsMetadataResult]<~BackupsMetadataResult>
984 self
.list_
= [BackupsMetadataResult
.from_json(o
) for o
in list_
or []]
988 class BackupsMetadataResult(Type
):
989 _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'}
990 _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'}
991 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
):
996 checksum_format : str
1009 self
.ca_cert
= ca_cert
1010 self
.ca_private_key
= ca_private_key
1011 self
.checksum
= checksum
1012 self
.checksum_format
= checksum_format
1013 self
.finished
= finished
1014 self
.hostname
= hostname
1016 self
.machine
= machine
1019 self
.series
= series
1021 self
.started
= started
1022 self
.stored
= stored
1023 self
.version
= Number
.from_json(version
) if version
else None
1027 class BackupsRemoveArgs(Type
):
1028 _toSchema
= {'id_': 'id'}
1029 _toPy
= {'id': 'id_'}
1030 def __init__(self
, id_
=None, **unknown_fields
):
1039 _toSchema
= {'arch': 'Arch', 'number': 'Number', 'series': 'Series'}
1040 _toPy
= {'Arch': 'arch', 'Number': 'number', 'Series': 'series'}
1041 def __init__(self
, arch
=None, number
=None, series
=None, **unknown_fields
):
1048 self
.number
= Number
.from_json(number
) if number
else None
1049 self
.series
= series
1054 _toSchema
= {'id_': 'id', 'message': 'message', 'tag': 'tag', 'type_': 'type'}
1055 _toPy
= {'id': 'id_', 'message': 'message', 'tag': 'tag', 'type': 'type_'}
1056 def __init__(self
, id_
=None, message
=None, tag
=None, type_
=None, **unknown_fields
):
1064 self
.message
= message
1070 class BlockDevice(Type
):
1071 _toSchema
= {'busaddress': 'BusAddress', 'devicelinks': 'DeviceLinks', 'devicename': 'DeviceName', 'filesystemtype': 'FilesystemType', 'hardwareid': 'HardwareId', 'inuse': 'InUse', 'label': 'Label', 'mountpoint': 'MountPoint', 'size': 'Size', 'uuid': 'UUID'}
1072 _toPy
= {'BusAddress': 'busaddress', 'DeviceLinks': 'devicelinks', 'DeviceName': 'devicename', 'FilesystemType': 'filesystemtype', 'HardwareId': 'hardwareid', 'InUse': 'inuse', 'Label': 'label', 'MountPoint': 'mountpoint', 'Size': 'size', 'UUID': 'uuid'}
1073 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
):
1076 devicelinks : typing.Sequence<+T_co>[str]
1078 filesystemtype : str
1086 self
.busaddress
= busaddress
1087 self
.devicelinks
= devicelinks
1088 self
.devicename
= devicename
1089 self
.filesystemtype
= filesystemtype
1090 self
.hardwareid
= hardwareid
1093 self
.mountpoint
= mountpoint
1099 class BlockDeviceResult(Type
):
1100 _toSchema
= {'error': 'error', 'result': 'result'}
1101 _toPy
= {'error': 'error', 'result': 'result'}
1102 def __init__(self
, error
=None, result
=None, **unknown_fields
):
1105 result : BlockDevice
1107 self
.error
= Error
.from_json(error
) if error
else None
1108 self
.result
= BlockDevice
.from_json(result
) if result
else None
1112 class BlockDeviceResults(Type
):
1113 _toSchema
= {'results': 'results'}
1114 _toPy
= {'results': 'results'}
1115 def __init__(self
, results
=None, **unknown_fields
):
1117 results : typing.Sequence<+T_co>[~BlockDeviceResult]<~BlockDeviceResult>
1119 self
.results
= [BlockDeviceResult
.from_json(o
) for o
in results
or []]
1123 class BlockResult(Type
):
1124 _toSchema
= {'error': 'error', 'result': 'result'}
1125 _toPy
= {'error': 'error', 'result': 'result'}
1126 def __init__(self
, error
=None, result
=None, **unknown_fields
):
1131 self
.error
= Error
.from_json(error
) if error
else None
1132 self
.result
= Block
.from_json(result
) if result
else None
1136 class BlockResults(Type
):
1137 _toSchema
= {'results': 'results'}
1138 _toPy
= {'results': 'results'}
1139 def __init__(self
, results
=None, **unknown_fields
):
1141 results : typing.Sequence<+T_co>[~BlockResult]<~BlockResult>
1143 self
.results
= [BlockResult
.from_json(o
) for o
in results
or []]
1147 class BlockSwitchParams(Type
):
1148 _toSchema
= {'message': 'message', 'type_': 'type'}
1149 _toPy
= {'message': 'message', 'type': 'type_'}
1150 def __init__(self
, message
=None, type_
=None, **unknown_fields
):
1155 self
.message
= message
1160 class BoolResult(Type
):
1161 _toSchema
= {'error': 'error', 'result': 'result'}
1162 _toPy
= {'error': 'error', 'result': 'result'}
1163 def __init__(self
, error
=None, result
=None, **unknown_fields
):
1168 self
.error
= Error
.from_json(error
) if error
else None
1169 self
.result
= result
1173 class BoolResults(Type
):
1174 _toSchema
= {'results': 'results'}
1175 _toPy
= {'results': 'results'}
1176 def __init__(self
, results
=None, **unknown_fields
):
1178 results : typing.Sequence<+T_co>[~BoolResult]<~BoolResult>
1180 self
.results
= [BoolResult
.from_json(o
) for o
in results
or []]
1184 class BundleChange(Type
):
1185 _toSchema
= {'args': 'args', 'id_': 'id', 'method': 'method', 'requires': 'requires'}
1186 _toPy
= {'args': 'args', 'id': 'id_', 'method': 'method', 'requires': 'requires'}
1187 def __init__(self
, args
=None, id_
=None, method
=None, requires
=None, **unknown_fields
):
1189 args : typing.Sequence<+T_co>[typing.Any]
1192 requires : typing.Sequence<+T_co>[str]
1196 self
.method
= method
1197 self
.requires
= requires
1201 class BundleChangesParams(Type
):
1202 _toSchema
= {'yaml': 'yaml'}
1203 _toPy
= {'yaml': 'yaml'}
1204 def __init__(self
, yaml
=None, **unknown_fields
):
1212 class BundleChangesResults(Type
):
1213 _toSchema
= {'changes': 'changes', 'errors': 'errors'}
1214 _toPy
= {'changes': 'changes', 'errors': 'errors'}
1215 def __init__(self
, changes
=None, errors
=None, **unknown_fields
):
1217 changes : typing.Sequence<+T_co>[~BundleChange]<~BundleChange>
1218 errors : typing.Sequence<+T_co>[str]
1220 self
.changes
= [BundleChange
.from_json(o
) for o
in changes
or []]
1221 self
.errors
= errors
1225 class BytesResult(Type
):
1226 _toSchema
= {'result': 'result'}
1227 _toPy
= {'result': 'result'}
1228 def __init__(self
, result
=None, **unknown_fields
):
1230 result : typing.Sequence<+T_co>[int]
1232 self
.result
= result
1236 class CharmActionSpec(Type
):
1237 _toSchema
= {'description': 'description', 'params': 'params'}
1238 _toPy
= {'description': 'description', 'params': 'params'}
1239 def __init__(self
, description
=None, params
=None, **unknown_fields
):
1242 params : typing.Mapping<~KT, +VT_co>[str, typing.Any]
1244 self
.description
= description
1245 self
.params
= params
1249 class CharmActions(Type
):
1250 _toSchema
= {'specs': 'specs'}
1251 _toPy
= {'specs': 'specs'}
1252 def __init__(self
, specs
=None, **unknown_fields
):
1254 specs : typing.Mapping<~KT, +VT_co>[str, ~CharmActionSpec]<~CharmActionSpec>
1260 class CharmInfo(Type
):
1261 _toSchema
= {'actions': 'actions', 'config': 'config', 'meta': 'meta', 'metrics': 'metrics', 'revision': 'revision', 'url': 'url'}
1262 _toPy
= {'actions': 'actions', 'config': 'config', 'meta': 'meta', 'metrics': 'metrics', 'revision': 'revision', 'url': 'url'}
1263 def __init__(self
, actions
=None, config
=None, meta
=None, metrics
=None, revision
=None, url
=None, **unknown_fields
):
1265 actions : CharmActions
1266 config : typing.Mapping<~KT, +VT_co>[str, ~CharmOption]<~CharmOption>
1268 metrics : CharmMetrics
1272 self
.actions
= CharmActions
.from_json(actions
) if actions
else None
1273 self
.config
= config
1274 self
.meta
= CharmMeta
.from_json(meta
) if meta
else None
1275 self
.metrics
= CharmMetrics
.from_json(metrics
) if metrics
else None
1276 self
.revision
= revision
1281 class CharmMeta(Type
):
1282 _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'}
1283 _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'}
1284 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
):
1286 categories : typing.Sequence<+T_co>[str]
1288 extra_bindings : typing.Mapping<~KT, +VT_co>[str, str]
1289 min_juju_version : str
1291 payload_classes : typing.Mapping<~KT, +VT_co>[str, ~CharmPayloadClass]<~CharmPayloadClass>
1292 peers : typing.Mapping<~KT, +VT_co>[str, ~CharmRelation]<~CharmRelation>
1293 provides : typing.Mapping<~KT, +VT_co>[str, ~CharmRelation]<~CharmRelation>
1294 requires : typing.Mapping<~KT, +VT_co>[str, ~CharmRelation]<~CharmRelation>
1295 resources : typing.Mapping<~KT, +VT_co>[str, ~CharmResourceMeta]<~CharmResourceMeta>
1296 series : typing.Sequence<+T_co>[str]
1297 storage : typing.Mapping<~KT, +VT_co>[str, ~CharmStorage]<~CharmStorage>
1300 tags : typing.Sequence<+T_co>[str]
1301 terms : typing.Sequence<+T_co>[str]
1303 self
.categories
= categories
1304 self
.description
= description
1305 self
.extra_bindings
= extra_bindings
1306 self
.min_juju_version
= min_juju_version
1308 self
.payload_classes
= payload_classes
1310 self
.provides
= provides
1311 self
.requires
= requires
1312 self
.resources
= resources
1313 self
.series
= series
1314 self
.storage
= storage
1315 self
.subordinate
= subordinate
1316 self
.summary
= summary
1322 class CharmMetric(Type
):
1323 _toSchema
= {'description': 'description', 'type_': 'type'}
1324 _toPy
= {'description': 'description', 'type': 'type_'}
1325 def __init__(self
, description
=None, type_
=None, **unknown_fields
):
1330 self
.description
= description
1335 class CharmMetrics(Type
):
1336 _toSchema
= {'metrics': 'metrics', 'plan': 'plan'}
1337 _toPy
= {'metrics': 'metrics', 'plan': 'plan'}
1338 def __init__(self
, metrics
=None, plan
=None, **unknown_fields
):
1340 metrics : typing.Mapping<~KT, +VT_co>[str, ~CharmMetric]<~CharmMetric>
1343 self
.metrics
= metrics
1344 self
.plan
= CharmPlan
.from_json(plan
) if plan
else None
1348 class CharmOption(Type
):
1349 _toSchema
= {'default': 'default', 'description': 'description', 'type_': 'type'}
1350 _toPy
= {'default': 'default', 'description': 'description', 'type': 'type_'}
1351 def __init__(self
, default
=None, description
=None, type_
=None, **unknown_fields
):
1353 default : typing.Mapping<~KT, +VT_co>[str, typing.Any]
1357 self
.default
= default
1358 self
.description
= description
1363 class CharmPayloadClass(Type
):
1364 _toSchema
= {'name': 'name', 'type_': 'type'}
1365 _toPy
= {'name': 'name', 'type': 'type_'}
1366 def __init__(self
, name
=None, type_
=None, **unknown_fields
):
1376 class CharmPlan(Type
):
1377 _toSchema
= {'required': 'required'}
1378 _toPy
= {'required': 'required'}
1379 def __init__(self
, required
=None, **unknown_fields
):
1383 self
.required
= required
1387 class CharmRelation(Type
):
1388 _toSchema
= {'interface': 'interface', 'limit': 'limit', 'name': 'name', 'optional': 'optional', 'role': 'role', 'scope': 'scope'}
1389 _toPy
= {'interface': 'interface', 'limit': 'limit', 'name': 'name', 'optional': 'optional', 'role': 'role', 'scope': 'scope'}
1390 def __init__(self
, interface
=None, limit
=None, name
=None, optional
=None, role
=None, scope
=None, **unknown_fields
):
1399 self
.interface
= interface
1402 self
.optional
= optional
1408 class CharmResource(Type
):
1409 _toSchema
= {'description': 'description', 'fingerprint': 'fingerprint', 'name': 'name', 'origin': 'origin', 'path': 'path', 'revision': 'revision', 'size': 'size', 'type_': 'type'}
1410 _toPy
= {'description': 'description', 'fingerprint': 'fingerprint', 'name': 'name', 'origin': 'origin', 'path': 'path', 'revision': 'revision', 'size': 'size', 'type': 'type_'}
1411 def __init__(self
, description
=None, fingerprint
=None, name
=None, origin
=None, path
=None, revision
=None, size
=None, type_
=None, **unknown_fields
):
1414 fingerprint : typing.Sequence<+T_co>[int]
1422 self
.description
= description
1423 self
.fingerprint
= fingerprint
1425 self
.origin
= origin
1427 self
.revision
= revision
1433 class CharmResourceMeta(Type
):
1434 _toSchema
= {'description': 'description', 'name': 'name', 'path': 'path', 'type_': 'type'}
1435 _toPy
= {'description': 'description', 'name': 'name', 'path': 'path', 'type': 'type_'}
1436 def __init__(self
, description
=None, name
=None, path
=None, type_
=None, **unknown_fields
):
1443 self
.description
= description
1450 class CharmStorage(Type
):
1451 _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'}
1452 _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_'}
1453 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
):
1461 properties : typing.Sequence<+T_co>[str]
1466 self
.count_max
= count_max
1467 self
.count_min
= count_min
1468 self
.description
= description
1469 self
.location
= location
1470 self
.minimum_size
= minimum_size
1472 self
.properties
= properties
1473 self
.read_only
= read_only
1474 self
.shared
= shared
1479 class CharmURL(Type
):
1480 _toSchema
= {'url': 'url'}
1481 _toPy
= {'url': 'url'}
1482 def __init__(self
, url
=None, **unknown_fields
):
1490 class CharmURLs(Type
):
1491 _toSchema
= {'urls': 'urls'}
1492 _toPy
= {'urls': 'urls'}
1493 def __init__(self
, urls
=None, **unknown_fields
):
1495 urls : typing.Sequence<+T_co>[~CharmURL]<~CharmURL>
1497 self
.urls
= [CharmURL
.from_json(o
) for o
in urls
or []]
1501 class CharmsList(Type
):
1502 _toSchema
= {'names': 'names'}
1503 _toPy
= {'names': 'names'}
1504 def __init__(self
, names
=None, **unknown_fields
):
1506 names : typing.Sequence<+T_co>[str]
1512 class CharmsListResult(Type
):
1513 _toSchema
= {'charm_urls': 'charm-urls'}
1514 _toPy
= {'charm-urls': 'charm_urls'}
1515 def __init__(self
, charm_urls
=None, **unknown_fields
):
1517 charm_urls : typing.Sequence<+T_co>[str]
1519 self
.charm_urls
= charm_urls
1523 class ClaimLeadershipBulkParams(Type
):
1524 _toSchema
= {'params': 'params'}
1525 _toPy
= {'params': 'params'}
1526 def __init__(self
, params
=None, **unknown_fields
):
1528 params : typing.Sequence<+T_co>[~ClaimLeadershipParams]<~ClaimLeadershipParams>
1530 self
.params
= [ClaimLeadershipParams
.from_json(o
) for o
in params
or []]
1534 class ClaimLeadershipBulkResults(Type
):
1535 _toSchema
= {'results': 'results'}
1536 _toPy
= {'results': 'results'}
1537 def __init__(self
, results
=None, **unknown_fields
):
1539 results : typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
1541 self
.results
= [ErrorResult
.from_json(o
) for o
in results
or []]
1545 class ClaimLeadershipParams(Type
):
1546 _toSchema
= {'application_tag': 'application-tag', 'duration': 'duration', 'unit_tag': 'unit-tag'}
1547 _toPy
= {'application-tag': 'application_tag', 'duration': 'duration', 'unit-tag': 'unit_tag'}
1548 def __init__(self
, application_tag
=None, duration
=None, unit_tag
=None, **unknown_fields
):
1550 application_tag : str
1554 self
.application_tag
= application_tag
1555 self
.duration
= duration
1556 self
.unit_tag
= unit_tag
1561 _toSchema
= {'auth_types': 'auth-types', 'endpoint': 'endpoint', 'identity_endpoint': 'identity-endpoint', 'regions': 'regions', 'storage_endpoint': 'storage-endpoint', 'type_': 'type'}
1562 _toPy
= {'auth-types': 'auth_types', 'endpoint': 'endpoint', 'identity-endpoint': 'identity_endpoint', 'regions': 'regions', 'storage-endpoint': 'storage_endpoint', 'type': 'type_'}
1563 def __init__(self
, auth_types
=None, endpoint
=None, identity_endpoint
=None, regions
=None, storage_endpoint
=None, type_
=None, **unknown_fields
):
1565 auth_types : typing.Sequence<+T_co>[str]
1567 identity_endpoint : str
1568 regions : typing.Sequence<+T_co>[~CloudRegion]<~CloudRegion>
1569 storage_endpoint : str
1572 self
.auth_types
= auth_types
1573 self
.endpoint
= endpoint
1574 self
.identity_endpoint
= identity_endpoint
1575 self
.regions
= [CloudRegion
.from_json(o
) for o
in regions
or []]
1576 self
.storage_endpoint
= storage_endpoint
1581 class CloudCredential(Type
):
1582 _toSchema
= {'attrs': 'attrs', 'auth_type': 'auth-type', 'redacted': 'redacted'}
1583 _toPy
= {'attrs': 'attrs', 'auth-type': 'auth_type', 'redacted': 'redacted'}
1584 def __init__(self
, attrs
=None, auth_type
=None, redacted
=None, **unknown_fields
):
1586 attrs : typing.Mapping<~KT, +VT_co>[str, str]
1588 redacted : typing.Sequence<+T_co>[str]
1591 self
.auth_type
= auth_type
1592 self
.redacted
= redacted
1596 class CloudCredentialResult(Type
):
1597 _toSchema
= {'error': 'error', 'result': 'result'}
1598 _toPy
= {'error': 'error', 'result': 'result'}
1599 def __init__(self
, error
=None, result
=None, **unknown_fields
):
1602 result : CloudCredential
1604 self
.error
= Error
.from_json(error
) if error
else None
1605 self
.result
= CloudCredential
.from_json(result
) if result
else None
1609 class CloudCredentialResults(Type
):
1610 _toSchema
= {'results': 'results'}
1611 _toPy
= {'results': 'results'}
1612 def __init__(self
, results
=None, **unknown_fields
):
1614 results : typing.Sequence<+T_co>[~CloudCredentialResult]<~CloudCredentialResult>
1616 self
.results
= [CloudCredentialResult
.from_json(o
) for o
in results
or []]
1620 class CloudImageMetadata(Type
):
1621 _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'}
1622 _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'}
1623 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
):
1629 root_storage_size : int
1630 root_storage_type : str
1638 self
.image_id
= image_id
1639 self
.priority
= priority
1640 self
.region
= region
1641 self
.root_storage_size
= root_storage_size
1642 self
.root_storage_type
= root_storage_type
1643 self
.series
= series
1644 self
.source
= source
1645 self
.stream
= stream
1646 self
.version
= version
1647 self
.virt_type
= virt_type
1651 class CloudImageMetadataList(Type
):
1652 _toSchema
= {'metadata': 'metadata'}
1653 _toPy
= {'metadata': 'metadata'}
1654 def __init__(self
, metadata
=None, **unknown_fields
):
1656 metadata : typing.Sequence<+T_co>[~CloudImageMetadata]<~CloudImageMetadata>
1658 self
.metadata
= [CloudImageMetadata
.from_json(o
) for o
in metadata
or []]
1662 class CloudInstanceTypesConstraint(Type
):
1663 _toSchema
= {'cloud_tag': 'cloud-tag', 'constraints': 'constraints', 'region': 'region'}
1664 _toPy
= {'cloud-tag': 'cloud_tag', 'constraints': 'constraints', 'region': 'region'}
1665 def __init__(self
, cloud_tag
=None, constraints
=None, region
=None, **unknown_fields
):
1671 self
.cloud_tag
= cloud_tag
1672 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
1673 self
.region
= region
1677 class CloudInstanceTypesConstraints(Type
):
1678 _toSchema
= {'constraints': 'constraints'}
1679 _toPy
= {'constraints': 'constraints'}
1680 def __init__(self
, constraints
=None, **unknown_fields
):
1682 constraints : typing.Sequence<+T_co>[~CloudInstanceTypesConstraint]<~CloudInstanceTypesConstraint>
1684 self
.constraints
= [CloudInstanceTypesConstraint
.from_json(o
) for o
in constraints
or []]
1688 class CloudRegion(Type
):
1689 _toSchema
= {'endpoint': 'endpoint', 'identity_endpoint': 'identity-endpoint', 'name': 'name', 'storage_endpoint': 'storage-endpoint'}
1690 _toPy
= {'endpoint': 'endpoint', 'identity-endpoint': 'identity_endpoint', 'name': 'name', 'storage-endpoint': 'storage_endpoint'}
1691 def __init__(self
, endpoint
=None, identity_endpoint
=None, name
=None, storage_endpoint
=None, **unknown_fields
):
1694 identity_endpoint : str
1696 storage_endpoint : str
1698 self
.endpoint
= endpoint
1699 self
.identity_endpoint
= identity_endpoint
1701 self
.storage_endpoint
= storage_endpoint
1705 class CloudResult(Type
):
1706 _toSchema
= {'cloud': 'cloud', 'error': 'error'}
1707 _toPy
= {'cloud': 'cloud', 'error': 'error'}
1708 def __init__(self
, cloud
=None, error
=None, **unknown_fields
):
1713 self
.cloud
= Cloud
.from_json(cloud
) if cloud
else None
1714 self
.error
= Error
.from_json(error
) if error
else None
1718 class CloudResults(Type
):
1719 _toSchema
= {'results': 'results'}
1720 _toPy
= {'results': 'results'}
1721 def __init__(self
, results
=None, **unknown_fields
):
1723 results : typing.Sequence<+T_co>[~CloudResult]<~CloudResult>
1725 self
.results
= [CloudResult
.from_json(o
) for o
in results
or []]
1729 class CloudSpec(Type
):
1730 _toSchema
= {'credential': 'credential', 'endpoint': 'endpoint', 'identity_endpoint': 'identity-endpoint', 'name': 'name', 'region': 'region', 'storage_endpoint': 'storage-endpoint', 'type_': 'type'}
1731 _toPy
= {'credential': 'credential', 'endpoint': 'endpoint', 'identity-endpoint': 'identity_endpoint', 'name': 'name', 'region': 'region', 'storage-endpoint': 'storage_endpoint', 'type': 'type_'}
1732 def __init__(self
, credential
=None, endpoint
=None, identity_endpoint
=None, name
=None, region
=None, storage_endpoint
=None, type_
=None, **unknown_fields
):
1734 credential : CloudCredential
1736 identity_endpoint : str
1739 storage_endpoint : str
1742 self
.credential
= CloudCredential
.from_json(credential
) if credential
else None
1743 self
.endpoint
= endpoint
1744 self
.identity_endpoint
= identity_endpoint
1746 self
.region
= region
1747 self
.storage_endpoint
= storage_endpoint
1752 class CloudSpecResult(Type
):
1753 _toSchema
= {'error': 'error', 'result': 'result'}
1754 _toPy
= {'error': 'error', 'result': 'result'}
1755 def __init__(self
, error
=None, result
=None, **unknown_fields
):
1760 self
.error
= Error
.from_json(error
) if error
else None
1761 self
.result
= CloudSpec
.from_json(result
) if result
else None
1765 class CloudSpecResults(Type
):
1766 _toSchema
= {'results': 'results'}
1767 _toPy
= {'results': 'results'}
1768 def __init__(self
, results
=None, **unknown_fields
):
1770 results : typing.Sequence<+T_co>[~CloudSpecResult]<~CloudSpecResult>
1772 self
.results
= [CloudSpecResult
.from_json(o
) for o
in results
or []]
1776 class CloudsResult(Type
):
1777 _toSchema
= {'clouds': 'clouds'}
1778 _toPy
= {'clouds': 'clouds'}
1779 def __init__(self
, clouds
=None, **unknown_fields
):
1781 clouds : typing.Mapping<~KT, +VT_co>[str, ~Cloud]<~Cloud>
1783 self
.clouds
= clouds
1787 class ConfigSettingsResult(Type
):
1788 _toSchema
= {'error': 'error', 'settings': 'settings'}
1789 _toPy
= {'error': 'error', 'settings': 'settings'}
1790 def __init__(self
, error
=None, settings
=None, **unknown_fields
):
1793 settings : typing.Mapping<~KT, +VT_co>[str, typing.Any]
1795 self
.error
= Error
.from_json(error
) if error
else None
1796 self
.settings
= settings
1800 class ConfigSettingsResults(Type
):
1801 _toSchema
= {'results': 'results'}
1802 _toPy
= {'results': 'results'}
1803 def __init__(self
, results
=None, **unknown_fields
):
1805 results : typing.Sequence<+T_co>[~ConfigSettingsResult]<~ConfigSettingsResult>
1807 self
.results
= [ConfigSettingsResult
.from_json(o
) for o
in results
or []]
1811 class ConfigValue(Type
):
1812 _toSchema
= {'source': 'source', 'value': 'value'}
1813 _toPy
= {'source': 'source', 'value': 'value'}
1814 def __init__(self
, source
=None, value
=None, **unknown_fields
):
1817 value : typing.Mapping<~KT, +VT_co>[str, typing.Any]
1819 self
.source
= source
1824 class Constraints(Type
):
1825 _toSchema
= {'count': 'Count', 'pool': 'Pool', 'size': 'Size'}
1826 _toPy
= {'Count': 'count', 'Pool': 'pool', 'Size': 'size'}
1827 def __init__(self
, count
=None, pool
=None, size
=None, **unknown_fields
):
1839 class ConstraintsResult(Type
):
1840 _toSchema
= {'constraints': 'constraints', 'error': 'error'}
1841 _toPy
= {'constraints': 'constraints', 'error': 'error'}
1842 def __init__(self
, constraints
=None, error
=None, **unknown_fields
):
1847 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
1848 self
.error
= Error
.from_json(error
) if error
else None
1852 class ConstraintsResults(Type
):
1853 _toSchema
= {'results': 'results'}
1854 _toPy
= {'results': 'results'}
1855 def __init__(self
, results
=None, **unknown_fields
):
1857 results : typing.Sequence<+T_co>[~ConstraintsResult]<~ConstraintsResult>
1859 self
.results
= [ConstraintsResult
.from_json(o
) for o
in results
or []]
1863 class ConsumeApplicationArg(Type
):
1864 _toSchema
= {'application_alias': 'application-alias', 'application_url': 'application-url'}
1865 _toPy
= {'application-alias': 'application_alias', 'application-url': 'application_url'}
1866 def __init__(self
, application_alias
=None, application_url
=None, **unknown_fields
):
1868 application_alias : str
1869 application_url : str
1871 self
.application_alias
= application_alias
1872 self
.application_url
= application_url
1876 class ConsumeApplicationArgs(Type
):
1877 _toSchema
= {'args': 'args'}
1878 _toPy
= {'args': 'args'}
1879 def __init__(self
, args
=None, **unknown_fields
):
1881 args : typing.Sequence<+T_co>[~ConsumeApplicationArg]<~ConsumeApplicationArg>
1883 self
.args
= [ConsumeApplicationArg
.from_json(o
) for o
in args
or []]
1887 class ConsumeApplicationResult(Type
):
1888 _toSchema
= {'error': 'error', 'local_name': 'local-name'}
1889 _toPy
= {'error': 'error', 'local-name': 'local_name'}
1890 def __init__(self
, error
=None, local_name
=None, **unknown_fields
):
1895 self
.error
= Error
.from_json(error
) if error
else None
1896 self
.local_name
= local_name
1900 class ConsumeApplicationResults(Type
):
1901 _toSchema
= {'results': 'results'}
1902 _toPy
= {'results': 'results'}
1903 def __init__(self
, results
=None, **unknown_fields
):
1905 results : typing.Sequence<+T_co>[~ConsumeApplicationResult]<~ConsumeApplicationResult>
1907 self
.results
= [ConsumeApplicationResult
.from_json(o
) for o
in results
or []]
1911 class ContainerConfig(Type
):
1912 _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'}
1913 _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'}
1914 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
):
1916 updatebehavior : UpdateBehavior
1918 apt_proxy : Settings
1919 authorized_keys : str
1922 ssl_hostname_verification : bool
1924 self
.updatebehavior
= UpdateBehavior
.from_json(updatebehavior
) if updatebehavior
else None
1925 self
.apt_mirror
= apt_mirror
1926 self
.apt_proxy
= Settings
.from_json(apt_proxy
) if apt_proxy
else None
1927 self
.authorized_keys
= authorized_keys
1928 self
.provider_type
= provider_type
1929 self
.proxy
= Settings
.from_json(proxy
) if proxy
else None
1930 self
.ssl_hostname_verification
= ssl_hostname_verification
1934 class ContainerManagerConfig(Type
):
1935 _toSchema
= {'config': 'config'}
1936 _toPy
= {'config': 'config'}
1937 def __init__(self
, config
=None, **unknown_fields
):
1939 config : typing.Mapping<~KT, +VT_co>[str, str]
1941 self
.config
= config
1945 class ContainerManagerConfigParams(Type
):
1946 _toSchema
= {'type_': 'type'}
1947 _toPy
= {'type': 'type_'}
1948 def __init__(self
, type_
=None, **unknown_fields
):
1956 class ControllerConfigResult(Type
):
1957 _toSchema
= {'config': 'config'}
1958 _toPy
= {'config': 'config'}
1959 def __init__(self
, config
=None, **unknown_fields
):
1961 config : typing.Mapping<~KT, +VT_co>[str, typing.Any]
1963 self
.config
= config
1967 class ControllersChangeResult(Type
):
1968 _toSchema
= {'error': 'error', 'result': 'result'}
1969 _toPy
= {'error': 'error', 'result': 'result'}
1970 def __init__(self
, error
=None, result
=None, **unknown_fields
):
1973 result : ControllersChanges
1975 self
.error
= Error
.from_json(error
) if error
else None
1976 self
.result
= ControllersChanges
.from_json(result
) if result
else None
1980 class ControllersChangeResults(Type
):
1981 _toSchema
= {'results': 'results'}
1982 _toPy
= {'results': 'results'}
1983 def __init__(self
, results
=None, **unknown_fields
):
1985 results : typing.Sequence<+T_co>[~ControllersChangeResult]<~ControllersChangeResult>
1987 self
.results
= [ControllersChangeResult
.from_json(o
) for o
in results
or []]
1991 class ControllersChanges(Type
):
1992 _toSchema
= {'added': 'added', 'converted': 'converted', 'demoted': 'demoted', 'maintained': 'maintained', 'promoted': 'promoted', 'removed': 'removed'}
1993 _toPy
= {'added': 'added', 'converted': 'converted', 'demoted': 'demoted', 'maintained': 'maintained', 'promoted': 'promoted', 'removed': 'removed'}
1994 def __init__(self
, added
=None, converted
=None, demoted
=None, maintained
=None, promoted
=None, removed
=None, **unknown_fields
):
1996 added : typing.Sequence<+T_co>[str]
1997 converted : typing.Sequence<+T_co>[str]
1998 demoted : typing.Sequence<+T_co>[str]
1999 maintained : typing.Sequence<+T_co>[str]
2000 promoted : typing.Sequence<+T_co>[str]
2001 removed : typing.Sequence<+T_co>[str]
2004 self
.converted
= converted
2005 self
.demoted
= demoted
2006 self
.maintained
= maintained
2007 self
.promoted
= promoted
2008 self
.removed
= removed
2012 class ControllersSpec(Type
):
2013 _toSchema
= {'constraints': 'constraints', 'num_controllers': 'num-controllers', 'placement': 'placement', 'series': 'series'}
2014 _toPy
= {'constraints': 'constraints', 'num-controllers': 'num_controllers', 'placement': 'placement', 'series': 'series'}
2015 def __init__(self
, constraints
=None, num_controllers
=None, placement
=None, series
=None, **unknown_fields
):
2018 num_controllers : int
2019 placement : typing.Sequence<+T_co>[str]
2022 self
.constraints
= Value
.from_json(constraints
) if constraints
else None
2023 self
.num_controllers
= num_controllers
2024 self
.placement
= placement
2025 self
.series
= series
2029 class ControllersSpecs(Type
):
2030 _toSchema
= {'specs': 'specs'}
2031 _toPy
= {'specs': 'specs'}
2032 def __init__(self
, specs
=None, **unknown_fields
):
2034 specs : typing.Sequence<+T_co>[~ControllersSpec]<~ControllersSpec>
2036 self
.specs
= [ControllersSpec
.from_json(o
) for o
in specs
or []]
2040 class CreateSpaceParams(Type
):
2041 _toSchema
= {'provider_id': 'provider-id', 'public': 'public', 'space_tag': 'space-tag', 'subnet_tags': 'subnet-tags'}
2042 _toPy
= {'provider-id': 'provider_id', 'public': 'public', 'space-tag': 'space_tag', 'subnet-tags': 'subnet_tags'}
2043 def __init__(self
, provider_id
=None, public
=None, space_tag
=None, subnet_tags
=None, **unknown_fields
):
2048 subnet_tags : typing.Sequence<+T_co>[str]
2050 self
.provider_id
= provider_id
2051 self
.public
= public
2052 self
.space_tag
= space_tag
2053 self
.subnet_tags
= subnet_tags
2057 class CreateSpacesParams(Type
):
2058 _toSchema
= {'spaces': 'spaces'}
2059 _toPy
= {'spaces': 'spaces'}
2060 def __init__(self
, spaces
=None, **unknown_fields
):
2062 spaces : typing.Sequence<+T_co>[~CreateSpaceParams]<~CreateSpaceParams>
2064 self
.spaces
= [CreateSpaceParams
.from_json(o
) for o
in spaces
or []]
2069 _toSchema
= {'entity': 'entity', 'removed': 'removed'}
2070 _toPy
= {'entity': 'entity', 'removed': 'removed'}
2071 def __init__(self
, entity
=None, removed
=None, **unknown_fields
):
2073 entity : typing.Mapping<~KT, +VT_co>[str, typing.Any]
2076 self
.entity
= entity
2077 self
.removed
= removed
2081 class DeployerConnectionValues(Type
):
2082 _toSchema
= {'api_addresses': 'api-addresses', 'state_addresses': 'state-addresses'}
2083 _toPy
= {'api-addresses': 'api_addresses', 'state-addresses': 'state_addresses'}
2084 def __init__(self
, api_addresses
=None, state_addresses
=None, **unknown_fields
):
2086 api_addresses : typing.Sequence<+T_co>[str]
2087 state_addresses : typing.Sequence<+T_co>[str]
2089 self
.api_addresses
= api_addresses
2090 self
.state_addresses
= state_addresses
2094 class DestroyApplicationInfo(Type
):
2095 _toSchema
= {'destroyed_storage': 'destroyed-storage', 'destroyed_units': 'destroyed-units', 'detached_storage': 'detached-storage'}
2096 _toPy
= {'destroyed-storage': 'destroyed_storage', 'destroyed-units': 'destroyed_units', 'detached-storage': 'detached_storage'}
2097 def __init__(self
, destroyed_storage
=None, destroyed_units
=None, detached_storage
=None, **unknown_fields
):
2099 destroyed_storage : typing.Sequence<+T_co>[~Entity]<~Entity>
2100 destroyed_units : typing.Sequence<+T_co>[~Entity]<~Entity>
2101 detached_storage : typing.Sequence<+T_co>[~Entity]<~Entity>
2103 self
.destroyed_storage
= [Entity
.from_json(o
) for o
in destroyed_storage
or []]
2104 self
.destroyed_units
= [Entity
.from_json(o
) for o
in destroyed_units
or []]
2105 self
.detached_storage
= [Entity
.from_json(o
) for o
in detached_storage
or []]
2109 class DestroyApplicationResult(Type
):
2110 _toSchema
= {'error': 'error', 'info': 'info'}
2111 _toPy
= {'error': 'error', 'info': 'info'}
2112 def __init__(self
, error
=None, info
=None, **unknown_fields
):
2115 info : DestroyApplicationInfo
2117 self
.error
= Error
.from_json(error
) if error
else None
2118 self
.info
= DestroyApplicationInfo
.from_json(info
) if info
else None
2122 class DestroyApplicationResults(Type
):
2123 _toSchema
= {'results': 'results'}
2124 _toPy
= {'results': 'results'}
2125 def __init__(self
, results
=None, **unknown_fields
):
2127 results : typing.Sequence<+T_co>[~DestroyApplicationResult]<~DestroyApplicationResult>
2129 self
.results
= [DestroyApplicationResult
.from_json(o
) for o
in results
or []]
2133 class DestroyApplicationUnits(Type
):
2134 _toSchema
= {'unit_names': 'unit-names'}
2135 _toPy
= {'unit-names': 'unit_names'}
2136 def __init__(self
, unit_names
=None, **unknown_fields
):
2138 unit_names : typing.Sequence<+T_co>[str]
2140 self
.unit_names
= unit_names
2144 class DestroyControllerArgs(Type
):
2145 _toSchema
= {'destroy_models': 'destroy-models'}
2146 _toPy
= {'destroy-models': 'destroy_models'}
2147 def __init__(self
, destroy_models
=None, **unknown_fields
):
2149 destroy_models : bool
2151 self
.destroy_models
= destroy_models
2155 class DestroyMachineInfo(Type
):
2156 _toSchema
= {'destroyed_storage': 'destroyed-storage', 'destroyed_units': 'destroyed-units', 'detached_storage': 'detached-storage'}
2157 _toPy
= {'destroyed-storage': 'destroyed_storage', 'destroyed-units': 'destroyed_units', 'detached-storage': 'detached_storage'}
2158 def __init__(self
, destroyed_storage
=None, destroyed_units
=None, detached_storage
=None, **unknown_fields
):
2160 destroyed_storage : typing.Sequence<+T_co>[~Entity]<~Entity>
2161 destroyed_units : typing.Sequence<+T_co>[~Entity]<~Entity>
2162 detached_storage : typing.Sequence<+T_co>[~Entity]<~Entity>
2164 self
.destroyed_storage
= [Entity
.from_json(o
) for o
in destroyed_storage
or []]
2165 self
.destroyed_units
= [Entity
.from_json(o
) for o
in destroyed_units
or []]
2166 self
.detached_storage
= [Entity
.from_json(o
) for o
in detached_storage
or []]
2170 class DestroyMachineResult(Type
):
2171 _toSchema
= {'error': 'error', 'info': 'info'}
2172 _toPy
= {'error': 'error', 'info': 'info'}
2173 def __init__(self
, error
=None, info
=None, **unknown_fields
):
2176 info : DestroyMachineInfo
2178 self
.error
= Error
.from_json(error
) if error
else None
2179 self
.info
= DestroyMachineInfo
.from_json(info
) if info
else None
2183 class DestroyMachineResults(Type
):
2184 _toSchema
= {'results': 'results'}
2185 _toPy
= {'results': 'results'}
2186 def __init__(self
, results
=None, **unknown_fields
):
2188 results : typing.Sequence<+T_co>[~DestroyMachineResult]<~DestroyMachineResult>
2190 self
.results
= [DestroyMachineResult
.from_json(o
) for o
in results
or []]
2194 class DestroyMachines(Type
):
2195 _toSchema
= {'force': 'force', 'machine_names': 'machine-names'}
2196 _toPy
= {'force': 'force', 'machine-names': 'machine_names'}
2197 def __init__(self
, force
=None, machine_names
=None, **unknown_fields
):
2200 machine_names : typing.Sequence<+T_co>[str]
2203 self
.machine_names
= machine_names
2207 class DestroyRelation(Type
):
2208 _toSchema
= {'endpoints': 'endpoints'}
2209 _toPy
= {'endpoints': 'endpoints'}
2210 def __init__(self
, endpoints
=None, **unknown_fields
):
2212 endpoints : typing.Sequence<+T_co>[str]
2214 self
.endpoints
= endpoints
2218 class DestroyUnitInfo(Type
):
2219 _toSchema
= {'destroyed_storage': 'destroyed-storage', 'detached_storage': 'detached-storage'}
2220 _toPy
= {'destroyed-storage': 'destroyed_storage', 'detached-storage': 'detached_storage'}
2221 def __init__(self
, destroyed_storage
=None, detached_storage
=None, **unknown_fields
):
2223 destroyed_storage : typing.Sequence<+T_co>[~Entity]<~Entity>
2224 detached_storage : typing.Sequence<+T_co>[~Entity]<~Entity>
2226 self
.destroyed_storage
= [Entity
.from_json(o
) for o
in destroyed_storage
or []]
2227 self
.detached_storage
= [Entity
.from_json(o
) for o
in detached_storage
or []]
2231 class DestroyUnitResult(Type
):
2232 _toSchema
= {'error': 'error', 'info': 'info'}
2233 _toPy
= {'error': 'error', 'info': 'info'}
2234 def __init__(self
, error
=None, info
=None, **unknown_fields
):
2237 info : DestroyUnitInfo
2239 self
.error
= Error
.from_json(error
) if error
else None
2240 self
.info
= DestroyUnitInfo
.from_json(info
) if info
else None
2244 class DestroyUnitResults(Type
):
2245 _toSchema
= {'results': 'results'}
2246 _toPy
= {'results': 'results'}
2247 def __init__(self
, results
=None, **unknown_fields
):
2249 results : typing.Sequence<+T_co>[~DestroyUnitResult]<~DestroyUnitResult>
2251 self
.results
= [DestroyUnitResult
.from_json(o
) for o
in results
or []]
2255 class DetailedStatus(Type
):
2256 _toSchema
= {'data': 'data', 'err': 'err', 'info': 'info', 'kind': 'kind', 'life': 'life', 'since': 'since', 'status': 'status', 'version': 'version'}
2257 _toPy
= {'data': 'data', 'err': 'err', 'info': 'info', 'kind': 'kind', 'life': 'life', 'since': 'since', 'status': 'status', 'version': 'version'}
2258 def __init__(self
, data
=None, err
=None, info
=None, kind
=None, life
=None, since
=None, status
=None, version
=None, **unknown_fields
):
2260 data : typing.Mapping<~KT, +VT_co>[str, typing.Any]
2261 err : typing.Mapping<~KT, +VT_co>[str, typing.Any]
2275 self
.status
= status
2276 self
.version
= version
2280 class DeviceBridgeInfo(Type
):
2281 _toSchema
= {'bridge_name': 'bridge-name', 'host_device_name': 'host-device-name'}
2282 _toPy
= {'bridge-name': 'bridge_name', 'host-device-name': 'host_device_name'}
2283 def __init__(self
, bridge_name
=None, host_device_name
=None, **unknown_fields
):
2286 host_device_name : str
2288 self
.bridge_name
= bridge_name
2289 self
.host_device_name
= host_device_name
2293 class DiscoverSpacesResults(Type
):
2294 _toSchema
= {'results': 'results'}
2295 _toPy
= {'results': 'results'}
2296 def __init__(self
, results
=None, **unknown_fields
):
2298 results : typing.Sequence<+T_co>[~ProviderSpace]<~ProviderSpace>
2300 self
.results
= [ProviderSpace
.from_json(o
) for o
in results
or []]
2304 class DistributionGroupResult(Type
):
2305 _toSchema
= {'error': 'error', 'result': 'result'}
2306 _toPy
= {'error': 'error', 'result': 'result'}
2307 def __init__(self
, error
=None, result
=None, **unknown_fields
):
2310 result : typing.Sequence<+T_co>[str]
2312 self
.error
= Error
.from_json(error
) if error
else None
2313 self
.result
= result
2317 class DistributionGroupResults(Type
):
2318 _toSchema
= {'results': 'results'}
2319 _toPy
= {'results': 'results'}
2320 def __init__(self
, results
=None, **unknown_fields
):
2322 results : typing.Sequence<+T_co>[~DistributionGroupResult]<~DistributionGroupResult>
2324 self
.results
= [DistributionGroupResult
.from_json(o
) for o
in results
or []]
2328 class DumpModelRequest(Type
):
2329 _toSchema
= {'entities': 'entities', 'simplified': 'simplified'}
2330 _toPy
= {'entities': 'entities', 'simplified': 'simplified'}
2331 def __init__(self
, entities
=None, simplified
=None, **unknown_fields
):
2333 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2336 self
.entities
= [Entity
.from_json(o
) for o
in entities
or []]
2337 self
.simplified
= simplified
2341 class Endpoint(Type
):
2342 _toSchema
= {'application_name': 'application-name', 'relation': 'relation'}
2343 _toPy
= {'application-name': 'application_name', 'relation': 'relation'}
2344 def __init__(self
, application_name
=None, relation
=None, **unknown_fields
):
2346 application_name : str
2347 relation : CharmRelation
2349 self
.application_name
= application_name
2350 self
.relation
= CharmRelation
.from_json(relation
) if relation
else None
2354 class EndpointStatus(Type
):
2355 _toSchema
= {'application': 'application', 'name': 'name', 'role': 'role', 'subordinate': 'subordinate'}
2356 _toPy
= {'application': 'application', 'name': 'name', 'role': 'role', 'subordinate': 'subordinate'}
2357 def __init__(self
, application
=None, name
=None, role
=None, subordinate
=None, **unknown_fields
):
2364 self
.application
= application
2367 self
.subordinate
= subordinate
2371 class Entities(Type
):
2372 _toSchema
= {'entities': 'entities'}
2373 _toPy
= {'entities': 'entities'}
2374 def __init__(self
, entities
=None, **unknown_fields
):
2376 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2378 self
.entities
= [Entity
.from_json(o
) for o
in entities
or []]
2382 class EntitiesCharmURL(Type
):
2383 _toSchema
= {'entities': 'entities'}
2384 _toPy
= {'entities': 'entities'}
2385 def __init__(self
, entities
=None, **unknown_fields
):
2387 entities : typing.Sequence<+T_co>[~EntityCharmURL]<~EntityCharmURL>
2389 self
.entities
= [EntityCharmURL
.from_json(o
) for o
in entities
or []]
2393 class EntitiesPortRanges(Type
):
2394 _toSchema
= {'entities': 'entities'}
2395 _toPy
= {'entities': 'entities'}
2396 def __init__(self
, entities
=None, **unknown_fields
):
2398 entities : typing.Sequence<+T_co>[~EntityPortRange]<~EntityPortRange>
2400 self
.entities
= [EntityPortRange
.from_json(o
) for o
in entities
or []]
2404 class EntitiesResult(Type
):
2405 _toSchema
= {'entities': 'entities', 'error': 'error'}
2406 _toPy
= {'entities': 'entities', 'error': 'error'}
2407 def __init__(self
, entities
=None, error
=None, **unknown_fields
):
2409 entities : typing.Sequence<+T_co>[~Entity]<~Entity>
2412 self
.entities
= [Entity
.from_json(o
) for o
in entities
or []]
2413 self
.error
= Error
.from_json(error
) if error
else None
2417 class EntitiesResults(Type
):
2418 _toSchema
= {'results': 'results'}
2419 _toPy
= {'results': 'results'}
2420 def __init__(self
, results
=None, **unknown_fields
):
2422 results : typing.Sequence<+T_co>[~EntitiesResult]<~EntitiesResult>
2424 self
.results
= [EntitiesResult
.from_json(o
) for o
in results
or []]
2428 class EntitiesVersion(Type
):
2429 _toSchema
= {'agent_tools': 'agent-tools'}
2430 _toPy
= {'agent-tools': 'agent_tools'}
2431 def __init__(self
, agent_tools
=None, **unknown_fields
):
2433 agent_tools : typing.Sequence<+T_co>[~EntityVersion]<~EntityVersion>
2435 self
.agent_tools
= [EntityVersion
.from_json(o
) for o
in agent_tools
or []]
2439 class EntitiesWatchResult(Type
):
2440 _toSchema
= {'changes': 'changes', 'error': 'error', 'watcher_id': 'watcher-id'}
2441 _toPy
= {'changes': 'changes', 'error': 'error', 'watcher-id': 'watcher_id'}
2442 def __init__(self
, changes
=None, error
=None, watcher_id
=None, **unknown_fields
):
2444 changes : typing.Sequence<+T_co>[str]
2448 self
.changes
= changes
2449 self
.error
= Error
.from_json(error
) if error
else None
2450 self
.watcher_id
= watcher_id
2455 _toSchema
= {'tag': 'tag'}
2456 _toPy
= {'tag': 'tag'}
2457 def __init__(self
, tag
=None, **unknown_fields
):
2465 class EntityAnnotations(Type
):
2466 _toSchema
= {'annotations': 'annotations', 'entity': 'entity'}
2467 _toPy
= {'annotations': 'annotations', 'entity': 'entity'}
2468 def __init__(self
, annotations
=None, entity
=None, **unknown_fields
):
2470 annotations : typing.Mapping<~KT, +VT_co>[str, str]
2473 self
.annotations
= annotations
2474 self
.entity
= entity
2478 class EntityCharmURL(Type
):
2479 _toSchema
= {'charm_url': 'charm-url', 'tag': 'tag'}
2480 _toPy
= {'charm-url': 'charm_url', 'tag': 'tag'}
2481 def __init__(self
, charm_url
=None, tag
=None, **unknown_fields
):
2486 self
.charm_url
= charm_url
2491 class EntityMetrics(Type
):
2492 _toSchema
= {'error': 'error', 'metrics': 'metrics'}
2493 _toPy
= {'error': 'error', 'metrics': 'metrics'}
2494 def __init__(self
, error
=None, metrics
=None, **unknown_fields
):
2497 metrics : typing.Sequence<+T_co>[~MetricResult]<~MetricResult>
2499 self
.error
= Error
.from_json(error
) if error
else None
2500 self
.metrics
= [MetricResult
.from_json(o
) for o
in metrics
or []]
2504 class EntityPassword(Type
):
2505 _toSchema
= {'password': 'password', 'tag': 'tag'}
2506 _toPy
= {'password': 'password', 'tag': 'tag'}
2507 def __init__(self
, password
=None, tag
=None, **unknown_fields
):
2512 self
.password
= password
2517 class EntityPasswords(Type
):
2518 _toSchema
= {'changes': 'changes'}
2519 _toPy
= {'changes': 'changes'}
2520 def __init__(self
, changes
=None, **unknown_fields
):
2522 changes : typing.Sequence<+T_co>[~EntityPassword]<~EntityPassword>
2524 self
.changes
= [EntityPassword
.from_json(o
) for o
in changes
or []]
2528 class EntityPortRange(Type
):
2529 _toSchema
= {'from_port': 'from-port', 'protocol': 'protocol', 'tag': 'tag', 'to_port': 'to-port'}
2530 _toPy
= {'from-port': 'from_port', 'protocol': 'protocol', 'tag': 'tag', 'to-port': 'to_port'}
2531 def __init__(self
, from_port
=None, protocol
=None, tag
=None, to_port
=None, **unknown_fields
):
2538 self
.from_port
= from_port
2539 self
.protocol
= protocol
2541 self
.to_port
= to_port
2545 class EntityStatus(Type
):
2546 _toSchema
= {'data': 'data', 'info': 'info', 'since': 'since', 'status': 'status'}
2547 _toPy
= {'data': 'data', 'info': 'info', 'since': 'since', 'status': 'status'}
2548 def __init__(self
, data
=None, info
=None, since
=None, status
=None, **unknown_fields
):
2550 data : typing.Mapping<~KT, +VT_co>[str, typing.Any]
2558 self
.status
= status
2562 class EntityStatusArgs(Type
):
2563 _toSchema
= {'data': 'data', 'info': 'info', 'status': 'status', 'tag': 'tag'}
2564 _toPy
= {'data': 'data', 'info': 'info', 'status': 'status', 'tag': 'tag'}
2565 def __init__(self
, data
=None, info
=None, status
=None, tag
=None, **unknown_fields
):
2567 data : typing.Mapping<~KT, +VT_co>[str, typing.Any]
2574 self
.status
= status
2579 class EntityVersion(Type
):
2580 _toSchema
= {'tag': 'tag', 'tools': 'tools'}
2581 _toPy
= {'tag': 'tag', 'tools': 'tools'}
2582 def __init__(self
, tag
=None, tools
=None, **unknown_fields
):
2588 self
.tools
= Version
.from_json(tools
) if tools
else None
2592 class EntityWorkloadVersion(Type
):
2593 _toSchema
= {'tag': 'tag', 'workload_version': 'workload-version'}
2594 _toPy
= {'tag': 'tag', 'workload-version': 'workload_version'}
2595 def __init__(self
, tag
=None, workload_version
=None, **unknown_fields
):
2598 workload_version : str
2601 self
.workload_version
= workload_version
2605 class EntityWorkloadVersions(Type
):
2606 _toSchema
= {'entities': 'entities'}
2607 _toPy
= {'entities': 'entities'}
2608 def __init__(self
, entities
=None, **unknown_fields
):
2610 entities : typing.Sequence<+T_co>[~EntityWorkloadVersion]<~EntityWorkloadVersion>
2612 self
.entities
= [EntityWorkloadVersion
.from_json(o
) for o
in entities
or []]
2616 class EnvListArgs(Type
):
2617 _toSchema
= {'patterns': 'patterns'}
2618 _toPy
= {'patterns': 'patterns'}
2619 def __init__(self
, patterns
=None, **unknown_fields
):
2621 patterns : typing.Sequence<+T_co>[str]
2623 self
.patterns
= patterns
2627 class EnvListResults(Type
):
2628 _toSchema
= {'results': 'results'}
2629 _toPy
= {'results': 'results'}
2630 def __init__(self
, results
=None, **unknown_fields
):
2632 results : typing.Sequence<+T_co>[~Payload]<~Payload>
2634 self
.results
= [Payload
.from_json(o
) for o
in results
or []]
2639 _toSchema
= {'code': 'code', 'info': 'info', 'message': 'message'}
2640 _toPy
= {'code': 'code', 'info': 'info', 'message': 'message'}
2641 def __init__(self
, code
=None, info
=None, message
=None, **unknown_fields
):
2648 self
.info
= ErrorInfo
.from_json(info
) if info
else None
2649 self
.message
= message
2653 class ErrorInfo(Type
):
2654 _toSchema
= {'macaroon': 'macaroon', 'macaroon_path': 'macaroon-path'}
2655 _toPy
= {'macaroon': 'macaroon', 'macaroon-path': 'macaroon_path'}
2656 def __init__(self
, macaroon
=None, macaroon_path
=None, **unknown_fields
):
2661 self
.macaroon
= Macaroon
.from_json(macaroon
) if macaroon
else None
2662 self
.macaroon_path
= macaroon_path
2666 class ErrorResult(Type
):
2667 _toSchema
= {'error': 'error'}
2668 _toPy
= {'error': 'error'}
2669 def __init__(self
, error
=None, **unknown_fields
):
2673 self
.error
= Error
.from_json(error
) if error
else None
2677 class ErrorResults(Type
):
2678 _toSchema
= {'results': 'results'}
2679 _toPy
= {'results': 'results'}
2680 def __init__(self
, results
=None, **unknown_fields
):
2682 results : typing.Sequence<+T_co>[~ErrorResult]<~ErrorResult>
2684 self
.results
= [ErrorResult
.from_json(o
) for o
in results
or []]
2688 class Filesystem(Type
):
2689 _toSchema
= {'filesystem_tag': 'filesystem-tag', 'info': 'info', 'volume_tag': 'volume-tag'}
2690 _toPy
= {'filesystem-tag': 'filesystem_tag', 'info': 'info', 'volume-tag': 'volume_tag'}
2691 def __init__(self
, filesystem_tag
=None, info
=None, volume_tag
=None, **unknown_fields
):
2693 filesystem_tag : str
2694 info : FilesystemInfo
2697 self
.filesystem_tag
= filesystem_tag
2698 self
.info
= FilesystemInfo
.from_json(info
) if info
else None
2699 self
.volume_tag
= volume_tag
2703 class FilesystemAttachment(Type
):
2704 _toSchema
= {'filesystem_tag': 'filesystem-tag', 'info': 'info', 'machine_tag': 'machine-tag'}
2705 _toPy
= {'filesystem-tag': 'filesystem_tag', 'info': 'info', 'machine-tag': 'machine_tag'}
2706 def __init__(self
, filesystem_tag
=None, info
=None, machine_tag
=None, **unknown_fields
):
2708 filesystem_tag : str
2709 info : FilesystemAttachmentInfo
2712 self
.filesystem_tag
= filesystem_tag
2713 self
.info
= FilesystemAttachmentInfo
.from_json(info
) if info
else None
2714 self
.machine_tag
= machine_tag
2718 class FilesystemAttachmentDetails(Type
):
2719 _toSchema
= {'filesystemattachmentinfo': 'FilesystemAttachmentInfo', 'life': 'life'}
2720 _toPy
= {'FilesystemAttachmentInfo': 'filesystemattachmentinfo', 'life': 'life'}
2721 def __init__(self
, filesystemattachmentinfo
=None, life
=None, **unknown_fields
):
2723 filesystemattachmentinfo : FilesystemAttachmentInfo
2726 self
.filesystemattachmentinfo
= FilesystemAttachmentInfo
.from_json(filesystemattachmentinfo
) if filesystemattachmentinfo
else None
2731 class FilesystemAttachmentInfo(Type
):
2732 _toSchema
= {'mount_point': 'mount-point', 'read_only': 'read-only'}
2733 _toPy
= {'mount-point': 'mount_point', 'read-only': 'read_only'}
2734 def __init__(self
, mount_point
=None, read_only
=None, **unknown_fields
):
2739 self
.mount_point
= mount_point
2740 self
.read_only
= read_only
2744 class FilesystemAttachmentParams(Type
):
2745 _toSchema
= {'filesystem_id': 'filesystem-id', 'filesystem_tag': 'filesystem-tag', 'instance_id': 'instance-id', 'machine_tag': 'machine-tag', 'mount_point': 'mount-point', 'provider': 'provider', 'read_only': 'read-only'}
2746 _toPy
= {'filesystem-id': 'filesystem_id', 'filesystem-tag': 'filesystem_tag', 'instance-id': 'instance_id', 'machine-tag': 'machine_tag', 'mount-point': 'mount_point', 'provider': 'provider', 'read-only': 'read_only'}
2747 def __init__(self
, filesystem_id
=None, filesystem_tag
=None, instance_id
=None, machine_tag
=None, mount_point
=None, provider
=None, read_only
=None, **unknown_fields
):
2750 filesystem_tag : str
2757 self
.filesystem_id
= filesystem_id
2758 self
.filesystem_tag
= filesystem_tag
2759 self
.instance_id
= instance_id
2760 self
.machine_tag
= machine_tag
2761 self
.mount_point
= mount_point
2762 self
.provider
= provider
2763 self
.read_only
= read_only
2767 class FilesystemAttachmentParamsResult(Type
):
2768 _toSchema
= {'error': 'error', 'result': 'result'}
2769 _toPy
= {'error': 'error', 'result': 'result'}
2770 def __init__(self
, error
=None, result
=None, **unknown_fields
):
2773 result : FilesystemAttachmentParams
2775 self
.error
= Error
.from_json(error
) if error
else None
2776 self
.result
= FilesystemAttachmentParams
.from_json(result
) if result
else None
2780 class FilesystemAttachmentParamsResults(Type
):
2781 _toSchema
= {'results': 'results'}
2782 _toPy
= {'results': 'results'}
2783 def __init__(self
, results
=None, **unknown_fields
):
2785 results : typing.Sequence<+T_co>[~FilesystemAttachmentParamsResult]<~FilesystemAttachmentParamsResult>
2787 self
.results
= [FilesystemAttachmentParamsResult
.from_json(o
) for o
in results
or []]
2791 class FilesystemAttachmentResult(Type
):
2792 _toSchema
= {'error': 'error', 'result': 'result'}
2793 _toPy
= {'error': 'error', 'result': 'result'}
2794 def __init__(self
, error
=None, result
=None, **unknown_fields
):
2797 result : FilesystemAttachment
2799 self
.error
= Error
.from_json(error
) if error
else None
2800 self
.result
= FilesystemAttachment
.from_json(result
) if result
else None
2804 class FilesystemAttachmentResults(Type
):
2805 _toSchema
= {'results': 'results'}
2806 _toPy
= {'results': 'results'}
2807 def __init__(self
, results
=None, **unknown_fields
):
2809 results : typing.Sequence<+T_co>[~FilesystemAttachmentResult]<~FilesystemAttachmentResult>
2811 self
.results
= [FilesystemAttachmentResult
.from_json(o
) for o
in results
or []]
2815 class FilesystemAttachments(Type
):
2816 _toSchema
= {'filesystem_attachments': 'filesystem-attachments'}
2817 _toPy
= {'filesystem-attachments': 'filesystem_attachments'}
2818 def __init__(self
, filesystem_attachments
=None, **unknown_fields
):
2820 filesystem_attachments : typing.Sequence<+T_co>[~FilesystemAttachment]<~FilesystemAttachment>
2822 self
.filesystem_attachments
= [FilesystemAttachment
.from_json(o
) for o
in filesystem_attachments
or []]
2826 class FilesystemDetails(Type
):
2827 _toSchema
= {'filesystem_tag': 'filesystem-tag', 'info': 'info', 'machine_attachments': 'machine-attachments', 'status': 'status', 'storage': 'storage', 'volume_tag': 'volume-tag'}
2828 _toPy
= {'filesystem-tag': 'filesystem_tag', 'info': 'info', 'machine-attachments': 'machine_attachments', 'status': 'status', 'storage': 'storage', 'volume-tag': 'volume_tag'}
2829 def __init__(self
, filesystem_tag
=None, info
=None, machine_attachments
=None, status
=None, storage
=None, volume_tag
=None, **unknown_fields
):
2831 filesystem_tag : str
2832 info : FilesystemInfo
2833 machine_attachments : typing.Mapping<~KT, +VT_co>[str, ~FilesystemAttachmentInfo]<~FilesystemAttachmentInfo>
2834 status : EntityStatus
2835 storage : StorageDetails
2838 self
.filesystem_tag
= filesystem_tag
2839 self
.info
= FilesystemInfo
.from_json(info
) if info
else None
2840 self
.machine_attachments
= machine_attachments
2841 self
.status
= EntityStatus
.from_json(status
) if status
else None
2842 self
.storage
= StorageDetails
.from_json(storage
) if storage
else None
2843 self
.volume_tag
= volume_tag
2847 class FilesystemDetailsListResult(Type
):
2848 _toSchema
= {'error': 'error', 'result': 'result'}
2849 _toPy
= {'error': 'error', 'result': 'result'}
2850 def __init__(self
, error
=None, result
=None, **unknown_fields
):
2853 result : typing.Sequence<+T_co>[~FilesystemDetails]<~FilesystemDetails>
2855 self
.error
= Error
.from_json(error
) if error
else None
2856 self
.result
= [FilesystemDetails
.from_json(o
) for o
in result
or []]
2860 class FilesystemDetailsListResults(Type
):
2861 _toSchema
= {'results': 'results'}
2862 _toPy
= {'results': 'results'}
2863 def __init__(self
, results
=None, **unknown_fields
):
2865 results : typing.Sequence<+T_co>[~FilesystemDetailsListResult]<~FilesystemDetailsListResult>
2867 self
.results
= [FilesystemDetailsListResult
.from_json(o
) for o
in results
or []]
2871 class FilesystemFilter(Type
):
2872 _toSchema
= {'machines': 'machines'}
2873 _toPy
= {'machines': 'machines'}
2874 def __init__(self
, machines
=None, **unknown_fields
):
2876 machines : typing.Sequence<+T_co>[str]
2878 self
.machines
= machines
2882 class FilesystemFilters(Type
):
2883 _toSchema
= {'filters': 'filters'}
2884 _toPy
= {'filters': 'filters'}
2885 def __init__(self
, filters
=None, **unknown_fields
):
2887 filters : typing.Sequence<+T_co>[~FilesystemFilter]<~FilesystemFilter>
2889 self
.filters
= [FilesystemFilter
.from_json(o
) for o
in filters
or []]
2893 class FilesystemInfo(Type
):
2894 _toSchema
= {'filesystem_id': 'filesystem-id', 'size': 'size'}
2895 _toPy
= {'filesystem-id': 'filesystem_id', 'size': 'size'}
2896 def __init__(self
, filesystem_id
=None, size
=None, **unknown_fields
):
2901 self
.filesystem_id
= filesystem_id
2906 class FilesystemParams(Type
):
2907 _toSchema
= {'attachment': 'attachment', 'attributes': 'attributes', 'filesystem_tag': 'filesystem-tag', 'provider': 'provider', 'size': 'size', 'tags': 'tags', 'volume_tag': 'volume-tag'}
2908 _toPy
= {'attachment': 'attachment', 'attributes': 'attributes', 'filesystem-tag': 'filesystem_tag', 'provider': 'provider', 'size': 'size', 'tags': 'tags', 'volume-tag': 'volume_tag'}
2909 def __init__(self
, attachment
=None, attributes
=None, filesystem_tag
=None, provider
=None, size
=None, tags
=None, volume_tag
=None, **unknown_fields
):
2911 attachment : FilesystemAttachmentParams
2912 attributes : typing.Mapping<~KT, +VT_co>[str, typing.Any]
2913 filesystem_tag : str
2916 tags : typing.Mapping<~KT, +VT_co>[str, str]
2919 self
.attachment
= FilesystemAttachmentParams
.from_json(attachment
) if attachment
else None
2920 self
.attributes
= attributes
2921 self
.filesystem_tag
= filesystem_tag
2922 self
.provider
= provider
2925 self
.volume_tag
= volume_tag
2929 class FilesystemParamsResult(Type
):
2930 _toSchema
= {'error': 'error', 'result': 'result'}
2931 _toPy
= {'error': 'error', 'result': 'result'}
2932 def __init__(self
, error
=None, result
=None, **unknown_fields
):
2935 result : FilesystemParams
2937 self
.error
= Error
.from_json(error
) if error
else None
2938 self
.result
= FilesystemParams
.from_json(result
) if result
else None
2942 class FilesystemParamsResults(Type
):
2943 _toSchema
= {'results': 'results'}
2944 _toPy
= {'results': 'results'}
2945 def __init__(self
, results
=None, **unknown_fields
):
2947 results : typing.Sequence<+T_co>[~FilesystemParamsResult]<~FilesystemParamsResult>
2949 self
.results
= [FilesystemParamsResult
.from_json(o
) for o
in results
or []]
2953 class FilesystemResult(Type
):
2954 _toSchema
= {'error': 'error', 'result': 'result'}
2955 _toPy
= {'error': 'error', 'result': 'result'}
2956 def __init__(self
, error
=None, result
=None, **unknown_fields
):
2961 self
.error
= Error
.from_json(error
) if error
else None
2962 self
.result
= Filesystem
.from_json(result
) if result
else None
2966 class FilesystemResults(Type
):
2967 _toSchema
= {'results': 'results'}
2968 _toPy
= {'results': 'results'}
2969 def __init__(self
, results
=None, **unknown_fields
):
2971 results : typing.Sequence<+T_co>[~FilesystemResult]<~FilesystemResult>
2973 self
.results
= [FilesystemResult
.from_json(o
) for o
in results
or []]
2977 class Filesystems(Type
):
2978 _toSchema
= {'filesystems': 'filesystems'}
2979 _toPy
= {'filesystems': 'filesystems'}
2980 def __init__(self
, filesystems
=None, **unknown_fields
):
2982 filesystems : typing.Sequence<+T_co>[~Filesystem]<~Filesystem>
2984 self
.filesystems
= [Filesystem
.from_json(o
) for o
in filesystems
or []]
2988 class FindActionsByNames(Type
):
2989 _toSchema
= {'names': 'names'}
2990 _toPy
= {'names': 'names'}
2991 def __init__(self
, names
=None, **unknown_fields
):
2993 names : typing.Sequence<+T_co>[str]