Skip to content

Commit 5975147

Browse files
committed
Merge 'ml_platform-Python-2024-07-01-online-1779-2025_11_04_16_50_19' into 'integration_2025-11-13_1083916009218'
feat: [development task] ml_platform-1779-Python (1828578) See merge request: !911
2 parents 6fe504b + 84da893 commit 5975147

File tree

139 files changed

+8486
-13121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+8486
-13121
lines changed

volcenginesdkmlplatform20240701/__init__.py

Lines changed: 30 additions & 73 deletions
Large diffs are not rendered by default.

volcenginesdkmlplatform20240701/api/ml_platform20240701_api.py

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,103 +1876,6 @@ def get_instance_type_with_http_info(self, body, **kwargs): # noqa: E501
18761876
_request_timeout=params.get('_request_timeout'),
18771877
collection_formats=collection_formats)
18781878

1879-
def get_job(self, body, **kwargs): # noqa: E501
1880-
"""get_job # noqa: E501
1881-
1882-
This method makes a synchronous HTTP request by default. To make an
1883-
asynchronous HTTP request, please pass async_req=True
1884-
>>> thread = api.get_job(body, async_req=True)
1885-
>>> result = thread.get()
1886-
1887-
:param async_req bool
1888-
:param GetJobRequest body: (required)
1889-
:return: GetJobResponse
1890-
If the method is called asynchronously,
1891-
returns the request thread.
1892-
"""
1893-
kwargs['_return_http_data_only'] = True
1894-
if kwargs.get('async_req'):
1895-
return self.get_job_with_http_info(body, **kwargs) # noqa: E501
1896-
else:
1897-
(data) = self.get_job_with_http_info(body, **kwargs) # noqa: E501
1898-
return data
1899-
1900-
def get_job_with_http_info(self, body, **kwargs): # noqa: E501
1901-
"""get_job # noqa: E501
1902-
1903-
This method makes a synchronous HTTP request by default. To make an
1904-
asynchronous HTTP request, please pass async_req=True
1905-
>>> thread = api.get_job_with_http_info(body, async_req=True)
1906-
>>> result = thread.get()
1907-
1908-
:param async_req bool
1909-
:param GetJobRequest body: (required)
1910-
:return: GetJobResponse
1911-
If the method is called asynchronously,
1912-
returns the request thread.
1913-
"""
1914-
1915-
all_params = ['body'] # noqa: E501
1916-
all_params.append('async_req')
1917-
all_params.append('_return_http_data_only')
1918-
all_params.append('_preload_content')
1919-
all_params.append('_request_timeout')
1920-
1921-
params = locals()
1922-
for key, val in six.iteritems(params['kwargs']):
1923-
if key not in all_params:
1924-
raise TypeError(
1925-
"Got an unexpected keyword argument '%s'"
1926-
" to method get_job" % key
1927-
)
1928-
params[key] = val
1929-
del params['kwargs']
1930-
# verify the required parameter 'body' is set
1931-
if self.api_client.client_side_validation and ('body' not in params or
1932-
params['body'] is None): # noqa: E501
1933-
raise ValueError("Missing the required parameter `body` when calling `get_job`") # noqa: E501
1934-
1935-
collection_formats = {}
1936-
1937-
path_params = {}
1938-
1939-
query_params = []
1940-
1941-
header_params = {}
1942-
1943-
form_params = []
1944-
local_var_files = {}
1945-
1946-
body_params = None
1947-
if 'body' in params:
1948-
body_params = params['body']
1949-
# HTTP header `Accept`
1950-
header_params['Accept'] = self.api_client.select_header_accept(
1951-
['application/json']) # noqa: E501
1952-
1953-
# HTTP header `Content-Type`
1954-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1955-
['application/json']) # noqa: E501
1956-
1957-
# Authentication setting
1958-
auth_settings = ['volcengineSign'] # noqa: E501
1959-
1960-
return self.api_client.call_api(
1961-
'/GetJob/2024-07-01/ml_platform/post/application_json/', 'POST',
1962-
path_params,
1963-
query_params,
1964-
header_params,
1965-
body=body_params,
1966-
post_params=form_params,
1967-
files=local_var_files,
1968-
response_type='GetJobResponse', # noqa: E501
1969-
auth_settings=auth_settings,
1970-
async_req=params.get('async_req'),
1971-
_return_http_data_only=params.get('_return_http_data_only'),
1972-
_preload_content=params.get('_preload_content', True),
1973-
_request_timeout=params.get('_request_timeout'),
1974-
collection_formats=collection_formats)
1975-
19761879
def get_resource_group(self, body, **kwargs): # noqa: E501
19771880
"""get_resource_group # noqa: E501
19781881

volcenginesdkmlplatform20240701/models/__init__.py

Lines changed: 30 additions & 73 deletions
Large diffs are not rendered by default.

volcenginesdkmlplatform20240701/models/options_for_create_deployment_input.py renamed to volcenginesdkmlplatform20240701/models/advanced_options_for_create_deployment_input.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from volcenginesdkcore.configuration import Configuration
2020

2121

22-
class OptionsForCreateDeploymentInput(object):
22+
class AdvancedOptionsForCreateDeploymentInput(object):
2323
"""NOTE: This class is auto generated by the swagger code generator program.
2424
2525
Do not edit the class manually.
@@ -34,9 +34,9 @@ class OptionsForCreateDeploymentInput(object):
3434
"""
3535
swagger_types = {
3636
'internal_sync': 'int',
37-
'meta_cache_capacity': 'int',
38-
'meta_cache_expiry_minutes': 'int',
39-
'meta_cache_expiry_msec': 'int'
37+
'meta_cache_capacity': 'str',
38+
'meta_cache_expiry_minutes': 'str',
39+
'meta_cache_expiry_msec': 'str'
4040
}
4141

4242
attribute_map = {
@@ -47,7 +47,7 @@ class OptionsForCreateDeploymentInput(object):
4747
}
4848

4949
def __init__(self, internal_sync=None, meta_cache_capacity=None, meta_cache_expiry_minutes=None, meta_cache_expiry_msec=None, _configuration=None): # noqa: E501
50-
"""OptionsForCreateDeploymentInput - a model defined in Swagger""" # noqa: E501
50+
"""AdvancedOptionsForCreateDeploymentInput - a model defined in Swagger""" # noqa: E501
5151
if _configuration is None:
5252
_configuration = Configuration()
5353
self._configuration = _configuration
@@ -69,84 +69,84 @@ def __init__(self, internal_sync=None, meta_cache_capacity=None, meta_cache_expi
6969

7070
@property
7171
def internal_sync(self):
72-
"""Gets the internal_sync of this OptionsForCreateDeploymentInput. # noqa: E501
72+
"""Gets the internal_sync of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
7373
7474
75-
:return: The internal_sync of this OptionsForCreateDeploymentInput. # noqa: E501
75+
:return: The internal_sync of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
7676
:rtype: int
7777
"""
7878
return self._internal_sync
7979

