firebase_functions.params module Stay organized with collections Save and categorize content based on your preferences.
Module for params that can make Cloud Functions codebases generic.
Classes
BoolParamclassfirebase_functions.params.BoolParam(name:str,default:_T|Expression[_T]|None=None,label:str|None=None,description:str|None=None,immutable:bool|None=None,input:TextInput|ResourceInput|SelectInput[_T]|MultiSelectInput|None=None) | ||
---|---|---|
Bases: A parameter as a bool value.
|
CompareExpressionclassfirebase_functions.params.CompareExpression(comparator:str,left:Expression[_T],right:_T) | ||
---|---|---|
Bases: A CEL expression that evaluates to boolean true or false based on a comparisonbetween the value of another expression and a literal of that same type.
|
Expressionclassfirebase_functions.params.Expression | ||
---|---|---|
Bases: A CEL expression which can be evaluated during function deployment, andresolved to a value of the generic type parameter: i.e, you can passan Expression<number> as the value of an option that normally accepts numbers.
|
FloatParamclassfirebase_functions.params.FloatParam(name:str,default:_T|Expression[_T]|None=None,label:str|None=None,description:str|None=None,immutable:bool|None=None,input:TextInput|ResourceInput|SelectInput[_T]|MultiSelectInput|None=None) | ||
---|---|---|
Bases: A parameter as a float value.
|
IntParamclassfirebase_functions.params.IntParam(name:str,default:_T|Expression[_T]|None=None,label:str|None=None,description:str|None=None,immutable:bool|None=None,input:TextInput|ResourceInput|SelectInput[_T]|MultiSelectInput|None=None) | ||
---|---|---|
Bases: A parameter as a int value.
|
ListParamclassfirebase_functions.params.ListParam(name:str,default:_T|Expression[_T]|None=None,label:str|None=None,description:str|None=None,immutable:bool|None=None,input:TextInput|ResourceInput|SelectInput[_T]|MultiSelectInput|None=None) | ||
---|---|---|
Bases: A parameter as a list of strings.
|
MultiSelectInputclassfirebase_functions.params.MultiSelectInput(options:list[SelectOption[str]]) |
---|
Bases: Specifies that a Param's value should be determined by having the user selecta subset from a list of pre-canned options interactively at deploy-time.Will result in errors if used on Params of type other than string[].
|
Paramclassfirebase_functions.params.Param(name:str,default:_T|Expression[_T]|None=None,label:str|None=None,description:str|None=None,immutable:bool|None=None,input:TextInput|ResourceInput|SelectInput[_T]|MultiSelectInput|None=None) | ||
---|---|---|
Bases: A param is a declared dependency on an external value.
|
ResourceInputclassfirebase_functions.params.ResourceInput(type:ResourceType|str) |
---|
Bases: Specifies that a Param's value should be determined by having the userselect from a list containing all the project's resources of a certaintype. Currently, only type:"storage.googleapis.com/Bucket" is supported.
|
ResourceTypeclassfirebase_functions.params.ResourceType(value) |
---|
Bases: The type of resource that a picker should pick.
|
SecretParamclassfirebase_functions.params.SecretParam(name:str,label:str|None=None,description:str|None=None,immutable:bool|None=None) | ||
---|---|---|
Bases: A secret param is a declared dependency on an external secret.
|
SelectInputclassfirebase_functions.params.SelectInput(options:list[SelectOption[_T]]) |
---|
Bases: Specifies that a Param's value should be determined by having the user selectfrom a list of pre-canned options interactively at deploy-time.
|
SelectOptionclassfirebase_functions.params.SelectOption(value:_T,label:str|None=None) |
---|
Bases: A representation of an option that can be selected via a SelectInput.
|
StringParamclassfirebase_functions.params.StringParam(name:str,default:_T|Expression[_T]|None=None,label:str|None=None,description:str|None=None,immutable:bool|None=None,input:TextInput|ResourceInput|SelectInput[_T]|MultiSelectInput|None=None) | ||
---|---|---|
Bases: A parameter as a string value.
|
TernaryExpressionclassfirebase_functions.params.TernaryExpression(test:Expression[bool],if_true:_T,if_false:_T) | ||
---|---|---|
Bases: A CEL expression that evaluates to one of two values based on the value ofanother expression.
|
TextInputclassfirebase_functions.params.TextInput(example:str|None=None,validation_regex:str|None=None,validation_error_message:str|None=None) |
---|
Bases: Specifies that a Param's value should be determined by prompting the userto type it in interactively at deploy-time. Input that does not match the providedvalidation_regex, if present, is retried.
|
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-20 UTC.