From a9f12b6bb7f9c04533061b7a929bb42d9ac89592 Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Mon, 9 Dec 2024 10:42:47 +0100 Subject: [PATCH 1/6] bugfix --- .codegen/model.go.tmpl | 3 + internal/service/apps_tf/model.go | 8 ++ internal/service/billing_tf/model.go | 12 +++ internal/service/catalog_tf/model.go | 73 ++++++++++++++ internal/service/compute_tf/model.go | 93 +++++++++++++++++ internal/service/dashboards_tf/model.go | 4 + internal/service/files_tf/model.go | 2 + internal/service/iam_tf/model.go | 40 ++++++++ internal/service/jobs_tf/model.go | 117 ++++++++++++++++++++++ internal/service/marketplace_tf/model.go | 36 +++++++ internal/service/ml_tf/model.go | 53 ++++++++++ internal/service/oauth2_tf/model.go | 11 ++ internal/service/pipelines_tf/model.go | 42 ++++++++ internal/service/provisioning_tf/model.go | 15 +++ internal/service/serving_tf/model.go | 44 ++++++++ internal/service/settings_tf/model.go | 28 ++++++ internal/service/sharing_tf/model.go | 15 +++ internal/service/sql_tf/model.go | 53 ++++++++++ internal/service/vectorsearch_tf/model.go | 19 ++++ internal/service/workspace_tf/model.go | 18 ++++ 20 files changed, 686 insertions(+) diff --git a/.codegen/model.go.tmpl b/.codegen/model.go.tmpl index 54f7b5cf10..55145cbc5e 100644 --- a/.codegen/model.go.tmpl +++ b/.codegen/model.go.tmpl @@ -159,6 +159,9 @@ func (o *{{ $parent.PascalName}}) Set{{.PascalName}}(ctx context.Context, v {{te } {{- end}} t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["{{template "tfsdk-name" (dict "field" .)}}"] + {{- if or .Entity.ArrayValue .Entity.MapValue }} + t = t.(attr.TypeWithElementType).ElementType() + {{- end }} o.{{.PascalName}}{{if eq .PascalName "Type"}}_{{end}} = types.{{if .Entity.MapValue}}Map{{else}}List{{end}}ValueMust(t, vs) } {{end}} diff --git a/internal/service/apps_tf/model.go b/internal/service/apps_tf/model.go index c1777ed1d5..804d6c4841 100755 --- a/internal/service/apps_tf/model.go +++ b/internal/service/apps_tf/model.go @@ -269,6 +269,7 @@ func (o *App) SetResources(ctx context.Context, v []AppResource) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["resources"] + t = t.(attr.TypeWithElementType).ElementType() o.Resources = types.ListValueMust(t, vs) } @@ -410,6 +411,7 @@ func (o *AppAccessControlResponse) SetAllPermissions(ctx context.Context, v []Ap vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -712,6 +714,7 @@ func (o *AppPermission) SetInheritedFromObject(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -790,6 +793,7 @@ func (o *AppPermissions) SetAccessControlList(ctx context.Context, v []AppAccess vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -909,6 +913,7 @@ func (o *AppPermissionsRequest) SetAccessControlList(ctx context.Context, v []Ap vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -1724,6 +1729,7 @@ func (o *GetAppPermissionLevelsResponse) SetPermissionLevels(ctx context.Context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -1937,6 +1943,7 @@ func (o *ListAppDeploymentsResponse) SetAppDeployments(ctx context.Context, v [] vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["app_deployments"] + t = t.(attr.TypeWithElementType).ElementType() o.AppDeployments = types.ListValueMust(t, vs) } @@ -2059,6 +2066,7 @@ func (o *ListAppsResponse) SetApps(ctx context.Context, v []App) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["apps"] + t = t.(attr.TypeWithElementType).ElementType() o.Apps = types.ListValueMust(t, vs) } diff --git a/internal/service/billing_tf/model.go b/internal/service/billing_tf/model.go index 6c5decf04b..f8297f5cc9 100755 --- a/internal/service/billing_tf/model.go +++ b/internal/service/billing_tf/model.go @@ -162,6 +162,7 @@ func (o *AlertConfiguration) SetActionConfigurations(ctx context.Context, v []Ac vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["action_configurations"] + t = t.(attr.TypeWithElementType).ElementType() o.ActionConfigurations = types.ListValueMust(t, vs) } @@ -264,6 +265,7 @@ func (o *BudgetConfiguration) SetAlertConfigurations(ctx context.Context, v []Al vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["alert_configurations"] + t = t.(attr.TypeWithElementType).ElementType() o.AlertConfigurations = types.ListValueMust(t, vs) } @@ -370,6 +372,7 @@ func (o *BudgetConfigurationFilter) SetTags(ctx context.Context, v []BudgetConfi vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -470,6 +473,7 @@ func (o *BudgetConfigurationFilterClause) SetValues(ctx context.Context, v []typ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["values"] + t = t.(attr.TypeWithElementType).ElementType() o.Values = types.ListValueMust(t, vs) } @@ -619,6 +623,7 @@ func (o *BudgetConfigurationFilterWorkspaceIdClause) SetValues(ctx context.Conte vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["values"] + t = t.(attr.TypeWithElementType).ElementType() o.Values = types.ListValueMust(t, vs) } @@ -800,6 +805,7 @@ func (o *CreateBudgetConfigurationBudget) SetAlertConfigurations(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["alert_configurations"] + t = t.(attr.TypeWithElementType).ElementType() o.AlertConfigurations = types.ListValueMust(t, vs) } @@ -963,6 +969,7 @@ func (o *CreateBudgetConfigurationBudgetAlertConfigurations) SetActionConfigurat vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["action_configurations"] + t = t.(attr.TypeWithElementType).ElementType() o.ActionConfigurations = types.ListValueMust(t, vs) } @@ -1261,6 +1268,7 @@ func (o *CreateLogDeliveryConfigurationParams) SetWorkspaceIdsFilter(ctx context vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["workspace_ids_filter"] + t = t.(attr.TypeWithElementType).ElementType() o.WorkspaceIdsFilter = types.ListValueMust(t, vs) } @@ -1809,6 +1817,7 @@ func (o *ListBudgetConfigurationsResponse) SetBudgets(ctx context.Context, v []B vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["budgets"] + t = t.(attr.TypeWithElementType).ElementType() o.Budgets = types.ListValueMust(t, vs) } @@ -2065,6 +2074,7 @@ func (o *LogDeliveryConfiguration) SetWorkspaceIdsFilter(ctx context.Context, v vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["workspace_ids_filter"] + t = t.(attr.TypeWithElementType).ElementType() o.WorkspaceIdsFilter = types.ListValueMust(t, vs) } @@ -2261,6 +2271,7 @@ func (o *UpdateBudgetConfigurationBudget) SetAlertConfigurations(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["alert_configurations"] + t = t.(attr.TypeWithElementType).ElementType() o.AlertConfigurations = types.ListValueMust(t, vs) } @@ -2698,5 +2709,6 @@ func (o *WrappedLogDeliveryConfigurations) SetLogDeliveryConfigurations(ctx cont vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["log_delivery_configurations"] + t = t.(attr.TypeWithElementType).ElementType() o.LogDeliveryConfigurations = types.ListValueMust(t, vs) } diff --git a/internal/service/catalog_tf/model.go b/internal/service/catalog_tf/model.go index 4b36a1f2da..ab5d2f4a3c 100755 --- a/internal/service/catalog_tf/model.go +++ b/internal/service/catalog_tf/model.go @@ -772,6 +772,7 @@ func (o *ArtifactAllowlistInfo) SetArtifactMatchers(ctx context.Context, v []Art vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["artifact_matchers"] + t = t.(attr.TypeWithElementType).ElementType() o.ArtifactMatchers = types.ListValueMust(t, vs) } @@ -1662,6 +1663,7 @@ func (o *CatalogInfo) SetOptions(ctx context.Context, v map[string]types.String) vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["options"] + t = t.(attr.TypeWithElementType).ElementType() o.Options = types.MapValueMust(t, vs) } @@ -1687,6 +1689,7 @@ func (o *CatalogInfo) SetProperties(ctx context.Context, v map[string]types.Stri vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -1957,6 +1960,7 @@ func (o *ColumnMask) SetUsingColumnNames(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["using_column_names"] + t = t.(attr.TypeWithElementType).ElementType() o.UsingColumnNames = types.ListValueMust(t, vs) } @@ -2107,6 +2111,7 @@ func (o *ConnectionInfo) SetOptions(ctx context.Context, v map[string]types.Stri vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["options"] + t = t.(attr.TypeWithElementType).ElementType() o.Options = types.MapValueMust(t, vs) } @@ -2132,6 +2137,7 @@ func (o *ConnectionInfo) SetProperties(ctx context.Context, v map[string]types.S vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -2348,6 +2354,7 @@ func (o *CreateCatalog) SetOptions(ctx context.Context, v map[string]types.Strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["options"] + t = t.(attr.TypeWithElementType).ElementType() o.Options = types.MapValueMust(t, vs) } @@ -2373,6 +2380,7 @@ func (o *CreateCatalog) SetProperties(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -2468,6 +2476,7 @@ func (o *CreateConnection) SetOptions(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["options"] + t = t.(attr.TypeWithElementType).ElementType() o.Options = types.MapValueMust(t, vs) } @@ -2493,6 +2502,7 @@ func (o *CreateConnection) SetProperties(ctx context.Context, v map[string]types vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -3340,6 +3350,7 @@ func (o *CreateMonitor) SetCustomMetrics(ctx context.Context, v []MonitorMetric) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_metrics"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomMetrics = types.ListValueMust(t, vs) } @@ -3469,6 +3480,7 @@ func (o *CreateMonitor) SetSlicingExprs(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["slicing_exprs"] + t = t.(attr.TypeWithElementType).ElementType() o.SlicingExprs = types.ListValueMust(t, vs) } @@ -3776,6 +3788,7 @@ func (o *CreateSchema) SetProperties(ctx context.Context, v map[string]types.Str vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -4453,6 +4466,7 @@ func (o *CurrentWorkspaceBindings) SetWorkspaces(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["workspaces"] + t = t.(attr.TypeWithElementType).ElementType() o.Workspaces = types.ListValueMust(t, vs) } @@ -5602,6 +5616,7 @@ func (o *DeltaRuntimePropertiesKvPairs) SetDeltaRuntimeProperties(ctx context.Co vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["delta_runtime_properties"] + t = t.(attr.TypeWithElementType).ElementType() o.DeltaRuntimeProperties = types.MapValueMust(t, vs) } @@ -5781,6 +5796,7 @@ func (o *DependencyList) SetDependencies(ctx context.Context, v []Dependency) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dependencies"] + t = t.(attr.TypeWithElementType).ElementType() o.Dependencies = types.ListValueMust(t, vs) } @@ -5936,6 +5952,7 @@ func (o *EffectivePermissionsList) SetPrivilegeAssignments(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["privilege_assignments"] + t = t.(attr.TypeWithElementType).ElementType() o.PrivilegeAssignments = types.ListValueMust(t, vs) } @@ -6119,6 +6136,7 @@ func (o *EffectivePrivilegeAssignment) SetPrivileges(ctx context.Context, v []Ef vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["privileges"] + t = t.(attr.TypeWithElementType).ElementType() o.Privileges = types.ListValueMust(t, vs) } @@ -6598,6 +6616,7 @@ func (o *ForeignKeyConstraint) SetChildColumns(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["child_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.ChildColumns = types.ListValueMust(t, vs) } @@ -6623,6 +6642,7 @@ func (o *ForeignKeyConstraint) SetParentColumns(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parent_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.ParentColumns = types.ListValueMust(t, vs) } @@ -7078,6 +7098,7 @@ func (o *FunctionParameterInfos) SetParameters(ctx context.Context, v []Function vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -7246,6 +7267,7 @@ func (o *GenerateTemporaryServiceCredentialAzureOptions) SetResources(ctx contex vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["resources"] + t = t.(attr.TypeWithElementType).ElementType() o.Resources = types.ListValueMust(t, vs) } @@ -9045,6 +9067,7 @@ func (o *ListAccountMetastoreAssignmentsResponse) SetWorkspaceIds(ctx context.Co vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["workspace_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.WorkspaceIds = types.ListValueMust(t, vs) } @@ -9159,6 +9182,7 @@ func (o *ListAccountStorageCredentialsResponse) SetStorageCredentials(ctx contex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["storage_credentials"] + t = t.(attr.TypeWithElementType).ElementType() o.StorageCredentials = types.ListValueMust(t, vs) } @@ -9296,6 +9320,7 @@ func (o *ListCatalogsResponse) SetCatalogs(ctx context.Context, v []CatalogInfo) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["catalogs"] + t = t.(attr.TypeWithElementType).ElementType() o.Catalogs = types.ListValueMust(t, vs) } @@ -9425,6 +9450,7 @@ func (o *ListConnectionsResponse) SetConnections(ctx context.Context, v []Connec vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["connections"] + t = t.(attr.TypeWithElementType).ElementType() o.Connections = types.ListValueMust(t, vs) } @@ -9556,6 +9582,7 @@ func (o *ListCredentialsResponse) SetCredentials(ctx context.Context, v []Creden vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["credentials"] + t = t.(attr.TypeWithElementType).ElementType() o.Credentials = types.ListValueMust(t, vs) } @@ -9690,6 +9717,7 @@ func (o *ListExternalLocationsResponse) SetExternalLocations(ctx context.Context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["external_locations"] + t = t.(attr.TypeWithElementType).ElementType() o.ExternalLocations = types.ListValueMust(t, vs) } @@ -9832,6 +9860,7 @@ func (o *ListFunctionsResponse) SetFunctions(ctx context.Context, v []FunctionIn vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["functions"] + t = t.(attr.TypeWithElementType).ElementType() o.Functions = types.ListValueMust(t, vs) } @@ -9903,6 +9932,7 @@ func (o *ListMetastoresResponse) SetMetastores(ctx context.Context, v []Metastor vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["metastores"] + t = t.(attr.TypeWithElementType).ElementType() o.Metastores = types.ListValueMust(t, vs) } @@ -10042,6 +10072,7 @@ func (o *ListModelVersionsResponse) SetModelVersions(ctx context.Context, v []Mo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["model_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.ModelVersions = types.ListValueMust(t, vs) } @@ -10166,6 +10197,7 @@ func (o *ListQuotasResponse) SetQuotas(ctx context.Context, v []QuotaInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["quotas"] + t = t.(attr.TypeWithElementType).ElementType() o.Quotas = types.ListValueMust(t, vs) } @@ -10363,6 +10395,7 @@ func (o *ListRegisteredModelsResponse) SetRegisteredModels(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["registered_models"] + t = t.(attr.TypeWithElementType).ElementType() o.RegisteredModels = types.ListValueMust(t, vs) } @@ -10501,6 +10534,7 @@ func (o *ListSchemasResponse) SetSchemas(ctx context.Context, v []SchemaInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -10630,6 +10664,7 @@ func (o *ListStorageCredentialsResponse) SetStorageCredentials(ctx context.Conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["storage_credentials"] + t = t.(attr.TypeWithElementType).ElementType() o.StorageCredentials = types.ListValueMust(t, vs) } @@ -10834,6 +10869,7 @@ func (o *ListSystemSchemasResponse) SetSchemas(ctx context.Context, v []SystemSc vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -10911,6 +10947,7 @@ func (o *ListTableSummariesResponse) SetTables(ctx context.Context, v []TableSum vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tables"] + t = t.(attr.TypeWithElementType).ElementType() o.Tables = types.ListValueMust(t, vs) } @@ -11074,6 +11111,7 @@ func (o *ListTablesResponse) SetTables(ctx context.Context, v []TableInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tables"] + t = t.(attr.TypeWithElementType).ElementType() o.Tables = types.ListValueMust(t, vs) } @@ -11223,6 +11261,7 @@ func (o *ListVolumesResponseContent) SetVolumes(ctx context.Context, v []VolumeI vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["volumes"] + t = t.(attr.TypeWithElementType).ElementType() o.Volumes = types.ListValueMust(t, vs) } @@ -11549,6 +11588,7 @@ func (o *ModelVersionInfo) SetAliases(ctx context.Context, v []RegisteredModelAl vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["aliases"] + t = t.(attr.TypeWithElementType).ElementType() o.Aliases = types.ListValueMust(t, vs) } @@ -11742,6 +11782,7 @@ func (o *MonitorDestination) SetEmailAddresses(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["email_addresses"] + t = t.(attr.TypeWithElementType).ElementType() o.EmailAddresses = types.ListValueMust(t, vs) } @@ -11851,6 +11892,7 @@ func (o *MonitorInferenceLog) SetGranularities(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["granularities"] + t = t.(attr.TypeWithElementType).ElementType() o.Granularities = types.ListValueMust(t, vs) } @@ -12024,6 +12066,7 @@ func (o *MonitorInfo) SetCustomMetrics(ctx context.Context, v []MonitorMetric) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_metrics"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomMetrics = types.ListValueMust(t, vs) } @@ -12153,6 +12196,7 @@ func (o *MonitorInfo) SetSlicingExprs(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["slicing_exprs"] + t = t.(attr.TypeWithElementType).ElementType() o.SlicingExprs = types.ListValueMust(t, vs) } @@ -12306,6 +12350,7 @@ func (o *MonitorMetric) SetInputColumns(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["input_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.InputColumns = types.ListValueMust(t, vs) } @@ -12548,6 +12593,7 @@ func (o *MonitorRefreshListResponse) SetRefreshes(ctx context.Context, v []Monit vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["refreshes"] + t = t.(attr.TypeWithElementType).ElementType() o.Refreshes = types.ListValueMust(t, vs) } @@ -12667,6 +12713,7 @@ func (o *MonitorTimeSeries) SetGranularities(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["granularities"] + t = t.(attr.TypeWithElementType).ElementType() o.Granularities = types.ListValueMust(t, vs) } @@ -12941,6 +12988,7 @@ func (o *OnlineTableSpec) SetPrimaryKeyColumns(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["primary_key_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.PrimaryKeyColumns = types.ListValueMust(t, vs) } @@ -13332,6 +13380,7 @@ func (o *PermissionsChange) SetAdd(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["add"] + t = t.(attr.TypeWithElementType).ElementType() o.Add = types.ListValueMust(t, vs) } @@ -13357,6 +13406,7 @@ func (o *PermissionsChange) SetRemove(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["remove"] + t = t.(attr.TypeWithElementType).ElementType() o.Remove = types.ListValueMust(t, vs) } @@ -13428,6 +13478,7 @@ func (o *PermissionsList) SetPrivilegeAssignments(ctx context.Context, v []Privi vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["privilege_assignments"] + t = t.(attr.TypeWithElementType).ElementType() o.PrivilegeAssignments = types.ListValueMust(t, vs) } @@ -13564,6 +13615,7 @@ func (o *PrimaryKeyConstraint) SetChildColumns(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["child_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.ChildColumns = types.ListValueMust(t, vs) } @@ -13639,6 +13691,7 @@ func (o *PrivilegeAssignment) SetPrivileges(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["privileges"] + t = t.(attr.TypeWithElementType).ElementType() o.Privileges = types.ListValueMust(t, vs) } @@ -14187,6 +14240,7 @@ func (o *RegisteredModelInfo) SetAliases(ctx context.Context, v []RegisteredMode vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["aliases"] + t = t.(attr.TypeWithElementType).ElementType() o.Aliases = types.ListValueMust(t, vs) } @@ -14401,6 +14455,7 @@ func (o *SchemaInfo) SetProperties(ctx context.Context, v map[string]types.Strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -14476,6 +14531,7 @@ func (o *SetArtifactAllowlist) SetArtifactMatchers(ctx context.Context, v []Arti vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["artifact_matchers"] + t = t.(attr.TypeWithElementType).ElementType() o.ArtifactMatchers = types.ListValueMust(t, vs) } @@ -15333,6 +15389,7 @@ func (o *TableInfo) SetColumns(ctx context.Context, v []ColumnInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["columns"] + t = t.(attr.TypeWithElementType).ElementType() o.Columns = types.ListValueMust(t, vs) } @@ -15436,6 +15493,7 @@ func (o *TableInfo) SetProperties(ctx context.Context, v map[string]types.String vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -15487,6 +15545,7 @@ func (o *TableInfo) SetTableConstraints(ctx context.Context, v []TableConstraint vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["table_constraints"] + t = t.(attr.TypeWithElementType).ElementType() o.TableConstraints = types.ListValueMust(t, vs) } @@ -15590,6 +15649,7 @@ func (o *TableRowFilter) SetInputColumnNames(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["input_column_names"] + t = t.(attr.TypeWithElementType).ElementType() o.InputColumnNames = types.ListValueMust(t, vs) } @@ -16050,6 +16110,7 @@ func (o *UpdateCatalog) SetProperties(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -16133,6 +16194,7 @@ func (o *UpdateConnection) SetOptions(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["options"] + t = t.(attr.TypeWithElementType).ElementType() o.Options = types.MapValueMust(t, vs) } @@ -16798,6 +16860,7 @@ func (o *UpdateMonitor) SetCustomMetrics(ctx context.Context, v []MonitorMetric) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_metrics"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomMetrics = types.ListValueMust(t, vs) } @@ -16927,6 +16990,7 @@ func (o *UpdateMonitor) SetSlicingExprs(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["slicing_exprs"] + t = t.(attr.TypeWithElementType).ElementType() o.SlicingExprs = types.ListValueMust(t, vs) } @@ -17058,6 +17122,7 @@ func (o *UpdatePermissions) SetChanges(ctx context.Context, v []PermissionsChang vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["changes"] + t = t.(attr.TypeWithElementType).ElementType() o.Changes = types.ListValueMust(t, vs) } @@ -17240,6 +17305,7 @@ func (o *UpdateSchema) SetProperties(ctx context.Context, v map[string]types.Str vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -17661,6 +17727,7 @@ func (o *UpdateWorkspaceBindings) SetAssignWorkspaces(ctx context.Context, v []t vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["assign_workspaces"] + t = t.(attr.TypeWithElementType).ElementType() o.AssignWorkspaces = types.ListValueMust(t, vs) } @@ -17686,6 +17753,7 @@ func (o *UpdateWorkspaceBindings) SetUnassignWorkspaces(ctx context.Context, v [ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["unassign_workspaces"] + t = t.(attr.TypeWithElementType).ElementType() o.UnassignWorkspaces = types.ListValueMust(t, vs) } @@ -17772,6 +17840,7 @@ func (o *UpdateWorkspaceBindingsParameters) SetAdd(ctx context.Context, v []Work vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["add"] + t = t.(attr.TypeWithElementType).ElementType() o.Add = types.ListValueMust(t, vs) } @@ -17797,6 +17866,7 @@ func (o *UpdateWorkspaceBindingsParameters) SetRemove(ctx context.Context, v []W vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["remove"] + t = t.(attr.TypeWithElementType).ElementType() o.Remove = types.ListValueMust(t, vs) } @@ -18003,6 +18073,7 @@ func (o *ValidateCredentialResponse) SetResults(ctx context.Context, v []Credent vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -18298,6 +18369,7 @@ func (o *ValidateStorageCredentialResponse) SetResults(ctx context.Context, v [] vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -18609,5 +18681,6 @@ func (o *WorkspaceBindingsResponse) SetBindings(ctx context.Context, v []Workspa vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["bindings"] + t = t.(attr.TypeWithElementType).ElementType() o.Bindings = types.ListValueMust(t, vs) } diff --git a/internal/service/compute_tf/model.go b/internal/service/compute_tf/model.go index 6f5c23288e..e359043ac7 100755 --- a/internal/service/compute_tf/model.go +++ b/internal/service/compute_tf/model.go @@ -783,6 +783,7 @@ func (o *CloudProviderNodeInfo) SetStatus(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["status"] + t = t.(attr.TypeWithElementType).ElementType() o.Status = types.ListValueMust(t, vs) } @@ -924,6 +925,7 @@ func (o *ClusterAccessControlResponse) SetAllPermissions(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -1277,6 +1279,7 @@ func (o *ClusterAttributes) SetCustomTags(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -1354,6 +1357,7 @@ func (o *ClusterAttributes) SetInitScripts(ctx context.Context, v []InitScriptIn vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["init_scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.InitScripts = types.ListValueMust(t, vs) } @@ -1379,6 +1383,7 @@ func (o *ClusterAttributes) SetSparkConf(ctx context.Context, v map[string]types vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_conf"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkConf = types.MapValueMust(t, vs) } @@ -1404,6 +1409,7 @@ func (o *ClusterAttributes) SetSparkEnvVars(ctx context.Context, v map[string]ty vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_env_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkEnvVars = types.MapValueMust(t, vs) } @@ -1429,6 +1435,7 @@ func (o *ClusterAttributes) SetSshPublicKeys(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ssh_public_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.SshPublicKeys = types.ListValueMust(t, vs) } @@ -1538,6 +1545,7 @@ func (o *ClusterCompliance) SetViolations(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["violations"] + t = t.(attr.TypeWithElementType).ElementType() o.Violations = types.MapValueMust(t, vs) } @@ -2089,6 +2097,7 @@ func (o *ClusterDetails) SetCustomTags(ctx context.Context, v map[string]types.S vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -2114,6 +2123,7 @@ func (o *ClusterDetails) SetDefaultTags(ctx context.Context, v map[string]types. vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["default_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.DefaultTags = types.MapValueMust(t, vs) } @@ -2191,6 +2201,7 @@ func (o *ClusterDetails) SetExecutors(ctx context.Context, v []SparkNode) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["executors"] + t = t.(attr.TypeWithElementType).ElementType() o.Executors = types.ListValueMust(t, vs) } @@ -2242,6 +2253,7 @@ func (o *ClusterDetails) SetInitScripts(ctx context.Context, v []InitScriptInfo) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["init_scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.InitScripts = types.ListValueMust(t, vs) } @@ -2267,6 +2279,7 @@ func (o *ClusterDetails) SetSparkConf(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_conf"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkConf = types.MapValueMust(t, vs) } @@ -2292,6 +2305,7 @@ func (o *ClusterDetails) SetSparkEnvVars(ctx context.Context, v map[string]types vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_env_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkEnvVars = types.MapValueMust(t, vs) } @@ -2343,6 +2357,7 @@ func (o *ClusterDetails) SetSshPublicKeys(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ssh_public_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.SshPublicKeys = types.ListValueMust(t, vs) } @@ -2589,6 +2604,7 @@ func (o *ClusterLibraryStatuses) SetLibraryStatuses(ctx context.Context, v []Lib vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["library_statuses"] + t = t.(attr.TypeWithElementType).ElementType() o.LibraryStatuses = types.ListValueMust(t, vs) } @@ -2777,6 +2793,7 @@ func (o *ClusterPermission) SetInheritedFromObject(ctx context.Context, v []type vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -2855,6 +2872,7 @@ func (o *ClusterPermissions) SetAccessControlList(ctx context.Context, v []Clust vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -2974,6 +2992,7 @@ func (o *ClusterPermissionsRequest) SetAccessControlList(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3115,6 +3134,7 @@ func (o *ClusterPolicyAccessControlResponse) SetAllPermissions(ctx context.Conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -3193,6 +3213,7 @@ func (o *ClusterPolicyPermission) SetInheritedFromObject(ctx context.Context, v vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -3271,6 +3292,7 @@ func (o *ClusterPolicyPermissions) SetAccessControlList(ctx context.Context, v [ vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3390,6 +3412,7 @@ func (o *ClusterPolicyPermissionsRequest) SetAccessControlList(ctx context.Conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3942,6 +3965,7 @@ func (o *ClusterSpec) SetCustomTags(ctx context.Context, v map[string]types.Stri vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -4019,6 +4043,7 @@ func (o *ClusterSpec) SetInitScripts(ctx context.Context, v []InitScriptInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["init_scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.InitScripts = types.ListValueMust(t, vs) } @@ -4044,6 +4069,7 @@ func (o *ClusterSpec) SetSparkConf(ctx context.Context, v map[string]types.Strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_conf"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkConf = types.MapValueMust(t, vs) } @@ -4069,6 +4095,7 @@ func (o *ClusterSpec) SetSparkEnvVars(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_env_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkEnvVars = types.MapValueMust(t, vs) } @@ -4094,6 +4121,7 @@ func (o *ClusterSpec) SetSshPublicKeys(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ssh_public_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.SshPublicKeys = types.ListValueMust(t, vs) } @@ -4878,6 +4906,7 @@ func (o *CreateCluster) SetCustomTags(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -4955,6 +4984,7 @@ func (o *CreateCluster) SetInitScripts(ctx context.Context, v []InitScriptInfo) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["init_scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.InitScripts = types.ListValueMust(t, vs) } @@ -4980,6 +5010,7 @@ func (o *CreateCluster) SetSparkConf(ctx context.Context, v map[string]types.Str vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_conf"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkConf = types.MapValueMust(t, vs) } @@ -5005,6 +5036,7 @@ func (o *CreateCluster) SetSparkEnvVars(ctx context.Context, v map[string]types. vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_env_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkEnvVars = types.MapValueMust(t, vs) } @@ -5030,6 +5062,7 @@ func (o *CreateCluster) SetSshPublicKeys(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ssh_public_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.SshPublicKeys = types.ListValueMust(t, vs) } @@ -5360,6 +5393,7 @@ func (o *CreateInstancePool) SetCustomTags(ctx context.Context, v map[string]typ vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -5437,6 +5471,7 @@ func (o *CreateInstancePool) SetPreloadedDockerImages(ctx context.Context, v []D vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["preloaded_docker_images"] + t = t.(attr.TypeWithElementType).ElementType() o.PreloadedDockerImages = types.ListValueMust(t, vs) } @@ -5462,6 +5497,7 @@ func (o *CreateInstancePool) SetPreloadedSparkVersions(ctx context.Context, v [] vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["preloaded_spark_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.PreloadedSparkVersions = types.ListValueMust(t, vs) } @@ -5618,6 +5654,7 @@ func (o *CreatePolicy) SetLibraries(ctx context.Context, v []Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -6920,6 +6957,7 @@ func (o *EditCluster) SetCustomTags(ctx context.Context, v map[string]types.Stri vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -6997,6 +7035,7 @@ func (o *EditCluster) SetInitScripts(ctx context.Context, v []InitScriptInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["init_scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.InitScripts = types.ListValueMust(t, vs) } @@ -7022,6 +7061,7 @@ func (o *EditCluster) SetSparkConf(ctx context.Context, v map[string]types.Strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_conf"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkConf = types.MapValueMust(t, vs) } @@ -7047,6 +7087,7 @@ func (o *EditCluster) SetSparkEnvVars(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_env_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkEnvVars = types.MapValueMust(t, vs) } @@ -7072,6 +7113,7 @@ func (o *EditCluster) SetSshPublicKeys(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ssh_public_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.SshPublicKeys = types.ListValueMust(t, vs) } @@ -7246,6 +7288,7 @@ func (o *EditInstancePool) SetCustomTags(ctx context.Context, v map[string]types vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -7400,6 +7443,7 @@ func (o *EditPolicy) SetLibraries(ctx context.Context, v []Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -7596,6 +7640,7 @@ func (o *EnforceClusterComplianceResponse) SetChanges(ctx context.Context, v []C vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["changes"] + t = t.(attr.TypeWithElementType).ElementType() o.Changes = types.ListValueMust(t, vs) } @@ -7682,6 +7727,7 @@ func (o *Environment) SetDependencies(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dependencies"] + t = t.(attr.TypeWithElementType).ElementType() o.Dependencies = types.ListValueMust(t, vs) } @@ -8229,6 +8275,7 @@ func (o *GetClusterComplianceResponse) SetViolations(ctx context.Context, v map[ vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["violations"] + t = t.(attr.TypeWithElementType).ElementType() o.Violations = types.MapValueMust(t, vs) } @@ -8343,6 +8390,7 @@ func (o *GetClusterPermissionLevelsResponse) SetPermissionLevels(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -8500,6 +8548,7 @@ func (o *GetClusterPolicyPermissionLevelsResponse) SetPermissionLevels(ctx conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -8730,6 +8779,7 @@ func (o *GetEvents) SetEventTypes(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["event_types"] + t = t.(attr.TypeWithElementType).ElementType() o.EventTypes = types.ListValueMust(t, vs) } @@ -8814,6 +8864,7 @@ func (o *GetEventsResponse) SetEvents(ctx context.Context, v []ClusterEvent) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["events"] + t = t.(attr.TypeWithElementType).ElementType() o.Events = types.ListValueMust(t, vs) } @@ -9138,6 +9189,7 @@ func (o *GetInstancePool) SetCustomTags(ctx context.Context, v map[string]types. vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -9163,6 +9215,7 @@ func (o *GetInstancePool) SetDefaultTags(ctx context.Context, v map[string]types vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["default_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.DefaultTags = types.MapValueMust(t, vs) } @@ -9240,6 +9293,7 @@ func (o *GetInstancePool) SetPreloadedDockerImages(ctx context.Context, v []Dock vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["preloaded_docker_images"] + t = t.(attr.TypeWithElementType).ElementType() o.PreloadedDockerImages = types.ListValueMust(t, vs) } @@ -9265,6 +9319,7 @@ func (o *GetInstancePool) SetPreloadedSparkVersions(ctx context.Context, v []typ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["preloaded_spark_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.PreloadedSparkVersions = types.ListValueMust(t, vs) } @@ -9431,6 +9486,7 @@ func (o *GetInstancePoolPermissionLevelsResponse) SetPermissionLevels(ctx contex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -9636,6 +9692,7 @@ func (o *GetSparkVersionsResponse) SetVersions(ctx context.Context, v []SparkVer vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["versions"] + t = t.(attr.TypeWithElementType).ElementType() o.Versions = types.ListValueMust(t, vs) } @@ -10001,6 +10058,7 @@ func (o *InitScriptEventDetails) SetCluster(ctx context.Context, v []InitScriptI vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["cluster"] + t = t.(attr.TypeWithElementType).ElementType() o.Cluster = types.ListValueMust(t, vs) } @@ -10026,6 +10084,7 @@ func (o *InitScriptEventDetails) SetGlobal(ctx context.Context, v []InitScriptIn vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["global"] + t = t.(attr.TypeWithElementType).ElementType() o.Global = types.ListValueMust(t, vs) } @@ -10537,6 +10596,7 @@ func (o *InstallLibraries) SetLibraries(ctx context.Context, v []Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -10714,6 +10774,7 @@ func (o *InstancePoolAccessControlResponse) SetAllPermissions(ctx context.Contex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -10969,6 +11030,7 @@ func (o *InstancePoolAndStats) SetCustomTags(ctx context.Context, v map[string]t vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -10994,6 +11056,7 @@ func (o *InstancePoolAndStats) SetDefaultTags(ctx context.Context, v map[string] vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["default_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.DefaultTags = types.MapValueMust(t, vs) } @@ -11071,6 +11134,7 @@ func (o *InstancePoolAndStats) SetPreloadedDockerImages(ctx context.Context, v [ vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["preloaded_docker_images"] + t = t.(attr.TypeWithElementType).ElementType() o.PreloadedDockerImages = types.ListValueMust(t, vs) } @@ -11096,6 +11160,7 @@ func (o *InstancePoolAndStats) SetPreloadedSparkVersions(ctx context.Context, v vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["preloaded_spark_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.PreloadedSparkVersions = types.ListValueMust(t, vs) } @@ -11421,6 +11486,7 @@ func (o *InstancePoolPermission) SetInheritedFromObject(ctx context.Context, v [ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -11499,6 +11565,7 @@ func (o *InstancePoolPermissions) SetAccessControlList(ctx context.Context, v [] vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -11618,6 +11685,7 @@ func (o *InstancePoolPermissionsRequest) SetAccessControlList(ctx context.Contex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -11746,6 +11814,7 @@ func (o *InstancePoolStatus) SetPendingInstanceErrors(ctx context.Context, v []P vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["pending_instance_errors"] + t = t.(attr.TypeWithElementType).ElementType() o.PendingInstanceErrors = types.ListValueMust(t, vs) } @@ -12096,6 +12165,7 @@ func (o *LibraryFullStatus) SetMessages(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["messages"] + t = t.(attr.TypeWithElementType).ElementType() o.Messages = types.ListValueMust(t, vs) } @@ -12167,6 +12237,7 @@ func (o *ListAllClusterLibraryStatusesResponse) SetStatuses(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["statuses"] + t = t.(attr.TypeWithElementType).ElementType() o.Statuses = types.ListValueMust(t, vs) } @@ -12243,6 +12314,7 @@ func (o *ListAvailableZonesResponse) SetZones(ctx context.Context, v []types.Str vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["zones"] + t = t.(attr.TypeWithElementType).ElementType() o.Zones = types.ListValueMust(t, vs) } @@ -12379,6 +12451,7 @@ func (o *ListClusterCompliancesResponse) SetClusters(ctx context.Context, v []Cl vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["clusters"] + t = t.(attr.TypeWithElementType).ElementType() o.Clusters = types.ListValueMust(t, vs) } @@ -12515,6 +12588,7 @@ func (o *ListClustersFilterBy) SetClusterSources(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["cluster_sources"] + t = t.(attr.TypeWithElementType).ElementType() o.ClusterSources = types.ListValueMust(t, vs) } @@ -12540,6 +12614,7 @@ func (o *ListClustersFilterBy) SetClusterStates(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["cluster_states"] + t = t.(attr.TypeWithElementType).ElementType() o.ClusterStates = types.ListValueMust(t, vs) } @@ -12739,6 +12814,7 @@ func (o *ListClustersResponse) SetClusters(ctx context.Context, v []ClusterDetai vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["clusters"] + t = t.(attr.TypeWithElementType).ElementType() o.Clusters = types.ListValueMust(t, vs) } @@ -12857,6 +12933,7 @@ func (o *ListGlobalInitScriptsResponse) SetScripts(ctx context.Context, v []Glob vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.Scripts = types.ListValueMust(t, vs) } @@ -12927,6 +13004,7 @@ func (o *ListInstancePools) SetInstancePools(ctx context.Context, v []InstancePo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["instance_pools"] + t = t.(attr.TypeWithElementType).ElementType() o.InstancePools = types.ListValueMust(t, vs) } @@ -12998,6 +13076,7 @@ func (o *ListInstanceProfilesResponse) SetInstanceProfiles(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["instance_profiles"] + t = t.(attr.TypeWithElementType).ElementType() o.InstanceProfiles = types.ListValueMust(t, vs) } @@ -13069,6 +13148,7 @@ func (o *ListNodeTypesResponse) SetNodeTypes(ctx context.Context, v []NodeType) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["node_types"] + t = t.(attr.TypeWithElementType).ElementType() o.NodeTypes = types.ListValueMust(t, vs) } @@ -13140,6 +13220,7 @@ func (o *ListPoliciesResponse) SetPolicies(ctx context.Context, v []Policy) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["policies"] + t = t.(attr.TypeWithElementType).ElementType() o.Policies = types.ListValueMust(t, vs) } @@ -13263,6 +13344,7 @@ func (o *ListPolicyFamiliesResponse) SetPolicyFamilies(ctx context.Context, v [] vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["policy_families"] + t = t.(attr.TypeWithElementType).ElementType() o.PolicyFamilies = types.ListValueMust(t, vs) } @@ -13483,6 +13565,7 @@ func (o *MavenLibrary) SetExclusions(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["exclusions"] + t = t.(attr.TypeWithElementType).ElementType() o.Exclusions = types.ListValueMust(t, vs) } @@ -14062,6 +14145,7 @@ func (o *Policy) SetLibraries(ctx context.Context, v []Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -14615,6 +14699,7 @@ func (o *Results) SetFileNames(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["fileNames"] + t = t.(attr.TypeWithElementType).ElementType() o.FileNames = types.ListValueMust(t, vs) } @@ -14640,6 +14725,7 @@ func (o *Results) SetSchema(ctx context.Context, v []types.Object) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schema"] + t = t.(attr.TypeWithElementType).ElementType() o.Schema = types.ListValueMust(t, vs) } @@ -15079,6 +15165,7 @@ func (o *TerminationReason) SetParameters(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.MapValueMust(t, vs) } @@ -15154,6 +15241,7 @@ func (o *UninstallLibraries) SetLibraries(ctx context.Context, v []Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -15753,6 +15841,7 @@ func (o *UpdateClusterResource) SetCustomTags(ctx context.Context, v map[string] vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -15830,6 +15919,7 @@ func (o *UpdateClusterResource) SetInitScripts(ctx context.Context, v []InitScri vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["init_scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.InitScripts = types.ListValueMust(t, vs) } @@ -15855,6 +15945,7 @@ func (o *UpdateClusterResource) SetSparkConf(ctx context.Context, v map[string]t vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_conf"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkConf = types.MapValueMust(t, vs) } @@ -15880,6 +15971,7 @@ func (o *UpdateClusterResource) SetSparkEnvVars(ctx context.Context, v map[strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_env_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkEnvVars = types.MapValueMust(t, vs) } @@ -15905,6 +15997,7 @@ func (o *UpdateClusterResource) SetSshPublicKeys(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ssh_public_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.SshPublicKeys = types.ListValueMust(t, vs) } diff --git a/internal/service/dashboards_tf/model.go b/internal/service/dashboards_tf/model.go index 468fd2142e..31f23a96b8 100755 --- a/internal/service/dashboards_tf/model.go +++ b/internal/service/dashboards_tf/model.go @@ -1148,6 +1148,7 @@ func (o *GenieMessage) SetAttachments(ctx context.Context, v []GenieAttachment) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["attachments"] + t = t.(attr.TypeWithElementType).ElementType() o.Attachments = types.ListValueMust(t, vs) } @@ -1675,6 +1676,7 @@ func (o *ListDashboardsResponse) SetDashboards(ctx context.Context, v []Dashboar vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dashboards"] + t = t.(attr.TypeWithElementType).ElementType() o.Dashboards = types.ListValueMust(t, vs) } @@ -1804,6 +1806,7 @@ func (o *ListSchedulesResponse) SetSchedules(ctx context.Context, v []Schedule) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schedules"] + t = t.(attr.TypeWithElementType).ElementType() o.Schedules = types.ListValueMust(t, vs) } @@ -1937,6 +1940,7 @@ func (o *ListSubscriptionsResponse) SetSubscriptions(ctx context.Context, v []Su vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["subscriptions"] + t = t.(attr.TypeWithElementType).ElementType() o.Subscriptions = types.ListValueMust(t, vs) } diff --git a/internal/service/files_tf/model.go b/internal/service/files_tf/model.go index 2a7f69d1aa..fc3cc33e65 100755 --- a/internal/service/files_tf/model.go +++ b/internal/service/files_tf/model.go @@ -1162,6 +1162,7 @@ func (o *ListDirectoryResponse) SetContents(ctx context.Context, v []DirectoryEn vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["contents"] + t = t.(attr.TypeWithElementType).ElementType() o.Contents = types.ListValueMust(t, vs) } @@ -1234,6 +1235,7 @@ func (o *ListStatusResponse) SetFiles(ctx context.Context, v []FileInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["files"] + t = t.(attr.TypeWithElementType).ElementType() o.Files = types.ListValueMust(t, vs) } diff --git a/internal/service/iam_tf/model.go b/internal/service/iam_tf/model.go index a199c3cbc9..6482e55d67 100755 --- a/internal/service/iam_tf/model.go +++ b/internal/service/iam_tf/model.go @@ -158,6 +158,7 @@ func (o *AccessControlResponse) SetAllPermissions(ctx context.Context, v []Permi vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -869,6 +870,7 @@ func (o *GetAssignableRolesForResourceResponse) SetRoles(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["roles"] + t = t.(attr.TypeWithElementType).ElementType() o.Roles = types.ListValueMust(t, vs) } @@ -983,6 +985,7 @@ func (o *GetPasswordPermissionLevelsResponse) SetPermissionLevels(ctx context.Co vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -1101,6 +1104,7 @@ func (o *GetPermissionLevelsResponse) SetPermissionLevels(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -1445,6 +1449,7 @@ func (o *GrantRule) SetPrincipals(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["principals"] + t = t.(attr.TypeWithElementType).ElementType() o.Principals = types.ListValueMust(t, vs) } @@ -1566,6 +1571,7 @@ func (o *Group) SetEntitlements(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["entitlements"] + t = t.(attr.TypeWithElementType).ElementType() o.Entitlements = types.ListValueMust(t, vs) } @@ -1591,6 +1597,7 @@ func (o *Group) SetGroups(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["groups"] + t = t.(attr.TypeWithElementType).ElementType() o.Groups = types.ListValueMust(t, vs) } @@ -1616,6 +1623,7 @@ func (o *Group) SetMembers(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["members"] + t = t.(attr.TypeWithElementType).ElementType() o.Members = types.ListValueMust(t, vs) } @@ -1667,6 +1675,7 @@ func (o *Group) SetRoles(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["roles"] + t = t.(attr.TypeWithElementType).ElementType() o.Roles = types.ListValueMust(t, vs) } @@ -1692,6 +1701,7 @@ func (o *Group) SetSchemas(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -2076,6 +2086,7 @@ func (o *ListGroupsResponse) SetResources(ctx context.Context, v []Group) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["Resources"] + t = t.(attr.TypeWithElementType).ElementType() o.Resources = types.ListValueMust(t, vs) } @@ -2101,6 +2112,7 @@ func (o *ListGroupsResponse) SetSchemas(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -2192,6 +2204,7 @@ func (o *ListServicePrincipalResponse) SetResources(ctx context.Context, v []Ser vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["Resources"] + t = t.(attr.TypeWithElementType).ElementType() o.Resources = types.ListValueMust(t, vs) } @@ -2217,6 +2230,7 @@ func (o *ListServicePrincipalResponse) SetSchemas(ctx context.Context, v []types vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -2455,6 +2469,7 @@ func (o *ListUsersResponse) SetResources(ctx context.Context, v []User) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["Resources"] + t = t.(attr.TypeWithElementType).ElementType() o.Resources = types.ListValueMust(t, vs) } @@ -2480,6 +2495,7 @@ func (o *ListUsersResponse) SetSchemas(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -2744,6 +2760,7 @@ func (o *ObjectPermissions) SetAccessControlList(ctx context.Context, v []Access vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -2827,6 +2844,7 @@ func (o *PartialUpdate) SetOperations(ctx context.Context, v []Patch) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["Operations"] + t = t.(attr.TypeWithElementType).ElementType() o.Operations = types.ListValueMust(t, vs) } @@ -2852,6 +2870,7 @@ func (o *PartialUpdate) SetSchemas(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -2993,6 +3012,7 @@ func (o *PasswordAccessControlResponse) SetAllPermissions(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -3071,6 +3091,7 @@ func (o *PasswordPermission) SetInheritedFromObject(ctx context.Context, v []typ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -3149,6 +3170,7 @@ func (o *PasswordPermissions) SetAccessControlList(ctx context.Context, v []Pass vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3264,6 +3286,7 @@ func (o *PasswordPermissionsRequest) SetAccessControlList(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3428,6 +3451,7 @@ func (o *Permission) SetInheritedFromObject(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -3512,6 +3536,7 @@ func (o *PermissionAssignment) SetPermissions(ctx context.Context, v []types.Str vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.Permissions = types.ListValueMust(t, vs) } @@ -3609,6 +3634,7 @@ func (o *PermissionAssignments) SetPermissionAssignments(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_assignments"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionAssignments = types.ListValueMust(t, vs) } @@ -3782,6 +3808,7 @@ func (o *PermissionsRequest) SetAccessControlList(ctx context.Context, v []Acces vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -4006,6 +4033,7 @@ func (o *RuleSetResponse) SetGrantRules(ctx context.Context, v []GrantRule) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["grant_rules"] + t = t.(attr.TypeWithElementType).ElementType() o.GrantRules = types.ListValueMust(t, vs) } @@ -4087,6 +4115,7 @@ func (o *RuleSetUpdateRequest) SetGrantRules(ctx context.Context, v []GrantRule) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["grant_rules"] + t = t.(attr.TypeWithElementType).ElementType() o.GrantRules = types.ListValueMust(t, vs) } @@ -4202,6 +4231,7 @@ func (o *ServicePrincipal) SetEntitlements(ctx context.Context, v []ComplexValue vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["entitlements"] + t = t.(attr.TypeWithElementType).ElementType() o.Entitlements = types.ListValueMust(t, vs) } @@ -4227,6 +4257,7 @@ func (o *ServicePrincipal) SetGroups(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["groups"] + t = t.(attr.TypeWithElementType).ElementType() o.Groups = types.ListValueMust(t, vs) } @@ -4252,6 +4283,7 @@ func (o *ServicePrincipal) SetRoles(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["roles"] + t = t.(attr.TypeWithElementType).ElementType() o.Roles = types.ListValueMust(t, vs) } @@ -4277,6 +4309,7 @@ func (o *ServicePrincipal) SetSchemas(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -4473,6 +4506,7 @@ func (o *UpdateWorkspaceAssignments) SetPermissions(ctx context.Context, v []typ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.Permissions = types.ListValueMust(t, vs) } @@ -4608,6 +4642,7 @@ func (o *User) SetEmails(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["emails"] + t = t.(attr.TypeWithElementType).ElementType() o.Emails = types.ListValueMust(t, vs) } @@ -4633,6 +4668,7 @@ func (o *User) SetEntitlements(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["entitlements"] + t = t.(attr.TypeWithElementType).ElementType() o.Entitlements = types.ListValueMust(t, vs) } @@ -4658,6 +4694,7 @@ func (o *User) SetGroups(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["groups"] + t = t.(attr.TypeWithElementType).ElementType() o.Groups = types.ListValueMust(t, vs) } @@ -4709,6 +4746,7 @@ func (o *User) SetRoles(ctx context.Context, v []ComplexValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["roles"] + t = t.(attr.TypeWithElementType).ElementType() o.Roles = types.ListValueMust(t, vs) } @@ -4734,6 +4772,7 @@ func (o *User) SetSchemas(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["schemas"] + t = t.(attr.TypeWithElementType).ElementType() o.Schemas = types.ListValueMust(t, vs) } @@ -4805,5 +4844,6 @@ func (o *WorkspacePermissions) SetPermissions(ctx context.Context, v []Permissio vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.Permissions = types.ListValueMust(t, vs) } diff --git a/internal/service/jobs_tf/model.go b/internal/service/jobs_tf/model.go index a9450fe5c9..50c0f92f42 100755 --- a/internal/service/jobs_tf/model.go +++ b/internal/service/jobs_tf/model.go @@ -481,6 +481,7 @@ func (o *BaseRun) SetJobClusters(ctx context.Context, v []JobCluster) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_clusters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobClusters = types.ListValueMust(t, vs) } @@ -506,6 +507,7 @@ func (o *BaseRun) SetJobParameters(ctx context.Context, v []JobParameter) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobParameters = types.ListValueMust(t, vs) } @@ -557,6 +559,7 @@ func (o *BaseRun) SetRepairHistory(ctx context.Context, v []RepairHistoryItem) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["repair_history"] + t = t.(attr.TypeWithElementType).ElementType() o.RepairHistory = types.ListValueMust(t, vs) } @@ -660,6 +663,7 @@ func (o *BaseRun) SetTasks(ctx context.Context, v []RunTask) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tasks"] + t = t.(attr.TypeWithElementType).ElementType() o.Tasks = types.ListValueMust(t, vs) } @@ -999,6 +1003,7 @@ func (o *ClusterSpec) SetLibraries(ctx context.Context, v []compute_tf.Library) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["library"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -1395,6 +1400,7 @@ func (o *CreateJob) SetAccessControlList(ctx context.Context, v []JobAccessContr vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -1498,6 +1504,7 @@ func (o *CreateJob) SetEnvironments(ctx context.Context, v []JobEnvironment) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["environment"] + t = t.(attr.TypeWithElementType).ElementType() o.Environments = types.ListValueMust(t, vs) } @@ -1575,6 +1582,7 @@ func (o *CreateJob) SetJobClusters(ctx context.Context, v []JobCluster) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_cluster"] + t = t.(attr.TypeWithElementType).ElementType() o.JobClusters = types.ListValueMust(t, vs) } @@ -1626,6 +1634,7 @@ func (o *CreateJob) SetParameters(ctx context.Context, v []JobParameterDefinitio vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameter"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -1729,6 +1738,7 @@ func (o *CreateJob) SetTags(ctx context.Context, v map[string]types.String) { vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.MapValueMust(t, vs) } @@ -1754,6 +1764,7 @@ func (o *CreateJob) SetTasks(ctx context.Context, v []Task) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["task"] + t = t.(attr.TypeWithElementType).ElementType() o.Tasks = types.ListValueMust(t, vs) } @@ -1983,6 +1994,7 @@ func (o *DbtOutput) SetArtifactsHeaders(ctx context.Context, v map[string]types. vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["artifacts_headers"] + t = t.(attr.TypeWithElementType).ElementType() o.ArtifactsHeaders = types.MapValueMust(t, vs) } @@ -2098,6 +2110,7 @@ func (o *DbtTask) SetCommands(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["commands"] + t = t.(attr.TypeWithElementType).ElementType() o.Commands = types.ListValueMust(t, vs) } @@ -2450,6 +2463,7 @@ func (o *EnforcePolicyComplianceResponse) SetJobClusterChanges(ctx context.Conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_cluster_changes"] + t = t.(attr.TypeWithElementType).ElementType() o.JobClusterChanges = types.ListValueMust(t, vs) } @@ -2552,6 +2566,7 @@ func (o *ExportRunOutput) SetViews(ctx context.Context, v []ViewItem) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["views"] + t = t.(attr.TypeWithElementType).ElementType() o.Views = types.ListValueMust(t, vs) } @@ -2733,6 +2748,7 @@ func (o *ForEachStats) SetErrorMessageStats(ctx context.Context, v []ForEachTask vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["error_message_stats"] + t = t.(attr.TypeWithElementType).ElementType() o.ErrorMessageStats = types.ListValueMust(t, vs) } @@ -3070,6 +3086,7 @@ func (o *GetJobPermissionLevelsResponse) SetPermissionLevels(ctx context.Context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -3282,6 +3299,7 @@ func (o *GetPolicyComplianceResponse) SetViolations(ctx context.Context, v map[s vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["violations"] + t = t.(attr.TypeWithElementType).ElementType() o.Violations = types.MapValueMust(t, vs) } @@ -3817,6 +3835,7 @@ func (o *JobAccessControlResponse) SetAllPermissions(ctx context.Context, v []Jo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -3978,6 +3997,7 @@ func (o *JobCompliance) SetViolations(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["violations"] + t = t.(attr.TypeWithElementType).ElementType() o.Violations = types.MapValueMust(t, vs) } @@ -4150,6 +4170,7 @@ func (o *JobEmailNotifications) SetOnDurationWarningThresholdExceeded(ctx contex vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_duration_warning_threshold_exceeded"] + t = t.(attr.TypeWithElementType).ElementType() o.OnDurationWarningThresholdExceeded = types.ListValueMust(t, vs) } @@ -4175,6 +4196,7 @@ func (o *JobEmailNotifications) SetOnFailure(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_failure"] + t = t.(attr.TypeWithElementType).ElementType() o.OnFailure = types.ListValueMust(t, vs) } @@ -4200,6 +4222,7 @@ func (o *JobEmailNotifications) SetOnStart(ctx context.Context, v []types.String vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_start"] + t = t.(attr.TypeWithElementType).ElementType() o.OnStart = types.ListValueMust(t, vs) } @@ -4225,6 +4248,7 @@ func (o *JobEmailNotifications) SetOnStreamingBacklogExceeded(ctx context.Contex vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_streaming_backlog_exceeded"] + t = t.(attr.TypeWithElementType).ElementType() o.OnStreamingBacklogExceeded = types.ListValueMust(t, vs) } @@ -4250,6 +4274,7 @@ func (o *JobEmailNotifications) SetOnSuccess(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_success"] + t = t.(attr.TypeWithElementType).ElementType() o.OnSuccess = types.ListValueMust(t, vs) } @@ -4551,6 +4576,7 @@ func (o *JobPermission) SetInheritedFromObject(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -4629,6 +4655,7 @@ func (o *JobPermissions) SetAccessControlList(ctx context.Context, v []JobAccess vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -4748,6 +4775,7 @@ func (o *JobPermissionsRequest) SetAccessControlList(ctx context.Context, v []Jo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -5139,6 +5167,7 @@ func (o *JobSettings) SetEnvironments(ctx context.Context, v []JobEnvironment) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["environment"] + t = t.(attr.TypeWithElementType).ElementType() o.Environments = types.ListValueMust(t, vs) } @@ -5216,6 +5245,7 @@ func (o *JobSettings) SetJobClusters(ctx context.Context, v []JobCluster) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_cluster"] + t = t.(attr.TypeWithElementType).ElementType() o.JobClusters = types.ListValueMust(t, vs) } @@ -5267,6 +5297,7 @@ func (o *JobSettings) SetParameters(ctx context.Context, v []JobParameterDefinit vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameter"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -5370,6 +5401,7 @@ func (o *JobSettings) SetTags(ctx context.Context, v map[string]types.String) { vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.MapValueMust(t, vs) } @@ -5395,6 +5427,7 @@ func (o *JobSettings) SetTasks(ctx context.Context, v []Task) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["task"] + t = t.(attr.TypeWithElementType).ElementType() o.Tasks = types.ListValueMust(t, vs) } @@ -5641,6 +5674,7 @@ func (o *JobsHealthRules) SetRules(ctx context.Context, v []JobsHealthRule) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rules"] + t = t.(attr.TypeWithElementType).ElementType() o.Rules = types.ListValueMust(t, vs) } @@ -5724,6 +5758,7 @@ func (o *ListJobComplianceForPolicyResponse) SetJobs(ctx context.Context, v []Jo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["jobs"] + t = t.(attr.TypeWithElementType).ElementType() o.Jobs = types.ListValueMust(t, vs) } @@ -5928,6 +5963,7 @@ func (o *ListJobsResponse) SetJobs(ctx context.Context, v []BaseJob) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["jobs"] + t = t.(attr.TypeWithElementType).ElementType() o.Jobs = types.ListValueMust(t, vs) } @@ -6110,6 +6146,7 @@ func (o *ListRunsResponse) SetRuns(ctx context.Context, v []BaseRun) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["runs"] + t = t.(attr.TypeWithElementType).ElementType() o.Runs = types.ListValueMust(t, vs) } @@ -6274,6 +6311,7 @@ func (o *NotebookTask) SetBaseParameters(ctx context.Context, v map[string]types vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["base_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.BaseParameters = types.MapValueMust(t, vs) } @@ -6499,6 +6537,7 @@ func (o *PythonWheelTask) SetNamedParameters(ctx context.Context, v map[string]t vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["named_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.NamedParameters = types.MapValueMust(t, vs) } @@ -6524,6 +6563,7 @@ func (o *PythonWheelTask) SetParameters(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -6774,6 +6814,7 @@ func (o *RepairHistoryItem) SetTaskRunIds(ctx context.Context, v []types.Int64) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["task_run_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.TaskRunIds = types.ListValueMust(t, vs) } @@ -6996,6 +7037,7 @@ func (o *RepairRun) SetDbtCommands(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dbt_commands"] + t = t.(attr.TypeWithElementType).ElementType() o.DbtCommands = types.ListValueMust(t, vs) } @@ -7021,6 +7063,7 @@ func (o *RepairRun) SetJarParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["jar_params"] + t = t.(attr.TypeWithElementType).ElementType() o.JarParams = types.ListValueMust(t, vs) } @@ -7046,6 +7089,7 @@ func (o *RepairRun) SetJobParameters(ctx context.Context, v map[string]types.Str vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobParameters = types.MapValueMust(t, vs) } @@ -7071,6 +7115,7 @@ func (o *RepairRun) SetNotebookParams(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["notebook_params"] + t = t.(attr.TypeWithElementType).ElementType() o.NotebookParams = types.MapValueMust(t, vs) } @@ -7122,6 +7167,7 @@ func (o *RepairRun) SetPythonNamedParams(ctx context.Context, v map[string]types vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_named_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonNamedParams = types.MapValueMust(t, vs) } @@ -7147,6 +7193,7 @@ func (o *RepairRun) SetPythonParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonParams = types.ListValueMust(t, vs) } @@ -7172,6 +7219,7 @@ func (o *RepairRun) SetRerunTasks(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rerun_tasks"] + t = t.(attr.TypeWithElementType).ElementType() o.RerunTasks = types.ListValueMust(t, vs) } @@ -7197,6 +7245,7 @@ func (o *RepairRun) SetSparkSubmitParams(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_submit_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkSubmitParams = types.ListValueMust(t, vs) } @@ -7222,6 +7271,7 @@ func (o *RepairRun) SetSqlParams(ctx context.Context, v map[string]types.String) vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["sql_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SqlParams = types.MapValueMust(t, vs) } @@ -7497,6 +7547,7 @@ func (o *ResolvedDbtTaskValues) SetCommands(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["commands"] + t = t.(attr.TypeWithElementType).ElementType() o.Commands = types.ListValueMust(t, vs) } @@ -7567,6 +7618,7 @@ func (o *ResolvedNotebookTaskValues) SetBaseParameters(ctx context.Context, v ma vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["base_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.BaseParameters = types.MapValueMust(t, vs) } @@ -7637,6 +7689,7 @@ func (o *ResolvedParamPairValues) SetParameters(ctx context.Context, v map[strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.MapValueMust(t, vs) } @@ -7714,6 +7767,7 @@ func (o *ResolvedPythonWheelTaskValues) SetNamedParameters(ctx context.Context, vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["named_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.NamedParameters = types.MapValueMust(t, vs) } @@ -7739,6 +7793,7 @@ func (o *ResolvedPythonWheelTaskValues) SetParameters(ctx context.Context, v []t vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -7816,6 +7871,7 @@ func (o *ResolvedRunJobTaskValues) SetJobParameters(ctx context.Context, v map[s vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobParameters = types.MapValueMust(t, vs) } @@ -7841,6 +7897,7 @@ func (o *ResolvedRunJobTaskValues) SetParameters(ctx context.Context, v map[stri vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.MapValueMust(t, vs) } @@ -7911,6 +7968,7 @@ func (o *ResolvedStringParamsValues) SetParameters(ctx context.Context, v []type vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -8659,6 +8717,7 @@ func (o *Run) SetIterations(ctx context.Context, v []RunTask) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["iterations"] + t = t.(attr.TypeWithElementType).ElementType() o.Iterations = types.ListValueMust(t, vs) } @@ -8684,6 +8743,7 @@ func (o *Run) SetJobClusters(ctx context.Context, v []JobCluster) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_clusters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobClusters = types.ListValueMust(t, vs) } @@ -8709,6 +8769,7 @@ func (o *Run) SetJobParameters(ctx context.Context, v []JobParameter) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobParameters = types.ListValueMust(t, vs) } @@ -8760,6 +8821,7 @@ func (o *Run) SetRepairHistory(ctx context.Context, v []RepairHistoryItem) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["repair_history"] + t = t.(attr.TypeWithElementType).ElementType() o.RepairHistory = types.ListValueMust(t, vs) } @@ -8863,6 +8925,7 @@ func (o *Run) SetTasks(ctx context.Context, v []RunTask) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tasks"] + t = t.(attr.TypeWithElementType).ElementType() o.Tasks = types.ListValueMust(t, vs) } @@ -9311,6 +9374,7 @@ func (o *RunJobTask) SetDbtCommands(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dbt_commands"] + t = t.(attr.TypeWithElementType).ElementType() o.DbtCommands = types.ListValueMust(t, vs) } @@ -9336,6 +9400,7 @@ func (o *RunJobTask) SetJarParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["jar_params"] + t = t.(attr.TypeWithElementType).ElementType() o.JarParams = types.ListValueMust(t, vs) } @@ -9361,6 +9426,7 @@ func (o *RunJobTask) SetJobParameters(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobParameters = types.MapValueMust(t, vs) } @@ -9386,6 +9452,7 @@ func (o *RunJobTask) SetNotebookParams(ctx context.Context, v map[string]types.S vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["notebook_params"] + t = t.(attr.TypeWithElementType).ElementType() o.NotebookParams = types.MapValueMust(t, vs) } @@ -9437,6 +9504,7 @@ func (o *RunJobTask) SetPythonNamedParams(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_named_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonNamedParams = types.MapValueMust(t, vs) } @@ -9462,6 +9530,7 @@ func (o *RunJobTask) SetPythonParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonParams = types.ListValueMust(t, vs) } @@ -9487,6 +9556,7 @@ func (o *RunJobTask) SetSparkSubmitParams(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_submit_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkSubmitParams = types.ListValueMust(t, vs) } @@ -9512,6 +9582,7 @@ func (o *RunJobTask) SetSqlParams(ctx context.Context, v map[string]types.String vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["sql_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SqlParams = types.MapValueMust(t, vs) } @@ -9742,6 +9813,7 @@ func (o *RunNow) SetDbtCommands(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dbt_commands"] + t = t.(attr.TypeWithElementType).ElementType() o.DbtCommands = types.ListValueMust(t, vs) } @@ -9767,6 +9839,7 @@ func (o *RunNow) SetJarParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["jar_params"] + t = t.(attr.TypeWithElementType).ElementType() o.JarParams = types.ListValueMust(t, vs) } @@ -9792,6 +9865,7 @@ func (o *RunNow) SetJobParameters(ctx context.Context, v map[string]types.String vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["job_parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.JobParameters = types.MapValueMust(t, vs) } @@ -9817,6 +9891,7 @@ func (o *RunNow) SetNotebookParams(ctx context.Context, v map[string]types.Strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["notebook_params"] + t = t.(attr.TypeWithElementType).ElementType() o.NotebookParams = types.MapValueMust(t, vs) } @@ -9842,6 +9917,7 @@ func (o *RunNow) SetOnly(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["only"] + t = t.(attr.TypeWithElementType).ElementType() o.Only = types.ListValueMust(t, vs) } @@ -9893,6 +9969,7 @@ func (o *RunNow) SetPythonNamedParams(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_named_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonNamedParams = types.MapValueMust(t, vs) } @@ -9918,6 +9995,7 @@ func (o *RunNow) SetPythonParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonParams = types.ListValueMust(t, vs) } @@ -9969,6 +10047,7 @@ func (o *RunNow) SetSparkSubmitParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_submit_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkSubmitParams = types.ListValueMust(t, vs) } @@ -9994,6 +10073,7 @@ func (o *RunNow) SetSqlParams(ctx context.Context, v map[string]types.String) { vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["sql_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SqlParams = types.MapValueMust(t, vs) } @@ -10469,6 +10549,7 @@ func (o *RunParameters) SetDbtCommands(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dbt_commands"] + t = t.(attr.TypeWithElementType).ElementType() o.DbtCommands = types.ListValueMust(t, vs) } @@ -10494,6 +10575,7 @@ func (o *RunParameters) SetJarParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["jar_params"] + t = t.(attr.TypeWithElementType).ElementType() o.JarParams = types.ListValueMust(t, vs) } @@ -10519,6 +10601,7 @@ func (o *RunParameters) SetNotebookParams(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["notebook_params"] + t = t.(attr.TypeWithElementType).ElementType() o.NotebookParams = types.MapValueMust(t, vs) } @@ -10570,6 +10653,7 @@ func (o *RunParameters) SetPythonNamedParams(ctx context.Context, v map[string]t vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_named_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonNamedParams = types.MapValueMust(t, vs) } @@ -10595,6 +10679,7 @@ func (o *RunParameters) SetPythonParams(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["python_params"] + t = t.(attr.TypeWithElementType).ElementType() o.PythonParams = types.ListValueMust(t, vs) } @@ -10620,6 +10705,7 @@ func (o *RunParameters) SetSparkSubmitParams(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_submit_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkSubmitParams = types.ListValueMust(t, vs) } @@ -10645,6 +10731,7 @@ func (o *RunParameters) SetSqlParams(ctx context.Context, v map[string]types.Str vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["sql_params"] + t = t.(attr.TypeWithElementType).ElementType() o.SqlParams = types.MapValueMust(t, vs) } @@ -11270,6 +11357,7 @@ func (o *RunTask) SetDependsOn(ctx context.Context, v []TaskDependency) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["depends_on"] + t = t.(attr.TypeWithElementType).ElementType() o.DependsOn = types.ListValueMust(t, vs) } @@ -11373,6 +11461,7 @@ func (o *RunTask) SetLibraries(ctx context.Context, v []compute_tf.Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["library"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -11826,6 +11915,7 @@ func (o *SparkJarTask) SetParameters(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -11922,6 +12012,7 @@ func (o *SparkPythonTask) SetParameters(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -11998,6 +12089,7 @@ func (o *SparkSubmitTask) SetParameters(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -12090,6 +12182,7 @@ func (o *SqlAlertOutput) SetSqlStatements(ctx context.Context, v []SqlStatementO vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["sql_statements"] + t = t.(attr.TypeWithElementType).ElementType() o.SqlStatements = types.ListValueMust(t, vs) } @@ -12165,6 +12258,7 @@ func (o *SqlDashboardOutput) SetWidgets(ctx context.Context, v []SqlDashboardWid vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["widgets"] + t = t.(attr.TypeWithElementType).ElementType() o.Widgets = types.ListValueMust(t, vs) } @@ -12528,6 +12622,7 @@ func (o *SqlQueryOutput) SetSqlStatements(ctx context.Context, v []SqlStatementO vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["sql_statements"] + t = t.(attr.TypeWithElementType).ElementType() o.SqlStatements = types.ListValueMust(t, vs) } @@ -12756,6 +12851,7 @@ func (o *SqlTask) SetParameters(ctx context.Context, v map[string]types.String) vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.MapValueMust(t, vs) } @@ -12861,6 +12957,7 @@ func (o *SqlTaskAlert) SetSubscriptions(ctx context.Context, v []SqlTaskSubscrip vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["subscriptions"] + t = t.(attr.TypeWithElementType).ElementType() o.Subscriptions = types.ListValueMust(t, vs) } @@ -12945,6 +13042,7 @@ func (o *SqlTaskDashboard) SetSubscriptions(ctx context.Context, v []SqlTaskSubs vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["subscriptions"] + t = t.(attr.TypeWithElementType).ElementType() o.Subscriptions = types.ListValueMust(t, vs) } @@ -13273,6 +13371,7 @@ func (o *SubmitRun) SetAccessControlList(ctx context.Context, v []JobAccessContr vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -13324,6 +13423,7 @@ func (o *SubmitRun) SetEnvironments(ctx context.Context, v []JobEnvironment) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["environments"] + t = t.(attr.TypeWithElementType).ElementType() o.Environments = types.ListValueMust(t, vs) } @@ -13479,6 +13579,7 @@ func (o *SubmitRun) SetTasks(ctx context.Context, v []SubmitTask) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tasks"] + t = t.(attr.TypeWithElementType).ElementType() o.Tasks = types.ListValueMust(t, vs) } @@ -13863,6 +13964,7 @@ func (o *SubmitTask) SetDependsOn(ctx context.Context, v []TaskDependency) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["depends_on"] + t = t.(attr.TypeWithElementType).ElementType() o.DependsOn = types.ListValueMust(t, vs) } @@ -13966,6 +14068,7 @@ func (o *SubmitTask) SetLibraries(ctx context.Context, v []compute_tf.Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["library"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -14341,6 +14444,7 @@ func (o *TableUpdateTriggerConfiguration) SetTableNames(ctx context.Context, v [ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["table_names"] + t = t.(attr.TypeWithElementType).ElementType() o.TableNames = types.ListValueMust(t, vs) } @@ -14689,6 +14793,7 @@ func (o *Task) SetDependsOn(ctx context.Context, v []TaskDependency) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["depends_on"] + t = t.(attr.TypeWithElementType).ElementType() o.DependsOn = types.ListValueMust(t, vs) } @@ -14792,6 +14897,7 @@ func (o *Task) SetLibraries(ctx context.Context, v []compute_tf.Library) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["library"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -15249,6 +15355,7 @@ func (o *TaskEmailNotifications) SetOnDurationWarningThresholdExceeded(ctx conte vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_duration_warning_threshold_exceeded"] + t = t.(attr.TypeWithElementType).ElementType() o.OnDurationWarningThresholdExceeded = types.ListValueMust(t, vs) } @@ -15274,6 +15381,7 @@ func (o *TaskEmailNotifications) SetOnFailure(ctx context.Context, v []types.Str vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_failure"] + t = t.(attr.TypeWithElementType).ElementType() o.OnFailure = types.ListValueMust(t, vs) } @@ -15299,6 +15407,7 @@ func (o *TaskEmailNotifications) SetOnStart(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_start"] + t = t.(attr.TypeWithElementType).ElementType() o.OnStart = types.ListValueMust(t, vs) } @@ -15324,6 +15433,7 @@ func (o *TaskEmailNotifications) SetOnStreamingBacklogExceeded(ctx context.Conte vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_streaming_backlog_exceeded"] + t = t.(attr.TypeWithElementType).ElementType() o.OnStreamingBacklogExceeded = types.ListValueMust(t, vs) } @@ -15349,6 +15459,7 @@ func (o *TaskEmailNotifications) SetOnSuccess(ctx context.Context, v []types.Str vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_success"] + t = t.(attr.TypeWithElementType).ElementType() o.OnSuccess = types.ListValueMust(t, vs) } @@ -15817,6 +15928,7 @@ func (o *UpdateJob) SetFieldsToRemove(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["fields_to_remove"] + t = t.(attr.TypeWithElementType).ElementType() o.FieldsToRemove = types.ListValueMust(t, vs) } @@ -16085,6 +16197,7 @@ func (o *WebhookNotifications) SetOnDurationWarningThresholdExceeded(ctx context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_duration_warning_threshold_exceeded"] + t = t.(attr.TypeWithElementType).ElementType() o.OnDurationWarningThresholdExceeded = types.ListValueMust(t, vs) } @@ -16110,6 +16223,7 @@ func (o *WebhookNotifications) SetOnFailure(ctx context.Context, v []Webhook) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_failure"] + t = t.(attr.TypeWithElementType).ElementType() o.OnFailure = types.ListValueMust(t, vs) } @@ -16135,6 +16249,7 @@ func (o *WebhookNotifications) SetOnStart(ctx context.Context, v []Webhook) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_start"] + t = t.(attr.TypeWithElementType).ElementType() o.OnStart = types.ListValueMust(t, vs) } @@ -16160,6 +16275,7 @@ func (o *WebhookNotifications) SetOnStreamingBacklogExceeded(ctx context.Context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_streaming_backlog_exceeded"] + t = t.(attr.TypeWithElementType).ElementType() o.OnStreamingBacklogExceeded = types.ListValueMust(t, vs) } @@ -16185,5 +16301,6 @@ func (o *WebhookNotifications) SetOnSuccess(ctx context.Context, v []Webhook) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["on_success"] + t = t.(attr.TypeWithElementType).ElementType() o.OnSuccess = types.ListValueMust(t, vs) } diff --git a/internal/service/marketplace_tf/model.go b/internal/service/marketplace_tf/model.go index 9079feac5b..d42be7eed5 100755 --- a/internal/service/marketplace_tf/model.go +++ b/internal/service/marketplace_tf/model.go @@ -204,6 +204,7 @@ func (o *BatchGetListingsRequest) SetIds(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ids"] + t = t.(attr.TypeWithElementType).ElementType() o.Ids = types.ListValueMust(t, vs) } @@ -274,6 +275,7 @@ func (o *BatchGetListingsResponse) SetListings(ctx context.Context, v []Listing) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["listings"] + t = t.(attr.TypeWithElementType).ElementType() o.Listings = types.ListValueMust(t, vs) } @@ -345,6 +347,7 @@ func (o *BatchGetProvidersRequest) SetIds(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ids"] + t = t.(attr.TypeWithElementType).ElementType() o.Ids = types.ListValueMust(t, vs) } @@ -415,6 +418,7 @@ func (o *BatchGetProvidersResponse) SetProviders(ctx context.Context, v []Provid vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["providers"] + t = t.(attr.TypeWithElementType).ElementType() o.Providers = types.ListValueMust(t, vs) } @@ -2004,6 +2008,7 @@ func (o *Exchange) SetFilters(ctx context.Context, v []ExchangeFilter) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["filters"] + t = t.(attr.TypeWithElementType).ElementType() o.Filters = types.ListValueMust(t, vs) } @@ -2029,6 +2034,7 @@ func (o *Exchange) SetLinkedListings(ctx context.Context, v []ExchangeListing) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["linked_listings"] + t = t.(attr.TypeWithElementType).ElementType() o.LinkedListings = types.ListValueMust(t, vs) } @@ -2712,6 +2718,7 @@ func (o *GetListingContentMetadataResponse) SetSharedDataObjects(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["shared_data_objects"] + t = t.(attr.TypeWithElementType).ElementType() o.SharedDataObjects = types.ListValueMust(t, vs) } @@ -2945,6 +2952,7 @@ func (o *GetListingsResponse) SetListings(ctx context.Context, v []Listing) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["listings"] + t = t.(attr.TypeWithElementType).ElementType() o.Listings = types.ListValueMust(t, vs) } @@ -3057,6 +3065,7 @@ func (o *GetPersonalizationRequestResponse) SetPersonalizationRequests(ctx conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["personalization_requests"] + t = t.(attr.TypeWithElementType).ElementType() o.PersonalizationRequests = types.ListValueMust(t, vs) } @@ -3388,6 +3397,7 @@ func (o *InstallationDetail) SetTokens(ctx context.Context, v []TokenInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tokens"] + t = t.(attr.TypeWithElementType).ElementType() o.Tokens = types.ListValueMust(t, vs) } @@ -3508,6 +3518,7 @@ func (o *ListAllInstallationsResponse) SetInstallations(ctx context.Context, v [ vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["installations"] + t = t.(attr.TypeWithElementType).ElementType() o.Installations = types.ListValueMust(t, vs) } @@ -3628,6 +3639,7 @@ func (o *ListAllPersonalizationRequestsResponse) SetPersonalizationRequests(ctx vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["personalization_requests"] + t = t.(attr.TypeWithElementType).ElementType() o.PersonalizationRequests = types.ListValueMust(t, vs) } @@ -3752,6 +3764,7 @@ func (o *ListExchangeFiltersResponse) SetFilters(ctx context.Context, v []Exchan vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["filters"] + t = t.(attr.TypeWithElementType).ElementType() o.Filters = types.ListValueMust(t, vs) } @@ -3876,6 +3889,7 @@ func (o *ListExchangesForListingResponse) SetExchangeListing(ctx context.Context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["exchange_listing"] + t = t.(attr.TypeWithElementType).ElementType() o.ExchangeListing = types.ListValueMust(t, vs) } @@ -3996,6 +4010,7 @@ func (o *ListExchangesResponse) SetExchanges(ctx context.Context, v []Exchange) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["exchanges"] + t = t.(attr.TypeWithElementType).ElementType() o.Exchanges = types.ListValueMust(t, vs) } @@ -4150,6 +4165,7 @@ func (o *ListFilesResponse) SetFileInfos(ctx context.Context, v []FileInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["file_infos"] + t = t.(attr.TypeWithElementType).ElementType() o.FileInfos = types.ListValueMust(t, vs) } @@ -4274,6 +4290,7 @@ func (o *ListFulfillmentsResponse) SetFulfillments(ctx context.Context, v []List vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["fulfillments"] + t = t.(attr.TypeWithElementType).ElementType() o.Fulfillments = types.ListValueMust(t, vs) } @@ -4398,6 +4415,7 @@ func (o *ListInstallationsResponse) SetInstallations(ctx context.Context, v []In vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["installations"] + t = t.(attr.TypeWithElementType).ElementType() o.Installations = types.ListValueMust(t, vs) } @@ -4522,6 +4540,7 @@ func (o *ListListingsForExchangeResponse) SetExchangeListings(ctx context.Contex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["exchange_listings"] + t = t.(attr.TypeWithElementType).ElementType() o.ExchangeListings = types.ListValueMust(t, vs) } @@ -4635,6 +4654,7 @@ func (o *ListListingsRequest) SetAssets(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["assets"] + t = t.(attr.TypeWithElementType).ElementType() o.Assets = types.ListValueMust(t, vs) } @@ -4660,6 +4680,7 @@ func (o *ListListingsRequest) SetCategories(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["categories"] + t = t.(attr.TypeWithElementType).ElementType() o.Categories = types.ListValueMust(t, vs) } @@ -4685,6 +4706,7 @@ func (o *ListListingsRequest) SetProviderIds(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["provider_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.ProviderIds = types.ListValueMust(t, vs) } @@ -4710,6 +4732,7 @@ func (o *ListListingsRequest) SetTags(ctx context.Context, v []ListingTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -4784,6 +4807,7 @@ func (o *ListListingsResponse) SetListings(ctx context.Context, v []Listing) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["listings"] + t = t.(attr.TypeWithElementType).ElementType() o.Listings = types.ListValueMust(t, vs) } @@ -4958,6 +4982,7 @@ func (o *ListProvidersResponse) SetProviders(ctx context.Context, v []ProviderIn vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["providers"] + t = t.(attr.TypeWithElementType).ElementType() o.Providers = types.ListValueMust(t, vs) } @@ -5234,6 +5259,7 @@ func (o *ListingDetail) SetAssets(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["assets"] + t = t.(attr.TypeWithElementType).ElementType() o.Assets = types.ListValueMust(t, vs) } @@ -5285,6 +5311,7 @@ func (o *ListingDetail) SetEmbeddedNotebookFileInfos(ctx context.Context, v []Fi vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedded_notebook_file_infos"] + t = t.(attr.TypeWithElementType).ElementType() o.EmbeddedNotebookFileInfos = types.ListValueMust(t, vs) } @@ -5310,6 +5337,7 @@ func (o *ListingDetail) SetFileIds(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["file_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.FileIds = types.ListValueMust(t, vs) } @@ -5335,6 +5363,7 @@ func (o *ListingDetail) SetTags(ctx context.Context, v []ListingTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -5677,6 +5706,7 @@ func (o *ListingSummary) SetCategories(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["categories"] + t = t.(attr.TypeWithElementType).ElementType() o.Categories = types.ListValueMust(t, vs) } @@ -5702,6 +5732,7 @@ func (o *ListingSummary) SetExchangeIds(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["exchange_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.ExchangeIds = types.ListValueMust(t, vs) } @@ -5882,6 +5913,7 @@ func (o *ListingTag) SetTagValues(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tag_values"] + t = t.(attr.TypeWithElementType).ElementType() o.TagValues = types.ListValueMust(t, vs) } @@ -6525,6 +6557,7 @@ func (o *SearchListingsRequest) SetAssets(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["assets"] + t = t.(attr.TypeWithElementType).ElementType() o.Assets = types.ListValueMust(t, vs) } @@ -6550,6 +6583,7 @@ func (o *SearchListingsRequest) SetCategories(ctx context.Context, v []types.Str vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["categories"] + t = t.(attr.TypeWithElementType).ElementType() o.Categories = types.ListValueMust(t, vs) } @@ -6575,6 +6609,7 @@ func (o *SearchListingsRequest) SetProviderIds(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["provider_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.ProviderIds = types.ListValueMust(t, vs) } @@ -6649,6 +6684,7 @@ func (o *SearchListingsResponse) SetListings(ctx context.Context, v []Listing) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["listings"] + t = t.(attr.TypeWithElementType).ElementType() o.Listings = types.ListValueMust(t, vs) } diff --git a/internal/service/ml_tf/model.go b/internal/service/ml_tf/model.go index f582fdacf2..a6150a3c4f 100755 --- a/internal/service/ml_tf/model.go +++ b/internal/service/ml_tf/model.go @@ -357,6 +357,7 @@ func (o *CommentObject) SetAvailableActions(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["available_actions"] + t = t.(attr.TypeWithElementType).ElementType() o.AvailableActions = types.ListValueMust(t, vs) } @@ -563,6 +564,7 @@ func (o *CreateExperiment) SetTags(ctx context.Context, v []ExperimentTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -684,6 +686,7 @@ func (o *CreateModelRequest) SetTags(ctx context.Context, v []ModelTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -848,6 +851,7 @@ func (o *CreateModelVersionRequest) SetTags(ctx context.Context, v []ModelVersio vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -1056,6 +1060,7 @@ func (o *CreateRegistryWebhook) SetEvents(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["events"] + t = t.(attr.TypeWithElementType).ElementType() o.Events = types.ListValueMust(t, vs) } @@ -1193,6 +1198,7 @@ func (o *CreateRun) SetTags(ctx context.Context, v []RunTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -1645,6 +1651,7 @@ func (o *DatasetInput) SetTags(ctx context.Context, v []InputTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -2670,6 +2677,7 @@ func (o *Experiment) SetTags(ctx context.Context, v []ExperimentTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -2811,6 +2819,7 @@ func (o *ExperimentAccessControlResponse) SetAllPermissions(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -2889,6 +2898,7 @@ func (o *ExperimentPermission) SetInheritedFromObject(ctx context.Context, v []t vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -2967,6 +2977,7 @@ func (o *ExperimentPermissions) SetAccessControlList(ctx context.Context, v []Ex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3086,6 +3097,7 @@ func (o *ExperimentPermissionsRequest) SetAccessControlList(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3339,6 +3351,7 @@ func (o *GetExperimentPermissionLevelsResponse) SetPermissionLevels(ctx context. vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -3634,6 +3647,7 @@ func (o *GetLatestVersionsRequest) SetStages(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["stages"] + t = t.(attr.TypeWithElementType).ElementType() o.Stages = types.ListValueMust(t, vs) } @@ -3707,6 +3721,7 @@ func (o *GetLatestVersionsResponse) SetModelVersions(ctx context.Context, v []Mo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["model_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.ModelVersions = types.ListValueMust(t, vs) } @@ -3783,6 +3798,7 @@ func (o *GetMetricHistoryResponse) SetMetrics(ctx context.Context, v []Metric) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["metrics"] + t = t.(attr.TypeWithElementType).ElementType() o.Metrics = types.ListValueMust(t, vs) } @@ -4218,6 +4234,7 @@ func (o *GetRegisteredModelPermissionLevelsResponse) SetPermissionLevels(ctx con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -4786,6 +4803,7 @@ func (o *ListArtifactsResponse) SetFiles(ctx context.Context, v []FileInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["files"] + t = t.(attr.TypeWithElementType).ElementType() o.Files = types.ListValueMust(t, vs) } @@ -4919,6 +4937,7 @@ func (o *ListExperimentsResponse) SetExperiments(ctx context.Context, v []Experi vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["experiments"] + t = t.(attr.TypeWithElementType).ElementType() o.Experiments = types.ListValueMust(t, vs) } @@ -5041,6 +5060,7 @@ func (o *ListModelsResponse) SetRegisteredModels(ctx context.Context, v []Model) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["registered_models"] + t = t.(attr.TypeWithElementType).ElementType() o.RegisteredModels = types.ListValueMust(t, vs) } @@ -5116,6 +5136,7 @@ func (o *ListRegistryWebhooks) SetWebhooks(ctx context.Context, v []RegistryWebh vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["webhooks"] + t = t.(attr.TypeWithElementType).ElementType() o.Webhooks = types.ListValueMust(t, vs) } @@ -5234,6 +5255,7 @@ func (o *ListTransitionRequestsResponse) SetRequests(ctx context.Context, v []Ac vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["requests"] + t = t.(attr.TypeWithElementType).ElementType() o.Requests = types.ListValueMust(t, vs) } @@ -5317,6 +5339,7 @@ func (o *ListWebhooksRequest) SetEvents(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["events"] + t = t.(attr.TypeWithElementType).ElementType() o.Events = types.ListValueMust(t, vs) } @@ -5409,6 +5432,7 @@ func (o *LogBatch) SetMetrics(ctx context.Context, v []Metric) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["metrics"] + t = t.(attr.TypeWithElementType).ElementType() o.Metrics = types.ListValueMust(t, vs) } @@ -5434,6 +5458,7 @@ func (o *LogBatch) SetParams(ctx context.Context, v []Param) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["params"] + t = t.(attr.TypeWithElementType).ElementType() o.Params = types.ListValueMust(t, vs) } @@ -5459,6 +5484,7 @@ func (o *LogBatch) SetTags(ctx context.Context, v []RunTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -5570,6 +5596,7 @@ func (o *LogInputs) SetDatasets(ctx context.Context, v []DatasetInput) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["datasets"] + t = t.(attr.TypeWithElementType).ElementType() o.Datasets = types.ListValueMust(t, vs) } @@ -6032,6 +6059,7 @@ func (o *Model) SetLatestVersions(ctx context.Context, v []ModelVersion) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["latest_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.LatestVersions = types.ListValueMust(t, vs) } @@ -6057,6 +6085,7 @@ func (o *Model) SetTags(ctx context.Context, v []ModelTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -6164,6 +6193,7 @@ func (o *ModelDatabricks) SetLatestVersions(ctx context.Context, v []ModelVersio vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["latest_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.LatestVersions = types.ListValueMust(t, vs) } @@ -6189,6 +6219,7 @@ func (o *ModelDatabricks) SetTags(ctx context.Context, v []ModelTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -6357,6 +6388,7 @@ func (o *ModelVersion) SetTags(ctx context.Context, v []ModelVersionTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -6500,6 +6532,7 @@ func (o *ModelVersionDatabricks) SetTags(ctx context.Context, v []ModelVersionTa vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -6733,6 +6766,7 @@ func (o *RegisteredModelAccessControlResponse) SetAllPermissions(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -6811,6 +6845,7 @@ func (o *RegisteredModelPermission) SetInheritedFromObject(ctx context.Context, vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -6889,6 +6924,7 @@ func (o *RegisteredModelPermissions) SetAccessControlList(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -7008,6 +7044,7 @@ func (o *RegisteredModelPermissionsRequest) SetAccessControlList(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -7156,6 +7193,7 @@ func (o *RegistryWebhook) SetEvents(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["events"] + t = t.(attr.TypeWithElementType).ElementType() o.Events = types.ListValueMust(t, vs) } @@ -7933,6 +7971,7 @@ func (o *RunData) SetMetrics(ctx context.Context, v []Metric) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["metrics"] + t = t.(attr.TypeWithElementType).ElementType() o.Metrics = types.ListValueMust(t, vs) } @@ -7958,6 +7997,7 @@ func (o *RunData) SetParams(ctx context.Context, v []Param) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["params"] + t = t.(attr.TypeWithElementType).ElementType() o.Params = types.ListValueMust(t, vs) } @@ -7983,6 +8023,7 @@ func (o *RunData) SetTags(ctx context.Context, v []RunTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -8134,6 +8175,7 @@ func (o *RunInputs) SetDatasetInputs(ctx context.Context, v []DatasetInput) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dataset_inputs"] + t = t.(attr.TypeWithElementType).ElementType() o.DatasetInputs = types.ListValueMust(t, vs) } @@ -8272,6 +8314,7 @@ func (o *SearchExperiments) SetOrderBy(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["order_by"] + t = t.(attr.TypeWithElementType).ElementType() o.OrderBy = types.ListValueMust(t, vs) } @@ -8348,6 +8391,7 @@ func (o *SearchExperimentsResponse) SetExperiments(ctx context.Context, v []Expe vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["experiments"] + t = t.(attr.TypeWithElementType).ElementType() o.Experiments = types.ListValueMust(t, vs) } @@ -8436,6 +8480,7 @@ func (o *SearchModelVersionsRequest) SetOrderBy(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["order_by"] + t = t.(attr.TypeWithElementType).ElementType() o.OrderBy = types.ListValueMust(t, vs) } @@ -8512,6 +8557,7 @@ func (o *SearchModelVersionsResponse) SetModelVersions(ctx context.Context, v [] vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["model_versions"] + t = t.(attr.TypeWithElementType).ElementType() o.ModelVersions = types.ListValueMust(t, vs) } @@ -8600,6 +8646,7 @@ func (o *SearchModelsRequest) SetOrderBy(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["order_by"] + t = t.(attr.TypeWithElementType).ElementType() o.OrderBy = types.ListValueMust(t, vs) } @@ -8675,6 +8722,7 @@ func (o *SearchModelsResponse) SetRegisteredModels(ctx context.Context, v []Mode vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["registered_models"] + t = t.(attr.TypeWithElementType).ElementType() o.RegisteredModels = types.ListValueMust(t, vs) } @@ -8786,6 +8834,7 @@ func (o *SearchRuns) SetExperimentIds(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["experiment_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.ExperimentIds = types.ListValueMust(t, vs) } @@ -8811,6 +8860,7 @@ func (o *SearchRuns) SetOrderBy(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["order_by"] + t = t.(attr.TypeWithElementType).ElementType() o.OrderBy = types.ListValueMust(t, vs) } @@ -8886,6 +8936,7 @@ func (o *SearchRunsResponse) SetRuns(ctx context.Context, v []Run) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["runs"] + t = t.(attr.TypeWithElementType).ElementType() o.Runs = types.ListValueMust(t, vs) } @@ -9586,6 +9637,7 @@ func (o *TransitionRequest) SetAvailableActions(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["available_actions"] + t = t.(attr.TypeWithElementType).ElementType() o.AvailableActions = types.ListValueMust(t, vs) } @@ -10162,6 +10214,7 @@ func (o *UpdateRegistryWebhook) SetEvents(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["events"] + t = t.(attr.TypeWithElementType).ElementType() o.Events = types.ListValueMust(t, vs) } diff --git a/internal/service/oauth2_tf/model.go b/internal/service/oauth2_tf/model.go index ad0d1d0572..3fea0e39db 100755 --- a/internal/service/oauth2_tf/model.go +++ b/internal/service/oauth2_tf/model.go @@ -112,6 +112,7 @@ func (o *CreateCustomAppIntegration) SetRedirectUrls(ctx context.Context, v []ty vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["redirect_urls"] + t = t.(attr.TypeWithElementType).ElementType() o.RedirectUrls = types.ListValueMust(t, vs) } @@ -137,6 +138,7 @@ func (o *CreateCustomAppIntegration) SetScopes(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["scopes"] + t = t.(attr.TypeWithElementType).ElementType() o.Scopes = types.ListValueMust(t, vs) } @@ -837,6 +839,7 @@ func (o *GetCustomAppIntegrationOutput) SetRedirectUrls(ctx context.Context, v [ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["redirect_urls"] + t = t.(attr.TypeWithElementType).ElementType() o.RedirectUrls = types.ListValueMust(t, vs) } @@ -862,6 +865,7 @@ func (o *GetCustomAppIntegrationOutput) SetScopes(ctx context.Context, v []types vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["scopes"] + t = t.(attr.TypeWithElementType).ElementType() o.Scopes = types.ListValueMust(t, vs) } @@ -1006,6 +1010,7 @@ func (o *GetCustomAppIntegrationsOutput) SetApps(ctx context.Context, v []GetCus vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["apps"] + t = t.(attr.TypeWithElementType).ElementType() o.Apps = types.ListValueMust(t, vs) } @@ -1215,6 +1220,7 @@ func (o *GetPublishedAppIntegrationsOutput) SetApps(ctx context.Context, v []Get vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["apps"] + t = t.(attr.TypeWithElementType).ElementType() o.Apps = types.ListValueMust(t, vs) } @@ -1291,6 +1297,7 @@ func (o *GetPublishedAppsOutput) SetApps(ctx context.Context, v []PublishedAppOu vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["apps"] + t = t.(attr.TypeWithElementType).ElementType() o.Apps = types.ListValueMust(t, vs) } @@ -1564,6 +1571,7 @@ func (o *ListServicePrincipalSecretsResponse) SetSecrets(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["secrets"] + t = t.(attr.TypeWithElementType).ElementType() o.Secrets = types.ListValueMust(t, vs) } @@ -1664,6 +1672,7 @@ func (o *PublishedAppOutput) SetRedirectUrls(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["redirect_urls"] + t = t.(attr.TypeWithElementType).ElementType() o.RedirectUrls = types.ListValueMust(t, vs) } @@ -1689,6 +1698,7 @@ func (o *PublishedAppOutput) SetScopes(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["scopes"] + t = t.(attr.TypeWithElementType).ElementType() o.Scopes = types.ListValueMust(t, vs) } @@ -1875,6 +1885,7 @@ func (o *UpdateCustomAppIntegration) SetRedirectUrls(ctx context.Context, v []ty vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["redirect_urls"] + t = t.(attr.TypeWithElementType).ElementType() o.RedirectUrls = types.ListValueMust(t, vs) } diff --git a/internal/service/pipelines_tf/model.go b/internal/service/pipelines_tf/model.go index 5f423bd51a..122d37780f 100755 --- a/internal/service/pipelines_tf/model.go +++ b/internal/service/pipelines_tf/model.go @@ -222,6 +222,7 @@ func (o *CreatePipeline) SetClusters(ctx context.Context, v []PipelineCluster) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["clusters"] + t = t.(attr.TypeWithElementType).ElementType() o.Clusters = types.ListValueMust(t, vs) } @@ -247,6 +248,7 @@ func (o *CreatePipeline) SetConfiguration(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["configuration"] + t = t.(attr.TypeWithElementType).ElementType() o.Configuration = types.MapValueMust(t, vs) } @@ -376,6 +378,7 @@ func (o *CreatePipeline) SetLibraries(ctx context.Context, v []PipelineLibrary) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -401,6 +404,7 @@ func (o *CreatePipeline) SetNotifications(ctx context.Context, v []Notifications vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["notifications"] + t = t.(attr.TypeWithElementType).ElementType() o.Notifications = types.ListValueMust(t, vs) } @@ -909,6 +913,7 @@ func (o *EditPipeline) SetClusters(ctx context.Context, v []PipelineCluster) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["clusters"] + t = t.(attr.TypeWithElementType).ElementType() o.Clusters = types.ListValueMust(t, vs) } @@ -934,6 +939,7 @@ func (o *EditPipeline) SetConfiguration(ctx context.Context, v map[string]types. vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["configuration"] + t = t.(attr.TypeWithElementType).ElementType() o.Configuration = types.MapValueMust(t, vs) } @@ -1063,6 +1069,7 @@ func (o *EditPipeline) SetLibraries(ctx context.Context, v []PipelineLibrary) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -1088,6 +1095,7 @@ func (o *EditPipeline) SetNotifications(ctx context.Context, v []Notifications) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["notifications"] + t = t.(attr.TypeWithElementType).ElementType() o.Notifications = types.ListValueMust(t, vs) } @@ -1251,6 +1259,7 @@ func (o *ErrorDetail) SetExceptions(ctx context.Context, v []SerializedException vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["exceptions"] + t = t.(attr.TypeWithElementType).ElementType() o.Exceptions = types.ListValueMust(t, vs) } @@ -1371,6 +1380,7 @@ func (o *Filters) SetExclude(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["exclude"] + t = t.(attr.TypeWithElementType).ElementType() o.Exclude = types.ListValueMust(t, vs) } @@ -1396,6 +1406,7 @@ func (o *Filters) SetInclude(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["include"] + t = t.(attr.TypeWithElementType).ElementType() o.Include = types.ListValueMust(t, vs) } @@ -1510,6 +1521,7 @@ func (o *GetPipelinePermissionLevelsResponse) SetPermissionLevels(ctx context.Co vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -1715,6 +1727,7 @@ func (o *GetPipelineResponse) SetLatestUpdates(ctx context.Context, v []UpdateSt vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["latest_updates"] + t = t.(attr.TypeWithElementType).ElementType() o.LatestUpdates = types.ListValueMust(t, vs) } @@ -2156,6 +2169,7 @@ func (o *IngestionPipelineDefinition) SetObjects(ctx context.Context, v []Ingest vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["objects"] + t = t.(attr.TypeWithElementType).ElementType() o.Objects = types.ListValueMust(t, vs) } @@ -2283,6 +2297,7 @@ func (o *ListPipelineEventsRequest) SetOrderBy(ctx context.Context, v []types.St vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["order_by"] + t = t.(attr.TypeWithElementType).ElementType() o.OrderBy = types.ListValueMust(t, vs) } @@ -2362,6 +2377,7 @@ func (o *ListPipelineEventsResponse) SetEvents(ctx context.Context, v []Pipeline vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["events"] + t = t.(attr.TypeWithElementType).ElementType() o.Events = types.ListValueMust(t, vs) } @@ -2459,6 +2475,7 @@ func (o *ListPipelinesRequest) SetOrderBy(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["order_by"] + t = t.(attr.TypeWithElementType).ElementType() o.OrderBy = types.ListValueMust(t, vs) } @@ -2534,6 +2551,7 @@ func (o *ListPipelinesResponse) SetStatuses(ctx context.Context, v []PipelineSta vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["statuses"] + t = t.(attr.TypeWithElementType).ElementType() o.Statuses = types.ListValueMust(t, vs) } @@ -2670,6 +2688,7 @@ func (o *ListUpdatesResponse) SetUpdates(ctx context.Context, v []UpdateInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["updates"] + t = t.(attr.TypeWithElementType).ElementType() o.Updates = types.ListValueMust(t, vs) } @@ -2832,6 +2851,7 @@ func (o *Notifications) SetAlerts(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["alerts"] + t = t.(attr.TypeWithElementType).ElementType() o.Alerts = types.ListValueMust(t, vs) } @@ -2857,6 +2877,7 @@ func (o *Notifications) SetEmailRecipients(ctx context.Context, v []types.String vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["email_recipients"] + t = t.(attr.TypeWithElementType).ElementType() o.EmailRecipients = types.ListValueMust(t, vs) } @@ -3105,6 +3126,7 @@ func (o *PipelineAccessControlResponse) SetAllPermissions(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -3435,6 +3457,7 @@ func (o *PipelineCluster) SetCustomTags(ctx context.Context, v map[string]types. vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -3486,6 +3509,7 @@ func (o *PipelineCluster) SetInitScripts(ctx context.Context, v []compute_tf.Ini vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["init_scripts"] + t = t.(attr.TypeWithElementType).ElementType() o.InitScripts = types.ListValueMust(t, vs) } @@ -3511,6 +3535,7 @@ func (o *PipelineCluster) SetSparkConf(ctx context.Context, v map[string]types.S vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_conf"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkConf = types.MapValueMust(t, vs) } @@ -3536,6 +3561,7 @@ func (o *PipelineCluster) SetSparkEnvVars(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["spark_env_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.SparkEnvVars = types.MapValueMust(t, vs) } @@ -3561,6 +3587,7 @@ func (o *PipelineCluster) SetSshPublicKeys(ctx context.Context, v []types.String vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ssh_public_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.SshPublicKeys = types.ListValueMust(t, vs) } @@ -4052,6 +4079,7 @@ func (o *PipelinePermission) SetInheritedFromObject(ctx context.Context, v []typ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -4130,6 +4158,7 @@ func (o *PipelinePermissions) SetAccessControlList(ctx context.Context, v []Pipe vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -4249,6 +4278,7 @@ func (o *PipelinePermissionsRequest) SetAccessControlList(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -4444,6 +4474,7 @@ func (o *PipelineSpec) SetClusters(ctx context.Context, v []PipelineCluster) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["clusters"] + t = t.(attr.TypeWithElementType).ElementType() o.Clusters = types.ListValueMust(t, vs) } @@ -4469,6 +4500,7 @@ func (o *PipelineSpec) SetConfiguration(ctx context.Context, v map[string]types. vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["configuration"] + t = t.(attr.TypeWithElementType).ElementType() o.Configuration = types.MapValueMust(t, vs) } @@ -4598,6 +4630,7 @@ func (o *PipelineSpec) SetLibraries(ctx context.Context, v []PipelineLibrary) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["libraries"] + t = t.(attr.TypeWithElementType).ElementType() o.Libraries = types.ListValueMust(t, vs) } @@ -4623,6 +4656,7 @@ func (o *PipelineSpec) SetNotifications(ctx context.Context, v []Notifications) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["notifications"] + t = t.(attr.TypeWithElementType).ElementType() o.Notifications = types.ListValueMust(t, vs) } @@ -4776,6 +4810,7 @@ func (o *PipelineStateInfo) SetLatestUpdates(ctx context.Context, v []UpdateStat vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["latest_updates"] + t = t.(attr.TypeWithElementType).ElementType() o.LatestUpdates = types.ListValueMust(t, vs) } @@ -5275,6 +5310,7 @@ func (o *SerializedException) SetStack(ctx context.Context, v []StackFrame) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["stack"] + t = t.(attr.TypeWithElementType).ElementType() o.Stack = types.ListValueMust(t, vs) } @@ -5429,6 +5465,7 @@ func (o *StartUpdate) SetFullRefreshSelection(ctx context.Context, v []types.Str vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["full_refresh_selection"] + t = t.(attr.TypeWithElementType).ElementType() o.FullRefreshSelection = types.ListValueMust(t, vs) } @@ -5454,6 +5491,7 @@ func (o *StartUpdate) SetRefreshSelection(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["refresh_selection"] + t = t.(attr.TypeWithElementType).ElementType() o.RefreshSelection = types.ListValueMust(t, vs) } @@ -5762,6 +5800,7 @@ func (o *TableSpecificConfig) SetPrimaryKeys(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["primary_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.PrimaryKeys = types.ListValueMust(t, vs) } @@ -5787,6 +5826,7 @@ func (o *TableSpecificConfig) SetSequenceBy(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["sequence_by"] + t = t.(attr.TypeWithElementType).ElementType() o.SequenceBy = types.ListValueMust(t, vs) } @@ -5938,6 +5978,7 @@ func (o *UpdateInfo) SetFullRefreshSelection(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["full_refresh_selection"] + t = t.(attr.TypeWithElementType).ElementType() o.FullRefreshSelection = types.ListValueMust(t, vs) } @@ -5963,6 +6004,7 @@ func (o *UpdateInfo) SetRefreshSelection(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["refresh_selection"] + t = t.(attr.TypeWithElementType).ElementType() o.RefreshSelection = types.ListValueMust(t, vs) } diff --git a/internal/service/provisioning_tf/model.go b/internal/service/provisioning_tf/model.go index 758abbc096..1990d3bb1f 100755 --- a/internal/service/provisioning_tf/model.go +++ b/internal/service/provisioning_tf/model.go @@ -642,6 +642,7 @@ func (o *CreateCustomerManagedKeyRequest) SetUseCases(ctx context.Context, v []t vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["use_cases"] + t = t.(attr.TypeWithElementType).ElementType() o.UseCases = types.ListValueMust(t, vs) } @@ -817,6 +818,7 @@ func (o *CreateNetworkRequest) SetSecurityGroupIds(ctx context.Context, v []type vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["security_group_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.SecurityGroupIds = types.ListValueMust(t, vs) } @@ -842,6 +844,7 @@ func (o *CreateNetworkRequest) SetSubnetIds(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["subnet_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.SubnetIds = types.ListValueMust(t, vs) } @@ -1275,6 +1278,7 @@ func (o *CreateWorkspaceRequest) SetCustomTags(ctx context.Context, v map[string vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -1608,6 +1612,7 @@ func (o *CustomerManagedKey) SetUseCases(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["use_cases"] + t = t.(attr.TypeWithElementType).ElementType() o.UseCases = types.ListValueMust(t, vs) } @@ -2743,6 +2748,7 @@ func (o *Network) SetErrorMessages(ctx context.Context, v []NetworkHealth) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["error_messages"] + t = t.(attr.TypeWithElementType).ElementType() o.ErrorMessages = types.ListValueMust(t, vs) } @@ -2794,6 +2800,7 @@ func (o *Network) SetSecurityGroupIds(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["security_group_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.SecurityGroupIds = types.ListValueMust(t, vs) } @@ -2819,6 +2826,7 @@ func (o *Network) SetSubnetIds(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["subnet_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.SubnetIds = types.ListValueMust(t, vs) } @@ -2870,6 +2878,7 @@ func (o *Network) SetWarningMessages(ctx context.Context, v []NetworkWarning) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["warning_messages"] + t = t.(attr.TypeWithElementType).ElementType() o.WarningMessages = types.ListValueMust(t, vs) } @@ -3001,6 +3010,7 @@ func (o *NetworkVpcEndpoints) SetDataplaneRelay(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dataplane_relay"] + t = t.(attr.TypeWithElementType).ElementType() o.DataplaneRelay = types.ListValueMust(t, vs) } @@ -3026,6 +3036,7 @@ func (o *NetworkVpcEndpoints) SetRestApi(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rest_api"] + t = t.(attr.TypeWithElementType).ElementType() o.RestApi = types.ListValueMust(t, vs) } @@ -3178,6 +3189,7 @@ func (o *PrivateAccessSettings) SetAllowedVpcEndpointIds(ctx context.Context, v vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["allowed_vpc_endpoint_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.AllowedVpcEndpointIds = types.ListValueMust(t, vs) } @@ -3547,6 +3559,7 @@ func (o *UpdateWorkspaceRequest) SetCustomTags(ctx context.Context, v map[string vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } @@ -3661,6 +3674,7 @@ func (o *UpsertPrivateAccessSettingsRequest) SetAllowedVpcEndpointIds(ctx contex vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["allowed_vpc_endpoint_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.AllowedVpcEndpointIds = types.ListValueMust(t, vs) } @@ -4063,6 +4077,7 @@ func (o *Workspace) SetCustomTags(ctx context.Context, v map[string]types.String vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.MapValueMust(t, vs) } diff --git a/internal/service/serving_tf/model.go b/internal/service/serving_tf/model.go index c22de9e2a8..24cf077582 100755 --- a/internal/service/serving_tf/model.go +++ b/internal/service/serving_tf/model.go @@ -219,6 +219,7 @@ func (o *AiGatewayConfig) SetRateLimits(ctx context.Context, v []AiGatewayRateLi vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rate_limits"] + t = t.(attr.TypeWithElementType).ElementType() o.RateLimits = types.ListValueMust(t, vs) } @@ -336,6 +337,7 @@ func (o *AiGatewayGuardrailParameters) SetInvalidKeywords(ctx context.Context, v vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["invalid_keywords"] + t = t.(attr.TypeWithElementType).ElementType() o.InvalidKeywords = types.ListValueMust(t, vs) } @@ -387,6 +389,7 @@ func (o *AiGatewayGuardrailParameters) SetValidTopics(ctx context.Context, v []t vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["valid_topics"] + t = t.(attr.TypeWithElementType).ElementType() o.ValidTopics = types.ListValueMust(t, vs) } @@ -1393,6 +1396,7 @@ func (o *CreateServingEndpoint) SetRateLimits(ctx context.Context, v []RateLimit vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rate_limits"] + t = t.(attr.TypeWithElementType).ElementType() o.RateLimits = types.ListValueMust(t, vs) } @@ -1418,6 +1422,7 @@ func (o *CreateServingEndpoint) SetTags(ctx context.Context, v []EndpointTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -1563,6 +1568,7 @@ func (o *DataframeSplitInput) SetColumns(ctx context.Context, v []types.Object) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["columns"] + t = t.(attr.TypeWithElementType).ElementType() o.Columns = types.ListValueMust(t, vs) } @@ -1588,6 +1594,7 @@ func (o *DataframeSplitInput) SetData(ctx context.Context, v []types.Object) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["data"] + t = t.(attr.TypeWithElementType).ElementType() o.Data = types.ListValueMust(t, vs) } @@ -1613,6 +1620,7 @@ func (o *DataframeSplitInput) SetIndex(ctx context.Context, v []types.Int64) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["index"] + t = t.(attr.TypeWithElementType).ElementType() o.Index = types.ListValueMust(t, vs) } @@ -1770,6 +1778,7 @@ func (o *EmbeddingsV1ResponseEmbeddingElement) SetEmbedding(ctx context.Context, vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedding"] + t = t.(attr.TypeWithElementType).ElementType() o.Embedding = types.ListValueMust(t, vs) } @@ -1896,6 +1905,7 @@ func (o *EndpointCoreConfigInput) SetServedEntities(ctx context.Context, v []Ser vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_entities"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedEntities = types.ListValueMust(t, vs) } @@ -1921,6 +1931,7 @@ func (o *EndpointCoreConfigInput) SetServedModels(ctx context.Context, v []Serve vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_models"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedModels = types.ListValueMust(t, vs) } @@ -2071,6 +2082,7 @@ func (o *EndpointCoreConfigOutput) SetServedEntities(ctx context.Context, v []Se vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_entities"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedEntities = types.ListValueMust(t, vs) } @@ -2096,6 +2108,7 @@ func (o *EndpointCoreConfigOutput) SetServedModels(ctx context.Context, v []Serv vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_models"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedModels = types.ListValueMust(t, vs) } @@ -2201,6 +2214,7 @@ func (o *EndpointCoreConfigSummary) SetServedEntities(ctx context.Context, v []S vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_entities"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedEntities = types.ListValueMust(t, vs) } @@ -2226,6 +2240,7 @@ func (o *EndpointCoreConfigSummary) SetServedModels(ctx context.Context, v []Ser vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_models"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedModels = types.ListValueMust(t, vs) } @@ -2356,6 +2371,7 @@ func (o *EndpointPendingConfig) SetServedEntities(ctx context.Context, v []Serve vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_entities"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedEntities = types.ListValueMust(t, vs) } @@ -2381,6 +2397,7 @@ func (o *EndpointPendingConfig) SetServedModels(ctx context.Context, v []ServedM vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["served_models"] + t = t.(attr.TypeWithElementType).ElementType() o.ServedModels = types.ListValueMust(t, vs) } @@ -3211,6 +3228,7 @@ func (o *GetServingEndpointPermissionLevelsResponse) SetPermissionLevels(ctx con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -3441,6 +3459,7 @@ func (o *ListEndpointsResponse) SetEndpoints(ctx context.Context, v []ServingEnd vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["endpoints"] + t = t.(attr.TypeWithElementType).ElementType() o.Endpoints = types.ListValueMust(t, vs) } @@ -3808,6 +3827,7 @@ func (o *PatchServingEndpointTags) SetAddTags(ctx context.Context, v []EndpointT vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["add_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.AddTags = types.ListValueMust(t, vs) } @@ -3833,6 +3853,7 @@ func (o *PatchServingEndpointTags) SetDeleteTags(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["delete_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.DeleteTags = types.ListValueMust(t, vs) } @@ -4038,6 +4059,7 @@ func (o *PutAiGatewayRequest) SetRateLimits(ctx context.Context, v []AiGatewayRa vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rate_limits"] + t = t.(attr.TypeWithElementType).ElementType() o.RateLimits = types.ListValueMust(t, vs) } @@ -4213,6 +4235,7 @@ func (o *PutAiGatewayResponse) SetRateLimits(ctx context.Context, v []AiGatewayR vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rate_limits"] + t = t.(attr.TypeWithElementType).ElementType() o.RateLimits = types.ListValueMust(t, vs) } @@ -4316,6 +4339,7 @@ func (o *PutRequest) SetRateLimits(ctx context.Context, v []RateLimit) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rate_limits"] + t = t.(attr.TypeWithElementType).ElementType() o.RateLimits = types.ListValueMust(t, vs) } @@ -4387,6 +4411,7 @@ func (o *PutResponse) SetRateLimits(ctx context.Context, v []RateLimit) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["rate_limits"] + t = t.(attr.TypeWithElementType).ElementType() o.RateLimits = types.ListValueMust(t, vs) } @@ -4546,6 +4571,7 @@ func (o *QueryEndpointInput) SetDataframeRecords(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["dataframe_records"] + t = t.(attr.TypeWithElementType).ElementType() o.DataframeRecords = types.ListValueMust(t, vs) } @@ -4597,6 +4623,7 @@ func (o *QueryEndpointInput) SetExtraParams(ctx context.Context, v map[string]ty vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["extra_params"] + t = t.(attr.TypeWithElementType).ElementType() o.ExtraParams = types.MapValueMust(t, vs) } @@ -4622,6 +4649,7 @@ func (o *QueryEndpointInput) SetInstances(ctx context.Context, v []types.Object) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["instances"] + t = t.(attr.TypeWithElementType).ElementType() o.Instances = types.ListValueMust(t, vs) } @@ -4647,6 +4675,7 @@ func (o *QueryEndpointInput) SetMessages(ctx context.Context, v []ChatMessage) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["messages"] + t = t.(attr.TypeWithElementType).ElementType() o.Messages = types.ListValueMust(t, vs) } @@ -4672,6 +4701,7 @@ func (o *QueryEndpointInput) SetStop(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["stop"] + t = t.(attr.TypeWithElementType).ElementType() o.Stop = types.ListValueMust(t, vs) } @@ -4794,6 +4824,7 @@ func (o *QueryEndpointResponse) SetChoices(ctx context.Context, v []V1ResponseCh vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["choices"] + t = t.(attr.TypeWithElementType).ElementType() o.Choices = types.ListValueMust(t, vs) } @@ -4819,6 +4850,7 @@ func (o *QueryEndpointResponse) SetData(ctx context.Context, v []EmbeddingsV1Res vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["data"] + t = t.(attr.TypeWithElementType).ElementType() o.Data = types.ListValueMust(t, vs) } @@ -4844,6 +4876,7 @@ func (o *QueryEndpointResponse) SetPredictions(ctx context.Context, v []types.Ob vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["predictions"] + t = t.(attr.TypeWithElementType).ElementType() o.Predictions = types.ListValueMust(t, vs) } @@ -5121,6 +5154,7 @@ func (o *ServedEntityInput) SetEnvironmentVars(ctx context.Context, v map[string vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["environment_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.EnvironmentVars = types.MapValueMust(t, vs) } @@ -5313,6 +5347,7 @@ func (o *ServedEntityOutput) SetEnvironmentVars(ctx context.Context, v map[strin vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["environment_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.EnvironmentVars = types.MapValueMust(t, vs) } @@ -5649,6 +5684,7 @@ func (o *ServedModelInput) SetEnvironmentVars(ctx context.Context, v map[string] vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["environment_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.EnvironmentVars = types.MapValueMust(t, vs) } @@ -5784,6 +5820,7 @@ func (o *ServedModelOutput) SetEnvironmentVars(ctx context.Context, v map[string vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["environment_vars"] + t = t.(attr.TypeWithElementType).ElementType() o.EnvironmentVars = types.MapValueMust(t, vs) } @@ -6158,6 +6195,7 @@ func (o *ServingEndpoint) SetTags(ctx context.Context, v []EndpointTag) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -6299,6 +6337,7 @@ func (o *ServingEndpointAccessControlResponse) SetAllPermissions(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -6574,6 +6613,7 @@ func (o *ServingEndpointDetailed) SetTags(ctx context.Context, v []EndpointTag) vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -6652,6 +6692,7 @@ func (o *ServingEndpointPermission) SetInheritedFromObject(ctx context.Context, vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -6730,6 +6771,7 @@ func (o *ServingEndpointPermissions) SetAccessControlList(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -6849,6 +6891,7 @@ func (o *ServingEndpointPermissionsRequest) SetAccessControlList(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -6920,6 +6963,7 @@ func (o *TrafficConfig) SetRoutes(ctx context.Context, v []Route) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["routes"] + t = t.(attr.TypeWithElementType).ElementType() o.Routes = types.ListValueMust(t, vs) } diff --git a/internal/service/settings_tf/model.go b/internal/service/settings_tf/model.go index 70d3e38bc2..92fb1d94cf 100755 --- a/internal/service/settings_tf/model.go +++ b/internal/service/settings_tf/model.go @@ -217,6 +217,7 @@ func (o *AibiDashboardEmbeddingApprovedDomains) SetApprovedDomains(ctx context.C vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["approved_domains"] + t = t.(attr.TypeWithElementType).ElementType() o.ApprovedDomains = types.ListValueMust(t, vs) } @@ -885,6 +886,7 @@ func (o *ComplianceSecurityProfile) SetComplianceStandards(ctx context.Context, vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["compliance_standards"] + t = t.(attr.TypeWithElementType).ElementType() o.ComplianceStandards = types.ListValueMust(t, vs) } @@ -1262,6 +1264,7 @@ func (o *CreateIpAccessList) SetIpAddresses(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ip_addresses"] + t = t.(attr.TypeWithElementType).ElementType() o.IpAddresses = types.ListValueMust(t, vs) } @@ -1843,6 +1846,7 @@ func (o *CspEnablementAccount) SetComplianceStandards(ctx context.Context, v []t vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["compliance_standards"] + t = t.(attr.TypeWithElementType).ElementType() o.ComplianceStandards = types.ListValueMust(t, vs) } @@ -3291,6 +3295,7 @@ func (o *EmailConfig) SetAddresses(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["addresses"] + t = t.(attr.TypeWithElementType).ElementType() o.Addresses = types.ListValueMust(t, vs) } @@ -3680,6 +3685,7 @@ func (o *ExchangeToken) SetScopes(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["scopes"] + t = t.(attr.TypeWithElementType).ElementType() o.Scopes = types.ListValueMust(t, vs) } @@ -3792,6 +3798,7 @@ func (o *ExchangeTokenRequest) SetScopes(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["scopes"] + t = t.(attr.TypeWithElementType).ElementType() o.Scopes = types.ListValueMust(t, vs) } @@ -3817,6 +3824,7 @@ func (o *ExchangeTokenRequest) SetTokenType(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tokenType"] + t = t.(attr.TypeWithElementType).ElementType() o.TokenType = types.ListValueMust(t, vs) } @@ -3888,6 +3896,7 @@ func (o *ExchangeTokenResponse) SetValues(ctx context.Context, v []ExchangeToken vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["values"] + t = t.(attr.TypeWithElementType).ElementType() o.Values = types.ListValueMust(t, vs) } @@ -4791,6 +4800,7 @@ func (o *GetIpAccessListsResponse) SetIpAccessLists(ctx context.Context, v []IpA vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ip_access_lists"] + t = t.(attr.TypeWithElementType).ElementType() o.IpAccessLists = types.ListValueMust(t, vs) } @@ -5177,6 +5187,7 @@ func (o *GetTokenPermissionLevelsResponse) SetPermissionLevels(ctx context.Conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -5362,6 +5373,7 @@ func (o *IpAccessListInfo) SetIpAddresses(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ip_addresses"] + t = t.(attr.TypeWithElementType).ElementType() o.IpAddresses = types.ListValueMust(t, vs) } @@ -5433,6 +5445,7 @@ func (o *ListIpAccessListResponse) SetIpAccessLists(ctx context.Context, v []IpA vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ip_access_lists"] + t = t.(attr.TypeWithElementType).ElementType() o.IpAccessLists = types.ListValueMust(t, vs) } @@ -5508,6 +5521,7 @@ func (o *ListNccAzurePrivateEndpointRulesResponse) SetItems(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["items"] + t = t.(attr.TypeWithElementType).ElementType() o.Items = types.ListValueMust(t, vs) } @@ -5626,6 +5640,7 @@ func (o *ListNetworkConnectivityConfigurationsResponse) SetItems(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["items"] + t = t.(attr.TypeWithElementType).ElementType() o.Items = types.ListValueMust(t, vs) } @@ -5747,6 +5762,7 @@ func (o *ListNotificationDestinationsResponse) SetResults(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -5916,6 +5932,7 @@ func (o *ListPublicTokensResponse) SetTokenInfos(ctx context.Context, v []Public vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["token_infos"] + t = t.(attr.TypeWithElementType).ElementType() o.TokenInfos = types.ListValueMust(t, vs) } @@ -6035,6 +6052,7 @@ func (o *ListTokensResponse) SetTokenInfos(ctx context.Context, v []TokenInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["token_infos"] + t = t.(attr.TypeWithElementType).ElementType() o.TokenInfos = types.ListValueMust(t, vs) } @@ -6155,6 +6173,7 @@ func (o *NccAwsStableIpRule) SetCidrBlocks(ctx context.Context, v []types.String vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["cidr_blocks"] + t = t.(attr.TypeWithElementType).ElementType() o.CidrBlocks = types.ListValueMust(t, vs) } @@ -6334,6 +6353,7 @@ func (o *NccAzureServiceEndpointRule) SetSubnets(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["subnets"] + t = t.(attr.TypeWithElementType).ElementType() o.Subnets = types.ListValueMust(t, vs) } @@ -6359,6 +6379,7 @@ func (o *NccAzureServiceEndpointRule) SetTargetServices(ctx context.Context, v [ vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["target_services"] + t = t.(attr.TypeWithElementType).ElementType() o.TargetServices = types.ListValueMust(t, vs) } @@ -6653,6 +6674,7 @@ func (o *NccEgressTargetRules) SetAzurePrivateEndpointRules(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["azure_private_endpoint_rules"] + t = t.(attr.TypeWithElementType).ElementType() o.AzurePrivateEndpointRules = types.ListValueMust(t, vs) } @@ -7217,6 +7239,7 @@ func (o *ReplaceIpAccessList) SetIpAddresses(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ip_addresses"] + t = t.(attr.TypeWithElementType).ElementType() o.IpAddresses = types.ListValueMust(t, vs) } @@ -7727,6 +7750,7 @@ func (o *TokenAccessControlResponse) SetAllPermissions(ctx context.Context, v [] vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -7881,6 +7905,7 @@ func (o *TokenPermission) SetInheritedFromObject(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -7959,6 +7984,7 @@ func (o *TokenPermissions) SetAccessControlList(ctx context.Context, v []TokenAc vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -8074,6 +8100,7 @@ func (o *TokenPermissionsRequest) SetAccessControlList(ctx context.Context, v [] vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -9110,6 +9137,7 @@ func (o *UpdateIpAccessList) SetIpAddresses(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["ip_addresses"] + t = t.(attr.TypeWithElementType).ElementType() o.IpAddresses = types.ListValueMust(t, vs) } diff --git a/internal/service/sharing_tf/model.go b/internal/service/sharing_tf/model.go index 1e75135dde..d8b772b951 100755 --- a/internal/service/sharing_tf/model.go +++ b/internal/service/sharing_tf/model.go @@ -667,6 +667,7 @@ func (o *GetRecipientSharePermissionsResponse) SetPermissionsOut(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permissions_out"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionsOut = types.ListValueMust(t, vs) } @@ -785,6 +786,7 @@ func (o *IpAccessList) SetAllowedIpAddresses(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["allowed_ip_addresses"] + t = t.(attr.TypeWithElementType).ElementType() o.AllowedIpAddresses = types.ListValueMust(t, vs) } @@ -862,6 +864,7 @@ func (o *ListProviderSharesResponse) SetShares(ctx context.Context, v []Provider vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["shares"] + t = t.(attr.TypeWithElementType).ElementType() o.Shares = types.ListValueMust(t, vs) } @@ -999,6 +1002,7 @@ func (o *ListProvidersResponse) SetProviders(ctx context.Context, v []ProviderIn vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["providers"] + t = t.(attr.TypeWithElementType).ElementType() o.Providers = types.ListValueMust(t, vs) } @@ -1136,6 +1140,7 @@ func (o *ListRecipientsResponse) SetRecipients(ctx context.Context, v []Recipien vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["recipients"] + t = t.(attr.TypeWithElementType).ElementType() o.Recipients = types.ListValueMust(t, vs) } @@ -1272,6 +1277,7 @@ func (o *ListSharesResponse) SetShares(ctx context.Context, v []ShareInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["shares"] + t = t.(attr.TypeWithElementType).ElementType() o.Shares = types.ListValueMust(t, vs) } @@ -1343,6 +1349,7 @@ func (o *Partition) SetValues(ctx context.Context, v []PartitionValue) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["value"] + t = t.(attr.TypeWithElementType).ElementType() o.Values = types.ListValueMust(t, vs) } @@ -1476,6 +1483,7 @@ func (o *PrivilegeAssignment) SetPrivileges(ctx context.Context, v []types.Strin vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["privileges"] + t = t.(attr.TypeWithElementType).ElementType() o.Privileges = types.ListValueMust(t, vs) } @@ -1855,6 +1863,7 @@ func (o *RecipientInfo) SetTokens(ctx context.Context, v []RecipientTokenInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tokens"] + t = t.(attr.TypeWithElementType).ElementType() o.Tokens = types.ListValueMust(t, vs) } @@ -2191,6 +2200,7 @@ func (o *SecurablePropertiesKvPairs) SetProperties(ctx context.Context, v map[st vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["properties"] + t = t.(attr.TypeWithElementType).ElementType() o.Properties = types.MapValueMust(t, vs) } @@ -2298,6 +2308,7 @@ func (o *ShareInfo) SetObjects(ctx context.Context, v []SharedDataObject) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["object"] + t = t.(attr.TypeWithElementType).ElementType() o.Objects = types.ListValueMust(t, vs) } @@ -2432,6 +2443,7 @@ func (o *ShareToPrivilegeAssignment) SetPrivilegeAssignments(ctx context.Context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["privilege_assignments"] + t = t.(attr.TypeWithElementType).ElementType() o.PrivilegeAssignments = types.ListValueMust(t, vs) } @@ -2572,6 +2584,7 @@ func (o *SharedDataObject) SetPartitions(ctx context.Context, v []Partition) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["partition"] + t = t.(attr.TypeWithElementType).ElementType() o.Partitions = types.ListValueMust(t, vs) } @@ -2998,6 +3011,7 @@ func (o *UpdateShare) SetUpdates(ctx context.Context, v []SharedDataObjectUpdate vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["updates"] + t = t.(attr.TypeWithElementType).ElementType() o.Updates = types.ListValueMust(t, vs) } @@ -3089,5 +3103,6 @@ func (o *UpdateSharePermissions) SetChanges(ctx context.Context, v []catalog_tf. vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["changes"] + t = t.(attr.TypeWithElementType).ElementType() o.Changes = types.ListValueMust(t, vs) } diff --git a/internal/service/sql_tf/model.go b/internal/service/sql_tf/model.go index 485ed75065..3fc002ee63 100755 --- a/internal/service/sql_tf/model.go +++ b/internal/service/sql_tf/model.go @@ -792,6 +792,7 @@ func (o *AlertQuery) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -1550,6 +1551,7 @@ func (o *CreateQueryRequestQuery) SetParameters(ctx context.Context, v []QueryPa vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -1575,6 +1577,7 @@ func (o *CreateQueryRequestQuery) SetTags(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -2273,6 +2276,7 @@ func (o *Dashboard) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -2324,6 +2328,7 @@ func (o *Dashboard) SetWidgets(ctx context.Context, v []Widget) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["widgets"] + t = t.(attr.TypeWithElementType).ElementType() o.Widgets = types.ListValueMust(t, vs) } @@ -2409,6 +2414,7 @@ func (o *DashboardEditContent) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -2548,6 +2554,7 @@ func (o *DashboardPostContent) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -4047,6 +4054,7 @@ func (o *EndpointTags) SetCustomTags(ctx context.Context, v []EndpointTagPair) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["custom_tags"] + t = t.(attr.TypeWithElementType).ElementType() o.CustomTags = types.ListValueMust(t, vs) } @@ -4155,6 +4163,7 @@ func (o *EnumValue) SetValues(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["values"] + t = t.(attr.TypeWithElementType).ElementType() o.Values = types.ListValueMust(t, vs) } @@ -4367,6 +4376,7 @@ func (o *ExecuteStatementRequest) SetParameters(ctx context.Context, v []Stateme vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -4482,6 +4492,7 @@ func (o *ExternalLink) SetHttpHeaders(ctx context.Context, v map[string]types.St vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["http_headers"] + t = t.(attr.TypeWithElementType).ElementType() o.HttpHeaders = types.MapValueMust(t, vs) } @@ -4817,6 +4828,7 @@ func (o *GetResponse) SetAccessControlList(ctx context.Context, v []AccessContro vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -5022,6 +5034,7 @@ func (o *GetWarehousePermissionLevelsResponse) SetPermissionLevels(ctx context.C vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -5554,6 +5567,7 @@ func (o *GetWorkspaceWarehouseConfigResponse) SetDataAccessConfig(ctx context.Co vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["data_access_config"] + t = t.(attr.TypeWithElementType).ElementType() o.DataAccessConfig = types.ListValueMust(t, vs) } @@ -5579,6 +5593,7 @@ func (o *GetWorkspaceWarehouseConfigResponse) SetEnabledWarehouseTypes(ctx conte vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["enabled_warehouse_types"] + t = t.(attr.TypeWithElementType).ElementType() o.EnabledWarehouseTypes = types.ListValueMust(t, vs) } @@ -6052,6 +6067,7 @@ func (o *LegacyQuery) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -6103,6 +6119,7 @@ func (o *LegacyQuery) SetVisualizations(ctx context.Context, v []LegacyVisualiza vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["visualizations"] + t = t.(attr.TypeWithElementType).ElementType() o.Visualizations = types.ListValueMust(t, vs) } @@ -6331,6 +6348,7 @@ func (o *ListAlertsResponse) SetResults(ctx context.Context, v []ListAlertsRespo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -6716,6 +6734,7 @@ func (o *ListQueriesResponse) SetRes(ctx context.Context, v []QueryInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["res"] + t = t.(attr.TypeWithElementType).ElementType() o.Res = types.ListValueMust(t, vs) } @@ -6880,6 +6899,7 @@ func (o *ListQueryObjectsResponse) SetResults(ctx context.Context, v []ListQuery vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -7016,6 +7036,7 @@ func (o *ListQueryObjectsResponseQuery) SetParameters(ctx context.Context, v []Q vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -7041,6 +7062,7 @@ func (o *ListQueryObjectsResponseQuery) SetTags(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -7124,6 +7146,7 @@ func (o *ListResponse) SetResults(ctx context.Context, v []Dashboard) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -7248,6 +7271,7 @@ func (o *ListVisualizationsForQueryResponse) SetResults(ctx context.Context, v [ vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -7363,6 +7387,7 @@ func (o *ListWarehousesResponse) SetWarehouses(ctx context.Context, v []Endpoint vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["warehouses"] + t = t.(attr.TypeWithElementType).ElementType() o.Warehouses = types.ListValueMust(t, vs) } @@ -7748,6 +7773,7 @@ func (o *Query) SetParameters(ctx context.Context, v []QueryParameter) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -7773,6 +7799,7 @@ func (o *Query) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -7881,6 +7908,7 @@ func (o *QueryBackedValue) SetValues(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["values"] + t = t.(attr.TypeWithElementType).ElementType() o.Values = types.ListValueMust(t, vs) } @@ -7989,6 +8017,7 @@ func (o *QueryEditContent) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -8115,6 +8144,7 @@ func (o *QueryFilter) SetStatementIds(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["statement_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.StatementIds = types.ListValueMust(t, vs) } @@ -8140,6 +8170,7 @@ func (o *QueryFilter) SetStatuses(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["statuses"] + t = t.(attr.TypeWithElementType).ElementType() o.Statuses = types.ListValueMust(t, vs) } @@ -8165,6 +8196,7 @@ func (o *QueryFilter) SetUserIds(ctx context.Context, v []types.Int64) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["user_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.UserIds = types.ListValueMust(t, vs) } @@ -8190,6 +8222,7 @@ func (o *QueryFilter) SetWarehouseIds(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["warehouse_ids"] + t = t.(attr.TypeWithElementType).ElementType() o.WarehouseIds = types.ListValueMust(t, vs) } @@ -8463,6 +8496,7 @@ func (o *QueryList) SetResults(ctx context.Context, v []LegacyQuery) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["results"] + t = t.(attr.TypeWithElementType).ElementType() o.Results = types.ListValueMust(t, vs) } @@ -8688,6 +8722,7 @@ func (o *QueryOptions) SetParameters(ctx context.Context, v []Parameter) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -9044,6 +9079,7 @@ func (o *QueryPostContent) SetTags(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -9122,6 +9158,7 @@ func (o *RepeatedEndpointConfPairs) SetConfigPair(ctx context.Context, v []Endpo vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["config_pair"] + t = t.(attr.TypeWithElementType).ElementType() o.ConfigPair = types.ListValueMust(t, vs) } @@ -9147,6 +9184,7 @@ func (o *RepeatedEndpointConfPairs) SetConfigurationPairs(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["configuration_pairs"] + t = t.(attr.TypeWithElementType).ElementType() o.ConfigurationPairs = types.ListValueMust(t, vs) } @@ -9379,6 +9417,7 @@ func (o *ResultData) SetDataArray(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["data_array"] + t = t.(attr.TypeWithElementType).ElementType() o.DataArray = types.ListValueMust(t, vs) } @@ -9404,6 +9443,7 @@ func (o *ResultData) SetExternalLinks(ctx context.Context, v []ExternalLink) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["external_links"] + t = t.(attr.TypeWithElementType).ElementType() o.ExternalLinks = types.ListValueMust(t, vs) } @@ -9505,6 +9545,7 @@ func (o *ResultManifest) SetChunks(ctx context.Context, v []BaseChunkInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["chunks"] + t = t.(attr.TypeWithElementType).ElementType() o.Chunks = types.ListValueMust(t, vs) } @@ -9606,6 +9647,7 @@ func (o *ResultSchema) SetColumns(ctx context.Context, v []ColumnInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["columns"] + t = t.(attr.TypeWithElementType).ElementType() o.Columns = types.ListValueMust(t, vs) } @@ -9731,6 +9773,7 @@ func (o *SetRequest) SetAccessControlList(ctx context.Context, v []AccessControl vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -9809,6 +9852,7 @@ func (o *SetResponse) SetAccessControlList(ctx context.Context, v []AccessContro vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -9986,6 +10030,7 @@ func (o *SetWorkspaceWarehouseConfigRequest) SetDataAccessConfig(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["data_access_config"] + t = t.(attr.TypeWithElementType).ElementType() o.DataAccessConfig = types.ListValueMust(t, vs) } @@ -10011,6 +10056,7 @@ func (o *SetWorkspaceWarehouseConfigRequest) SetEnabledWarehouseTypes(ctx contex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["enabled_warehouse_types"] + t = t.(attr.TypeWithElementType).ElementType() o.EnabledWarehouseTypes = types.ListValueMust(t, vs) } @@ -10662,6 +10708,7 @@ func (o *TerminationReason) SetParameters(ctx context.Context, v map[string]type vs[k] = e } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.MapValueMust(t, vs) } @@ -11346,6 +11393,7 @@ func (o *UpdateQueryRequestQuery) SetParameters(ctx context.Context, v []QueryPa vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["parameters"] + t = t.(attr.TypeWithElementType).ElementType() o.Parameters = types.ListValueMust(t, vs) } @@ -11371,6 +11419,7 @@ func (o *UpdateQueryRequestQuery) SetTags(ctx context.Context, v []types.String) vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["tags"] + t = t.(attr.TypeWithElementType).ElementType() o.Tags = types.ListValueMust(t, vs) } @@ -11811,6 +11860,7 @@ func (o *WarehouseAccessControlResponse) SetAllPermissions(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -11889,6 +11939,7 @@ func (o *WarehousePermission) SetInheritedFromObject(ctx context.Context, v []ty vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -11967,6 +12018,7 @@ func (o *WarehousePermissions) SetAccessControlList(ctx context.Context, v []War vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -12086,6 +12138,7 @@ func (o *WarehousePermissionsRequest) SetAccessControlList(ctx context.Context, vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } diff --git a/internal/service/vectorsearch_tf/model.go b/internal/service/vectorsearch_tf/model.go index d8bd24cc31..376b1e9033 100755 --- a/internal/service/vectorsearch_tf/model.go +++ b/internal/service/vectorsearch_tf/model.go @@ -381,6 +381,7 @@ func (o *DeleteDataResult) SetFailedPrimaryKeys(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["failed_primary_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.FailedPrimaryKeys = types.ListValueMust(t, vs) } @@ -458,6 +459,7 @@ func (o *DeleteDataVectorIndexRequest) SetPrimaryKeys(ctx context.Context, v []t vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["primary_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.PrimaryKeys = types.ListValueMust(t, vs) } @@ -803,6 +805,7 @@ func (o *DeltaSyncVectorIndexSpecRequest) SetColumnsToSync(ctx context.Context, vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["columns_to_sync"] + t = t.(attr.TypeWithElementType).ElementType() o.ColumnsToSync = types.ListValueMust(t, vs) } @@ -828,6 +831,7 @@ func (o *DeltaSyncVectorIndexSpecRequest) SetEmbeddingSourceColumns(ctx context. vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedding_source_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.EmbeddingSourceColumns = types.ListValueMust(t, vs) } @@ -853,6 +857,7 @@ func (o *DeltaSyncVectorIndexSpecRequest) SetEmbeddingVectorColumns(ctx context. vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedding_vector_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.EmbeddingVectorColumns = types.ListValueMust(t, vs) } @@ -955,6 +960,7 @@ func (o *DeltaSyncVectorIndexSpecResponse) SetEmbeddingSourceColumns(ctx context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedding_source_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.EmbeddingSourceColumns = types.ListValueMust(t, vs) } @@ -980,6 +986,7 @@ func (o *DeltaSyncVectorIndexSpecResponse) SetEmbeddingVectorColumns(ctx context vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedding_vector_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.EmbeddingVectorColumns = types.ListValueMust(t, vs) } @@ -1067,6 +1074,7 @@ func (o *DirectAccessVectorIndexSpec) SetEmbeddingSourceColumns(ctx context.Cont vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedding_source_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.EmbeddingSourceColumns = types.ListValueMust(t, vs) } @@ -1092,6 +1100,7 @@ func (o *DirectAccessVectorIndexSpec) SetEmbeddingVectorColumns(ctx context.Cont vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["embedding_vector_columns"] + t = t.(attr.TypeWithElementType).ElementType() o.EmbeddingVectorColumns = types.ListValueMust(t, vs) } @@ -1497,6 +1506,7 @@ func (o *ListEndpointResponse) SetEndpoints(ctx context.Context, v []EndpointInf vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["endpoints"] + t = t.(attr.TypeWithElementType).ElementType() o.Endpoints = types.ListValueMust(t, vs) } @@ -1657,6 +1667,7 @@ func (o *ListValue) SetValues(ctx context.Context, v []Value) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["values"] + t = t.(attr.TypeWithElementType).ElementType() o.Values = types.ListValueMust(t, vs) } @@ -1733,6 +1744,7 @@ func (o *ListVectorIndexesResponse) SetVectorIndexes(ctx context.Context, v []Mi vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["vector_indexes"] + t = t.(attr.TypeWithElementType).ElementType() o.VectorIndexes = types.ListValueMust(t, vs) } @@ -2034,6 +2046,7 @@ func (o *QueryVectorIndexRequest) SetColumns(ctx context.Context, v []types.Stri vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["columns"] + t = t.(attr.TypeWithElementType).ElementType() o.Columns = types.ListValueMust(t, vs) } @@ -2059,6 +2072,7 @@ func (o *QueryVectorIndexRequest) SetQueryVector(ctx context.Context, v []types. vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["query_vector"] + t = t.(attr.TypeWithElementType).ElementType() o.QueryVector = types.ListValueMust(t, vs) } @@ -2248,6 +2262,7 @@ func (o *ResultData) SetDataArray(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["data_array"] + t = t.(attr.TypeWithElementType).ElementType() o.DataArray = types.ListValueMust(t, vs) } @@ -2324,6 +2339,7 @@ func (o *ResultManifest) SetColumns(ctx context.Context, v []ColumnInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["columns"] + t = t.(attr.TypeWithElementType).ElementType() o.Columns = types.ListValueMust(t, vs) } @@ -2451,6 +2467,7 @@ func (o *ScanVectorIndexResponse) SetData(ctx context.Context, v []Struct) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["data"] + t = t.(attr.TypeWithElementType).ElementType() o.Data = types.ListValueMust(t, vs) } @@ -2522,6 +2539,7 @@ func (o *Struct) SetFields(ctx context.Context, v []MapStringValueEntry) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["fields"] + t = t.(attr.TypeWithElementType).ElementType() o.Fields = types.ListValueMust(t, vs) } @@ -2677,6 +2695,7 @@ func (o *UpsertDataResult) SetFailedPrimaryKeys(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["failed_primary_keys"] + t = t.(attr.TypeWithElementType).ElementType() o.FailedPrimaryKeys = types.ListValueMust(t, vs) } diff --git a/internal/service/workspace_tf/model.go b/internal/service/workspace_tf/model.go index b6fef9cd19..1089548205 100755 --- a/internal/service/workspace_tf/model.go +++ b/internal/service/workspace_tf/model.go @@ -1432,6 +1432,7 @@ func (o *GetRepoPermissionLevelsResponse) SetPermissionLevels(ctx context.Contex vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -1868,6 +1869,7 @@ func (o *GetWorkspaceObjectPermissionLevelsResponse) SetPermissionLevels(ctx con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["permission_levels"] + t = t.(attr.TypeWithElementType).ElementType() o.PermissionLevels = types.ListValueMust(t, vs) } @@ -2143,6 +2145,7 @@ func (o *ListAclsResponse) SetItems(ctx context.Context, v []AclItem) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["items"] + t = t.(attr.TypeWithElementType).ElementType() o.Items = types.ListValueMust(t, vs) } @@ -2214,6 +2217,7 @@ func (o *ListCredentialsResponse) SetCredentials(ctx context.Context, v []Creden vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["credentials"] + t = t.(attr.TypeWithElementType).ElementType() o.Credentials = types.ListValueMust(t, vs) } @@ -2341,6 +2345,7 @@ func (o *ListReposResponse) SetRepos(ctx context.Context, v []RepoInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["repos"] + t = t.(attr.TypeWithElementType).ElementType() o.Repos = types.ListValueMust(t, vs) } @@ -2412,6 +2417,7 @@ func (o *ListResponse) SetObjects(ctx context.Context, v []ObjectInfo) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["objects"] + t = t.(attr.TypeWithElementType).ElementType() o.Objects = types.ListValueMust(t, vs) } @@ -2483,6 +2489,7 @@ func (o *ListScopesResponse) SetScopes(ctx context.Context, v []SecretScope) { vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["scopes"] + t = t.(attr.TypeWithElementType).ElementType() o.Scopes = types.ListValueMust(t, vs) } @@ -2597,6 +2604,7 @@ func (o *ListSecretsResponse) SetSecrets(ctx context.Context, v []SecretMetadata vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["secrets"] + t = t.(attr.TypeWithElementType).ElementType() o.Secrets = types.ListValueMust(t, vs) } @@ -3117,6 +3125,7 @@ func (o *RepoAccessControlResponse) SetAllPermissions(ctx context.Context, v []R vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -3292,6 +3301,7 @@ func (o *RepoPermission) SetInheritedFromObject(ctx context.Context, v []types.S vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -3370,6 +3380,7 @@ func (o *RepoPermissions) SetAccessControlList(ctx context.Context, v []RepoAcce vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3489,6 +3500,7 @@ func (o *RepoPermissionsRequest) SetAccessControlList(ctx context.Context, v []R vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -3690,6 +3702,7 @@ func (o *SparseCheckout) SetPatterns(ctx context.Context, v []types.String) { vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["patterns"] + t = t.(attr.TypeWithElementType).ElementType() o.Patterns = types.ListValueMust(t, vs) } @@ -3765,6 +3778,7 @@ func (o *SparseCheckoutUpdate) SetPatterns(ctx context.Context, v []types.String vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["patterns"] + t = t.(attr.TypeWithElementType).ElementType() o.Patterns = types.ListValueMust(t, vs) } @@ -4133,6 +4147,7 @@ func (o *WorkspaceObjectAccessControlResponse) SetAllPermissions(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["all_permissions"] + t = t.(attr.TypeWithElementType).ElementType() o.AllPermissions = types.ListValueMust(t, vs) } @@ -4211,6 +4226,7 @@ func (o *WorkspaceObjectPermission) SetInheritedFromObject(ctx context.Context, vs = append(vs, e) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["inherited_from_object"] + t = t.(attr.TypeWithElementType).ElementType() o.InheritedFromObject = types.ListValueMust(t, vs) } @@ -4289,6 +4305,7 @@ func (o *WorkspaceObjectPermissions) SetAccessControlList(ctx context.Context, v vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } @@ -4412,5 +4429,6 @@ func (o *WorkspaceObjectPermissionsRequest) SetAccessControlList(ctx context.Con vs = append(vs, e.ToObjectValue(ctx)) } t := o.Type(ctx).(basetypes.ObjectType).AttrTypes["access_control_list"] + t = t.(attr.TypeWithElementType).ElementType() o.AccessControlList = types.ListValueMust(t, vs) } From 2feedf4815372095442ccf58673ae338d090ca6d Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Mon, 9 Dec 2024 10:53:39 +0100 Subject: [PATCH 2/6] improve error message --- .../pluginfw/tfschema/struct_to_schema.go | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/internal/providers/pluginfw/tfschema/struct_to_schema.go b/internal/providers/pluginfw/tfschema/struct_to_schema.go index 4c940cced9..318029a34e 100644 --- a/internal/providers/pluginfw/tfschema/struct_to_schema.go +++ b/internal/providers/pluginfw/tfschema/struct_to_schema.go @@ -116,7 +116,30 @@ func typeToSchema(ctx context.Context, v reflect.Value) NestedBlockObject { } } } + // No other types are supported. Instead, we provide helpful error messages to help users writing + // custom TFSDK structures to use the appropriate types. + case int, int32, int64: + panic(fmt.Errorf("unsupported type %T in tfsdk structs. Use types.Int intead. %s", value, common.TerraformBugErrorMessage)) + case float32, float64: + panic(fmt.Errorf("unsupported type %T in tfsdk structs. Use types.Float64 instead. %s", value, common.TerraformBugErrorMessage)) + case string: + panic(fmt.Errorf("unsupported type %T in tfsdk structs. Use types.String instead. %s", value, common.TerraformBugErrorMessage)) + case bool: + panic(fmt.Errorf("unsupported type %T in tfsdk structs. Use types.Bool instead. %s", value, common.TerraformBugErrorMessage)) default: + fieldType := field.Value.Type() + if fieldType.Kind() == reflect.Slice { + fieldElemType := fieldType.Elem() + panic(fmt.Errorf("unsupported type %T in tfsdk structs. Use types.List instead. To capture the element type, implement the ComplexFieldTypeProvider interface and add the following mapping: \"%s\": reflect.TypeOf(%s). %s", value, fieldName, fieldElemType.Name(), common.TerraformBugErrorMessage)) + } + if fieldType.Kind() == reflect.Map { + fieldElemType := fieldType.Elem() + panic(fmt.Errorf("unsupported type %T in tfsdk structs. Use types.Map instead. To capture the element type, implement the ComplexFieldTypeProvider interface and add the following mapping: \"%s\": reflect.TypeOf(%s). %s", value, fieldName, fieldElemType.Name(), common.TerraformBugErrorMessage)) + } + if fieldType.Kind() == reflect.Struct { + // TODO: change the recommendation to use types.Object when support is added. + panic(fmt.Errorf("unsupported type %T in tfsdk structs. Use types.List instead, and treat the nested object as a list of length 1. To capture the element type, implement the ComplexFieldTypeProvider interface and add the following mapping: \"%s\": reflect.TypeOf(%s). %s", value, fieldName, fieldType.Name(), common.TerraformBugErrorMessage)) + } panic(fmt.Errorf("unexpected type %T in tfsdk structs, expected a plugin framework value type. %s", value, common.TerraformBugErrorMessage)) } // types.List fields of complex types correspond to ListNestedBlock, which don't have optional/required/computed flags. From 4feb0530f1f36cee3cc8a61a5b2746cce24e9903 Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Mon, 9 Dec 2024 14:24:20 +0100 Subject: [PATCH 3/6] fix go to tf conversion --- .../pluginfw/converters/converters_test.go | 90 +++++++++---------- .../providers/pluginfw/converters/go_to_tf.go | 6 -- 2 files changed, 42 insertions(+), 54 deletions(-) diff --git a/internal/providers/pluginfw/converters/converters_test.go b/internal/providers/pluginfw/converters/converters_test.go index 0de36f9bef..3238965388 100644 --- a/internal/providers/pluginfw/converters/converters_test.go +++ b/internal/providers/pluginfw/converters/converters_test.go @@ -32,6 +32,7 @@ type DummyTfSdk struct { SliceStructPtr types.List `tfsdk:"slice_struct_ptr" tf:"optional"` Irrelevant types.String `tfsdk:"-"` Object types.Object `tfsdk:"object" tf:"optional"` + ObjectPtr types.Object `tfsdk:"object_ptr" tf:"optional"` } func (DummyTfSdk) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type { @@ -43,9 +44,9 @@ func (DummyTfSdk) GetComplexFieldTypes(ctx context.Context) map[string]reflect.T "nested_map": reflect.TypeOf(DummyNestedTfSdk{}), "repeated": reflect.TypeOf(types.Int64{}), "attributes": reflect.TypeOf(types.String{}), - "slice_struct": reflect.TypeOf(DummyNestedTfSdk{}), "slice_struct_ptr": reflect.TypeOf(DummyNestedTfSdk{}), "object": reflect.TypeOf(DummyNestedTfSdk{}), + "object_ptr": reflect.TypeOf(DummyNestedTfSdk{}), } } @@ -98,8 +99,9 @@ type DummyGoSdk struct { AdditionalField string `json:"additional_field"` DistinctField string `json:"distinct_field"` // distinct field that the tfsdk struct doesn't have SliceStructPtr *DummyNestedGoSdk `json:"slice_struct_ptr"` - ForceSendFields []string `json:"-"` Object DummyNestedGoSdk `json:"object"` + ObjectPtr *DummyNestedGoSdk `json:"object_ptr"` + ForceSendFields []string `json:"-"` } type DummyNestedGoSdk struct { @@ -112,53 +114,45 @@ type DummyNestedGoSdk struct { // This is required because the Go->TF conversion function instantiates list, map, and // object fields with empty values, which are not equal to null values in the tfsdk struct. func populateEmptyFields(c DummyTfSdk) DummyTfSdk { - complexFields := c.GetComplexFieldTypes(context.Background()) - v := reflect.ValueOf(&c).Elem() - for i := 0; i < v.NumField(); i++ { - field := v.Field(i) - // If the field is a simple type, the zero value is OK. - switch field.Type() { - case reflect.TypeOf(types.Bool{}), reflect.TypeOf(types.Int64{}), reflect.TypeOf(types.Float64{}), reflect.TypeOf(types.String{}): - continue - } - if !field.IsZero() { - continue - } - - tfsdkName := v.Type().Field(i).Tag.Get("tfsdk") - complexType, ok := complexFields[tfsdkName] - if !ok { - continue - } - - var typ attr.Type - switch complexType { - case reflect.TypeOf(types.Bool{}): - typ = types.BoolType - case reflect.TypeOf(types.Int64{}): - typ = types.Int64Type - case reflect.TypeOf(types.Float64{}): - typ = types.Float64Type - case reflect.TypeOf(types.String{}): - typ = types.StringType - default: - innerVal := reflect.New(complexType).Elem().Interface() - typ = tfcommon.NewObjectTyper(innerVal).Type(context.Background()) - } - switch field.Type() { - case reflect.TypeOf(types.List{}): - value := types.ListNull(typ) - field.Set(reflect.ValueOf(value)) - case reflect.TypeOf(types.Map{}): - value := types.MapNull(typ) - field.Set(reflect.ValueOf(value)) - case reflect.TypeOf(types.Object{}): - objectType := typ.(types.ObjectType) - value := types.ObjectNull(objectType.AttrTypes) - field.Set(reflect.ValueOf(value)) - } + if c.NoPointerNested.IsNull() { + c.NoPointerNested = types.ListValueMust(dummyType, []attr.Value{ + types.ObjectValueMust(dummyType.AttrTypes, map[string]attr.Value{ + "name": types.StringNull(), + "enabled": types.BoolNull(), + }), + }) + } + if c.NestedList.IsNull() { + c.NestedList = types.ListNull(dummyType) + } + if c.NestedPointerList.IsNull() { + c.NestedPointerList = types.ListNull(dummyType) + } + if c.Map.IsNull() { + c.Map = types.MapNull(types.StringType) + } + if c.NestedMap.IsNull() { + c.NestedMap = types.MapNull(dummyType) + } + if c.Repeated.IsNull() { + c.Repeated = types.ListNull(types.Int64Type) + } + if c.Attributes.IsNull() { + c.Attributes = types.MapNull(types.StringType) + } + if c.SliceStructPtr.IsNull() { + c.SliceStructPtr = types.ListNull(dummyType) + } + if c.Object.IsNull() { + c.Object = types.ObjectValueMust(dummyType.AttrTypes, map[string]attr.Value{ + "name": types.StringNull(), + "enabled": types.BoolNull(), + }) + } + if c.ObjectPtr.IsNull() { + c.ObjectPtr = types.ObjectNull(dummyType.AttrTypes) } - return v.Interface().(DummyTfSdk) + return c } // Function to construct individual test case with a pair of matching tfSdkStruct and gosdkStruct. diff --git a/internal/providers/pluginfw/converters/go_to_tf.go b/internal/providers/pluginfw/converters/go_to_tf.go index 70e6653a5f..387a86450e 100644 --- a/internal/providers/pluginfw/converters/go_to_tf.go +++ b/internal/providers/pluginfw/converters/go_to_tf.go @@ -186,12 +186,6 @@ func goSdkToTfSdkSingleField( } case reflect.Struct: // This corresponds to either a types.List or types.Object. - // If the struct is zero value, set the destination field to the null value of the appropriate type. - if srcField.IsZero() { - setFieldToNull(destField, tfType) - return - } - // If the destination field is a types.List, treat the source field as a slice with length 1 // containing only this struct. if destField.Type() == reflect.TypeOf(types.List{}) { From d10447f30af7b6798ea15e098586e1ad66dbfc4a Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Mon, 9 Dec 2024 14:49:00 +0100 Subject: [PATCH 4/6] fixes --- internal/providers/pluginfw/converters/converters_test.go | 7 +++++++ internal/providers/pluginfw/converters/go_to_tf.go | 5 +++-- .../providers/pluginfw/products/cluster/data_cluster.go | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/internal/providers/pluginfw/converters/converters_test.go b/internal/providers/pluginfw/converters/converters_test.go index 3238965388..7ef925e626 100644 --- a/internal/providers/pluginfw/converters/converters_test.go +++ b/internal/providers/pluginfw/converters/converters_test.go @@ -33,6 +33,7 @@ type DummyTfSdk struct { Irrelevant types.String `tfsdk:"-"` Object types.Object `tfsdk:"object" tf:"optional"` ObjectPtr types.Object `tfsdk:"object_ptr" tf:"optional"` + Type_ types.String `tfsdk:"type" tf:""` // Test Type_ renaming } func (DummyTfSdk) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type { @@ -101,6 +102,7 @@ type DummyGoSdk struct { SliceStructPtr *DummyNestedGoSdk `json:"slice_struct_ptr"` Object DummyNestedGoSdk `json:"object"` ObjectPtr *DummyNestedGoSdk `json:"object_ptr"` + Type string `json:"type"` // Test Type_ renaming ForceSendFields []string `json:"-"` } @@ -354,6 +356,11 @@ var tests = []struct { ForceSendFields: []string{"Name", "Enabled"}, }, ForceSendFields: []string{"Object"}}, }, + { + "type name", + DummyTfSdk{Type_: types.StringValue("abc")}, + DummyGoSdk{Type: "abc", ForceSendFields: []string{"Type"}}, + }, } func TestConverter(t *testing.T) { diff --git a/internal/providers/pluginfw/converters/go_to_tf.go b/internal/providers/pluginfw/converters/go_to_tf.go index 387a86450e..e01ee25c92 100644 --- a/internal/providers/pluginfw/converters/go_to_tf.go +++ b/internal/providers/pluginfw/converters/go_to_tf.go @@ -82,8 +82,9 @@ func GoSdkToTfSdkStruct(ctx context.Context, gosdk interface{}, tfsdk interface{ if srcFieldTag == "-" { continue } - destField := destVal.FieldByName(toTfSdkName(srcFieldName)) - destFieldType, ok := destVal.Type().FieldByName(field.StructField.Name) + destFieldStructName := toTfSdkName(srcFieldName) + destField := destVal.FieldByName(destFieldStructName) + destFieldType, ok := destVal.Type().FieldByName(destFieldStructName) if !ok { d.AddError(goSdkToTfSdkStructConversionFailureMessage, fmt.Sprintf("destination struct does not have field %s. %s", srcFieldName, common.TerraformBugErrorMessage)) return diff --git a/internal/providers/pluginfw/products/cluster/data_cluster.go b/internal/providers/pluginfw/products/cluster/data_cluster.go index 6db44eaee1..ffcf6a70dd 100644 --- a/internal/providers/pluginfw/products/cluster/data_cluster.go +++ b/internal/providers/pluginfw/products/cluster/data_cluster.go @@ -87,6 +87,9 @@ func (d *ClusterDataSource) Read(ctx context.Context, req datasource.ReadRequest var tfCluster compute_tf.ClusterDetails resp.Diagnostics.Append(converters.GoSdkToTfSdkStruct(ctx, cluster, &tfCluster)...) + if resp.Diagnostics.HasError() { + return + } clusterInfo.ClusterId = tfCluster.ClusterId clusterInfo.Name = tfCluster.ClusterName From ed7246edfe46a41b1ae40403fdfe8b3303c18c78 Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Mon, 9 Dec 2024 14:50:14 +0100 Subject: [PATCH 5/6] fmt --- internal/providers/pluginfw/converters/converters_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/providers/pluginfw/converters/converters_test.go b/internal/providers/pluginfw/converters/converters_test.go index 7ef925e626..a6bccb43f3 100644 --- a/internal/providers/pluginfw/converters/converters_test.go +++ b/internal/providers/pluginfw/converters/converters_test.go @@ -33,7 +33,7 @@ type DummyTfSdk struct { Irrelevant types.String `tfsdk:"-"` Object types.Object `tfsdk:"object" tf:"optional"` ObjectPtr types.Object `tfsdk:"object_ptr" tf:"optional"` - Type_ types.String `tfsdk:"type" tf:""` // Test Type_ renaming + Type_ types.String `tfsdk:"type" tf:""` // Test Type_ renaming } func (DummyTfSdk) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type { @@ -102,7 +102,7 @@ type DummyGoSdk struct { SliceStructPtr *DummyNestedGoSdk `json:"slice_struct_ptr"` Object DummyNestedGoSdk `json:"object"` ObjectPtr *DummyNestedGoSdk `json:"object_ptr"` - Type string `json:"type"` // Test Type_ renaming + Type string `json:"type"` // Test Type_ renaming ForceSendFields []string `json:"-"` } From 0d497600af7bb81c6484598554b25d5dbf167f52 Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Mon, 9 Dec 2024 17:03:25 +0100 Subject: [PATCH 6/6] fix types.Object handling --- .../pluginfw/converters/converters_test.go | 45 ++++++++++++++++--- .../providers/pluginfw/converters/go_to_tf.go | 23 ++++++++-- .../providers/pluginfw/converters/tf_to_go.go | 15 ++++++- 3 files changed, 73 insertions(+), 10 deletions(-) diff --git a/internal/providers/pluginfw/converters/converters_test.go b/internal/providers/pluginfw/converters/converters_test.go index a6bccb43f3..c8f4bf1720 100644 --- a/internal/providers/pluginfw/converters/converters_test.go +++ b/internal/providers/pluginfw/converters/converters_test.go @@ -10,6 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" "github.com/stretchr/testify/assert" ) @@ -34,6 +35,8 @@ type DummyTfSdk struct { Object types.Object `tfsdk:"object" tf:"optional"` ObjectPtr types.Object `tfsdk:"object_ptr" tf:"optional"` Type_ types.String `tfsdk:"type" tf:""` // Test Type_ renaming + EmptyStructList types.List `tfsdk:"empty_struct_list" tf:"optional"` + EmptyStructObject types.Object `tfsdk:"empty_struct_object" tf:"optional"` } func (DummyTfSdk) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type { @@ -48,6 +51,8 @@ func (DummyTfSdk) GetComplexFieldTypes(ctx context.Context) map[string]reflect.T "slice_struct_ptr": reflect.TypeOf(DummyNestedTfSdk{}), "object": reflect.TypeOf(DummyNestedTfSdk{}), "object_ptr": reflect.TypeOf(DummyNestedTfSdk{}), + "empty_struct_list": reflect.TypeOf(DummyNestedTfSdkEmpty{}), + "empty_struct_object": reflect.TypeOf(DummyNestedTfSdkEmpty{}), } } @@ -83,6 +88,8 @@ type DummyNestedTfSdk struct { Enabled types.Bool `tfsdk:"enabled" tf:"optional"` } +type DummyNestedTfSdkEmpty struct{} + type DummyGoSdk struct { Enabled bool `json:"enabled"` Workers int64 `json:"workers"` @@ -103,6 +110,8 @@ type DummyGoSdk struct { Object DummyNestedGoSdk `json:"object"` ObjectPtr *DummyNestedGoSdk `json:"object_ptr"` Type string `json:"type"` // Test Type_ renaming + EmptyStructList []DummyNestedGoSdkEmpty `json:"empty_struct_list"` + EmptyStructObject *DummyNestedGoSdkEmpty `json:"empty_struct_object"` ForceSendFields []string `json:"-"` } @@ -112,17 +121,14 @@ type DummyNestedGoSdk struct { ForceSendFields []string `json:"-"` } +type DummyNestedGoSdkEmpty struct{} + // This function is used to populate empty fields in the tfsdk struct with null values. // This is required because the Go->TF conversion function instantiates list, map, and // object fields with empty values, which are not equal to null values in the tfsdk struct. func populateEmptyFields(c DummyTfSdk) DummyTfSdk { if c.NoPointerNested.IsNull() { - c.NoPointerNested = types.ListValueMust(dummyType, []attr.Value{ - types.ObjectValueMust(dummyType.AttrTypes, map[string]attr.Value{ - "name": types.StringNull(), - "enabled": types.BoolNull(), - }), - }) + c.NoPointerNested = types.ListNull(dummyType) } if c.NestedList.IsNull() { c.NestedList = types.ListNull(dummyType) @@ -146,14 +152,22 @@ func populateEmptyFields(c DummyTfSdk) DummyTfSdk { c.SliceStructPtr = types.ListNull(dummyType) } if c.Object.IsNull() { + // type.Object fields that correspond to structs are considered never to be null. c.Object = types.ObjectValueMust(dummyType.AttrTypes, map[string]attr.Value{ "name": types.StringNull(), "enabled": types.BoolNull(), }) } if c.ObjectPtr.IsNull() { + // type.Object fields that correspond to pointers are considered null when the Go SDK value is nil. c.ObjectPtr = types.ObjectNull(dummyType.AttrTypes) } + if c.EmptyStructList.IsNull() { + c.EmptyStructList = types.ListNull(basetypes.ObjectType{AttrTypes: map[string]attr.Type{}}) + } + if c.EmptyStructObject.IsNull() { + c.EmptyStructObject = types.ObjectNull(map[string]attr.Type{}) + } return c } @@ -194,6 +208,7 @@ func TestGoSdkToTfSdkStructConversionFailure(t *testing.T) { } var dummyType = tfcommon.NewObjectTyper(DummyNestedTfSdk{}).Type(context.Background()).(types.ObjectType) +var emptyType = basetypes.ObjectType{AttrTypes: map[string]attr.Type{}} var tests = []struct { name string @@ -361,6 +376,24 @@ var tests = []struct { DummyTfSdk{Type_: types.StringValue("abc")}, DummyGoSdk{Type: "abc", ForceSendFields: []string{"Type"}}, }, + { + "empty list of empty struct to list conversion", + DummyTfSdk{EmptyStructList: types.ListValueMust(emptyType, []attr.Value{})}, + DummyGoSdk{EmptyStructList: []DummyNestedGoSdkEmpty{}}, + }, + { + "non-empty list empty struct to list conversion", + DummyTfSdk{EmptyStructList: types.ListValueMust(emptyType, []attr.Value{ + types.ObjectValueMust(map[string]attr.Type{}, map[string]attr.Value{}), + types.ObjectValueMust(map[string]attr.Type{}, map[string]attr.Value{}), + })}, + DummyGoSdk{EmptyStructList: []DummyNestedGoSdkEmpty{{}, {}}}, + }, + { + "non-nil pointer of empty struct to object conversion", + DummyTfSdk{EmptyStructObject: types.ObjectValueMust(emptyType.AttrTypes, map[string]attr.Value{})}, + DummyGoSdk{EmptyStructObject: &DummyNestedGoSdkEmpty{}, ForceSendFields: []string{"EmptyStructObject"}}, + }, } func TestConverter(t *testing.T) { diff --git a/internal/providers/pluginfw/converters/go_to_tf.go b/internal/providers/pluginfw/converters/go_to_tf.go index e01ee25c92..058995296c 100644 --- a/internal/providers/pluginfw/converters/go_to_tf.go +++ b/internal/providers/pluginfw/converters/go_to_tf.go @@ -137,9 +137,19 @@ func goSdkToTfSdkSingleField( return } - // Otherwise, dereference the pointer and continue. - srcField = srcField.Elem() - d.Append(goSdkToTfSdkSingleField(ctx, srcField, destField, forceSendField, tfType, innerType)...) + // Otherwise, the source field is a non-nil pointer to a struct. + // If the target is a list, we treat the source field as a slice with length 1 + // containing only the dereferenced pointer. + if destField.Type() == reflect.TypeOf(types.List{}) { + listSrc := reflect.MakeSlice(reflect.SliceOf(srcField.Type().Elem()), 1, 1) + listSrc.Index(0).Set(srcField.Elem()) + d.Append(goSdkToTfSdkSingleField(ctx, listSrc, destField, forceSendField, tfType, innerType)...) + return + } + + // Otherwise, the target is an object. Dereference the pointer and convert the underlying struct. + d.Append(goSdkToTfSdkSingleField(ctx, srcField.Elem(), destField, forceSendField, tfType, innerType)...) + return case reflect.Bool: boolVal := srcField.Interface().(bool) // check if the value is non-zero or if the field is in the forceSendFields list @@ -190,6 +200,13 @@ func goSdkToTfSdkSingleField( // If the destination field is a types.List, treat the source field as a slice with length 1 // containing only this struct. if destField.Type() == reflect.TypeOf(types.List{}) { + // For compatibility, a field consisting of a zero-valued struct that is mapped to lists is treated as an + // empty list. + if srcField.IsZero() { + setFieldToNull(destField, tfType) + return + } + listSrc := reflect.MakeSlice(reflect.SliceOf(srcField.Type()), 1, 1) listSrc.Index(0).Set(srcField) d.Append(goSdkToTfSdkSingleField(ctx, listSrc, destField, forceSendField, tfType, innerType)...) diff --git a/internal/providers/pluginfw/converters/tf_to_go.go b/internal/providers/pluginfw/converters/tf_to_go.go index d5e4f828ed..27f18feaee 100644 --- a/internal/providers/pluginfw/converters/tf_to_go.go +++ b/internal/providers/pluginfw/converters/tf_to_go.go @@ -254,7 +254,20 @@ func tfsdkToGoSdkStructField( return } - d.Append(TfSdkToGoSdkStruct(ctx, innerValue.Interface(), destField.Addr().Interface())...) + destType := destField.Type() + if destType.Kind() == reflect.Ptr { + destType = destType.Elem() + } + destValue := reflect.New(destType) + d.Append(TfSdkToGoSdkStruct(ctx, innerValue.Interface(), destValue.Interface())...) + if d.HasError() { + return + } + if destField.Type().Kind() == reflect.Ptr { + destField.Set(destValue) + } else { + destField.Set(destValue.Elem()) + } default: d.AddError(tfSdkToGoSdkFieldConversionFailureMessage, fmt.Sprintf("%T is not currently supported as a source field. %s", v, common.TerraformBugErrorMessage)) return