From f2dc3bf06899bba9b305adf39807142f05cc9086 Mon Sep 17 00:00:00 2001 From: Artur Sawicki Date: Thu, 19 Dec 2024 18:02:53 +0100 Subject: [PATCH] Regenerate accounts datasource config builder --- .../datasourcemodel/accounts_model_gen.go | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pkg/acceptance/bettertestspoc/config/datasourcemodel/accounts_model_gen.go b/pkg/acceptance/bettertestspoc/config/datasourcemodel/accounts_model_gen.go index cfc7559032..f21a456df8 100644 --- a/pkg/acceptance/bettertestspoc/config/datasourcemodel/accounts_model_gen.go +++ b/pkg/acceptance/bettertestspoc/config/datasourcemodel/accounts_model_gen.go @@ -12,8 +12,9 @@ import ( ) type AccountsModel struct { - Accounts tfconfig.Variable `json:"accounts,omitempty"` - Pattern tfconfig.Variable `json:"pattern,omitempty"` + Accounts tfconfig.Variable `json:"accounts,omitempty"` + Like tfconfig.Variable `json:"like,omitempty"` + WithHistory tfconfig.Variable `json:"with_history,omitempty"` *config.DatasourceModelMeta } @@ -60,8 +61,13 @@ func (a *AccountsModel) WithDependsOn(values ...string) *AccountsModel { // accounts attribute type is not yet supported, so WithAccounts can't be generated -func (a *AccountsModel) WithPattern(pattern string) *AccountsModel { - a.Pattern = tfconfig.StringVariable(pattern) +func (a *AccountsModel) WithLike(like string) *AccountsModel { + a.Like = tfconfig.StringVariable(like) + return a +} + +func (a *AccountsModel) WithWithHistory(withHistory bool) *AccountsModel { + a.WithHistory = tfconfig.BoolVariable(withHistory) return a } @@ -74,7 +80,12 @@ func (a *AccountsModel) WithAccountsValue(value tfconfig.Variable) *AccountsMode return a } -func (a *AccountsModel) WithPatternValue(value tfconfig.Variable) *AccountsModel { - a.Pattern = value +func (a *AccountsModel) WithLikeValue(value tfconfig.Variable) *AccountsModel { + a.Like = value + return a +} + +func (a *AccountsModel) WithWithHistoryValue(value tfconfig.Variable) *AccountsModel { + a.WithHistory = value return a }