Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions docgen/content-sources/toc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ toc:
- title: 'config.Config'
path: /docs/reference/functions/config_.config.config.html

- title: 'functions.function-configuration'
path: /docs/reference/functions/function_configuration_.html
section:
- title: 'config.DeploymentOptions'
path: /docs/reference/functions/function_configuration_.deploymentoptions.html
- title: 'config.FailurePolicy'
path: /docs/reference/functions/function_configuration_.failurepolicy.html
- title: 'config.RuntimeOptions'
path: /docs/reference/functions/function_configuration_.runtimeoptions.html
- title: 'config.Schedule'
path: /docs/reference/functions/function_configuration_.schedule.html
- title: 'config.ScheduleRetryConfig'
path: /docs/reference/functions/function_configuration_.scheduleretryconfig.html

- title: 'functions.analytics'
path: /docs/reference/functions/providers_analytics_.html
section:
Expand Down Expand Up @@ -127,11 +141,6 @@ toc:
- title: 'ObjectMetadata'
path: /docs/reference/functions/providers_storage_.objectmetadata.html

- title: 'functions.handler'
path: /docs/reference/functions/handler_builder_.html
section:
- title: 'HandlerBuilder'
path: /docs/reference/functions/handler_builder_.handlerbuilder.html
- title: 'functions.testLab'
path: /docs/reference/functions/providers_testlab_.html
section:
Expand All @@ -143,3 +152,9 @@ toc:
path: /docs/reference/functions/providers_testlab_.testmatrix.html
- title: 'testLab.testMatrixBuilder'
path: /docs/reference/functions/providers_testlab_.testmatrixbuilder.html

- title: 'functions.handler'
path: /docs/reference/functions/handler_builder_.html
section:
- title: 'HandlerBuilder'
path: /docs/reference/functions/handler_builder_.handlerbuilder.html
2 changes: 2 additions & 0 deletions docgen/theme/layouts/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<meta name="project_path" value="/_project.yaml" />
<meta name="book_path" value="/docs/reference/_book.yaml" />
<meta name="gtm_var" data-key="docType" data-value="reference">
<meta name="page_type" value="reference" />
<meta name="translation" value="disabled" />
<title>{{#ifCond model.name '==' project.name}}{{project.name}}{{else}}{{model.name}} | {{project.name}}{{/ifCond}}</title>
<meta name="description" content="Reference for {{model.name}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down
27 changes: 15 additions & 12 deletions src/function-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ export function region(
/**
* Configure runtime options for the function.
* @param runtimeOptions Object with optional fields:
* 1. memory: amount of memory to allocate to the function, possible values
* 1. `memory`: amount of memory to allocate to the function, possible values
* are: '128MB', '256MB', '512MB', '1GB', and '2GB'.
* 2. timeoutSeconds: timeout for the function in seconds, possible values are
* 2. `timeoutSeconds`: timeout for the function in seconds, possible values are
* 0 to 540.
* 3. failurePolicy: failure policy of the function, with boolean `true` being
* 3. `failurePolicy`: failure policy of the function, with boolean `true` being
* equivalent to providing an empty retry object.
* 4. vpcConnector: id of a VPC connector in same project and region
* 5. vpcConnectorEgressSettings: when a vpcConnector is set, control which
* egress traffic is sent through the vpcConnector.
* 4. `vpcConnector`: id of a VPC connector in the same project and region
* 5. `vpcConnectorEgressSettings`: when a `vpcConnector` is set, control which
* egress traffic is sent through the `vpcConnector`.
*
* Value must not be null.
*/
Expand Down Expand Up @@ -173,13 +173,16 @@ export class FunctionBuilder {

/**
* Configure runtime options for the function.
* @param runtimeOptions Object with three optional fields:
* 1. failurePolicy: failure policy of the function, with boolean `true` being
* @param runtimeOptions Object with optional fields:
* 1. `memory`: amount of memory to allocate to the function, possible values
* are: '128MB', '256MB', '512MB', '1GB', and '2GB'.
* 2. `timeoutSeconds`: timeout for the function in seconds, possible values are
* 0 to 540.
* 3. `failurePolicy`: failure policy of the function, with boolean `true` being
* equivalent to providing an empty retry object.
* 2. memory: amount of memory to allocate to the function, with possible
* values being '128MB', '256MB', '512MB', '1GB', and '2GB'.
* 3. timeoutSeconds: timeout for the function in seconds, with possible
* values being 0 to 540.
* 4. `vpcConnector`: id of a VPC connector in the same project and region
* 5. `vpcConnectorEgressSettings`: when a `vpcConnector` is set, control which
* egress traffic is sent through the `vpcConnector`.
*
* Value must not be null.
*/
Expand Down