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

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

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 <gangcchen@google.com>

* ignore the customer_writer_identity field in test case

Signed-off-by: gangchen03 <gangcchen@google.com>

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

Signed-off-by: gangchen03 <gangcchen@google.com>

* update project sink creation request object with proper variable name

Co-authored-by: Riley Karson <rileykarson@google.com>

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

Signed-off-by: Gang Chen <gangcchen@google.com>

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

Signed-off-by: Gang Chen <gangcchen@google.com>

* Allow the test case to patch the customer_writer_identity field

Signed-off-by: Gang Chen <gangcchen@google.com>

* Fix code comment typo based on code review

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Add testCheckFuncs to validate the custom_writer_identity returned as Writer_identity output

Signed-off-by: Gang Chen <gangcchen@google.com>

* gofmt the test case

Signed-off-by: Gang Chen <gangcchen@google.com>

* Fix writer_identity TestCheckFunc in create test case

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Fix writer_identity TestCheckFunc in update test case

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Add headers for all Examples in logging sink document page

Signed-off-by: Gang Chen <gangcchen@google.com>

* Update custom_writer_identity field description in project sink documentation

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Remove uniqueWriterIdentity dependency for customerWriterIdentity in project logging sink documentation

Signed-off-by: Gang Chen <gangcchen@google.com>

---------

Signed-off-by: Gang Chen <gangcchen@google.com>
Signed-off-by: gangchen03 <gangcchen@google.com>
Co-authored-by: Riley Karson <rileykarson@google.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
[upstream:cd543bb71eb3c5e146678d93042aaa9580486569]
Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 5c0bac9 into hashicorp:main Oct 11, 2023
4 checks passed
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
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