-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Labels
Description
the existing available subcommands are weirdly limited. also really unclear what values can go into the "params json" for gws docs documents get -- where do i pass the document id, for example?
gws docs documents get --help
Gets the latest version of the specified document.
Usage: gws documents get [OPTIONS]
Options:
--params <JSON> JSON string for URL/Query parameters
--sanitize <TEMPLATE> Sanitize API responses through a Model Armor template. Requires cloud-platform scope. Format: projects/PROJECT/locations/LOCATION/templates/TEMPLATE. Also reads GWS_SANITIZE_TEMPLATE env var.
--dry-run Validate the request locally without sending it to the API
-o, --output <PATH> Output file path for binary responses
--format <FORMAT> Output format: json (default), table, yaml, csv
--page-all Auto-paginate through all results, outputting one JSON line per page (NDJSON)
--page-limit <N> Maximum number of pages to fetch when using --page-all (default: 10)
--page-delay <MS> Delay in milliseconds between page fetches (default: 100)
-h, --help Print help
gws docs documents --help
Operations on the 'documents' resource
Usage: gws documents [OPTIONS] <COMMAND>
Commands:
batchUpdate Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied.
create Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.
get Gets the latest version of the specified document.
help Print this message or the help of the given subcommand(s)
Reactions are currently unavailable