@@ -216,15 +216,6 @@ class ApplicationFacade(Type):
216216 'remote' ,
217217 'life' ],
218218 'type' : 'object' },
219- 'ApplicationSet' : {'additionalProperties' : False ,
220- 'properties' : {'application' : {'type' : 'string' },
221- 'branch' : {'type' : 'string' },
222- 'options' : {'patternProperties' : {'.*' : {'type' : 'string' }},
223- 'type' : 'object' }},
224- 'required' : ['application' ,
225- 'branch' ,
226- 'options' ],
227- 'type' : 'object' },
228219 'ApplicationSetCharm' : {'additionalProperties' : False ,
229220 'properties' : {'application' : {'type' : 'string' },
230221 'channel' : {'type' : 'string' },
@@ -799,12 +790,6 @@ class ApplicationFacade(Type):
799790 'properties' : {'Params' : {'$ref' : '#/definitions/ApplicationGet' },
800791 'Result' : {'$ref' : '#/definitions/ApplicationGetResults' }},
801792 'type' : 'object' },
802- 'GetCharmURL' : {'description' : 'GetCharmURL returns the charm '
803- 'URL the given application is\n '
804- 'running at present.' ,
805- 'properties' : {'Params' : {'$ref' : '#/definitions/ApplicationGet' },
806- 'Result' : {'$ref' : '#/definitions/StringResult' }},
807- 'type' : 'object' },
808793 'GetCharmURLOrigin' : {'description' : 'GetCharmURLOrigin '
809794 'returns the charm URL '
810795 'and charm origin the '
@@ -853,20 +838,13 @@ class ApplicationFacade(Type):
853838 'properties' : {'Params' : {'$ref' : '#/definitions/ScaleApplicationsParams' },
854839 'Result' : {'$ref' : '#/definitions/ScaleApplicationResults' }},
855840 'type' : 'object' },
856- 'Set' : {'description' : 'Set implements the server side of '
857- 'Application.Set.\n '
858- 'It does not unset values that are set '
859- 'to an empty string.\n '
860- 'Unset should be used for that.' ,
861- 'properties' : {'Params' : {'$ref' : '#/definitions/ApplicationSet' }},
862- 'type' : 'object' },
863841 'SetCharm' : {'description' : 'SetCharm sets the charm for a '
864842 'given for the application.' ,
865843 'properties' : {'Params' : {'$ref' : '#/definitions/ApplicationSetCharm' }},
866844 'type' : 'object' },
867- 'SetConfigs' : {'description' : 'SetConfig implements the server '
868- 'side of Application.SetConfig. '
869- 'Both\n '
845+ 'SetConfigs' : {'description' : 'SetConfigs implements the '
846+ 'server side of '
847+ 'Application.SetConfig. Both\n '
870848 'application and charm config '
871849 'are set. It does not unset '
872850 'values in\n '
@@ -908,10 +886,6 @@ class ApplicationFacade(Type):
908886 'properties' : {'Params' : {'$ref' : '#/definitions/Entities' },
909887 'Result' : {'$ref' : '#/definitions/UnitInfoResults' }},
910888 'type' : 'object' },
911- 'Unset' : {'description' : 'Unset implements the server side of '
912- 'Client.Unset.' ,
913- 'properties' : {'Params' : {'$ref' : '#/definitions/ApplicationUnset' }},
914- 'type' : 'object' },
915889 'UnsetApplicationsConfig' : {'description' : 'UnsetApplicationsConfig '
916890 'implements the '
917891 'server side of '
@@ -1350,35 +1324,6 @@ async def Get(self, application=None, branch=None):
13501324
13511325
13521326
1353- @ReturnMapping (StringResult )
1354- async def GetCharmURL (self , application = None , branch = None ):
1355- '''
1356- GetCharmURL returns the charm URL the given application is
1357- running at present.
1358-
1359- application : str
1360- branch : str
1361- Returns -> StringResult
1362- '''
1363- if application is not None and not isinstance (application , (bytes , str )):
1364- raise Exception ("Expected application to be a str, received: {}" .format (type (application )))
1365-
1366- if branch is not None and not isinstance (branch , (bytes , str )):
1367- raise Exception ("Expected branch to be a str, received: {}" .format (type (branch )))
1368-
1369- # map input types to rpc msg
1370- _params = dict ()
1371- msg = dict (type = 'Application' ,
1372- request = 'GetCharmURL' ,
1373- version = 14 ,
1374- params = _params )
1375- _params ['application' ] = application
1376- _params ['branch' ] = branch
1377- reply = await self .rpc (msg )
1378- return reply
1379-
1380-
1381-
13821327 @ReturnMapping (CharmURLOriginResult )
13831328 async def GetCharmURLOrigin (self , application = None , branch = None ):
13841329 '''
@@ -1557,41 +1502,6 @@ async def ScaleApplications(self, applications=None):
15571502
15581503
15591504
1560- @ReturnMapping (None )
1561- async def Set (self , application = None , branch = None , options = None ):
1562- '''
1563- Set implements the server side of Application.Set.
1564- It does not unset values that are set to an empty string.
1565- Unset should be used for that.
1566-
1567- application : str
1568- branch : str
1569- options : typing.Mapping[str, str]
1570- Returns -> None
1571- '''
1572- if application is not None and not isinstance (application , (bytes , str )):
1573- raise Exception ("Expected application to be a str, received: {}" .format (type (application )))
1574-
1575- if branch is not None and not isinstance (branch , (bytes , str )):
1576- raise Exception ("Expected branch to be a str, received: {}" .format (type (branch )))
1577-
1578- if options is not None and not isinstance (options , dict ):
1579- raise Exception ("Expected options to be a Mapping, received: {}" .format (type (options )))
1580-
1581- # map input types to rpc msg
1582- _params = dict ()
1583- msg = dict (type = 'Application' ,
1584- request = 'Set' ,
1585- version = 14 ,
1586- params = _params )
1587- _params ['application' ] = application
1588- _params ['branch' ] = branch
1589- _params ['options' ] = options
1590- reply = await self .rpc (msg )
1591- return reply
1592-
1593-
1594-
15951505 @ReturnMapping (None )
15961506 async def SetCharm (self , application = None , channel = None , charm_origin = None , charm_url = None , config_settings = None , config_settings_yaml = None , endpoint_bindings = None , force = None , force_series = None , force_units = None , generation = None , resource_ids = None , storage_constraints = None ):
15971507 '''
@@ -1678,7 +1588,7 @@ async def SetCharm(self, application=None, channel=None, charm_origin=None, char
16781588 @ReturnMapping (ErrorResults )
16791589 async def SetConfigs (self , args = None ):
16801590 '''
1681- SetConfig implements the server side of Application.SetConfig. Both
1591+ SetConfigs implements the server side of Application.SetConfig. Both
16821592 application and charm config are set. It does not unset values in
16831593 Config map that are set to an empty string. Unset should be used for that.
16841594
@@ -1827,39 +1737,6 @@ async def UnitsInfo(self, entities=None):
18271737
18281738
18291739
1830- @ReturnMapping (None )
1831- async def Unset (self , application = None , branch = None , options = None ):
1832- '''
1833- Unset implements the server side of Client.Unset.
1834-
1835- application : str
1836- branch : str
1837- options : typing.Sequence[str]
1838- Returns -> None
1839- '''
1840- if application is not None and not isinstance (application , (bytes , str )):
1841- raise Exception ("Expected application to be a str, received: {}" .format (type (application )))
1842-
1843- if branch is not None and not isinstance (branch , (bytes , str )):
1844- raise Exception ("Expected branch to be a str, received: {}" .format (type (branch )))
1845-
1846- if options is not None and not isinstance (options , (bytes , str , list )):
1847- raise Exception ("Expected options to be a Sequence, received: {}" .format (type (options )))
1848-
1849- # map input types to rpc msg
1850- _params = dict ()
1851- msg = dict (type = 'Application' ,
1852- request = 'Unset' ,
1853- version = 14 ,
1854- params = _params )
1855- _params ['application' ] = application
1856- _params ['branch' ] = branch
1857- _params ['options' ] = options
1858- reply = await self .rpc (msg )
1859- return reply
1860-
1861-
1862-
18631740 @ReturnMapping (ErrorResults )
18641741 async def UnsetApplicationsConfig (self , args = None ):
18651742 '''
0 commit comments