X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Fclient%2F_definitions.py;h=198784d34dfdfe7839fc3fdc4c741d8028233f89;hb=d6348ef405d6e87a4f72e7842ea4376678456283;hp=c932a2fd0e3caf6f648cec51ccfad2bf25c9e8d6;hpb=42370b932aff6b38f738f82cbe567a07c9786024;p=osm%2FN2VC.git diff --git a/juju/client/_definitions.py b/juju/client/_definitions.py index c932a2f..198784d 100644 --- a/juju/client/_definitions.py +++ b/juju/client/_definitions.py @@ -696,6 +696,31 @@ class ApplicationMetricCredentials(Type): +class ApplicationOffer(Type): + _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'} + _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'} + 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): + ''' + access : str + application_description : str + bindings : typing.Mapping<~KT, +VT_co>[str, str] + endpoints : typing.Sequence<+T_co>[~RemoteEndpoint]<~RemoteEndpoint> + offer_name : str + offer_url : str + source_model_tag : str + spaces : typing.Sequence<+T_co>[~RemoteSpace]<~RemoteSpace> + ''' + self.access = access + self.application_description = application_description + self.bindings = bindings + self.endpoints = [RemoteEndpoint.from_json(o) for o in endpoints or []] + self.offer_name = offer_name + self.offer_url = offer_url + self.source_model_tag = source_model_tag + self.spaces = [RemoteSpace.from_json(o) for o in spaces or []] + + + class ApplicationRelationsChange(Type): _toSchema = {'changed': 'changed', 'removed': 'removed'} _toPy = {'changed': 'changed', 'removed': 'removed'} @@ -2300,6 +2325,19 @@ class DistributionGroupResults(Type): +class DumpModelRequest(Type): + _toSchema = {'entities': 'entities', 'simplified': 'simplified'} + _toPy = {'entities': 'entities', 'simplified': 'simplified'} + def __init__(self, entities=None, simplified=None, **unknown_fields): + ''' + entities : typing.Sequence<+T_co>[~Entity]<~Entity> + simplified : bool + ''' + self.entities = [Entity.from_json(o) for o in entities or []] + self.simplified = simplified + + + class Endpoint(Type): _toSchema = {'application_name': 'application-name', 'relation': 'relation'} _toPy = {'application-name': 'application_name', 'relation': 'relation'} @@ -5866,6 +5904,25 @@ class RemoteRelationsWatchResult(Type): +class RemoteSpace(Type): + _toSchema = {'cloud_type': 'cloud-type', 'name': 'name', 'provider_attributes': 'provider-attributes', 'provider_id': 'provider-id', 'subnets': 'subnets'} + _toPy = {'cloud-type': 'cloud_type', 'name': 'name', 'provider-attributes': 'provider_attributes', 'provider-id': 'provider_id', 'subnets': 'subnets'} + def __init__(self, cloud_type=None, name=None, provider_attributes=None, provider_id=None, subnets=None, **unknown_fields): + ''' + cloud_type : str + name : str + provider_attributes : typing.Mapping<~KT, +VT_co>[str, typing.Any] + provider_id : str + subnets : typing.Sequence<+T_co>[~Subnet]<~Subnet> + ''' + self.cloud_type = cloud_type + self.name = name + self.provider_attributes = provider_attributes + self.provider_id = provider_id + self.subnets = [Subnet.from_json(o) for o in subnets or []] + + + class RemoveBlocksArgs(Type): _toSchema = {'all_': 'all'} _toPy = {'all': 'all_'}