@@ -117,7 +117,8 @@ def create_environment(self, name, description=None, size=None, **kwargs):
117117
118118 :param str name: Name that identifies the environment.
119119 :param str description: Description of the environment.
120- :param str size: Size of the environment.
120+ :param str size: Size of the environment. In the Lite plan the default and only
121+ accepted value is `LT`, in all other plans the default is `S`.
121122 :param dict headers: A `dict` containing the request headers
122123 :return: A `DetailedResponse` containing the result, headers and HTTP status code.
123124 :rtype: DetailedResponse
@@ -252,6 +253,7 @@ def update_environment(self,
252253 environment_id ,
253254 name = None ,
254255 description = None ,
256+ size = None ,
255257 ** kwargs ):
256258 """
257259 Update an environment.
@@ -262,6 +264,9 @@ def update_environment(self,
262264 :param str environment_id: The ID of the environment.
263265 :param str name: Name that identifies the environment.
264266 :param str description: Description of the environment.
267+ :param str size: Size that the environment should be increased to. Environment
268+ size cannot be modified when using a Lite plan. Environment size can only
269+ increased and not decreased.
265270 :param dict headers: A `dict` containing the request headers
266271 :return: A `DetailedResponse` containing the result, headers and HTTP status code.
267272 :rtype: DetailedResponse
@@ -272,7 +277,7 @@ def update_environment(self,
272277 if 'headers' in kwargs :
273278 headers .update (kwargs .get ('headers' ))
274279 params = {'version' : self .version }
275- data = {'name' : name , 'description' : description }
280+ data = {'name' : name , 'description' : description , 'size' : size }
276281 url = '/v1/environments/{0}' .format (
277282 * self ._encode_path_vars (environment_id ))
278283 response = self .request (
0 commit comments