-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
<!-- Feel free to delete comments as you fill this in --> <!-- summary of changes --> ## Changes * Added secret_type computed filed to secret resources * Added CustomDiff for handling external change of secret_type * Refactored show_and_describe_handlers for flat describe_output and show_output * Tested external change of secret type for each resource ## Test Plan <!-- detail ways in which this PR has been tested or needs to be tested --> * [x] acceptance tests ## References <!-- issues documentation links, etc --> * #3110 (comment) * #3110 (comment)
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package model | ||
|
||
import tfconfig "github.com/hashicorp/terraform-plugin-testing/config" | ||
|
||
func (s *SecretWithClientCredentialsModel) WithOauthScopes(oauthScopes []string) *SecretWithClientCredentialsModel { | ||
oauthScopesStringVariables := make([]tfconfig.Variable, len(oauthScopes)) | ||
for i, v := range oauthScopes { | ||
oauthScopesStringVariables[i] = tfconfig.StringVariable(v) | ||
} | ||
|
||
s.OauthScopes = tfconfig.SetVariable(oauthScopesStringVariables...) | ||
return s | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.