你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DecoratorApi Class
Interface which contains essential decorator function building blocks to extend for creating new function app or blueprint classes.
- Inheritance
-
DecoratorApi
Constructor
DecoratorApi(*args, **kwargs)
Methods
function_name |
Optional: Sets name of the Function object. If not set, it will default to the name of the method name. additional setting fields :return: Decorator function. |
http_type |
Set http type of the Function object. |
function_name
Optional: Sets name of the Function object. If not set, it will default to the name of the method name.
additional setting fields :return: Decorator function.
function_name(name: str, setting_extra_fields: Dict[str, Any] | None = None) -> Callable[[...], Any]
Parameters
Name | Description |
---|---|
name
Required
|
Name of the function. |
setting_extra_fields
Required
|
Keyword arguments for specifying Default value: None
|
http_type
Set http type of the Function object.
http_type(http_type: str) -> Callable[[...], Any]
Parameters
Name | Description |
---|---|
http_type
Required
|
Http type of the function. |
Returns
Type | Description |
---|---|
Decorator function. |
Attributes
app_script_file
Name of function app script file in which all the functions are defined.
Script file defined here is for placeholder purpose, please refer to worker defined script file path as the single point of truth.
Returns
Type | Description |
---|---|
Script file name. |