Skip to content

Commit 00f2fc2

Browse files
author
BitsAdmin
committed
Merge branch 'vefaas-Python-2024-06-06-online-1681-2025_10_10_15_01_24' into 'integration_2025-10-13_1068387367426'
feat: [development task] vefaas-1681-Python (1723172) See merge request iaasng/volcengine-python-sdk!843
2 parents 59113cb + d05e255 commit 00f2fc2

File tree

6 files changed

+266
-6
lines changed

6 files changed

+266
-6
lines changed

volcenginesdkvefaas/models/create_function_request.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class CreateFunctionRequest(object):
3838
'cpu_milli': 'int',
3939
'cpu_strategy': 'str',
4040
'description': 'str',
41+
'enable_apmplus': 'bool',
4142
'envs': 'list[EnvForCreateFunctionInput]',
4243
'exclusive_mode': 'bool',
4344
'initializer_sec': 'int',
@@ -46,6 +47,7 @@ class CreateFunctionRequest(object):
4647
'memory_mb': 'int',
4748
'name': 'str',
4849
'nas_storage': 'NasStorageForCreateFunctionInput',
50+
'port': 'int',
4951
'project_name': 'str',
5052
'request_timeout': 'int',
5153
'role': 'str',
@@ -65,6 +67,7 @@ class CreateFunctionRequest(object):
6567
'cpu_milli': 'CpuMilli',
6668
'cpu_strategy': 'CpuStrategy',
6769
'description': 'Description',
70+
'enable_apmplus': 'EnableApmplus',
6871
'envs': 'Envs',
6972
'exclusive_mode': 'ExclusiveMode',
7073
'initializer_sec': 'InitializerSec',
@@ -73,6 +76,7 @@ class CreateFunctionRequest(object):
7376
'memory_mb': 'MemoryMB',
7477
'name': 'Name',
7578
'nas_storage': 'NasStorage',
79+
'port': 'Port',
7680
'project_name': 'ProjectName',
7781
'request_timeout': 'RequestTimeout',
7882
'role': 'Role',
@@ -86,7 +90,7 @@ class CreateFunctionRequest(object):
8690
'vpc_config': 'VpcConfig'
8791
}
8892

