|
23 | 23 | if TYPE_CHECKING: |
24 | 24 | from cognite.client import CogniteClient |
25 | 25 |
|
26 | | -RunTime: TypeAlias = Literal["py39", "py310", "py311"] |
| 26 | +RunTime: TypeAlias = Literal["py39", "py310", "py311", "py312"] |
27 | 27 | FunctionStatus: TypeAlias = Literal["Queued", "Deploying", "Ready", "Failed"] |
28 | 28 | HANDLER_FILE_NAME = "handler.py" |
29 | 29 |
|
@@ -90,7 +90,7 @@ class FunctionCore(WriteableCogniteResource["FunctionWrite"], ABC): |
90 | 90 | env_vars (dict[str, str] | None): User specified environment variables on the function ((key, value) pairs). |
91 | 91 | cpu (float | None): Number of CPU cores per function. Allowed range and default value are given by the `limits endpoint. <https://developer.cognite.com/api#tag/Functions/operation/functionsLimits>`_, and None translates to the API default. On Azure, only the default value is used. |
92 | 92 | memory (float | None): Memory per function measured in GB. Allowed range and default value are given by the `limits endpoint. <https://developer.cognite.com/api#tag/Functions/operation/functionsLimits>`_, and None translates to the API default. On Azure, only the default value is used. |
93 | | - runtime (str | None): Runtime of the function. Allowed values are ["py39","py310", "py311"]. The runtime "py311" resolves to the latest version of the Python 3.11 series. |
| 93 | + runtime (str | None): Runtime of the function. Allowed values are ["py39","py310", "py311", "py312"]. The runtime "py312" resolves to the latest version of the Python 3.12 series. |
94 | 94 | metadata (dict[str, str] | None): Metadata associated with a function as a set of key:value pairs. |
95 | 95 | """ |
96 | 96 |
|
@@ -146,7 +146,7 @@ class Function(FunctionCore): |
146 | 146 | env_vars (dict[str, str] | None): User specified environment variables on the function ((key, value) pairs). |
147 | 147 | cpu (float | None): Number of CPU cores per function. Allowed range and default value are given by the `limits endpoint. <https://developer.cognite.com/api#tag/Functions/operation/functionsLimits>`_, and None translates to the API default. On Azure, only the default value is used. |
148 | 148 | memory (float | None): Memory per function measured in GB. Allowed range and default value are given by the `limits endpoint. <https://developer.cognite.com/api#tag/Functions/operation/functionsLimits>`_, and None translates to the API default. On Azure, only the default value is used. |
149 | | - runtime (str | None): Runtime of the function. Allowed values are ["py39","py310", "py311"]. The runtime "py311" resolves to the latest version of the Python 3.11s series. |
| 149 | + runtime (str | None): Runtime of the function. Allowed values are ["py39","py310", "py311", "py312"]. The runtime "py312" resolves to the latest version of the Python 3.12 series. |
150 | 150 | runtime_version (str | None): The complete specification of the function runtime with major, minor and patch version numbers. |
151 | 151 | metadata (dict[str, str] | None): Metadata associated with a function as a set of key:value pairs. |
152 | 152 | error (dict | None): Dictionary with keys "message" and "trace", which is populated if deployment fails. |
@@ -310,7 +310,7 @@ class FunctionWrite(FunctionCore): |
310 | 310 | env_vars (dict[str, str] | None): User specified environment variables on the function ((key, value) pairs). |
311 | 311 | cpu (float | None): Number of CPU cores per function. Allowed range and default value are given by the `limits endpoint. <https://developer.cognite.com/api#tag/Functions/operation/functionsLimits>`_, and None translates to the API default. On Azure, only the default value is used. |
312 | 312 | memory (float | None): Memory per function measured in GB. Allowed range and default value are given by the `limits endpoint. <https://developer.cognite.com/api#tag/Functions/operation/functionsLimits>`_, and None translates to the API default. On Azure, only the default value is used. |
313 | | - runtime (RunTime | None): Runtime of the function. Allowed values are ["py39","py310", "py311"]. The runtime "py311" resolves to the latest version of the Python 3.11 series. |
| 313 | + runtime (RunTime | None): Runtime of the function. Allowed values are ["py39","py310", "py311", "py312"]. The runtime "py312" resolves to the latest version of the Python 3.12 series. |
314 | 314 | metadata (dict[str, str] | None): Metadata associated with a function as a set of key:value pairs. |
315 | 315 | index_url (str | None): Specify a different python package index, allowing for packages published in private repositories. Supports basic HTTP authentication as described in pip basic authentication. See the documentation for additional information related to the security risks of using this option. |
316 | 316 | extra_index_urls (list[str] | None): Extra package index URLs to use when building the function, allowing for packages published in private repositories. Supports basic HTTP authentication as described in pip basic authentication. See the documentation for additional information related to the security risks of using this option. |
@@ -745,7 +745,7 @@ class FunctionsLimits(CogniteResponse): |
745 | 745 | timeout_minutes (int): Timeout of each function call. |
746 | 746 | cpu_cores (dict[str, float]): The number of CPU cores per function execution (i.e. function call). |
747 | 747 | memory_gb (dict[str, float]): The amount of available memory in GB per function execution (i.e. function call). |
748 | | - runtimes (list[str]): Available runtimes. For example, "py311" translates to the latest version of the Python 3.11 series. |
| 748 | + runtimes (list[str]): Available runtimes. For example, "py312" translates to the latest version of the Python 3.12 series. |
749 | 749 | response_size_mb (int | None): Maximum response size of function calls. |
750 | 750 | """ |
751 | 751 |
|
|
0 commit comments