-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_sentinel_watchlist
- Add required property item_search_key
#15861
Conversation
Since March, the sentinel API now requires the `itemSearchey` in the `PUT` request. Meanwhile, the `contentType` is now not needed here as we don't actually send any content, but delegate it to the `azurerm_sentinel_watchlist_item`.
The CI failure of the example is due to there is new property introduced. |
Any reason for deviating from Microsoft's property naming |
// Setting them here is merely to make the API happy. | ||
Source: securityinsight.Source("a.csv"), | ||
ContentType: utils.String("Text/Csv"), |
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.
this is a breaking change, we should be exposing a field for this with a default value here?
// Setting them here is merely to make the API happy. | ||
Source: securityinsight.Source("a.csv"), | ||
ContentType: utils.String("Text/Csv"), | ||
Source: securityinsight.Source("a.csv"), |
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.
the possible values from the SDK here are:
// Source enumerates the values for source.
type Source string
const (
// SourceLocalfile ...
SourceLocalfile Source = "Local file"
// SourceRemotestorage ...
SourceRemotestorage Source = "Remote storage"
)
// PossibleSourceValues returns an array of possible values for the Source const type.
func PossibleSourceValues() []Source {
return []Source{SourceLocalfile, SourceRemotestorage}
}
why is this a.csv
?
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.
Thanks @magodo - left some comments inline. as for the the name items_seach_key
sounds incorrect? correct grammar should be item_search_key
regardless of what the SDK is using?
// Setting them here is merely to make the API happy. | ||
Source: securityinsight.Source("a.csv"), | ||
ContentType: utils.String("Text/Csv"), | ||
Source: securityinsight.Source("a.csv"), |
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.
"a.csv" is not a valid value for securityinsight.Source? at that should we not expose this in schema with a default?
// Setting them here is merely to make the API happy. | ||
Source: securityinsight.Source("a.csv"), | ||
ContentType: utils.String("Text/Csv"), |
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.
how come we are removing this? should it not be in schema with a default?
ContentType: utils.String("Text/Csv"), | ||
Source: securityinsight.Source("a.csv"), | ||
|
||
ItemsSearchKey: utils.String(model.ItemsSearchKey), |
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.
ditto here? should this not just be in schema with a default?
This reverts commit e7cfdf0.
@tombuildsstuff and @katbyte The Therefore, this PR removes the About the naming of the |
Any progress here? |
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.
LGTM 🚜
This functionality has been released in v3.2.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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 contributions. |
Since March, the sentinel API now requires the
itemSearchey
in thePUT
request. Meanwhile, thecontentType
is now not needed here as we don't actually send any content, but delegate it to theazurerm_sentinel_watchlist_item
.Fixes #15851.
Superseds: #15856.
Test