gcloud beta runtime-config configs waiters create - create waiter resources
gcloud beta runtime-config configs waiters create NAME --config-name=CONFIG_NAME --success-cardinality-path=SUCCESS_CARDINALITY_PATH --timeout=TIMEOUT [--async] [--failure-cardinality-number=FAILURE_CARDINALITY_NUMBER; default=1] [--failure-cardinality-path=FAILURE_CARDINALITY_PATH] [--success-cardinality-number=SUCCESS_CARDINALITY_NUMBER; default=1] [GCLOUD_WIDE_FLAG ...]
(BETA) This command creates a new waiter resource with the specified name and parameters.
To create a waiter in "my-config" with success and failure paths nested under "/status", run:
$ gcloud beta runtime-config configs waiters create my-waiter \ --config-name=my-config --timeout=15m \ --success-cardinality-path=/status/success \ --success-cardinality-number=5 \ --failure-cardinality-path=/status/failure \ --failure-cardinality-number=1
This waiter will wait for at most 15 minutes for the first of two possible scenarios: 1) five or more variables are written to the /status/success/ path; or 2) one or more variables are written to the /status/failure/ path.
To create a waiter without a failure path, run:
$ gcloud beta runtime-config configs waiters create my-waiter \ --config-name=my-config --timeout=15m \ --success-cardinality-path=/status/success \ --success-cardinality-number=5
This waiter will wait until 5 or more success variables are written, or the 15 minute timeout elapses.
- NAME
The waiter name.
- --config-name=CONFIG_NAME
The name of the configuration resource to use.
- --success-cardinality-path=SUCCESS_CARDINALITY_PATH
The path where success variables are written.
- --timeout=TIMEOUT
The amount of time to wait before failing with DEADLINE_EXCEEDED. See $ gcloud topic datetimes for information on duration formats.
- --async
Return immediately, without waiting for the operation in progress to complete.
- --failure-cardinality-number=FAILURE_CARDINALITY_NUMBER; default=1
The minimum required number of failure variables.
- --failure-cardinality-path=FAILURE_CARDINALITY_PATH
The path where failure variables are written.
- --success-cardinality-number=SUCCESS_CARDINALITY_NUMBER; default=1
The minimum required number of success variables.
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
This command is currently in beta and might change without notice.