Add google_compute_service_attachments plural data source - #18317
Conversation
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit cc812dd: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
View the replaying VCR build log Step 2: Recording Mode
Caution Issues requiring attention before PR completion 🔴 Initial Recording Failed: Some tests failed during the recording step. See the table above for details. Please address these issues to complete your PR. If you believe these detections are incorrect or unrelated to your change, please raise the concern with your reviewer. View the recording VCR build log or the debug logs folder for detailed results. |
|
@modular-magician reassign-reviewer |
|
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. |
|
@rileykarson This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 1 week. Please take a look! Use the label |
|
@GoogleCloudPlatform/terraform-team @rileykarson This PR has been waiting for review for 2 weeks. Please take a look! Use the label |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 21585c7: Diff reportYour PR generated the following diffs in downstream repositories:
Step 1: Replaying Mode Caution Panic occurred during VCR tests 🔴 REPLAYING mode: The provider crashed with a panic. Please check the build log for details. Please fix the issue to complete your PR. View the build log |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit d80366b: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
View the replaying VCR build log Step 2: Recording Mode
Caution Issues requiring attention before PR completion 🔴 Initial Recording Failed: Some tests failed during the recording step. See the table above for details. Please address these issues to complete your PR. If you believe these detections are incorrect or unrelated to your change, please raise the concern with your reviewer. View the recording VCR build log or the debug logs folder for detailed results. |
|
@vr-ibm, this PR is waiting for action from you. If no action is taken, this PR will be closed in 28 days. Please address any comments or change requests, or re-request review from a core reviewer if no action is required. This notification can be disabled with the |
| call := NewClient(config, userAgent).ServiceAttachments.List(project, region) | ||
| if filter, ok := d.GetOk("filter"); ok { | ||
| call = call.Filter(filter.(string)) | ||
| } |
There was a problem hiding this comment.
is there a reason for using the client library here? i check the normal resource of this data source and it uses transport, we lean more towards using transport since client libraries are more difficult in supporting new fields that get added to the API

Fixes hashicorp/terraform-provider-google#23397
Adds a new plural data source
google_compute_service_attachmentsthat lists all service attachments in a given project and region, enabling discovery without hardcoding names or self_links.Details
serviceAttachments.listcompute API with pagination supportproject,region, andfilterargumentsservice_attachmentslist with key attributes:name,self_link,target_service,connection_preference,nat_subnets,enable_proxy_protocol,domain_names,fingerprint,regionTestAccDataSourceGoogleComputeServiceAttachments_basicTests
TestAccDataSourceGoogleComputeServiceAttachments_basic
Release Note Template for Downstream PRs (will be copied)