Skip to content

Add identityType, effectiveIdentity, and default_from_api to Vertex A…#16638

Merged
zli82016 merged 12 commits into
GoogleCloudPlatform:mainfrom
mmontan:vertex-ai-reasoning-engine-identity
Mar 16, 2026
Merged

Add identityType, effectiveIdentity, and default_from_api to Vertex A…#16638
zli82016 merged 12 commits into
GoogleCloudPlatform:mainfrom
mmontan:vertex-ai-reasoning-engine-identity

Conversation

@mmontan
Copy link
Copy Markdown
Contributor

@mmontan mmontan commented Mar 7, 2026

Add identityType, effectiveIdentity, and default_from_api to google_vertex_ai_reasoning_engine (beta)

This PR adds two new beta fields to the spec block of google_vertex_ai_reasoning_engine:

  • identity_type (beta): Specifies the identity type to use for the Reasoning Engine. Accepts SERVICE_ACCOUNT (uses a custom service account if set, otherwise the default Vertex AI Reasoning Engine Service Agent) or AGENT_IDENTITY (uses Agent Identity; service_account must not be set).
  • effective_identity (beta, output-only): Reports the effective identity in use for the Reasoning Engine.

Additionally, default_from_api: true is added to the spec field to allow the API to populate defaults, as effective_identity is an output field computed server-side.

An acceptance test (TestAccVertexAIReasoningEngine_vertexAiReasoningEngineIdentityTypeUpdate) is included to verify updating between SERVICE_ACCOUNT and AGENT_IDENTITY identity types using the beta provider.

Fixed hashicorp/terraform-provider-google#26376
Fixed hashicorp/terraform-provider-google#25101


Release Note Template for Downstream PRs (will be copied)

vertexai: added `spec.identity_type` and `spec.effective_identity` fields to `google_vertex_ai_reasoning_engine` resource (beta)
vertexai: marked `spec` field as computed in `google_vertex_ai_reasoning_engine` resource

@github-actions github-actions Bot requested a review from zli82016 March 7, 2026 17:43
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 7, 2026

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

@zli82016, 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.

@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 77 insertions(+))
google-beta provider: Diff ( 4 files changed, 129 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineSourceUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineSourceUpdate [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Comment thread mmv1/products/vertexai/ReasoningEngine.yaml Outdated
Comment thread mmv1/products/vertexai/ReasoningEngine.yaml Outdated
…random-string in names, and removed api_name fields.
@github-actions github-actions Bot requested a review from zli82016 March 12, 2026 02:40
@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 81 insertions(+))
google-beta provider: Diff ( 4 files changed, 133 insertions(+))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineIdentityTypeUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineIdentityTypeUpdate [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@mmontan
Copy link
Copy Markdown
Contributor Author

mmontan commented Mar 12, 2026

Addressed the review comments and pushed updates. Ready for another look.

@github-actions github-actions Bot requested a review from zli82016 March 13, 2026 05:04
@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 16 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 133 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@mmontan mmontan force-pushed the vertex-ai-reasoning-engine-identity branch from f98809a to ed16bf5 Compare March 13, 2026 05:26
@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 82
Skipped tests: 3
Affected tests: 0

Click here to see the affected service packages
  • vertexai

🟢 All tests passed!

View the build log

@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 16 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 133 insertions(+), 1 deletion(-))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 16 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 4 files changed, 142 insertions(+), 9 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 25 insertions(+), 9 deletions(-))
google-beta provider: Diff ( 4 files changed, 142 insertions(+), 9 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

2 similar comments
@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Error message] [Debug log]

Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.

Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.


🟢 All tests passed!

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 25 insertions(+), 9 deletions(-))
google-beta provider: Diff ( 4 files changed, 142 insertions(+), 9 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

1 similar comment
@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 25 insertions(+), 9 deletions(-))
google-beta provider: Diff ( 4 files changed, 142 insertions(+), 9 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Debug log]

🔴 Tests failed when rerunning REPLAYING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Error message] [Debug log]

Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.

Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer.


🟢 All tests passed!

View the build log or the debug log for each test

@modular-magician
Copy link
Copy Markdown
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.

google provider: Diff ( 3 files changed, 27 insertions(+), 9 deletions(-))
google-beta provider: Diff ( 4 files changed, 144 insertions(+), 9 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 22 insertions(+))

@modular-magician
Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 85
Passed tests: 81
Skipped tests: 3
Affected tests: 1

Click here to see the affected service packages
  • vertexai

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate

Get to know how VCR tests work

@modular-magician
Copy link
Copy Markdown
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccVertexAIReasoningEngine_vertexAiReasoningEngineUpdate [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

Copy link
Copy Markdown
Member

@zli82016 zli82016 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@zli82016 zli82016 added this pull request to the merge queue Mar 16, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 3b5fb17 Mar 16, 2026
23 checks passed
zli82016 added a commit to trodge/magic-modules that referenced this pull request Mar 16, 2026
aditikumarii-google pushed a commit to aditikumarii-google/magic-modules that referenced this pull request Mar 18, 2026
ChuAmberZhang pushed a commit to ChuAmberZhang/magic-modules that referenced this pull request Apr 29, 2026
gitika-yadav pushed a commit to gitika-yadav/magic-modules that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants