@@ -1134,6 +1134,11 @@ class ProvisionerFacade(Type):
11341134 'value' : {'type' : 'string' }},
11351135 'required' : ['value' , 'type' , 'scope' ],
11361136 'type' : 'object' },
1137+ 'Base' : {'additionalProperties' : False ,
1138+ 'properties' : {'channel' : {'type' : 'string' },
1139+ 'name' : {'type' : 'string' }},
1140+ 'required' : ['name' , 'channel' ],
1141+ 'type' : 'object' },
11371142 'Binary' : {'additionalProperties' : False ,
11381143 'properties' : {'Arch' : {'type' : 'string' },
11391144 'Build' : {'type' : 'integer' },
@@ -1185,15 +1190,13 @@ class ProvisionerFacade(Type):
11851190 'region' : {'type' : 'string' },
11861191 'root-storage-size' : {'type' : 'integer' },
11871192 'root-storage-type' : {'type' : 'string' },
1188- 'series' : {'type' : 'string' },
11891193 'source' : {'type' : 'string' },
11901194 'stream' : {'type' : 'string' },
11911195 'version' : {'type' : 'string' },
11921196 'virt-type' : {'type' : 'string' }},
11931197 'required' : ['image-id' ,
11941198 'region' ,
11951199 'version' ,
1196- 'series' ,
11971200 'arch' ,
11981201 'source' ,
11991202 'priority' ],
@@ -1564,6 +1567,7 @@ class ProvisionerFacade(Type):
15641567 'type' : 'object' },
15651568 'ProvisioningInfo' : {'additionalProperties' : False ,
15661569 'properties' : {'ProvisioningNetworkTopology' : {'$ref' : '#/definitions/ProvisioningNetworkTopology' },
1570+ 'base' : {'$ref' : '#/definitions/Base' },
15671571 'charm-lxd-profiles' : {'items' : {'type' : 'string' },
15681572 'type' : 'array' },
15691573 'cloudinit-userdata' : {'patternProperties' : {'.*' : {'additionalProperties' : True ,
@@ -1581,7 +1585,6 @@ class ProvisionerFacade(Type):
15811585 'type' : 'array' },
15821586 'placement' : {'type' : 'string' },
15831587 'root-disk' : {'$ref' : '#/definitions/VolumeParams' },
1584- 'series' : {'type' : 'string' },
15851588 'space-subnets' : {'patternProperties' : {'.*' : {'items' : {'type' : 'string' },
15861589 'type' : 'array' }},
15871590 'type' : 'object' },
@@ -1595,7 +1598,7 @@ class ProvisionerFacade(Type):
15951598 'volumes' : {'items' : {'$ref' : '#/definitions/VolumeParams' },
15961599 'type' : 'array' }},
15971600 'required' : ['constraints' ,
1598- 'series ' ,
1601+ 'base ' ,
15991602 'placement' ,
16001603 'jobs' ,
16011604 'subnet-zones' ,
@@ -2085,11 +2088,6 @@ class ProvisionerFacade(Type):
20852088 'properties' : {'Params' : {'$ref' : '#/definitions/Entities' },
20862089 'Result' : {'$ref' : '#/definitions/ErrorResults' }},
20872090 'type' : 'object' },
2088- 'Series' : {'description' : 'Series returns the deployed series '
2089- 'for each given machine entity.' ,
2090- 'properties' : {'Params' : {'$ref' : '#/definitions/Entities' },
2091- 'Result' : {'$ref' : '#/definitions/StringResults' }},
2092- 'type' : 'object' },
20932091 'SetCharmProfiles' : {'description' : 'SetCharmProfiles records '
20942092 'the given slice of charm '
20952093 'profile names.' ,
@@ -2961,29 +2959,6 @@ async def Remove(self, entities=None):
29612959
29622960
29632961
2964- @ReturnMapping (StringResults )
2965- async def Series (self , entities = None ):
2966- '''
2967- Series returns the deployed series for each given machine entity.
2968-
2969- entities : typing.Sequence[~Entity]
2970- Returns -> StringResults
2971- '''
2972- if entities is not None and not isinstance (entities , (bytes , str , list )):
2973- raise Exception ("Expected entities to be a Sequence, received: {}" .format (type (entities )))
2974-
2975- # map input types to rpc msg
2976- _params = dict ()
2977- msg = dict (type = 'Provisioner' ,
2978- request = 'Series' ,
2979- version = 11 ,
2980- params = _params )
2981- _params ['entities' ] = entities
2982- reply = await self .rpc (msg )
2983- return reply
2984-
2985-
2986-
29872962 @ReturnMapping (ErrorResults )
29882963 async def SetCharmProfiles (self , args = None ):
29892964 '''
0 commit comments