Skip to content

Commit

Permalink
[Fix] lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-sidelnikov committed Jan 22, 2025
1 parent be5391b commit e95432c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions doc/source/sdk/guides/function_graph.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ FunctionGraph Service (FGS)
.. contents:: Table of Contents
:local:

FunctionGraph hosts and computes event-driven functions in a serverless context while ensuring high availability,
high scalability, and zero maintenance. All you need to do is write your code and set conditions.
FunctionGraph hosts and computes event-driven functions in a serverless
context while ensuring high availability, high scalability,
and zero maintenance. All you need to do is write your code and set conditions.

Function
--------

Function is a combination of code, runtime, resources, and settings required to achieve a specific purpose.
Function is a combination of code, runtime, resources,
and settings required to achieve a specific purpose.
It is the minimum unit that can run independently.
A function can be triggered by triggers and automatically schedule required resources and environments to achieve expected results.
A function can be triggered by triggers and automatically schedule
required resources and environments to achieve expected results.


Create Function
Expand Down
10 changes: 5 additions & 5 deletions otcextensions/sdk/function_graph/v2/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,22 +116,22 @@ def update_function_code(self, function, **attrs):
:param function: The URN or instance of the Function to update.
:param attrs: Attributes for updating the function code. These include:
- code_type: Function code type. Options:
code_type: Function code type. Options:
* `inline`: Inline code.
* `zip`: ZIP file.
* `obs`: Function code stored in an OBS bucket.
* `jar`: JAR file (mainly for Java functions).
- code_url: If `code_type` is set to `obs`, enter the OBS URL
code_url: If `code_type` is set to `obs`, enter the OBS URL
of the function code package. Leave this parameter blank if
`code_type` is not `obs`.
- code_filename: Name of the function file. This parameter
code_filename: Name of the function file. This parameter
is mandatory only when `code_type` is set to `jar` or `zip`.
- func_code: Response body of the `FuncCode` struct.
func_code: Response body of the `FuncCode` struct.
- depend_version_list: Dependency version IDs.
depend_version_list: Dependency version IDs.
:rtype: :class:`~otcextensions.sdk.function_graph.v2.function.Function`
"""
Expand Down

0 comments on commit e95432c

Please sign in to comment.