@@ -1844,8 +1844,6 @@ def create_transition(
1844
1844
self ,
1845
1845
transition_type : str ,
1846
1846
* ,
1847
- in_schema : Optional [dict ] = None ,
1848
- out_schema : Optional [dict ] = None ,
1849
1847
parameters : Optional [dict ] = None ,
1850
1848
** optional_args ,
1851
1849
) -> Dict :
@@ -1855,25 +1853,19 @@ def create_transition(
1855
1853
>>> from pathlib import Path
1856
1854
>>> from las.client import Client
1857
1855
>>> client = Client()
1858
- >>> in_schema = {'$schema': 'https://json-schema.org/draft-04/schema#', 'title': 'in', 'properties': {...} }
1859
- >>> out_schema = {'$schema': 'https://json-schema.org/draft-04/schema#', 'title': 'out', 'properties': {...} }
1860
1856
>>> # A typical docker transition
1861
1857
>>> docker_params = {
1862
1858
>>> 'imageUrl': '<image_url>',
1863
1859
>>> 'credentials': {'username': '<username>', 'password': '<password>'}
1864
1860
>>> }
1865
- >>> client.create_transition('docker', in_schema=in_schema, out_schema=out_schema, params=docker_params)
1861
+ >>> client.create_transition('docker', params=docker_params)
1866
1862
>>> # A manual transition with UI
1867
1863
>>> assets = {'jsRemoteComponent': 'las:asset:<hex-uuid>', '<other asset name>': 'las:asset:<hex-uuid>'}
1868
1864
>>> manual_params = {'assets': assets}
1869
- >>> client.create_transition('manual', in_schema=in_schema, out_schema=out_schema, params=manual_params)
1865
+ >>> client.create_transition('manual', params=manual_params)
1870
1866
1871
1867
:param transition_type: Type of transition "docker"|"manual"
1872
1868
:type transition_type: str
1873
- :param in_schema: Json-schema that defines the input to the transition
1874
- :type in_schema: dict, optional
1875
- :param out_schema: Json-schema that defines the output of the transition
1876
- :type out_schema: dict, optional
1877
1869
:param name: Name of the transition
1878
1870
:type name: str, optional
1879
1871
:param parameters: Parameters to the corresponding transition type
@@ -1887,8 +1879,6 @@ def create_transition(
1887
1879
:py:class:`~las.LimitExceededException`, :py:class:`requests.exception.RequestException`
1888
1880
"""
1889
1881
body = dictstrip ({
1890
- 'inputJsonSchema' : in_schema ,
1891
- 'outputJsonSchema' : out_schema ,
1892
1882
'transitionType' : transition_type ,
1893
1883
'parameters' : parameters ,
1894
1884
})
@@ -1949,8 +1939,6 @@ def update_transition(
1949
1939
self ,
1950
1940
transition_id : str ,
1951
1941
* ,
1952
- in_schema : Optional [dict ] = None ,
1953
- out_schema : Optional [dict ] = None ,
1954
1942
assets : Optional [dict ] = None ,
1955
1943
cpu : Optional [int ] = None ,
1956
1944
memory : Optional [int ] = None ,
@@ -1971,10 +1959,6 @@ def update_transition(
1971
1959
:type name: str, optional
1972
1960
:param description: Description of the transition
1973
1961
:type description: str, optional
1974
- :param in_schema: Json-schema that defines the input to the transition
1975
- :type in_schema: dict, optional
1976
- :param out_schema: Json-schema that defines the output of the transition
1977
- :type out_schema: dict, optional
1978
1962
:param assets: A dictionary where the values are assetIds that can be used in a manual transition
1979
1963
:type assets: dict, optional
1980
1964
:param environment: Environment variables to use for a docker transition
@@ -1996,11 +1980,7 @@ def update_transition(
1996
1980
:raises: :py:class:`~las.InvalidCredentialsException`, :py:class:`~las.TooManyRequestsException`,\
1997
1981
:py:class:`~las.LimitExceededException`, :py:class:`requests.exception.RequestException`
1998
1982
"""
1999
- body = dictstrip ({
2000
- 'inputJsonSchema' : in_schema ,
2001
- 'outputJsonSchema' : out_schema ,
2002
- })
2003
-
1983
+ body = {}
2004
1984
parameters = dictstrip ({
2005
1985
'assets' : assets ,
2006
1986
'cpu' : cpu ,
0 commit comments