Skip to content

feat(chronicle): add google_chronicle_data_table_rows resource - #18778

Open
DrainBamage33 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
DrainBamage33:add-chronicle-data-table-rows
Open

feat(chronicle): add google_chronicle_data_table_rows resource#18778
DrainBamage33 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
DrainBamage33:add-chronicle-data-table-rows

Conversation

@DrainBamage33

@DrainBamage33 DrainBamage33 commented Aug 24, 2026

Copy link
Copy Markdown

This PR introduces the google_chronicle_data_table_rows resource to manage all rows in a Chronicle Data Table in bulk using the :bulkReplace API.

Changes

  • Added resource definition in mmv1/products/chronicle/DataTableRows.yaml.
  • Added custom encoder to wrap rows into BulkReplaceDataTableRowsRequest.
  • Added custom decoder to parse GET .../dataTableRows responses.
  • Added custom delete logic to cleanly purge table rows during resource destruction.
  • Used is_set: true with resourceChronicleDataTableRowHash to eliminate spurious drift caused by non-deterministic Spanner storage row order.
  • Added documentation sample and acceptance tests.

Test Results

=== RUN TestAccChronicleDataTableRows_chronicleDataTableRowsBasicExample --- PASS: TestAccChronicleDataTableRows_chronicleDataTableRowsBasicExample (31.86s) === RUN TestAccChronicleDataTableRows_update --- PASS: TestAccChronicleDataTableRows_update (41.67s) PASS

Related Issue
Fixes hashicorp/terraform-provider-google#29019

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

chronicle: added `BulkCreate`, `BulkGet`, `BulkReplace`, `BulkDelete` support to `google_chronicle_data_table_row` resource

* Add google_chronicle_data_table_rows resource definition and custom templates
* Support bulk operations (:bulkReplace) with TypeSet and custom hash function
* Add acceptance tests and basic example
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Aug 24, 2026
@github-actions

Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@rileykarson, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@github-actions
github-actions Bot requested a review from rileykarson August 24, 2026 20:50
@DrainBamage33

Copy link
Copy Markdown
Author

@rileykarson can you please review this change? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add terraform support for Bulk operations for chronicle DataTableRow resource.

2 participants