-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add resource_logging_billing_account_sink resource #457
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job on the refactoring to reuse code common across sinks. Out of curiosity, how many other sinks do we have to support?
Read: resourceLoggingBillingAccountSinkRead, | ||
Delete: resourceLoggingBillingAccountSinkDelete, | ||
Update: resourceLoggingBillingAccountSinkUpdate, | ||
Schema: resourceLoggingSinkSchema(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import support? You have all the context you need fresh in your mind. Since this PR is long, I think it is a good idea to do it in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed! I actually started adding that but stopped as it got pretty complicated. My approach was modeled on yours
|
||
* `name` - (Required) The name of the logging sink. | ||
|
||
* 'billing_account' - (Required) The billing account exported to the sink. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the same quote style: `` not '
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, fixed
google/resource_logging_sink.go
Outdated
} | ||
|
||
func expandResourceloggingSinkForUpdate(d *schema.ResourceData) *logging.LogSink { | ||
// Can only update destination/filter right now. Despite the method below using 'Patch', the API requires both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capital L
for logging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, fixed
* Add resource_logging_billing_account_sink resource * Fix bad style
* Add resource_logging_billing_account_sink resource * Fix bad style
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This adds support for
resource_logging_billing_account_sink
; the API looks identical to the one used for project-level sinks, so I opted to do some refactoring here to establish a common schema (there is also organizations and folder-level sinks coming soon).