Module for params that can make Cloud Functions codebases generic.
Classes
BoolParamclass firebase_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.
|
CompareExpressionclass firebase_functions.params.CompareExpression(comparator: str, left: Expression[_T], right: _T) | ||
---|---|---|
Bases: A CEL expression that evaluates to boolean true or false based on a comparison between the value of another expression and a literal of that same type.
|
Expressionclass firebase_functions.params.Expression | ||
---|---|---|
Bases: A CEL expression which can be evaluated during function deployment, and resolved to a value of the generic type parameter: i.e, you can pass an Expression<number> as the value of an option that normally accepts numbers.
|
FloatParamclass firebase_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.
|
IntParamclass firebase_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.
|
ListParamclass firebase_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.
|
MultiSelectInputclass firebase_functions.params.MultiSelectInput(options: list[SelectOption[str]]) |
---|
Bases: Specifies that a Param's value should be determined by having the user select a 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[].
|
Paramclass firebase_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.
|
ResourceInputclass firebase_functions.params.ResourceInput(type: ResourceType | str) |
---|
Bases: Specifies that a Param's value should be determined by having the user select from a list containing all the project's resources of a certain type. Currently, only type:"storage.googleapis.com/Bucket" is supported.
|
ResourceTypeclass firebase_functions.params.ResourceType(value) |
---|
Bases: The type of resource that a picker should pick.
|
SecretParamclass firebase_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.
|
SelectInputclass firebase_functions.params.SelectInput(options: list[SelectOption[_T]]) |
---|
Bases: Specifies that a Param's value should be determined by having the user select from a list of pre-canned options interactively at deploy-time.
|
SelectOptionclass firebase_functions.params.SelectOption(value: _T, label: str | None = None) |
---|
Bases: A representation of an option that can be selected via a SelectInput.
|
StringParamclass firebase_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.
|
TernaryExpressionclass firebase_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 of another expression.
|
TextInputclass firebase_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 user to type it in interactively at deploy-time. Input that does not match the provided validation_regex, if present, is retried.
|