Skip to content

how to list the google docs or get the doc? #195

@wizzard0

Description

@wizzard0

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions