Observation

The gpp obs command group manages observation creation, updates, retrieval, deletion, and restoration.

Use it to interact with observations in the GPP database.

gpp obs

 gpp obs Usage: gpp obs [OPTIONS] COMMAND [ARGS]... Manage observations. ╭─ Options ────────────────────────────────────────────────────────────────────╮ --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ list   Get all observations.                                               get    Get an observation by ID or reference.                              delete Delete an observation by ID or reference.                           restoreRestore an observation by ID or reference.                          create Create a new observation.                                           update Update a observation by ID or reference.                            clone  Clone an observation by ID or reference.                            schema Display the JSON Schema for the input properties.                   ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs list

 gpp obs list Usage: gpp obs list [OPTIONS] Get all observations. ╭─ Options ────────────────────────────────────────────────────────────────────╮ --limitINTEGERMax number of results. --include-deleted--no-include-deletedInclude deleted        entries.               [default:              no-include-deleted]    --helpShow this message and  exit.                  ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs get

 gpp obs get Usage: gpp obs get [OPTIONS] Get an observation by ID or reference. ╭─ Options ────────────────────────────────────────────────────────────────────╮ --observation-idTEXTObservation ID. --observation-refere…TEXTObservation reference label.                --include-deleted--no-include-deletedInclude deleted       entries.              [default:             no-include-deleted]   --helpShow this message and exit.                 ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs delete

 gpp obs delete Usage: gpp obs delete [OPTIONS] Delete an observation by ID or reference. ╭─ Options ────────────────────────────────────────────────────────────────────╮ --observation-idTEXTObservation ID. --observation-referenceTEXTObservation reference label. --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs restore

 gpp obs restore Usage: gpp obs restore [OPTIONS] Restore an observation by ID or reference. ╭─ Options ────────────────────────────────────────────────────────────────────╮ --observation-idTEXTObservation ID. --observation-referenceTEXTObservation reference label. --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs create

 gpp obs create Usage: gpp obs create [OPTIONS] Create a new observation. Exactly one of --program-id--proposal-reference, or --program-reference must be provided to identify the program. Supplying more than one (or none) will result in an error. ╭─ Options ────────────────────────────────────────────────────────────────────╮ *--from-jsonPATHJSON file with the properties           definition.                             [required]                              --program-idTEXTProgram ID (supply exactly one          identifier).                            --proposal-referenceTEXTProposal reference label (supply        exactly one identifier).                --program-referenceTEXTProgram label reference (supply exactly one identifier).                        --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs update

 gpp obs update Usage: gpp obs update [OPTIONS] Update a observation by ID or reference. Exactly one of --observation-id or --observation-reference must be provided to identify the observation. Supplying more than one (or none) will result in an  error. ╭─ Options ────────────────────────────────────────────────────────────────────╮ *--from-jsonPATHJSON file with the properties        definition.                          [required]                           --observation-idTEXTObservation ID (supply exactly one   identifier).                         --observation-referenceTEXTOBservation reference label (supply  exactly one identifier).             --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs clone

 gpp obs clone Usage: gpp obs clone [OPTIONS] Clone an observation by ID or reference. Exactly one of --observation-id or --observation-reference must be provided to identify the observation. Supplying more than one (or none) will result in an  error. Optionally, a JSON file with properties can be provided to override specific properties in the cloned observation. ╭─ Options ────────────────────────────────────────────────────────────────────╮ *--from-jsonPATHJSON file with the properties        definition.                          [required]                           --observation-idTEXTObservation ID (supply exactly one   identifier).                         --observation-referenceTEXTObservation reference label (supply  exactly one identifier).             --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp obs schema

 gpp obs schema Usage: gpp obs schema [OPTIONS] Display the JSON Schema for the input properties. Use this when crafting or validating the JSON files passed with --from-json to the `create` or `update` commands. ╭─ Options ────────────────────────────────────────────────────────────────────╮ --indentINTEGERIndentation level for pretty       printing.                          [default: 2]                       --sort-keys--no-sort-keysSort object keys alphabetically. [default: no-sort-keys]          --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