Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose version_id on google_cloudfunctions_function #9969

Merged

Conversation

drcapulet
Copy link
Contributor

This was already in the YAML but the lookup has custom code so it wasn't exposed - updated the type to be an integer since that's what the Go SDK returns, but happy to keep it a string.

Release Note Template for Downstream PRs (will be copied)

Expose version_id on google_cloudfunctions_function

@drcapulet drcapulet requested a review from a team as a code owner February 12, 2024 19:49
@drcapulet drcapulet requested review from melinath and removed request for a team February 12, 2024 19:49
@melinath
Copy link
Member

/gcbrun

@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests service/cloudfunctions and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Feb 12, 2024
@modular-magician
Copy link
Collaborator

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

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 1 file changed, 8 insertions(+))
Terraform Beta: Diff ( 1 file changed, 8 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 17
Passed tests: 16
Skipped tests: 1
Affected tests: 0

Click here to see the affected service packages
  • cloudfunctions

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

@@ -490,6 +490,11 @@ func ResourceCloudFunctionsFunction() *schema.Resource {
Computed: true,
Description: `Describes the current stage of a deployment.`,
},
"version_id": {
Type: schema.TypeInt,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is a string (int64) in the API, so it should be represented as a string in Terraform for consistency. TypeInt can't reliably represent int64 values.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, updated!

@drcapulet drcapulet force-pushed the alexc-expose-cf-version-id branch from bb96d29 to a9d2b1b Compare February 13, 2024 20:48
@melinath
Copy link
Member

/gcbrun

@melinath melinath self-requested a review February 13, 2024 21:09
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Feb 13, 2024
@modular-magician
Copy link
Collaborator

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

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 2 files changed, 14 insertions(+))
Terraform Beta: Diff ( 2 files changed, 14 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 17
Passed tests: 16
Skipped tests: 1
Affected tests: 0

Click here to see the affected service packages
  • cloudfunctions

$\textcolor{green}{\textsf{All tests passed!}}$
View the build log

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.

3 participants