Commit ff253f9
committed
feat: Add ExternalRuntimeOptions to BigQuery routine
This change introduces the `ExternalRuntimeOptions` class to the
`google.cloud.bigquery.routine` module, allowing users to configure
runtime options for external routines.
Key changes:
- Created the `ExternalRuntimeOptions` class with setters and getters for
`container_memory`, `container_cpu`, `runtime_connection`,
`max_batching_rows`, and `runtime_version`.
- Updated the `Routine` class to include an `external_runtime_options`
property that accepts an `ExternalRuntimeOptions` object.
- Added comprehensive unit tests for the new class and its integration
with the `Routine` class, including tests for both valid and invalid
input values.
- Added additional tests to improve code coverage based on feedback.1 parent 4679101 commit ff253f9
File tree
2 files changed
+32
-0
lines changed- tests/unit/routine
2 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
84 | 110 | | |
85 | 111 | | |
86 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
610 | 616 | | |
611 | 617 | | |
612 | 618 | | |
| |||
0 commit comments