Skip to content

Commit

Permalink
Move resources to the service packages (#8146)
Browse files Browse the repository at this point in the history
  • Loading branch information
zli82016 authored Jun 16, 2023
1 parent 5ee8723 commit 308e362
Show file tree
Hide file tree
Showing 43 changed files with 2,076 additions and 2,017 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func dataSourceGoogleDatastreamStaticIpsRead(d *schema.ResourceData, meta interf
return err
}

staticIps, err := paginatedListRequest(project, url, userAgent, config, flattenStaticIpsList)
staticIps, err := tpgresource.PaginatedListRequest(project, url, userAgent, config, flattenStaticIpsList)
if err != nil {
return fmt.Errorf("Error retrieving monitoring uptime check ips: %s", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func dataSourceGoogleMonitoringUptimeCheckIpsRead(d *schema.ResourceData, meta i

url := "https://monitoring.googleapis.com/v3/uptimeCheckIps"

uptimeCheckIps, err := paginatedListRequest("", url, userAgent, config, flattenUptimeCheckIpsList)
uptimeCheckIps, err := tpgresource.PaginatedListRequest("", url, userAgent, config, flattenUptimeCheckIpsList)
if err != nil {
return fmt.Errorf("Error retrieving monitoring uptime check ips: %s", err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func dataSourceTpuTensorFlowVersionsRead(d *schema.ResourceData, meta interface{
return err
}

versionsRaw, err := paginatedListRequest(project, url, userAgent, config, flattenTpuTensorflowVersions)
versionsRaw, err := tpgresource.PaginatedListRequest(project, url, userAgent, config, flattenTpuTensorflowVersions)
if err != nil {
return fmt.Errorf("Error listing TPU Tensorflow versions: %s", err)
}
Expand Down
Loading

0 comments on commit 308e362

Please sign in to comment.