anyscale 0.26.4__py3-none-any.whl → 0.26.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anyscale/_private/anyscale_client/anyscale_client.py +1 -5
- anyscale/_private/docgen/__main__.py +0 -3
- anyscale/_private/docgen/api.md +0 -40
- anyscale/_private/docgen/models.md +0 -49
- anyscale/anyscale-cloud-setup-gcp-oa.yaml +2 -1
- anyscale/anyscale-cloud-setup-gcp.yaml +4 -2
- anyscale/client/README.md +9 -27
- anyscale/client/openapi_client/__init__.py +7 -13
- anyscale/client/openapi_client/api/default_api.py +476 -1946
- anyscale/client/openapi_client/models/__init__.py +7 -13
- anyscale/client/openapi_client/models/{clusterconfigwithsessionidletimeout_response.py → backend_server_api_product_models_dataset_runs_dataset_response.py} +22 -22
- anyscale/client/openapi_client/models/{dataset_response.py → backend_server_api_product_routers_datasets_router_dataset_response.py} +8 -8
- anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +3 -30
- anyscale/client/openapi_client/models/{clusterconfig_response.py → dataset_jobs.py} +22 -22
- anyscale/client/openapi_client/models/dataset_metrics.py +390 -0
- anyscale/{sdk/anyscale_client/models/session_command_types.py → client/openapi_client/models/dataset_state.py} +11 -9
- anyscale/client/openapi_client/models/{organization_availability.py → metric.py} +64 -39
- anyscale/client/openapi_client/models/operator_metrics.py +256 -0
- anyscale/client/openapi_client/models/train_run.py +28 -1
- anyscale/cluster.py +5 -2
- anyscale/commands/anyscale_api/api_commands.py +0 -2
- anyscale/commands/workspace_commands.py +3 -3
- anyscale/connect_utils/start_interactive_session.py +4 -1
- anyscale/controllers/cluster_controller.py +15 -26
- anyscale/controllers/project_controller.py +1 -6
- anyscale/job/_private/job_sdk.py +6 -1
- anyscale/job/models.py +8 -0
- anyscale/project_utils.py +9 -20
- anyscale/sdk/anyscale_client/__init__.py +0 -5
- anyscale/sdk/anyscale_client/api/default_api.py +0 -474
- anyscale/sdk/anyscale_client/models/__init__.py +0 -5
- anyscale/version.py +1 -1
- {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/METADATA +1 -1
- {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/RECORD +39 -51
- anyscale/client/openapi_client/models/anyscale_version_response.py +0 -121
- anyscale/client/openapi_client/models/anyscaleversionresponse_response.py +0 -121
- anyscale/client/openapi_client/models/cluster_config.py +0 -178
- anyscale/client/openapi_client/models/cluster_config_with_session_idle_timeout.py +0 -204
- anyscale/client/openapi_client/models/cluster_startup.py +0 -208
- anyscale/client/openapi_client/models/decoratedjob_list_response.py +0 -147
- anyscale/client/openapi_client/models/execute_shell_command_options.py +0 -121
- anyscale/client/openapi_client/models/organizationavailability_response.py +0 -121
- anyscale/client/openapi_client/models/setup_initialize_session_options.py +0 -225
- anyscale/commands/anyscale_api/session_commands_commands.py +0 -80
- anyscale/sdk/anyscale_client/models/create_session_command.py +0 -152
- anyscale/sdk/anyscale_client/models/session_command.py +0 -350
- anyscale/sdk/anyscale_client/models/sessioncommand_list_response.py +0 -147
- anyscale/sdk/anyscale_client/models/sessioncommand_response.py +0 -121
- {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/LICENSE +0 -0
- {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/NOTICE +0 -0
- {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/WHEEL +0 -0
- {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.4.dist-info → anyscale-0.26.6.dist-info}/top_level.txt +0 -0
@@ -1798,124 +1798,6 @@ class DefaultApi(object):
|
|
1798
1798
|
_request_timeout=local_var_params.get('_request_timeout'),
|
1799
1799
|
collection_formats=collection_formats)
|
1800
1800
|
|
1801
|
-
def create_session_command(self, create_session_command, **kwargs): # noqa: E501
|
1802
|
-
"""Create Session Command # noqa: E501
|
1803
|
-
|
1804
|
-
DEPRECATED: This API is now deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
1805
|
-
This method makes a synchronous HTTP request by default. To make an
|
1806
|
-
asynchronous HTTP request, please pass async_req=True
|
1807
|
-
>>> thread = api.create_session_command(create_session_command, async_req=True)
|
1808
|
-
>>> result = thread.get()
|
1809
|
-
|
1810
|
-
:param async_req bool: execute request asynchronously
|
1811
|
-
:param CreateSessionCommand create_session_command: (required)
|
1812
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1813
|
-
be returned without reading/decoding response
|
1814
|
-
data. Default is True.
|
1815
|
-
:param _request_timeout: timeout setting for this request. If one
|
1816
|
-
number provided, it will be total request
|
1817
|
-
timeout. It can also be a pair (tuple) of
|
1818
|
-
(connection, read) timeouts.
|
1819
|
-
:return: SessioncommandResponse
|
1820
|
-
If the method is called asynchronously,
|
1821
|
-
returns the request thread.
|
1822
|
-
"""
|
1823
|
-
kwargs['_return_http_data_only'] = True
|
1824
|
-
return self.create_session_command_with_http_info(create_session_command, **kwargs) # noqa: E501
|
1825
|
-
|
1826
|
-
def create_session_command_with_http_info(self, create_session_command, **kwargs): # noqa: E501
|
1827
|
-
"""Create Session Command # noqa: E501
|
1828
|
-
|
1829
|
-
DEPRECATED: This API is now deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
1830
|
-
This method makes a synchronous HTTP request by default. To make an
|
1831
|
-
asynchronous HTTP request, please pass async_req=True
|
1832
|
-
>>> thread = api.create_session_command_with_http_info(create_session_command, async_req=True)
|
1833
|
-
>>> result = thread.get()
|
1834
|
-
|
1835
|
-
:param async_req bool: execute request asynchronously
|
1836
|
-
:param CreateSessionCommand create_session_command: (required)
|
1837
|
-
:param _return_http_data_only: response data without head status code
|
1838
|
-
and headers
|
1839
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
1840
|
-
be returned without reading/decoding response
|
1841
|
-
data. Default is True.
|
1842
|
-
:param _request_timeout: timeout setting for this request. If one
|
1843
|
-
number provided, it will be total request
|
1844
|
-
timeout. It can also be a pair (tuple) of
|
1845
|
-
(connection, read) timeouts.
|
1846
|
-
:return: tuple(SessioncommandResponse, status_code(int), headers(HTTPHeaderDict))
|
1847
|
-
If the method is called asynchronously,
|
1848
|
-
returns the request thread.
|
1849
|
-
"""
|
1850
|
-
|
1851
|
-
local_var_params = locals()
|
1852
|
-
|
1853
|
-
all_params = [
|
1854
|
-
'create_session_command'
|
1855
|
-
]
|
1856
|
-
all_params.extend(
|
1857
|
-
[
|
1858
|
-
'async_req',
|
1859
|
-
'_return_http_data_only',
|
1860
|
-
'_preload_content',
|
1861
|
-
'_request_timeout'
|
1862
|
-
]
|
1863
|
-
)
|
1864
|
-
|
1865
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
1866
|
-
if key not in all_params:
|
1867
|
-
raise ApiTypeError(
|
1868
|
-
"Got an unexpected keyword argument '%s'"
|
1869
|
-
" to method create_session_command" % key
|
1870
|
-
)
|
1871
|
-
local_var_params[key] = val
|
1872
|
-
del local_var_params['kwargs']
|
1873
|
-
# verify the required parameter 'create_session_command' is set
|
1874
|
-
if self.api_client.client_side_validation and ('create_session_command' not in local_var_params or # noqa: E501
|
1875
|
-
local_var_params['create_session_command'] is None): # noqa: E501
|
1876
|
-
raise ApiValueError("Missing the required parameter `create_session_command` when calling `create_session_command`") # noqa: E501
|
1877
|
-
|
1878
|
-
collection_formats = {}
|
1879
|
-
|
1880
|
-
path_params = {}
|
1881
|
-
|
1882
|
-
query_params = []
|
1883
|
-
|
1884
|
-
header_params = {}
|
1885
|
-
|
1886
|
-
form_params = []
|
1887
|
-
local_var_files = {}
|
1888
|
-
|
1889
|
-
body_params = None
|
1890
|
-
if 'create_session_command' in local_var_params:
|
1891
|
-
body_params = local_var_params['create_session_command']
|
1892
|
-
# HTTP header `Accept`
|
1893
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
1894
|
-
['application/json']) # noqa: E501
|
1895
|
-
|
1896
|
-
# HTTP header `Content-Type`
|
1897
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
1898
|
-
['application/json']) # noqa: E501
|
1899
|
-
|
1900
|
-
# Authentication setting
|
1901
|
-
auth_settings = [] # noqa: E501
|
1902
|
-
|
1903
|
-
return self.api_client.call_api(
|
1904
|
-
'/session_commands/', 'POST',
|
1905
|
-
path_params,
|
1906
|
-
query_params,
|
1907
|
-
header_params,
|
1908
|
-
body=body_params,
|
1909
|
-
post_params=form_params,
|
1910
|
-
files=local_var_files,
|
1911
|
-
response_type='SessioncommandResponse', # noqa: E501
|
1912
|
-
auth_settings=auth_settings,
|
1913
|
-
async_req=local_var_params.get('async_req'),
|
1914
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
1915
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
1916
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
1917
|
-
collection_formats=collection_formats)
|
1918
|
-
|
1919
1801
|
def delete_cloud(self, cloud_id, **kwargs): # noqa: E501
|
1920
1802
|
"""Delete Cloud # noqa: E501
|
1921
1803
|
|
@@ -5794,120 +5676,6 @@ class DefaultApi(object):
|
|
5794
5676
|
_request_timeout=local_var_params.get('_request_timeout'),
|
5795
5677
|
collection_formats=collection_formats)
|
5796
5678
|
|
5797
|
-
def get_session_command(self, session_command_id, **kwargs): # noqa: E501
|
5798
|
-
"""Get Session Command # noqa: E501
|
5799
|
-
|
5800
|
-
Retrieves a session command with ID. # noqa: E501
|
5801
|
-
This method makes a synchronous HTTP request by default. To make an
|
5802
|
-
asynchronous HTTP request, please pass async_req=True
|
5803
|
-
>>> thread = api.get_session_command(session_command_id, async_req=True)
|
5804
|
-
>>> result = thread.get()
|
5805
|
-
|
5806
|
-
:param async_req bool: execute request asynchronously
|
5807
|
-
:param str session_command_id: ID of the Session Command to retrieve. (required)
|
5808
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
5809
|
-
be returned without reading/decoding response
|
5810
|
-
data. Default is True.
|
5811
|
-
:param _request_timeout: timeout setting for this request. If one
|
5812
|
-
number provided, it will be total request
|
5813
|
-
timeout. It can also be a pair (tuple) of
|
5814
|
-
(connection, read) timeouts.
|
5815
|
-
:return: SessioncommandResponse
|
5816
|
-
If the method is called asynchronously,
|
5817
|
-
returns the request thread.
|
5818
|
-
"""
|
5819
|
-
kwargs['_return_http_data_only'] = True
|
5820
|
-
return self.get_session_command_with_http_info(session_command_id, **kwargs) # noqa: E501
|
5821
|
-
|
5822
|
-
def get_session_command_with_http_info(self, session_command_id, **kwargs): # noqa: E501
|
5823
|
-
"""Get Session Command # noqa: E501
|
5824
|
-
|
5825
|
-
Retrieves a session command with ID. # noqa: E501
|
5826
|
-
This method makes a synchronous HTTP request by default. To make an
|
5827
|
-
asynchronous HTTP request, please pass async_req=True
|
5828
|
-
>>> thread = api.get_session_command_with_http_info(session_command_id, async_req=True)
|
5829
|
-
>>> result = thread.get()
|
5830
|
-
|
5831
|
-
:param async_req bool: execute request asynchronously
|
5832
|
-
:param str session_command_id: ID of the Session Command to retrieve. (required)
|
5833
|
-
:param _return_http_data_only: response data without head status code
|
5834
|
-
and headers
|
5835
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
5836
|
-
be returned without reading/decoding response
|
5837
|
-
data. Default is True.
|
5838
|
-
:param _request_timeout: timeout setting for this request. If one
|
5839
|
-
number provided, it will be total request
|
5840
|
-
timeout. It can also be a pair (tuple) of
|
5841
|
-
(connection, read) timeouts.
|
5842
|
-
:return: tuple(SessioncommandResponse, status_code(int), headers(HTTPHeaderDict))
|
5843
|
-
If the method is called asynchronously,
|
5844
|
-
returns the request thread.
|
5845
|
-
"""
|
5846
|
-
|
5847
|
-
local_var_params = locals()
|
5848
|
-
|
5849
|
-
all_params = [
|
5850
|
-
'session_command_id'
|
5851
|
-
]
|
5852
|
-
all_params.extend(
|
5853
|
-
[
|
5854
|
-
'async_req',
|
5855
|
-
'_return_http_data_only',
|
5856
|
-
'_preload_content',
|
5857
|
-
'_request_timeout'
|
5858
|
-
]
|
5859
|
-
)
|
5860
|
-
|
5861
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
5862
|
-
if key not in all_params:
|
5863
|
-
raise ApiTypeError(
|
5864
|
-
"Got an unexpected keyword argument '%s'"
|
5865
|
-
" to method get_session_command" % key
|
5866
|
-
)
|
5867
|
-
local_var_params[key] = val
|
5868
|
-
del local_var_params['kwargs']
|
5869
|
-
# verify the required parameter 'session_command_id' is set
|
5870
|
-
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
5871
|
-
local_var_params['session_command_id'] is None): # noqa: E501
|
5872
|
-
raise ApiValueError("Missing the required parameter `session_command_id` when calling `get_session_command`") # noqa: E501
|
5873
|
-
|
5874
|
-
collection_formats = {}
|
5875
|
-
|
5876
|
-
path_params = {}
|
5877
|
-
if 'session_command_id' in local_var_params:
|
5878
|
-
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
5879
|
-
|
5880
|
-
query_params = []
|
5881
|
-
|
5882
|
-
header_params = {}
|
5883
|
-
|
5884
|
-
form_params = []
|
5885
|
-
local_var_files = {}
|
5886
|
-
|
5887
|
-
body_params = None
|
5888
|
-
# HTTP header `Accept`
|
5889
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
5890
|
-
['application/json']) # noqa: E501
|
5891
|
-
|
5892
|
-
# Authentication setting
|
5893
|
-
auth_settings = [] # noqa: E501
|
5894
|
-
|
5895
|
-
return self.api_client.call_api(
|
5896
|
-
'/session_commands/{session_command_id}', 'GET',
|
5897
|
-
path_params,
|
5898
|
-
query_params,
|
5899
|
-
header_params,
|
5900
|
-
body=body_params,
|
5901
|
-
post_params=form_params,
|
5902
|
-
files=local_var_files,
|
5903
|
-
response_type='SessioncommandResponse', # noqa: E501
|
5904
|
-
auth_settings=auth_settings,
|
5905
|
-
async_req=local_var_params.get('async_req'),
|
5906
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
5907
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
5908
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
5909
|
-
collection_formats=collection_formats)
|
5910
|
-
|
5911
5679
|
def get_session_for_job(self, production_job_id, **kwargs): # noqa: E501
|
5912
5680
|
"""Get Session For Job # noqa: E501
|
5913
5681
|
|
@@ -6136,120 +5904,6 @@ class DefaultApi(object):
|
|
6136
5904
|
_request_timeout=local_var_params.get('_request_timeout'),
|
6137
5905
|
collection_formats=collection_formats)
|
6138
5906
|
|
6139
|
-
def kill_session_command(self, session_command_id, **kwargs): # noqa: E501
|
6140
|
-
"""Kill Session Command # noqa: E501
|
6141
|
-
|
6142
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
6143
|
-
This method makes a synchronous HTTP request by default. To make an
|
6144
|
-
asynchronous HTTP request, please pass async_req=True
|
6145
|
-
>>> thread = api.kill_session_command(session_command_id, async_req=True)
|
6146
|
-
>>> result = thread.get()
|
6147
|
-
|
6148
|
-
:param async_req bool: execute request asynchronously
|
6149
|
-
:param str session_command_id: ID of the Session Command to kill. (required)
|
6150
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6151
|
-
be returned without reading/decoding response
|
6152
|
-
data. Default is True.
|
6153
|
-
:param _request_timeout: timeout setting for this request. If one
|
6154
|
-
number provided, it will be total request
|
6155
|
-
timeout. It can also be a pair (tuple) of
|
6156
|
-
(connection, read) timeouts.
|
6157
|
-
:return: SessioncommandResponse
|
6158
|
-
If the method is called asynchronously,
|
6159
|
-
returns the request thread.
|
6160
|
-
"""
|
6161
|
-
kwargs['_return_http_data_only'] = True
|
6162
|
-
return self.kill_session_command_with_http_info(session_command_id, **kwargs) # noqa: E501
|
6163
|
-
|
6164
|
-
def kill_session_command_with_http_info(self, session_command_id, **kwargs): # noqa: E501
|
6165
|
-
"""Kill Session Command # noqa: E501
|
6166
|
-
|
6167
|
-
DEPRECATED: This API is no deprecated and will not be supported in Anyscale 2.0 # noqa: E501
|
6168
|
-
This method makes a synchronous HTTP request by default. To make an
|
6169
|
-
asynchronous HTTP request, please pass async_req=True
|
6170
|
-
>>> thread = api.kill_session_command_with_http_info(session_command_id, async_req=True)
|
6171
|
-
>>> result = thread.get()
|
6172
|
-
|
6173
|
-
:param async_req bool: execute request asynchronously
|
6174
|
-
:param str session_command_id: ID of the Session Command to kill. (required)
|
6175
|
-
:param _return_http_data_only: response data without head status code
|
6176
|
-
and headers
|
6177
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
6178
|
-
be returned without reading/decoding response
|
6179
|
-
data. Default is True.
|
6180
|
-
:param _request_timeout: timeout setting for this request. If one
|
6181
|
-
number provided, it will be total request
|
6182
|
-
timeout. It can also be a pair (tuple) of
|
6183
|
-
(connection, read) timeouts.
|
6184
|
-
:return: tuple(SessioncommandResponse, status_code(int), headers(HTTPHeaderDict))
|
6185
|
-
If the method is called asynchronously,
|
6186
|
-
returns the request thread.
|
6187
|
-
"""
|
6188
|
-
|
6189
|
-
local_var_params = locals()
|
6190
|
-
|
6191
|
-
all_params = [
|
6192
|
-
'session_command_id'
|
6193
|
-
]
|
6194
|
-
all_params.extend(
|
6195
|
-
[
|
6196
|
-
'async_req',
|
6197
|
-
'_return_http_data_only',
|
6198
|
-
'_preload_content',
|
6199
|
-
'_request_timeout'
|
6200
|
-
]
|
6201
|
-
)
|
6202
|
-
|
6203
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
6204
|
-
if key not in all_params:
|
6205
|
-
raise ApiTypeError(
|
6206
|
-
"Got an unexpected keyword argument '%s'"
|
6207
|
-
" to method kill_session_command" % key
|
6208
|
-
)
|
6209
|
-
local_var_params[key] = val
|
6210
|
-
del local_var_params['kwargs']
|
6211
|
-
# verify the required parameter 'session_command_id' is set
|
6212
|
-
if self.api_client.client_side_validation and ('session_command_id' not in local_var_params or # noqa: E501
|
6213
|
-
local_var_params['session_command_id'] is None): # noqa: E501
|
6214
|
-
raise ApiValueError("Missing the required parameter `session_command_id` when calling `kill_session_command`") # noqa: E501
|
6215
|
-
|
6216
|
-
collection_formats = {}
|
6217
|
-
|
6218
|
-
path_params = {}
|
6219
|
-
if 'session_command_id' in local_var_params:
|
6220
|
-
path_params['session_command_id'] = local_var_params['session_command_id'] # noqa: E501
|
6221
|
-
|
6222
|
-
query_params = []
|
6223
|
-
|
6224
|
-
header_params = {}
|
6225
|
-
|
6226
|
-
form_params = []
|
6227
|
-
local_var_files = {}
|
6228
|
-
|
6229
|
-
body_params = None
|
6230
|
-
# HTTP header `Accept`
|
6231
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
6232
|
-
['application/json']) # noqa: E501
|
6233
|
-
|
6234
|
-
# Authentication setting
|
6235
|
-
auth_settings = [] # noqa: E501
|
6236
|
-
|
6237
|
-
return self.api_client.call_api(
|
6238
|
-
'/session_commands/{session_command_id}/kill', 'POST',
|
6239
|
-
path_params,
|
6240
|
-
query_params,
|
6241
|
-
header_params,
|
6242
|
-
body=body_params,
|
6243
|
-
post_params=form_params,
|
6244
|
-
files=local_var_files,
|
6245
|
-
response_type='SessioncommandResponse', # noqa: E501
|
6246
|
-
auth_settings=auth_settings,
|
6247
|
-
async_req=local_var_params.get('async_req'),
|
6248
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
6249
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
6250
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
6251
|
-
collection_formats=collection_formats)
|
6252
|
-
|
6253
5907
|
def list_builds(self, application_template_id, **kwargs): # noqa: E501
|
6254
5908
|
"""List Builds # noqa: E501
|
6255
5909
|
|
@@ -7201,134 +6855,6 @@ class DefaultApi(object):
|
|
7201
6855
|
_request_timeout=local_var_params.get('_request_timeout'),
|
7202
6856
|
collection_formats=collection_formats)
|
7203
6857
|
|
7204
|
-
def list_session_commands(self, session_id, **kwargs): # noqa: E501
|
7205
|
-
"""List Session Commands # noqa: E501
|
7206
|
-
|
7207
|
-
Retrieves a list of commands that were created on the Session. # noqa: E501
|
7208
|
-
This method makes a synchronous HTTP request by default. To make an
|
7209
|
-
asynchronous HTTP request, please pass async_req=True
|
7210
|
-
>>> thread = api.list_session_commands(session_id, async_req=True)
|
7211
|
-
>>> result = thread.get()
|
7212
|
-
|
7213
|
-
:param async_req bool: execute request asynchronously
|
7214
|
-
:param str session_id: ID of the Session to list Commands for. (required)
|
7215
|
-
:param str paging_token:
|
7216
|
-
:param int count:
|
7217
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
7218
|
-
be returned without reading/decoding response
|
7219
|
-
data. Default is True.
|
7220
|
-
:param _request_timeout: timeout setting for this request. If one
|
7221
|
-
number provided, it will be total request
|
7222
|
-
timeout. It can also be a pair (tuple) of
|
7223
|
-
(connection, read) timeouts.
|
7224
|
-
:return: SessioncommandListResponse
|
7225
|
-
If the method is called asynchronously,
|
7226
|
-
returns the request thread.
|
7227
|
-
"""
|
7228
|
-
kwargs['_return_http_data_only'] = True
|
7229
|
-
return self.list_session_commands_with_http_info(session_id, **kwargs) # noqa: E501
|
7230
|
-
|
7231
|
-
def list_session_commands_with_http_info(self, session_id, **kwargs): # noqa: E501
|
7232
|
-
"""List Session Commands # noqa: E501
|
7233
|
-
|
7234
|
-
Retrieves a list of commands that were created on the Session. # noqa: E501
|
7235
|
-
This method makes a synchronous HTTP request by default. To make an
|
7236
|
-
asynchronous HTTP request, please pass async_req=True
|
7237
|
-
>>> thread = api.list_session_commands_with_http_info(session_id, async_req=True)
|
7238
|
-
>>> result = thread.get()
|
7239
|
-
|
7240
|
-
:param async_req bool: execute request asynchronously
|
7241
|
-
:param str session_id: ID of the Session to list Commands for. (required)
|
7242
|
-
:param str paging_token:
|
7243
|
-
:param int count:
|
7244
|
-
:param _return_http_data_only: response data without head status code
|
7245
|
-
and headers
|
7246
|
-
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
7247
|
-
be returned without reading/decoding response
|
7248
|
-
data. Default is True.
|
7249
|
-
:param _request_timeout: timeout setting for this request. If one
|
7250
|
-
number provided, it will be total request
|
7251
|
-
timeout. It can also be a pair (tuple) of
|
7252
|
-
(connection, read) timeouts.
|
7253
|
-
:return: tuple(SessioncommandListResponse, status_code(int), headers(HTTPHeaderDict))
|
7254
|
-
If the method is called asynchronously,
|
7255
|
-
returns the request thread.
|
7256
|
-
"""
|
7257
|
-
|
7258
|
-
local_var_params = locals()
|
7259
|
-
|
7260
|
-
all_params = [
|
7261
|
-
'session_id',
|
7262
|
-
'paging_token',
|
7263
|
-
'count'
|
7264
|
-
]
|
7265
|
-
all_params.extend(
|
7266
|
-
[
|
7267
|
-
'async_req',
|
7268
|
-
'_return_http_data_only',
|
7269
|
-
'_preload_content',
|
7270
|
-
'_request_timeout'
|
7271
|
-
]
|
7272
|
-
)
|
7273
|
-
|
7274
|
-
for key, val in six.iteritems(local_var_params['kwargs']):
|
7275
|
-
if key not in all_params:
|
7276
|
-
raise ApiTypeError(
|
7277
|
-
"Got an unexpected keyword argument '%s'"
|
7278
|
-
" to method list_session_commands" % key
|
7279
|
-
)
|
7280
|
-
local_var_params[key] = val
|
7281
|
-
del local_var_params['kwargs']
|
7282
|
-
# verify the required parameter 'session_id' is set
|
7283
|
-
if self.api_client.client_side_validation and ('session_id' not in local_var_params or # noqa: E501
|
7284
|
-
local_var_params['session_id'] is None): # noqa: E501
|
7285
|
-
raise ApiValueError("Missing the required parameter `session_id` when calling `list_session_commands`") # noqa: E501
|
7286
|
-
|
7287
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] > 50: # noqa: E501
|
7288
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `list_session_commands`, must be a value less than or equal to `50`") # noqa: E501
|
7289
|
-
if self.api_client.client_side_validation and 'count' in local_var_params and local_var_params['count'] < 0: # noqa: E501
|
7290
|
-
raise ApiValueError("Invalid value for parameter `count` when calling `list_session_commands`, must be a value greater than or equal to `0`") # noqa: E501
|
7291
|
-
collection_formats = {}
|
7292
|
-
|
7293
|
-
path_params = {}
|
7294
|
-
|
7295
|
-
query_params = []
|
7296
|
-
if 'session_id' in local_var_params and local_var_params['session_id'] is not None: # noqa: E501
|
7297
|
-
query_params.append(('session_id', local_var_params['session_id'])) # noqa: E501
|
7298
|
-
if 'paging_token' in local_var_params and local_var_params['paging_token'] is not None: # noqa: E501
|
7299
|
-
query_params.append(('paging_token', local_var_params['paging_token'])) # noqa: E501
|
7300
|
-
if 'count' in local_var_params and local_var_params['count'] is not None: # noqa: E501
|
7301
|
-
query_params.append(('count', local_var_params['count'])) # noqa: E501
|
7302
|
-
|
7303
|
-
header_params = {}
|
7304
|
-
|
7305
|
-
form_params = []
|
7306
|
-
local_var_files = {}
|
7307
|
-
|
7308
|
-
body_params = None
|
7309
|
-
# HTTP header `Accept`
|
7310
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
7311
|
-
['application/json']) # noqa: E501
|
7312
|
-
|
7313
|
-
# Authentication setting
|
7314
|
-
auth_settings = [] # noqa: E501
|
7315
|
-
|
7316
|
-
return self.api_client.call_api(
|
7317
|
-
'/session_commands/', 'GET',
|
7318
|
-
path_params,
|
7319
|
-
query_params,
|
7320
|
-
header_params,
|
7321
|
-
body=body_params,
|
7322
|
-
post_params=form_params,
|
7323
|
-
files=local_var_files,
|
7324
|
-
response_type='SessioncommandListResponse', # noqa: E501
|
7325
|
-
auth_settings=auth_settings,
|
7326
|
-
async_req=local_var_params.get('async_req'),
|
7327
|
-
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
7328
|
-
_preload_content=local_var_params.get('_preload_content', True),
|
7329
|
-
_request_timeout=local_var_params.get('_request_timeout'),
|
7330
|
-
collection_formats=collection_formats)
|
7331
|
-
|
7332
6858
|
def list_sessions(self, project_id, **kwargs): # noqa: E501
|
7333
6859
|
"""List Sessions # noqa: E501
|
7334
6860
|
|
@@ -99,7 +99,6 @@ from anyscale_client.models.create_project import CreateProject
|
|
99
99
|
from anyscale_client.models.create_sso_config import CreateSSOConfig
|
100
100
|
from anyscale_client.models.create_schedule import CreateSchedule
|
101
101
|
from anyscale_client.models.create_session import CreateSession
|
102
|
-
from anyscale_client.models.create_session_command import CreateSessionCommand
|
103
102
|
from anyscale_client.models.grpc_protocol_config import GrpcProtocolConfig
|
104
103
|
from anyscale_client.models.http_validation_error import HTTPValidationError
|
105
104
|
from anyscale_client.models.ha_job_goal_states import HaJobGoalStates
|
@@ -174,8 +173,6 @@ from anyscale_client.models.service_version_state import ServiceVersionState
|
|
174
173
|
from anyscale_client.models.servicemodel_list_response import ServicemodelListResponse
|
175
174
|
from anyscale_client.models.servicemodel_response import ServicemodelResponse
|
176
175
|
from anyscale_client.models.session import Session
|
177
|
-
from anyscale_client.models.session_command import SessionCommand
|
178
|
-
from anyscale_client.models.session_command_types import SessionCommandTypes
|
179
176
|
from anyscale_client.models.session_list_response import SessionListResponse
|
180
177
|
from anyscale_client.models.session_operation import SessionOperation
|
181
178
|
from anyscale_client.models.session_operation_type import SessionOperationType
|
@@ -184,8 +181,6 @@ from anyscale_client.models.session_starting_up_data import SessionStartingUpDat
|
|
184
181
|
from anyscale_client.models.session_state import SessionState
|
185
182
|
from anyscale_client.models.session_state_data import SessionStateData
|
186
183
|
from anyscale_client.models.session_stopping_data import SessionStoppingData
|
187
|
-
from anyscale_client.models.sessioncommand_list_response import SessioncommandListResponse
|
188
|
-
from anyscale_client.models.sessioncommand_response import SessioncommandResponse
|
189
184
|
from anyscale_client.models.sessionoperation_response import SessionoperationResponse
|
190
185
|
from anyscale_client.models.sessions_query import SessionsQuery
|
191
186
|
from anyscale_client.models.sort_by_clause_jobs_sort_field import SortByClauseJobsSortField
|
anyscale/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.26.
|
1
|
+
__version__ = "0.26.6"
|