Skip to content

Migrate data_source_google_compute_global_address.go data source to use direct HTTP rather than a client library - #18465

Draft
GitOleksandrBokov wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
GitOleksandrBokov:data_source_google_compute_global_address-migration
Draft

Migrate data_source_google_compute_global_address.go data source to use direct HTTP rather than a client library#18465
GitOleksandrBokov wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
GitOleksandrBokov:data_source_google_compute_global_address-migration

Conversation

@GitOleksandrBokov

Copy link
Copy Markdown
Contributor

Part of the ongoing migration of handwritten compute files from the Apiary client library to direct HTTP calls (transport_tpg.SendRequest). Same pattern as #18444 and the merged data source migrations #17090 / #17117.

  • Replaces NewClient(...).GlobalAddresses.Get(project, name).Do() with a GET to projects/{project}/global/addresses/{name}.
  • Response fields are read from the JSON map. prefixLength is a plain JSON number and is converted explicitly; when the field is absent (addresses without a prefix) the attribute stays 0, matching the previous client's zero value.
  • No schema, test, or documentation changes. The recorded VCR cassette stays replay-compatible: the request matcher strips alt/prettyPrint, and the URL path is unchanged.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

compute: migrated `google_compute_global_address` data source to use direct HTTP rather than a client library

@modular-magician

modular-magician commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit ba79e1e:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 1 file changed, 19 insertions(+), 10 deletions(-)
google-beta provider View Diff 1 file changed, 19 insertions(+), 10 deletions(-)

Test report

Analytics

Total Tests Passed Skipped Affected
1555 1458 95 2
Affected Service Packages
  • compute

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccComputeInstanceFromMachineImage_diffProject
  • TestAccComputeSecurityPolicy_withPreconfiguredWafConfig

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
❌ Error · Log - TestAccComputeInstanceFromMachineImage_diffProject
❌ Error · Log - TestAccComputeSecurityPolicy_withPreconfiguredWafConfig

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.

@GitOleksandrBokov VCR tests complete for ba79e1e!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants