@@ -33,14 +33,18 @@ class CreateFunctionRequest(object):
3333 and the value is json key in definition.
3434 """
3535 swagger_types = {
36+ 'command' : 'str' ,
37+ 'cpu_strategy' : 'str' ,
3638 'description' : 'str' ,
3739 'envs' : 'list[EnvForCreateFunctionInput]' ,
3840 'exclusive_mode' : 'bool' ,
3941 'initializer_sec' : 'int' ,
42+ 'instance_type' : 'str' ,
4043 'max_concurrency' : 'int' ,
4144 'memory_mb' : 'int' ,
4245 'name' : 'str' ,
4346 'nas_storage' : 'NasStorageForCreateFunctionInput' ,
47+ 'project_name' : 'str' ,
4448 'request_timeout' : 'int' ,
4549 'runtime' : 'str' ,
4650 'source' : 'str' ,
@@ -52,14 +56,18 @@ class CreateFunctionRequest(object):
5256 }
5357
5458 attribute_map = {
59+ 'command' : 'Command' ,
60+ 'cpu_strategy' : 'CpuStrategy' ,
5561 'description' : 'Description' ,
5662 'envs' : 'Envs' ,
5763 'exclusive_mode' : 'ExclusiveMode' ,
5864 'initializer_sec' : 'InitializerSec' ,
65+ 'instance_type' : 'InstanceType' ,
5966 'max_concurrency' : 'MaxConcurrency' ,
6067 'memory_mb' : 'MemoryMB' ,
6168 'name' : 'Name' ,
6269 'nas_storage' : 'NasStorage' ,
70+ 'project_name' : 'ProjectName' ,
6371 'request_timeout' : 'RequestTimeout' ,
6472 'runtime' : 'Runtime' ,
6573 'source' : 'Source' ,
@@ -70,20 +78,24 @@ class CreateFunctionRequest(object):
7078 'vpc_config' : 'VpcConfig'
7179 }
7280
73- def __init__ (self , description = None , envs = None , exclusive_mode = None , initializer_sec = None , max_concurrency = None , memory_mb = None , name = None , nas_storage = None , request_timeout = None , runtime = None , source = None , source_access_config = None , source_type = None , tls_config = None , tos_mount_config = None , vpc_config = None , _configuration = None ): # noqa: E501
81+ def __init__ (self , command = 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 , runtime = None , source = None , source_access_config = None , source_type = None , tls_config = None , tos_mount_config = None , vpc_config = None , _configuration = None ): # noqa: E501
7482 """CreateFunctionRequest - a model defined in Swagger""" # noqa: E501
7583 if _configuration is None :
7684 _configuration = Configuration ()
7785 self ._configuration = _configuration
7886
87+ self ._command = None
88+ self ._cpu_strategy = None
7989 self ._description = None
8090 self ._envs = None
8191 self ._exclusive_mode = None
8292 self ._initializer_sec = None
93+ self ._instance_type = None
8394 self ._max_concurrency = None
8495 self ._memory_mb = None
8596 self ._name = None
8697 self ._nas_storage = None
98+ self ._project_name = None
8799 self ._request_timeout = None
88100 self ._runtime = None
89101 self ._source = None
@@ -94,6 +106,10 @@ def __init__(self, description=None, envs=None, exclusive_mode=None, initializer
94106 self ._vpc_config = None
95107 self .discriminator = None
96108
109+ if command is not None :
110+ self .command = command
111+ if cpu_strategy is not None :
112+ self .cpu_strategy = cpu_strategy
97113 if description is not None :
98114 self .description = description
99115 if envs is not None :
@@ -102,13 +118,17 @@ def __init__(self, description=None, envs=None, exclusive_mode=None, initializer
102118 self .exclusive_mode = exclusive_mode
103119 if initializer_sec is not None :
104120 self .initializer_sec = initializer_sec
121+ if instance_type is not None :
122+ self .instance_type = instance_type
105123 if max_concurrency is not None :
106124 self .max_concurrency = max_concurrency
107125 if memory_mb is not None :
108126 self .memory_mb = memory_mb
109127 self .name = name
110128 if nas_storage is not None :
111129 self .nas_storage = nas_storage
130+ if project_name is not None :
131+ self .project_name = project_name
112132 if request_timeout is not None :
113133 self .request_timeout = request_timeout
114134 self .runtime = runtime
@@ -125,6 +145,48 @@ def __init__(self, description=None, envs=None, exclusive_mode=None, initializer
125145 if vpc_config is not None :
126146 self .vpc_config = vpc_config
127147
148+ @property
149+ def command (self ):
150+ """Gets the command of this CreateFunctionRequest. # noqa: E501
151+
152+
153+ :return: The command of this CreateFunctionRequest. # noqa: E501
154+ :rtype: str
155+ """
156+ return self ._command
157+
158+ @command .setter
159+ def command (self , command ):
160+ """Sets the command of this CreateFunctionRequest.
161+
162+
163+ :param command: The command of this CreateFunctionRequest. # noqa: E501
164+ :type: str
165+ """
166+
167+ self ._command = command
168+
169+ @property
170+ def cpu_strategy (self ):
171+ """Gets the cpu_strategy of this CreateFunctionRequest. # noqa: E501
172+
173+
174+ :return: The cpu_strategy of this CreateFunctionRequest. # noqa: E501
175+ :rtype: str
176+ """
177+ return self ._cpu_strategy
178+
179+ @cpu_strategy .setter
180+ def cpu_strategy (self , cpu_strategy ):
181+ """Sets the cpu_strategy of this CreateFunctionRequest.
182+
183+
184+ :param cpu_strategy: The cpu_strategy of this CreateFunctionRequest. # noqa: E501
185+ :type: str
186+ """
187+
188+ self ._cpu_strategy = cpu_strategy
189+
128190 @property
129191 def description (self ):
130192 """Gets the description of this CreateFunctionRequest. # noqa: E501
@@ -209,6 +271,27 @@ def initializer_sec(self, initializer_sec):
209271
210272 self ._initializer_sec = initializer_sec
211273
274+ @property
275+ def instance_type (self ):
276+ """Gets the instance_type of this CreateFunctionRequest. # noqa: E501
277+
278+
279+ :return: The instance_type of this CreateFunctionRequest. # noqa: E501
280+ :rtype: str
281+ """
282+ return self ._instance_type
283+
284+ @instance_type .setter
285+ def instance_type (self , instance_type ):
286+ """Sets the instance_type of this CreateFunctionRequest.
287+
288+
289+ :param instance_type: The instance_type of this CreateFunctionRequest. # noqa: E501
290+ :type: str
291+ """
292+
293+ self ._instance_type = instance_type
294+
212295 @property
213296 def max_concurrency (self ):
214297 """Gets the max_concurrency of this CreateFunctionRequest. # noqa: E501
@@ -295,6 +378,27 @@ def nas_storage(self, nas_storage):
295378
296379 self ._nas_storage = nas_storage
297380
381+ @property
382+ def project_name (self ):
383+ """Gets the project_name of this CreateFunctionRequest. # noqa: E501
384+
385+
386+ :return: The project_name of this CreateFunctionRequest. # noqa: E501
387+ :rtype: str
388+ """
389+ return self ._project_name
390+
391+ @project_name .setter
392+ def project_name (self , project_name ):
393+ """Sets the project_name of this CreateFunctionRequest.
394+
395+
396+ :param project_name: The project_name of this CreateFunctionRequest. # noqa: E501
397+ :type: str
398+ """
399+
400+ self ._project_name = project_name
401+
298402 @property
299403 def request_timeout (self ):
300404 """Gets the request_timeout of this CreateFunctionRequest. # noqa: E501
0 commit comments