89-
def __init__(self, cell=None, command=None, cpu_milli=None, cpu_strategy=None, description=None, envs=None, exclusive_mode=None, initializer_sec=None, instance_type=None, max_concurrency=None, memory_mb=None, name=None, nas_storage=None, project_name=None, request_timeout=None, role=None, runtime=None, source=None, source_access_config=None, source_type=None, tags=None, tls_config=None, tos_mount_config=None, vpc_config=None, _configuration=None): # noqa: E501
93+
def __init__(self, cell=None, command=None, cpu_milli=None, cpu_strategy=None, description=None, enable_apmplus=None, envs=None, exclusive_mode=None, initializer_sec=None, instance_type=None, max_concurrency=None, memory_mb=None, name=None, nas_storage=None, port=None, project_name=None, request_timeout=None, role=None, runtime=None, source=None, source_access_config=None, source_type=None, tags=None, tls_config=None, tos_mount_config=None, vpc_config=None, _configuration=None): # noqa: E501
9094
"""CreateFunctionRequest - a model defined in Swagger""" # noqa: E501
9195
if _configuration is None:
9296
_configuration = Configuration()
@@ -97,6 +101,7 @@ def __init__(self, cell=None, command=None, cpu_milli=None, cpu_strategy=None, d
97101
self._cpu_milli = None
98102
self._cpu_strategy = None
99103
self._description = None
104+
self._enable_apmplus = None
100105
self._envs = None
101106
self._exclusive_mode = None
102107
self._initializer_sec = None
@@ -105,6 +110,7 @@ def __init__(self, cell=None, command=None, cpu_milli=None, cpu_strategy=None, d
105110
self._memory_mb = None
106111
self._name = None
107112
self._nas_storage = None
113+
self._port = None
108114
self._project_name = None
109115
self._request_timeout = None
110116
self._role = None
@@ -128,6 +134,8 @@ def __init__(self, cell=None, command=None, cpu_milli=None, cpu_strategy=None, d
128134
self.cpu_strategy = cpu_strategy
129135
if description is not None:
130136
self.description = description
137+
if enable_apmplus is not None:
138+
self.enable_apmplus = enable_apmplus
131139
if envs is not None:
132140
self.envs = envs
133141
if exclusive_mode is not None:
@@ -143,6 +151,8 @@ def __init__(self, cell=None, command=None, cpu_milli=None, cpu_strategy=None, d
143151
self.name = name
144152
if nas_storage is not None:
145153
self.nas_storage = nas_storage
154+
if port is not None:
155+
self.port = port
146156
if project_name is not None:
147157
self.project_name = project_name
148158
if request_timeout is not None:
@@ -270,6 +280,27 @@ def description(self, description):
270280

271281
self._description = description
272282

283+
@property
284+
def enable_apmplus(self):
285+
"""Gets the enable_apmplus of this CreateFunctionRequest. # noqa: E501
286+
287+
288+
:return: The enable_apmplus of this CreateFunctionRequest. # noqa: E501
289+
:rtype: bool
290+
"""
291+
return self._enable_apmplus
292+
293+
@enable_apmplus.setter
294+
def enable_apmplus(self, enable_apmplus):
295+
"""Sets the enable_apmplus of this CreateFunctionRequest.
296+
297+
298+
:param enable_apmplus: The enable_apmplus of this CreateFunctionRequest. # noqa: E501
299+
:type: bool
300+
"""
301+
302+
self._enable_apmplus = enable_apmplus
303+
273304
@property
274305
def envs(self):
275306
"""Gets the envs of this CreateFunctionRequest. # noqa: E501
@@ -440,6 +471,27 @@ def nas_storage(self, nas_storage):
440471

441472
self._nas_storage = nas_storage
442473

474+
@property
475+
def port(self):
476+
"""Gets the port of this CreateFunctionRequest. # noqa: E501
477+
478+
479+
:return: The port of this CreateFunctionRequest. # noqa: E501
480+
:rtype: int
481+
"""
482+
return self._port
483+
484+
@port.setter
485+
def port(self, port):
486+
"""Sets the port of this CreateFunctionRequest.
487+
488+
489+
:param port: The port of this CreateFunctionRequest. # noqa: E501
490+
:type: int
491+
"""
492+
493+
self._port = port
494+
443495
@property
444496
def project_name(self):
445497
"""Gets the project_name of this CreateFunctionRequest. # noqa: E501

volcenginesdkvefaas/models/create_function_response.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ class CreateFunctionResponse(object):
3737
'code_size': 'int',
3838
'code_size_limit': 'int',
3939
'command': 'str',
40+
'cpu': 'int',
4041
'creation_time': 'str',
4142
'description': 'str',
43+
'enable_apmplus': 'bool',
4244
'envs': 'list[EnvForCreateFunctionOutput]',
4345
'exclusive_mode': 'bool',
4446
'function_type': 'str',
@@ -69,8 +71,10 @@ class CreateFunctionResponse(object):
6971
'code_size': 'CodeSize',
7072
'code_size_limit': 'CodeSizeLimit',
7173
'command': 'Command',
74+
'cpu': 'Cpu',
7275
'creation_time': 'CreationTime',
7376
'description': 'Description',
77+
'enable_apmplus': 'EnableApmplus',
7478
'envs': 'Envs',
7579
'exclusive_mode': 'ExclusiveMode',
7680
'function_type': 'FunctionType',
@@ -96,7 +100,7 @@ class CreateFunctionResponse(object):
96100
'vpc_config': 'VpcConfig'
97101
}
98102

99-
def __init__(self, cell=None, code_size=None, code_size_limit=None, command=None, creation_time=None, description=None, envs=None, exclusive_mode=None, function_type=None, id=None, initializer_sec=None, instance_type=None, last_update_time=None, max_concurrency=None, memory_mb=None, name=None, nas_storage=None, owner=None, project_name=None, request_timeout=None, role=None, runtime=None, source_location=None, source_type=None, tags=None, tls_config=None, tos_mount_config=None, triggers_count=None, vpc_config=None, _configuration=None): # noqa: E501
103+
def __init__(self, cell=None, code_size=None, code_size_limit=None, command=None, cpu=None, creation_time=None, description=None, enable_apmplus=None, envs=None, exclusive_mode=None, function_type=None, id=None, initializer_sec=None, instance_type=None, last_update_time=None, max_concurrency=None, memory_mb=None, name=None, nas_storage=None, owner=None, project_name=None, request_timeout=None, role=None, runtime=None, source_location=None, source_type=None, tags=None, tls_config=None, tos_mount_config=None, triggers_count=None, vpc_config=None, _configuration=None): # noqa: E501
100104
"""CreateFunctionResponse - a model defined in Swagger""" # noqa: E501
101105
if _configuration is None:
102106
_configuration = Configuration()
@@ -106,8 +110,10 @@ def __init__(self, cell=None, code_size=None, code_size_limit=None, command=None
106110
self._code_size = None
107111
self._code_size_limit = None
108112
self._command = None
113+
self._cpu = None
109114
self._creation_time = None
110115
self._description = None
116+
self._enable_apmplus = None
111117
self._envs = None
112118
self._exclusive_mode = None
113119
self._function_type = None
@@ -141,10 +147,14 @@ def __init__(self, cell=None, code_size=None, code_size_limit=None, command=None
141147
self.code_size_limit = code_size_limit
142148
if command is not None:
143149
self.command = command
150+
if cpu is not None:
151+
self.cpu = cpu
144152
if creation_time is not None:
145153
self.creation_time = creation_time
146154
if description is not None:
147155
self.description = description
156+
if enable_apmplus is not None:
157+
self.enable_apmplus = enable_apmplus
148158
if envs is not None:
149159
self.envs = envs
150160
if exclusive_mode is not None:
@@ -276,6 +286,27 @@ def command(self, command):
276286

277287
self._command = command
278288

289+
@property
290+
def cpu(self):
291+
"""Gets the cpu of this CreateFunctionResponse. # noqa: E501
292+
293+
294+
:return: The cpu of this CreateFunctionResponse. # noqa: E501
295+
:rtype: int
296+
"""
297+
return self._cpu
298+
299+
@cpu.setter
300+
def cpu(self, cpu):
301+
"""Sets the cpu of this CreateFunctionResponse.
302+
303+
304+
:param cpu: The cpu of this CreateFunctionResponse. # noqa: E501
305+
:type: int
306+
"""
307+
308+
self._cpu = cpu
309+
279310
@property
280311
def creation_time(self):
281312
"""Gets the creation_time of this CreateFunctionResponse. # noqa: E501
@@ -318,6 +349,27 @@ def description(self, description):
318349

319350
self._description = description
320351

352+
@property
353+
def enable_apmplus(self):
354+
"""Gets the enable_apmplus of this CreateFunctionResponse. # noqa: E501
355+
356+
357+
:return: The enable_apmplus of this CreateFunctionResponse. # noqa: E501
358+
:rtype: bool
359+
"""
360+
return self._enable_apmplus
361+
362+
@enable_apmplus.setter
363+
def enable_apmplus(self, enable_apmplus):
364+
"""Sets the enable_apmplus of this CreateFunctionResponse.
365+
366+
367+
:param enable_apmplus: The enable_apmplus of this CreateFunctionResponse. # noqa: E501
368+
:type: bool
369+
"""
370+
371+
self._enable_apmplus = enable_apmplus
372+
321373
@property
322374
def envs(self):
323375
"""Gets the envs of this CreateFunctionResponse. # noqa: E501

volcenginesdkvefaas/models/get_function_response.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ class GetFunctionResponse(object):
3636
'code_size': 'int',
3737
'code_size_limit': 'int',
3838
'command': 'str',
39+
'cpu': 'int',
3940
'cpu_strategy': 'str',
4041
'creation_time': 'str',
4142
'description': 'str',
43+
'enable_apmplus': 'bool',
4244
'envs': 'list[EnvForGetFunctionOutput]',
4345
'exclusive_mode': 'bool',
4446
'id': 'str',
@@ -68,9 +70,11 @@ class GetFunctionResponse(object):
6870
'code_size': 'CodeSize',
6971
'code_size_limit': 'CodeSizeLimit',
7072
'command': 'Command',
73+
'cpu': 'Cpu',
7174
'cpu_strategy': 'CpuStrategy',
7275
'creation_time': 'CreationTime',
7376
'description': 'Description',
77+
'enable_apmplus': 'EnableApmplus',
7478
'envs': 'Envs',
7579
'exclusive_mode': 'ExclusiveMode',
7680
'id': 'Id',
@@ -96,7 +100,7 @@ class GetFunctionResponse(object):
96100
'vpc_config': 'VpcConfig'
97101
}
98102

99-
def __init__(self, code_size=None, code_size_limit=None, command=None, cpu_strategy=None, creation_time=None, description=None, envs=None, exclusive_mode=None, id=None, initializer_sec=None, instance_type=None, last_update_time=None, max_concurrency=None, memory_mb=None, name=None, nas_storage=None, owner=None, port=None, project_name=None, request_timeout=None, role=None, runtime=None, source=None, source_location=None, source_type=None, tls_config=None, tos_mount_config=None, triggers_count=None, vpc_config=None, _configuration=None): # noqa: E501
103+
def __init__(self, code_size=None, code_size_limit=None, command=None, cpu=None, cpu_strategy=None, creation_time=None, description=None, enable_apmplus=None, envs=None, exclusive_mode=None, id=None, initializer_sec=None, instance_type=None, last_update_time=None, max_concurrency=None, memory_mb=None, name=None, nas_storage=None, owner=None, port=None, project_name=None, request_timeout=None, role=None, runtime=None, source=None, source_location=None, source_type=None, tls_config=None, tos_mount_config=None, triggers_count=None, vpc_config=None, _configuration=None): # noqa: E501
100104
"""GetFunctionResponse - a model defined in Swagger""" # noqa: E501
101105
if _configuration is None:
102106
_configuration = Configuration()
@@ -105,9 +109,11 @@ def __init__(self, code_size=None, code_size_limit=None, command=None, cpu_strat
105109
self._code_size = None
106110
self._code_size_limit = None
107111
self._command = None
112+
self._cpu = None
108113
self._cpu_strategy = None
109114
self._creation_time = None
110115
self._description = None
116+
self._enable_apmplus = None
111117
self._envs = None
112118
self._exclusive_mode = None
113119
self._id = None
@@ -139,12 +145,16 @@ def __init__(self, code_size=None, code_size_limit=None, command=None, cpu_strat
139145
self.code_size_limit = code_size_limit
140146
if command is not None:
141147
self.command = command
148+
if cpu is not None:
149+
self.cpu = cpu
142150
if cpu_strategy is not None:
143151
self.cpu_strategy = cpu_strategy
144152
if creation_time is not None:
145153
self.creation_time = creation_time
146154
if description is not None:
147155
self.description = description
156+
if enable_apmplus is not None:
157+
self.enable_apmplus = enable_apmplus
148158
if envs is not None:
149159
self.envs = envs
150160
if exclusive_mode is not None:
@@ -255,6 +265,27 @@ def command(self, command):
255265

256266
self._command = command
257267

268+
@property
269+
def cpu(self):
270+
"""Gets the cpu of this GetFunctionResponse. # noqa: E501
271+
272+
273+
:return: The cpu of this GetFunctionResponse. # noqa: E501
274+
:rtype: int
275+
"""
276+
return self._cpu
277+
278+
@cpu.setter
279+
def cpu(self, cpu):
280+
"""Sets the cpu of this GetFunctionResponse.
281+
282+
283+
:param cpu: The cpu of this GetFunctionResponse. # noqa: E501
284+
:type: int
285+
"""
286+
287+
self._cpu = cpu
288+
258289
@property
259290
def cpu_strategy(self):
260291
"""Gets the cpu_strategy of this GetFunctionResponse. # noqa: E501
@@ -318,6 +349,27 @@ def description(self, description):
318349

319350
self._description = description
320351

352+
@property
353+
def enable_apmplus(self):
354+
"""Gets the enable_apmplus of this GetFunctionResponse. # noqa: E501
355+
356+
357+
:return: The enable_apmplus of this GetFunctionResponse. # noqa: E501
358+
:rtype: bool
359+
"""
360+
return self._enable_apmplus
361+
362+
@enable_apmplus.setter
363+
def enable_apmplus(self, enable_apmplus):
364+
"""Sets the enable_apmplus of this GetFunctionResponse.
365+
366+
367+
:param enable_apmplus: The enable_apmplus of this GetFunctionResponse. # noqa: E501
368+
:type: bool
369+
"""
370+
371+
self._enable_apmplus = enable_apmplus
372+
321373
@property
322374
def envs(self):
323375
"""Gets the envs of this GetFunctionResponse. # noqa: E501

0 commit comments

Comments
 (0)