8080
@internal_sync.setter
8181
def internal_sync(self, internal_sync):
82-
"""Sets the internal_sync of this OptionsForCreateDeploymentInput.
82+
"""Sets the internal_sync of this AdvancedOptionsForCreateDeploymentInput.
8383
8484
85-
:param internal_sync: The internal_sync of this OptionsForCreateDeploymentInput. # noqa: E501
85+
:param internal_sync: The internal_sync of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
8686
:type: int
8787
"""
8888

8989
self._internal_sync = internal_sync
9090

9191
@property
9292
def meta_cache_capacity(self):
93-
"""Gets the meta_cache_capacity of this OptionsForCreateDeploymentInput. # noqa: E501
93+
"""Gets the meta_cache_capacity of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
9494
9595
96-
:return: The meta_cache_capacity of this OptionsForCreateDeploymentInput. # noqa: E501
97-
:rtype: int
96+
:return: The meta_cache_capacity of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
97+
:rtype: str
9898
"""
9999
return self._meta_cache_capacity
100100

101101
@meta_cache_capacity.setter
102102
def meta_cache_capacity(self, meta_cache_capacity):
103-
"""Sets the meta_cache_capacity of this OptionsForCreateDeploymentInput.
103+
"""Sets the meta_cache_capacity of this AdvancedOptionsForCreateDeploymentInput.
104104
105105
106-
:param meta_cache_capacity: The meta_cache_capacity of this OptionsForCreateDeploymentInput. # noqa: E501
107-
:type: int
106+
:param meta_cache_capacity: The meta_cache_capacity of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
107+
:type: str
108108
"""
109109

110110
self._meta_cache_capacity = meta_cache_capacity
111111

112112
@property
113113
def meta_cache_expiry_minutes(self):
114-
"""Gets the meta_cache_expiry_minutes of this OptionsForCreateDeploymentInput. # noqa: E501
114+
"""Gets the meta_cache_expiry_minutes of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
115115
116116
117-
:return: The meta_cache_expiry_minutes of this OptionsForCreateDeploymentInput. # noqa: E501
118-
:rtype: int
117+
:return: The meta_cache_expiry_minutes of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
118+
:rtype: str
119119
"""
120120
return self._meta_cache_expiry_minutes
121121

122122
@meta_cache_expiry_minutes.setter
123123
def meta_cache_expiry_minutes(self, meta_cache_expiry_minutes):
124-
"""Sets the meta_cache_expiry_minutes of this OptionsForCreateDeploymentInput.
124+
"""Sets the meta_cache_expiry_minutes of this AdvancedOptionsForCreateDeploymentInput.
125125
126126
127-
:param meta_cache_expiry_minutes: The meta_cache_expiry_minutes of this OptionsForCreateDeploymentInput. # noqa: E501
128-
:type: int
127+
:param meta_cache_expiry_minutes: The meta_cache_expiry_minutes of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
128+
:type: str
129129
"""
130130

131131
self._meta_cache_expiry_minutes = meta_cache_expiry_minutes
132132

133133
@property
134134
def meta_cache_expiry_msec(self):
135-
"""Gets the meta_cache_expiry_msec of this OptionsForCreateDeploymentInput. # noqa: E501
135+
"""Gets the meta_cache_expiry_msec of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
136136
137137
138-
:return: The meta_cache_expiry_msec of this OptionsForCreateDeploymentInput. # noqa: E501
139-
:rtype: int
138+
:return: The meta_cache_expiry_msec of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
139+
:rtype: str
140140
"""
141141
return self._meta_cache_expiry_msec
142142

143143
@meta_cache_expiry_msec.setter
144144
def meta_cache_expiry_msec(self, meta_cache_expiry_msec):
145-
"""Sets the meta_cache_expiry_msec of this OptionsForCreateDeploymentInput.
145+
"""Sets the meta_cache_expiry_msec of this AdvancedOptionsForCreateDeploymentInput.
146146
147147
148-
:param meta_cache_expiry_msec: The meta_cache_expiry_msec of this OptionsForCreateDeploymentInput. # noqa: E501
149-
:type: int
148+
:param meta_cache_expiry_msec: The meta_cache_expiry_msec of this AdvancedOptionsForCreateDeploymentInput. # noqa: E501
149+
:type: str
150150
"""
151151

152152
self._meta_cache_expiry_msec = meta_cache_expiry_msec
@@ -172,7 +172,7 @@ def to_dict(self):
172172
))
173173
else:
174174
result[attr] = value
175-
if issubclass(OptionsForCreateDeploymentInput, dict):
175+
if issubclass(AdvancedOptionsForCreateDeploymentInput, dict):
176176
for key, value in self.items():
177177
result[key] = value
178178

@@ -188,14 +188,14 @@ def __repr__(self):
188188

189189
def __eq__(self, other):
190190
"""Returns true if both objects are equal"""
191-
if not isinstance(other, OptionsForCreateDeploymentInput):
191+
if not isinstance(other, AdvancedOptionsForCreateDeploymentInput):
192192
return False
193193

194194
return self.to_dict() == other.to_dict()
195195

196196
def __ne__(self, other):
197197
"""Returns true if both objects are not equal"""
198-
if not isinstance(other, OptionsForCreateDeploymentInput):
198+
if not isinstance(other, AdvancedOptionsForCreateDeploymentInput):
199199
return True
200200

201201
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)