Skip to content

fix issue #14893: add the customWriterIdentity parameter to logging_s… #16216

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

Conversation

modular-magician
Copy link
Collaborator

…ink resources

Fixes #14893

add the customWriterIdentity parameter to logging_sink.
This PR only fixes the project logsink.

Release Note Template for Downstream PRs (will be copied)

logging: added `custom_writer_identity` field to `google_logging_project_sink`

Derived from GoogleCloudPlatform/magic-modules#8995

…logging_s… (hashicorp#8995)

* fix issue hashicorp#14893: add the customWriterIdentity parameter to logging_sink resources

Signed-off-by: Gang Chen <[email protected]>

* ignore the customer_writer_identity field in test case

Signed-off-by: gangchen03 <[email protected]>

* Format the modified code and refactor the log client creation statement

Signed-off-by: gangchen03 <[email protected]>

* update project sink creation request object with proper variable name

Co-authored-by: Riley Karson <[email protected]>

* Update the sink resource documentation and remove the WriterIdentity field in update input

Signed-off-by: Gang Chen <[email protected]>

* refactor logging project sink to have consistent request format between create and patch

Signed-off-by: Gang Chen <[email protected]>

* Allow the test case to patch the customer_writer_identity field

Signed-off-by: Gang Chen <[email protected]>

* Fix code comment typo based on code review

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Add testCheckFuncs to validate the custom_writer_identity returned as Writer_identity output

Signed-off-by: Gang Chen <[email protected]>

* gofmt the test case

Signed-off-by: Gang Chen <[email protected]>

* Fix writer_identity TestCheckFunc in create test case

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Fix writer_identity TestCheckFunc in update test case

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Add headers for all Examples in logging sink document page

Signed-off-by: Gang Chen <[email protected]>

* Update custom_writer_identity field description in project sink documentation

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

* Remove uniqueWriterIdentity dependency for customerWriterIdentity in project logging sink documentation

Signed-off-by: Gang Chen <[email protected]>

---------

Signed-off-by: Gang Chen <[email protected]>
Signed-off-by: gangchen03 <[email protected]>
Co-authored-by: Riley Karson <[email protected]>
Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
[upstream:cd543bb71eb3c5e146678d93042aaa9580486569]
Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 5c0bac9 into hashicorp:main Oct 11, 2023
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2023
@modular-magician modular-magician deleted the downstream-pr-cd543bb71eb3c5e146678d93042aaa9580486569 branch November 17, 2024 00:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add the customWriterIdentity parameter to logging_sink resources
1 participant