From f674ce20fefa993a7622fb2eba785393c63a468a Mon Sep 17 00:00:00 2001 From: Benjamin Bennett Date: Tue, 24 Oct 2023 09:28:11 +0100 Subject: [PATCH] Suffixing attribute name to prevent errors when nested attribute names are reserved Go keywords (#76) --- .../example_data_source_gen.go | 684 +++++++++--------- .../provider_example/example_provider_gen.go | 420 +++++------ .../resource_example/example_resource_gen.go | 420 +++++------ .../example_data_source_gen.go | 684 +++++++++--------- .../example_provider_gen.go | 420 +++++------ .../example_resource_gen.go | 420 +++++------ .../example_data_source_gen.go | 684 +++++++++--------- .../provider_output/example_provider_gen.go | 420 +++++------ .../resources_output/example_resource_gen.go | 420 +++++------ internal/schema/custom_object_test.go | 12 +- .../schema/templates/object_type_value.gotmpl | 6 +- .../object_type_value_from_object.gotmpl | 6 +- 12 files changed, 2298 insertions(+), 2298 deletions(-) diff --git a/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/datasource_example/example_data_source_gen.go b/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/datasource_example/example_data_source_gen.go index 2278d159..6d8cad76 100644 --- a/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/datasource_example/example_data_source_gen.go +++ b/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/datasource_example/example_data_source_gen.go @@ -619,7 +619,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -629,15 +629,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -647,15 +647,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -665,15 +665,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -683,15 +683,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -701,12 +701,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -786,7 +786,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -796,15 +796,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -814,15 +814,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -832,15 +832,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -850,15 +850,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -868,12 +868,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1151,7 +1151,7 @@ func (t ListNestedAttributeOneType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1161,12 +1161,12 @@ func (t ListNestedAttributeOneType) ValueFromObject(ctx context.Context, in base return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -1242,7 +1242,7 @@ func NewListNestedAttributeOneValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1252,12 +1252,12 @@ func NewListNestedAttributeOneValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -1463,7 +1463,7 @@ func (t ListNestedAttributeThreeType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - listNestedAttributeThreeListNestedAttributeOne, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] + listNestedAttributeThreeListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] if !ok { diags.AddError( @@ -1473,12 +1473,12 @@ func (t ListNestedAttributeThreeType) ValueFromObject(ctx context.Context, in ba return nil, diags } - listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -1554,7 +1554,7 @@ func NewListNestedAttributeThreeValue(attributeTypes map[string]attr.Type, attri return NewListNestedAttributeThreeValueUnknown(), diags } - listNestedAttributeThreeListNestedAttributeOne, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] + listNestedAttributeThreeListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] if !ok { diags.AddError( @@ -1564,12 +1564,12 @@ func NewListNestedAttributeThreeValue(attributeTypes map[string]attr.Type, attri return NewListNestedAttributeThreeValueUnknown(), diags } - listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -1810,7 +1810,7 @@ func (t ListNestedAttributeThreeListNestedAttributeOneType) ValueFromObject(ctx attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -1820,12 +1820,12 @@ func (t ListNestedAttributeThreeListNestedAttributeOneType) ValueFromObject(ctx return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -1901,7 +1901,7 @@ func NewListNestedAttributeThreeListNestedAttributeOneValue(attributeTypes map[s return NewListNestedAttributeThreeListNestedAttributeOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -1911,12 +1911,12 @@ func NewListNestedAttributeThreeListNestedAttributeOneValue(attributeTypes map[s return NewListNestedAttributeThreeListNestedAttributeOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -2128,7 +2128,7 @@ func (t ListNestedAttributeTwoType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - listNestedAttributeTwoListNestedAttributeOne, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] + listNestedAttributeTwoListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] if !ok { diags.AddError( @@ -2138,12 +2138,12 @@ func (t ListNestedAttributeTwoType) ValueFromObject(ctx context.Context, in base return nil, diags } - listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -2219,7 +2219,7 @@ func NewListNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeTwoValueUnknown(), diags } - listNestedAttributeTwoListNestedAttributeOne, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] + listNestedAttributeTwoListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] if !ok { diags.AddError( @@ -2229,12 +2229,12 @@ func NewListNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeTwoValueUnknown(), diags } - listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -2475,7 +2475,7 @@ func (t ListNestedAttributeTwoListNestedAttributeOneType) ValueFromObject(ctx co attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2485,12 +2485,12 @@ func (t ListNestedAttributeTwoListNestedAttributeOneType) ValueFromObject(ctx co return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -2566,7 +2566,7 @@ func NewListNestedAttributeTwoListNestedAttributeOneValue(attributeTypes map[str return NewListNestedAttributeTwoListNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2576,12 +2576,12 @@ func NewListNestedAttributeTwoListNestedAttributeOneValue(attributeTypes map[str return NewListNestedAttributeTwoListNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -2787,7 +2787,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2797,15 +2797,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2815,15 +2815,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2833,15 +2833,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2851,15 +2851,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2869,12 +2869,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2954,7 +2954,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2964,15 +2964,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2982,15 +2982,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3000,15 +3000,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3018,15 +3018,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3036,12 +3036,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3319,7 +3319,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3329,15 +3329,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3347,15 +3347,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3365,15 +3365,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3383,15 +3383,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3401,12 +3401,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3486,7 +3486,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3496,15 +3496,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3514,15 +3514,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3532,15 +3532,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3550,15 +3550,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3568,12 +3568,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3851,7 +3851,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3861,15 +3861,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3879,15 +3879,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3897,15 +3897,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3915,15 +3915,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3933,12 +3933,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -4018,7 +4018,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4028,15 +4028,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -4046,15 +4046,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -4064,15 +4064,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -4082,15 +4082,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -4100,12 +4100,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -4383,7 +4383,7 @@ func (t SingleNestedAttributeOneType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4393,12 +4393,12 @@ func (t SingleNestedAttributeOneType) ValueFromObject(ctx context.Context, in ba return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -4474,7 +4474,7 @@ func NewSingleNestedAttributeOneValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4484,12 +4484,12 @@ func NewSingleNestedAttributeOneValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -4695,7 +4695,7 @@ func (t SingleNestedAttributeThreeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - singleNestedAttributeThreeSingleNestedAttributeOne, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] + singleNestedAttributeThreeSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] if !ok { diags.AddError( @@ -4705,12 +4705,12 @@ func (t SingleNestedAttributeThreeType) ValueFromObject(ctx context.Context, in return nil, diags } - singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -4786,7 +4786,7 @@ func NewSingleNestedAttributeThreeValue(attributeTypes map[string]attr.Type, att return NewSingleNestedAttributeThreeValueUnknown(), diags } - singleNestedAttributeThreeSingleNestedAttributeOne, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] + singleNestedAttributeThreeSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] if !ok { diags.AddError( @@ -4796,12 +4796,12 @@ func NewSingleNestedAttributeThreeValue(attributeTypes map[string]attr.Type, att return NewSingleNestedAttributeThreeValueUnknown(), diags } - singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5034,7 +5034,7 @@ func (t SingleNestedAttributeThreeSingleNestedAttributeOneType) ValueFromObject( attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -5044,12 +5044,12 @@ func (t SingleNestedAttributeThreeSingleNestedAttributeOneType) ValueFromObject( return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -5125,7 +5125,7 @@ func NewSingleNestedAttributeThreeSingleNestedAttributeOneValue(attributeTypes m return NewSingleNestedAttributeThreeSingleNestedAttributeOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -5135,12 +5135,12 @@ func NewSingleNestedAttributeThreeSingleNestedAttributeOneValue(attributeTypes m return NewSingleNestedAttributeThreeSingleNestedAttributeOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -5352,7 +5352,7 @@ func (t SingleNestedAttributeTwoType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - singleNestedAttributeTwoSingleNestedAttributeOne, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] + singleNestedAttributeTwoSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] if !ok { diags.AddError( @@ -5362,12 +5362,12 @@ func (t SingleNestedAttributeTwoType) ValueFromObject(ctx context.Context, in ba return nil, diags } - singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5443,7 +5443,7 @@ func NewSingleNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeTwoValueUnknown(), diags } - singleNestedAttributeTwoSingleNestedAttributeOne, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] + singleNestedAttributeTwoSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] if !ok { diags.AddError( @@ -5453,12 +5453,12 @@ func NewSingleNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeTwoValueUnknown(), diags } - singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5691,7 +5691,7 @@ func (t SingleNestedAttributeTwoSingleNestedAttributeOneType) ValueFromObject(ct attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -5701,12 +5701,12 @@ func (t SingleNestedAttributeTwoSingleNestedAttributeOneType) ValueFromObject(ct return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -5782,7 +5782,7 @@ func NewSingleNestedAttributeTwoSingleNestedAttributeOneValue(attributeTypes map return NewSingleNestedAttributeTwoSingleNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -5792,12 +5792,12 @@ func NewSingleNestedAttributeTwoSingleNestedAttributeOneValue(attributeTypes map return NewSingleNestedAttributeTwoSingleNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6003,7 +6003,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6013,15 +6013,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -6031,15 +6031,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -6049,15 +6049,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -6067,15 +6067,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -6085,12 +6085,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -6170,7 +6170,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6180,15 +6180,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -6198,15 +6198,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -6216,15 +6216,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -6234,15 +6234,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -6252,12 +6252,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -6535,7 +6535,7 @@ func (t ListNestedBlockOneType) ValueFromObject(ctx context.Context, in basetype attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6545,12 +6545,12 @@ func (t ListNestedBlockOneType) ValueFromObject(ctx context.Context, in basetype return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6626,7 +6626,7 @@ func NewListNestedBlockOneValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6636,12 +6636,12 @@ func NewListNestedBlockOneValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6847,7 +6847,7 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - listNestedBlockThreeListNestedBlockOne, ok := attributes["list_nested_block_three_list_nested_block_one"] + listNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["list_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -6857,15 +6857,15 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety return nil, diags } - listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOneAttribute)) } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -6875,12 +6875,12 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety return nil, diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } if diags.HasError() { @@ -6957,7 +6957,7 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - listNestedBlockThreeListNestedBlockOne, ok := attributes["list_nested_block_three_list_nested_block_one"] + listNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["list_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -6967,15 +6967,15 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOneAttribute)) } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -6985,12 +6985,12 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } if diags.HasError() { @@ -7261,7 +7261,7 @@ func (t ListNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx context. attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -7271,12 +7271,12 @@ func (t ListNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx context. return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -7352,7 +7352,7 @@ func NewListNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string]at return NewListNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -7362,12 +7362,12 @@ func NewListNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string]at return NewListNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -7579,7 +7579,7 @@ func (t ListNestedBlockTwoType) ValueFromObject(ctx context.Context, in basetype attributes := in.Attributes() - listNestedBlockTwoListNestedBlockOne, ok := attributes["list_nested_block_two_list_nested_block_one"] + listNestedBlockTwoListNestedBlockOneAttribute, ok := attributes["list_nested_block_two_list_nested_block_one"] if !ok { diags.AddError( @@ -7589,12 +7589,12 @@ func (t ListNestedBlockTwoType) ValueFromObject(ctx context.Context, in basetype return nil, diags } - listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOne.(basetypes.ListValue) + listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOneAttribute)) } if diags.HasError() { @@ -7670,7 +7670,7 @@ func NewListNestedBlockTwoValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockTwoValueUnknown(), diags } - listNestedBlockTwoListNestedBlockOne, ok := attributes["list_nested_block_two_list_nested_block_one"] + listNestedBlockTwoListNestedBlockOneAttribute, ok := attributes["list_nested_block_two_list_nested_block_one"] if !ok { diags.AddError( @@ -7680,12 +7680,12 @@ func NewListNestedBlockTwoValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockTwoValueUnknown(), diags } - listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOne.(basetypes.ListValue) + listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOneAttribute)) } if diags.HasError() { @@ -7926,7 +7926,7 @@ func (t ListNestedBlockTwoListNestedBlockOneType) ValueFromObject(ctx context.Co attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -7936,12 +7936,12 @@ func (t ListNestedBlockTwoListNestedBlockOneType) ValueFromObject(ctx context.Co return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -8017,7 +8017,7 @@ func NewListNestedBlockTwoListNestedBlockOneValue(attributeTypes map[string]attr return NewListNestedBlockTwoListNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8027,12 +8027,12 @@ func NewListNestedBlockTwoListNestedBlockOneValue(attributeTypes map[string]attr return NewListNestedBlockTwoListNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -8238,7 +8238,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8248,15 +8248,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8266,15 +8266,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8284,15 +8284,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8302,15 +8302,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8320,12 +8320,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8405,7 +8405,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8415,15 +8415,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8433,15 +8433,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8451,15 +8451,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8469,15 +8469,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8487,12 +8487,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8770,7 +8770,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8780,15 +8780,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8798,15 +8798,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8816,15 +8816,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8834,15 +8834,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8852,12 +8852,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8937,7 +8937,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8947,15 +8947,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8965,15 +8965,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8983,15 +8983,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -9001,15 +9001,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -9019,12 +9019,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -9302,7 +9302,7 @@ func (t SingleNestedBlockOneType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -9312,12 +9312,12 @@ func (t SingleNestedBlockOneType) ValueFromObject(ctx context.Context, in basety return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -9393,7 +9393,7 @@ func NewSingleNestedBlockOneValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -9403,12 +9403,12 @@ func NewSingleNestedBlockOneValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -9614,7 +9614,7 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -9624,15 +9624,15 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base return nil, diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } - singleNestedBlockThreeListNestedBlockOne, ok := attributes["single_nested_block_three_list_nested_block_one"] + singleNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["single_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -9642,12 +9642,12 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base return nil, diags } - singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOneAttribute)) } if diags.HasError() { @@ -9724,7 +9724,7 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -9734,15 +9734,15 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } - singleNestedBlockThreeListNestedBlockOne, ok := attributes["single_nested_block_three_list_nested_block_one"] + singleNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["single_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -9752,12 +9752,12 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOneAttribute)) } if diags.HasError() { @@ -10028,7 +10028,7 @@ func (t SingleNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx contex attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -10038,12 +10038,12 @@ func (t SingleNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx contex return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -10119,7 +10119,7 @@ func NewSingleNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -10129,12 +10129,12 @@ func NewSingleNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -10346,7 +10346,7 @@ func (t SingleNestedBlockTwoType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - singleNestedBlockTwoSingleNestedBlockOne, ok := attributes["single_nested_block_two_single_nested_block_one"] + singleNestedBlockTwoSingleNestedBlockOneAttribute, ok := attributes["single_nested_block_two_single_nested_block_one"] if !ok { diags.AddError( @@ -10356,12 +10356,12 @@ func (t SingleNestedBlockTwoType) ValueFromObject(ctx context.Context, in basety return nil, diags } - singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOne.(basetypes.ObjectValue) + singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOne)) + fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOneAttribute)) } if diags.HasError() { @@ -10437,7 +10437,7 @@ func NewSingleNestedBlockTwoValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockTwoValueUnknown(), diags } - singleNestedBlockTwoSingleNestedBlockOne, ok := attributes["single_nested_block_two_single_nested_block_one"] + singleNestedBlockTwoSingleNestedBlockOneAttribute, ok := attributes["single_nested_block_two_single_nested_block_one"] if !ok { diags.AddError( @@ -10447,12 +10447,12 @@ func NewSingleNestedBlockTwoValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockTwoValueUnknown(), diags } - singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOne.(basetypes.ObjectValue) + singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOne)) + fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOneAttribute)) } if diags.HasError() { @@ -10685,7 +10685,7 @@ func (t SingleNestedBlockTwoSingleNestedBlockOneType) ValueFromObject(ctx contex attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -10695,12 +10695,12 @@ func (t SingleNestedBlockTwoSingleNestedBlockOneType) ValueFromObject(ctx contex return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -10776,7 +10776,7 @@ func NewSingleNestedBlockTwoSingleNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockTwoSingleNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -10786,12 +10786,12 @@ func NewSingleNestedBlockTwoSingleNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockTwoSingleNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/provider_example/example_provider_gen.go b/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/provider_example/example_provider_gen.go index 5e861879..a7a97038 100644 --- a/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/provider_example/example_provider_gen.go +++ b/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/provider_example/example_provider_gen.go @@ -242,7 +242,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -252,15 +252,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -270,15 +270,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -288,15 +288,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -306,15 +306,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -324,12 +324,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -409,7 +409,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -419,15 +419,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -437,15 +437,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -455,15 +455,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -473,15 +473,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -491,12 +491,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -774,7 +774,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -784,15 +784,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -802,15 +802,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -820,15 +820,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -838,15 +838,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -856,12 +856,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -941,7 +941,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -951,15 +951,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -969,15 +969,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -987,15 +987,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1005,15 +1005,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1023,12 +1023,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1306,7 +1306,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1316,15 +1316,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1334,15 +1334,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1352,15 +1352,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1370,15 +1370,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1388,12 +1388,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1473,7 +1473,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1483,15 +1483,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1501,15 +1501,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1519,15 +1519,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1537,15 +1537,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1555,12 +1555,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1838,7 +1838,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1848,15 +1848,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1866,15 +1866,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1884,15 +1884,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1902,15 +1902,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1920,12 +1920,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2005,7 +2005,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2015,15 +2015,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2033,15 +2033,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2051,15 +2051,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2069,15 +2069,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2087,12 +2087,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2370,7 +2370,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2380,15 +2380,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2398,15 +2398,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2416,15 +2416,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2434,15 +2434,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2452,12 +2452,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2537,7 +2537,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2547,15 +2547,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2565,15 +2565,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2583,15 +2583,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2601,15 +2601,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2619,12 +2619,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2902,7 +2902,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2912,15 +2912,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2930,15 +2930,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2948,15 +2948,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2966,15 +2966,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2984,12 +2984,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3069,7 +3069,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3079,15 +3079,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3097,15 +3097,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3115,15 +3115,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3133,15 +3133,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3151,12 +3151,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3434,7 +3434,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3444,15 +3444,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3462,15 +3462,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3480,15 +3480,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3498,15 +3498,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3516,12 +3516,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3601,7 +3601,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3611,15 +3611,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3629,15 +3629,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3647,15 +3647,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3665,15 +3665,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3683,12 +3683,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/resource_example/example_resource_gen.go b/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/resource_example/example_resource_gen.go index 29d12c9c..4cb5eca1 100644 --- a/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/resource_example/example_resource_gen.go +++ b/internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/resource_example/example_resource_gen.go @@ -260,7 +260,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -270,15 +270,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -288,15 +288,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -306,15 +306,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -324,15 +324,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -342,12 +342,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -427,7 +427,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -437,15 +437,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -455,15 +455,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -473,15 +473,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -491,15 +491,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -509,12 +509,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -792,7 +792,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -802,15 +802,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -820,15 +820,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -838,15 +838,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -856,15 +856,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -874,12 +874,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -959,7 +959,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -969,15 +969,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -987,15 +987,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1005,15 +1005,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1023,15 +1023,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1041,12 +1041,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1324,7 +1324,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1334,15 +1334,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1352,15 +1352,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1370,15 +1370,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1388,15 +1388,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1406,12 +1406,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1491,7 +1491,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1501,15 +1501,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1519,15 +1519,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1537,15 +1537,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1555,15 +1555,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1573,12 +1573,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1856,7 +1856,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1866,15 +1866,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1884,15 +1884,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1902,15 +1902,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1920,15 +1920,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1938,12 +1938,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2023,7 +2023,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2033,15 +2033,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2051,15 +2051,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2069,15 +2069,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2087,15 +2087,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2105,12 +2105,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2388,7 +2388,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2398,15 +2398,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2416,15 +2416,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2434,15 +2434,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2452,15 +2452,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2470,12 +2470,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2555,7 +2555,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2565,15 +2565,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2583,15 +2583,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2601,15 +2601,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2619,15 +2619,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2637,12 +2637,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2920,7 +2920,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2930,15 +2930,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2948,15 +2948,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2966,15 +2966,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2984,15 +2984,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3002,12 +3002,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3087,7 +3087,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3097,15 +3097,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3115,15 +3115,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3133,15 +3133,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3151,15 +3151,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3169,12 +3169,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3452,7 +3452,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3462,15 +3462,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3480,15 +3480,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3498,15 +3498,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3516,15 +3516,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3534,12 +3534,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3619,7 +3619,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3629,15 +3629,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3647,15 +3647,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3665,15 +3665,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3683,15 +3683,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3701,12 +3701,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_data_source_gen.go b/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_data_source_gen.go index ce2fbeb6..4fff88ff 100644 --- a/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_data_source_gen.go +++ b/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_data_source_gen.go @@ -619,7 +619,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -629,15 +629,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -647,15 +647,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -665,15 +665,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -683,15 +683,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -701,12 +701,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -786,7 +786,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -796,15 +796,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -814,15 +814,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -832,15 +832,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -850,15 +850,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -868,12 +868,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1151,7 +1151,7 @@ func (t ListNestedAttributeOneType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1161,12 +1161,12 @@ func (t ListNestedAttributeOneType) ValueFromObject(ctx context.Context, in base return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -1242,7 +1242,7 @@ func NewListNestedAttributeOneValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1252,12 +1252,12 @@ func NewListNestedAttributeOneValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -1463,7 +1463,7 @@ func (t ListNestedAttributeThreeType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - listNestedAttributeThreeListNestedAttributeOne, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] + listNestedAttributeThreeListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] if !ok { diags.AddError( @@ -1473,12 +1473,12 @@ func (t ListNestedAttributeThreeType) ValueFromObject(ctx context.Context, in ba return nil, diags } - listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -1554,7 +1554,7 @@ func NewListNestedAttributeThreeValue(attributeTypes map[string]attr.Type, attri return NewListNestedAttributeThreeValueUnknown(), diags } - listNestedAttributeThreeListNestedAttributeOne, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] + listNestedAttributeThreeListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] if !ok { diags.AddError( @@ -1564,12 +1564,12 @@ func NewListNestedAttributeThreeValue(attributeTypes map[string]attr.Type, attri return NewListNestedAttributeThreeValueUnknown(), diags } - listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -1810,7 +1810,7 @@ func (t ListNestedAttributeThreeListNestedAttributeOneType) ValueFromObject(ctx attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -1820,12 +1820,12 @@ func (t ListNestedAttributeThreeListNestedAttributeOneType) ValueFromObject(ctx return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -1901,7 +1901,7 @@ func NewListNestedAttributeThreeListNestedAttributeOneValue(attributeTypes map[s return NewListNestedAttributeThreeListNestedAttributeOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -1911,12 +1911,12 @@ func NewListNestedAttributeThreeListNestedAttributeOneValue(attributeTypes map[s return NewListNestedAttributeThreeListNestedAttributeOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -2128,7 +2128,7 @@ func (t ListNestedAttributeTwoType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - listNestedAttributeTwoListNestedAttributeOne, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] + listNestedAttributeTwoListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] if !ok { diags.AddError( @@ -2138,12 +2138,12 @@ func (t ListNestedAttributeTwoType) ValueFromObject(ctx context.Context, in base return nil, diags } - listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -2219,7 +2219,7 @@ func NewListNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeTwoValueUnknown(), diags } - listNestedAttributeTwoListNestedAttributeOne, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] + listNestedAttributeTwoListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] if !ok { diags.AddError( @@ -2229,12 +2229,12 @@ func NewListNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeTwoValueUnknown(), diags } - listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -2475,7 +2475,7 @@ func (t ListNestedAttributeTwoListNestedAttributeOneType) ValueFromObject(ctx co attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2485,12 +2485,12 @@ func (t ListNestedAttributeTwoListNestedAttributeOneType) ValueFromObject(ctx co return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -2566,7 +2566,7 @@ func NewListNestedAttributeTwoListNestedAttributeOneValue(attributeTypes map[str return NewListNestedAttributeTwoListNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2576,12 +2576,12 @@ func NewListNestedAttributeTwoListNestedAttributeOneValue(attributeTypes map[str return NewListNestedAttributeTwoListNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -2787,7 +2787,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2797,15 +2797,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2815,15 +2815,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2833,15 +2833,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2851,15 +2851,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2869,12 +2869,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2954,7 +2954,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2964,15 +2964,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2982,15 +2982,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3000,15 +3000,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3018,15 +3018,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3036,12 +3036,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3319,7 +3319,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3329,15 +3329,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3347,15 +3347,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3365,15 +3365,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3383,15 +3383,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3401,12 +3401,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3486,7 +3486,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3496,15 +3496,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3514,15 +3514,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3532,15 +3532,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3550,15 +3550,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3568,12 +3568,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3851,7 +3851,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3861,15 +3861,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3879,15 +3879,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3897,15 +3897,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3915,15 +3915,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3933,12 +3933,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -4018,7 +4018,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4028,15 +4028,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -4046,15 +4046,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -4064,15 +4064,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -4082,15 +4082,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -4100,12 +4100,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -4383,7 +4383,7 @@ func (t SingleNestedAttributeOneType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4393,12 +4393,12 @@ func (t SingleNestedAttributeOneType) ValueFromObject(ctx context.Context, in ba return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -4474,7 +4474,7 @@ func NewSingleNestedAttributeOneValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4484,12 +4484,12 @@ func NewSingleNestedAttributeOneValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -4695,7 +4695,7 @@ func (t SingleNestedAttributeThreeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - singleNestedAttributeThreeSingleNestedAttributeOne, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] + singleNestedAttributeThreeSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] if !ok { diags.AddError( @@ -4705,12 +4705,12 @@ func (t SingleNestedAttributeThreeType) ValueFromObject(ctx context.Context, in return nil, diags } - singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -4786,7 +4786,7 @@ func NewSingleNestedAttributeThreeValue(attributeTypes map[string]attr.Type, att return NewSingleNestedAttributeThreeValueUnknown(), diags } - singleNestedAttributeThreeSingleNestedAttributeOne, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] + singleNestedAttributeThreeSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] if !ok { diags.AddError( @@ -4796,12 +4796,12 @@ func NewSingleNestedAttributeThreeValue(attributeTypes map[string]attr.Type, att return NewSingleNestedAttributeThreeValueUnknown(), diags } - singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5034,7 +5034,7 @@ func (t SingleNestedAttributeThreeSingleNestedAttributeOneType) ValueFromObject( attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -5044,12 +5044,12 @@ func (t SingleNestedAttributeThreeSingleNestedAttributeOneType) ValueFromObject( return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -5125,7 +5125,7 @@ func NewSingleNestedAttributeThreeSingleNestedAttributeOneValue(attributeTypes m return NewSingleNestedAttributeThreeSingleNestedAttributeOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -5135,12 +5135,12 @@ func NewSingleNestedAttributeThreeSingleNestedAttributeOneValue(attributeTypes m return NewSingleNestedAttributeThreeSingleNestedAttributeOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -5352,7 +5352,7 @@ func (t SingleNestedAttributeTwoType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - singleNestedAttributeTwoSingleNestedAttributeOne, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] + singleNestedAttributeTwoSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] if !ok { diags.AddError( @@ -5362,12 +5362,12 @@ func (t SingleNestedAttributeTwoType) ValueFromObject(ctx context.Context, in ba return nil, diags } - singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5443,7 +5443,7 @@ func NewSingleNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeTwoValueUnknown(), diags } - singleNestedAttributeTwoSingleNestedAttributeOne, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] + singleNestedAttributeTwoSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] if !ok { diags.AddError( @@ -5453,12 +5453,12 @@ func NewSingleNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeTwoValueUnknown(), diags } - singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5691,7 +5691,7 @@ func (t SingleNestedAttributeTwoSingleNestedAttributeOneType) ValueFromObject(ct attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -5701,12 +5701,12 @@ func (t SingleNestedAttributeTwoSingleNestedAttributeOneType) ValueFromObject(ct return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -5782,7 +5782,7 @@ func NewSingleNestedAttributeTwoSingleNestedAttributeOneValue(attributeTypes map return NewSingleNestedAttributeTwoSingleNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -5792,12 +5792,12 @@ func NewSingleNestedAttributeTwoSingleNestedAttributeOneValue(attributeTypes map return NewSingleNestedAttributeTwoSingleNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6003,7 +6003,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6013,15 +6013,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -6031,15 +6031,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -6049,15 +6049,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -6067,15 +6067,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -6085,12 +6085,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -6170,7 +6170,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6180,15 +6180,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -6198,15 +6198,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -6216,15 +6216,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -6234,15 +6234,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -6252,12 +6252,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -6535,7 +6535,7 @@ func (t ListNestedBlockOneType) ValueFromObject(ctx context.Context, in basetype attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6545,12 +6545,12 @@ func (t ListNestedBlockOneType) ValueFromObject(ctx context.Context, in basetype return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6626,7 +6626,7 @@ func NewListNestedBlockOneValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6636,12 +6636,12 @@ func NewListNestedBlockOneValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6847,7 +6847,7 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - listNestedBlockThreeListNestedBlockOne, ok := attributes["list_nested_block_three_list_nested_block_one"] + listNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["list_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -6857,15 +6857,15 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety return nil, diags } - listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOneAttribute)) } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -6875,12 +6875,12 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety return nil, diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } if diags.HasError() { @@ -6957,7 +6957,7 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - listNestedBlockThreeListNestedBlockOne, ok := attributes["list_nested_block_three_list_nested_block_one"] + listNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["list_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -6967,15 +6967,15 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOneAttribute)) } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -6985,12 +6985,12 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } if diags.HasError() { @@ -7261,7 +7261,7 @@ func (t ListNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx context. attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -7271,12 +7271,12 @@ func (t ListNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx context. return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -7352,7 +7352,7 @@ func NewListNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string]at return NewListNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -7362,12 +7362,12 @@ func NewListNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string]at return NewListNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -7579,7 +7579,7 @@ func (t ListNestedBlockTwoType) ValueFromObject(ctx context.Context, in basetype attributes := in.Attributes() - listNestedBlockTwoListNestedBlockOne, ok := attributes["list_nested_block_two_list_nested_block_one"] + listNestedBlockTwoListNestedBlockOneAttribute, ok := attributes["list_nested_block_two_list_nested_block_one"] if !ok { diags.AddError( @@ -7589,12 +7589,12 @@ func (t ListNestedBlockTwoType) ValueFromObject(ctx context.Context, in basetype return nil, diags } - listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOne.(basetypes.ListValue) + listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOneAttribute)) } if diags.HasError() { @@ -7670,7 +7670,7 @@ func NewListNestedBlockTwoValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockTwoValueUnknown(), diags } - listNestedBlockTwoListNestedBlockOne, ok := attributes["list_nested_block_two_list_nested_block_one"] + listNestedBlockTwoListNestedBlockOneAttribute, ok := attributes["list_nested_block_two_list_nested_block_one"] if !ok { diags.AddError( @@ -7680,12 +7680,12 @@ func NewListNestedBlockTwoValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockTwoValueUnknown(), diags } - listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOne.(basetypes.ListValue) + listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOneAttribute)) } if diags.HasError() { @@ -7926,7 +7926,7 @@ func (t ListNestedBlockTwoListNestedBlockOneType) ValueFromObject(ctx context.Co attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -7936,12 +7936,12 @@ func (t ListNestedBlockTwoListNestedBlockOneType) ValueFromObject(ctx context.Co return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -8017,7 +8017,7 @@ func NewListNestedBlockTwoListNestedBlockOneValue(attributeTypes map[string]attr return NewListNestedBlockTwoListNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8027,12 +8027,12 @@ func NewListNestedBlockTwoListNestedBlockOneValue(attributeTypes map[string]attr return NewListNestedBlockTwoListNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -8238,7 +8238,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8248,15 +8248,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8266,15 +8266,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8284,15 +8284,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8302,15 +8302,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8320,12 +8320,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8405,7 +8405,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8415,15 +8415,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8433,15 +8433,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8451,15 +8451,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8469,15 +8469,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8487,12 +8487,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8770,7 +8770,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8780,15 +8780,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8798,15 +8798,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8816,15 +8816,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8834,15 +8834,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8852,12 +8852,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8937,7 +8937,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8947,15 +8947,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8965,15 +8965,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8983,15 +8983,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -9001,15 +9001,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -9019,12 +9019,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -9302,7 +9302,7 @@ func (t SingleNestedBlockOneType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -9312,12 +9312,12 @@ func (t SingleNestedBlockOneType) ValueFromObject(ctx context.Context, in basety return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -9393,7 +9393,7 @@ func NewSingleNestedBlockOneValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -9403,12 +9403,12 @@ func NewSingleNestedBlockOneValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -9614,7 +9614,7 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -9624,15 +9624,15 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base return nil, diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } - singleNestedBlockThreeListNestedBlockOne, ok := attributes["single_nested_block_three_list_nested_block_one"] + singleNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["single_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -9642,12 +9642,12 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base return nil, diags } - singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOneAttribute)) } if diags.HasError() { @@ -9724,7 +9724,7 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -9734,15 +9734,15 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } - singleNestedBlockThreeListNestedBlockOne, ok := attributes["single_nested_block_three_list_nested_block_one"] + singleNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["single_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -9752,12 +9752,12 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOneAttribute)) } if diags.HasError() { @@ -10028,7 +10028,7 @@ func (t SingleNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx contex attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -10038,12 +10038,12 @@ func (t SingleNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx contex return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -10119,7 +10119,7 @@ func NewSingleNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -10129,12 +10129,12 @@ func NewSingleNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -10346,7 +10346,7 @@ func (t SingleNestedBlockTwoType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - singleNestedBlockTwoSingleNestedBlockOne, ok := attributes["single_nested_block_two_single_nested_block_one"] + singleNestedBlockTwoSingleNestedBlockOneAttribute, ok := attributes["single_nested_block_two_single_nested_block_one"] if !ok { diags.AddError( @@ -10356,12 +10356,12 @@ func (t SingleNestedBlockTwoType) ValueFromObject(ctx context.Context, in basety return nil, diags } - singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOne.(basetypes.ObjectValue) + singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOne)) + fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOneAttribute)) } if diags.HasError() { @@ -10437,7 +10437,7 @@ func NewSingleNestedBlockTwoValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockTwoValueUnknown(), diags } - singleNestedBlockTwoSingleNestedBlockOne, ok := attributes["single_nested_block_two_single_nested_block_one"] + singleNestedBlockTwoSingleNestedBlockOneAttribute, ok := attributes["single_nested_block_two_single_nested_block_one"] if !ok { diags.AddError( @@ -10447,12 +10447,12 @@ func NewSingleNestedBlockTwoValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockTwoValueUnknown(), diags } - singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOne.(basetypes.ObjectValue) + singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOne)) + fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOneAttribute)) } if diags.HasError() { @@ -10685,7 +10685,7 @@ func (t SingleNestedBlockTwoSingleNestedBlockOneType) ValueFromObject(ctx contex attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -10695,12 +10695,12 @@ func (t SingleNestedBlockTwoSingleNestedBlockOneType) ValueFromObject(ctx contex return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -10776,7 +10776,7 @@ func NewSingleNestedBlockTwoSingleNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockTwoSingleNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -10786,12 +10786,12 @@ func NewSingleNestedBlockTwoSingleNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockTwoSingleNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_provider_gen.go b/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_provider_gen.go index 117518e3..15aa8d0a 100644 --- a/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_provider_gen.go +++ b/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_provider_gen.go @@ -242,7 +242,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -252,15 +252,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -270,15 +270,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -288,15 +288,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -306,15 +306,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -324,12 +324,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -409,7 +409,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -419,15 +419,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -437,15 +437,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -455,15 +455,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -473,15 +473,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -491,12 +491,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -774,7 +774,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -784,15 +784,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -802,15 +802,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -820,15 +820,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -838,15 +838,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -856,12 +856,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -941,7 +941,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -951,15 +951,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -969,15 +969,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -987,15 +987,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1005,15 +1005,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1023,12 +1023,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1306,7 +1306,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1316,15 +1316,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1334,15 +1334,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1352,15 +1352,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1370,15 +1370,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1388,12 +1388,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1473,7 +1473,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1483,15 +1483,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1501,15 +1501,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1519,15 +1519,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1537,15 +1537,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1555,12 +1555,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1838,7 +1838,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1848,15 +1848,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1866,15 +1866,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1884,15 +1884,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1902,15 +1902,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1920,12 +1920,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2005,7 +2005,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2015,15 +2015,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2033,15 +2033,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2051,15 +2051,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2069,15 +2069,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2087,12 +2087,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2370,7 +2370,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2380,15 +2380,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2398,15 +2398,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2416,15 +2416,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2434,15 +2434,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2452,12 +2452,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2537,7 +2537,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2547,15 +2547,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2565,15 +2565,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2583,15 +2583,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2601,15 +2601,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2619,12 +2619,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2902,7 +2902,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2912,15 +2912,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2930,15 +2930,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2948,15 +2948,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2966,15 +2966,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2984,12 +2984,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3069,7 +3069,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3079,15 +3079,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3097,15 +3097,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3115,15 +3115,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3133,15 +3133,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3151,12 +3151,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3434,7 +3434,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3444,15 +3444,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3462,15 +3462,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3480,15 +3480,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3498,15 +3498,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3516,12 +3516,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3601,7 +3601,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3611,15 +3611,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3629,15 +3629,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3647,15 +3647,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3665,15 +3665,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3683,12 +3683,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_resource_gen.go b/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_resource_gen.go index d785537c..29708e99 100644 --- a/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_resource_gen.go +++ b/internal/cmd/testdata/custom_and_external/all_output/specified_pkg_name/example_resource_gen.go @@ -260,7 +260,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -270,15 +270,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -288,15 +288,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -306,15 +306,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -324,15 +324,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -342,12 +342,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -427,7 +427,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -437,15 +437,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -455,15 +455,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -473,15 +473,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -491,15 +491,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -509,12 +509,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -792,7 +792,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -802,15 +802,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -820,15 +820,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -838,15 +838,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -856,15 +856,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -874,12 +874,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -959,7 +959,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -969,15 +969,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -987,15 +987,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1005,15 +1005,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1023,15 +1023,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1041,12 +1041,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1324,7 +1324,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1334,15 +1334,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1352,15 +1352,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1370,15 +1370,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1388,15 +1388,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1406,12 +1406,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1491,7 +1491,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1501,15 +1501,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1519,15 +1519,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1537,15 +1537,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1555,15 +1555,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1573,12 +1573,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1856,7 +1856,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1866,15 +1866,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1884,15 +1884,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1902,15 +1902,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1920,15 +1920,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1938,12 +1938,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2023,7 +2023,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2033,15 +2033,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2051,15 +2051,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2069,15 +2069,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2087,15 +2087,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2105,12 +2105,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2388,7 +2388,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2398,15 +2398,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2416,15 +2416,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2434,15 +2434,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2452,15 +2452,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2470,12 +2470,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2555,7 +2555,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2565,15 +2565,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2583,15 +2583,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2601,15 +2601,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2619,15 +2619,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2637,12 +2637,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2920,7 +2920,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2930,15 +2930,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2948,15 +2948,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2966,15 +2966,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2984,15 +2984,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3002,12 +3002,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3087,7 +3087,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3097,15 +3097,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3115,15 +3115,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3133,15 +3133,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3151,15 +3151,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3169,12 +3169,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3452,7 +3452,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3462,15 +3462,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3480,15 +3480,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3498,15 +3498,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3516,15 +3516,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3534,12 +3534,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3619,7 +3619,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3629,15 +3629,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3647,15 +3647,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3665,15 +3665,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3683,15 +3683,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3701,12 +3701,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/data_sources_output/example_data_source_gen.go b/internal/cmd/testdata/custom_and_external/data_sources_output/example_data_source_gen.go index b46e0a96..d224f21c 100644 --- a/internal/cmd/testdata/custom_and_external/data_sources_output/example_data_source_gen.go +++ b/internal/cmd/testdata/custom_and_external/data_sources_output/example_data_source_gen.go @@ -619,7 +619,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -629,15 +629,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -647,15 +647,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -665,15 +665,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -683,15 +683,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -701,12 +701,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -786,7 +786,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -796,15 +796,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -814,15 +814,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -832,15 +832,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -850,15 +850,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -868,12 +868,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1151,7 +1151,7 @@ func (t ListNestedAttributeOneType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1161,12 +1161,12 @@ func (t ListNestedAttributeOneType) ValueFromObject(ctx context.Context, in base return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -1242,7 +1242,7 @@ func NewListNestedAttributeOneValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1252,12 +1252,12 @@ func NewListNestedAttributeOneValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -1463,7 +1463,7 @@ func (t ListNestedAttributeThreeType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - listNestedAttributeThreeListNestedAttributeOne, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] + listNestedAttributeThreeListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] if !ok { diags.AddError( @@ -1473,12 +1473,12 @@ func (t ListNestedAttributeThreeType) ValueFromObject(ctx context.Context, in ba return nil, diags } - listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -1554,7 +1554,7 @@ func NewListNestedAttributeThreeValue(attributeTypes map[string]attr.Type, attri return NewListNestedAttributeThreeValueUnknown(), diags } - listNestedAttributeThreeListNestedAttributeOne, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] + listNestedAttributeThreeListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_three_list_nested_attribute_one"] if !ok { diags.AddError( @@ -1564,12 +1564,12 @@ func NewListNestedAttributeThreeValue(attributeTypes map[string]attr.Type, attri return NewListNestedAttributeThreeValueUnknown(), diags } - listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeThreeListNestedAttributeOneVal, ok := listNestedAttributeThreeListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_three_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeThreeListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -1810,7 +1810,7 @@ func (t ListNestedAttributeThreeListNestedAttributeOneType) ValueFromObject(ctx attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -1820,12 +1820,12 @@ func (t ListNestedAttributeThreeListNestedAttributeOneType) ValueFromObject(ctx return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -1901,7 +1901,7 @@ func NewListNestedAttributeThreeListNestedAttributeOneValue(attributeTypes map[s return NewListNestedAttributeThreeListNestedAttributeOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -1911,12 +1911,12 @@ func NewListNestedAttributeThreeListNestedAttributeOneValue(attributeTypes map[s return NewListNestedAttributeThreeListNestedAttributeOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -2128,7 +2128,7 @@ func (t ListNestedAttributeTwoType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - listNestedAttributeTwoListNestedAttributeOne, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] + listNestedAttributeTwoListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] if !ok { diags.AddError( @@ -2138,12 +2138,12 @@ func (t ListNestedAttributeTwoType) ValueFromObject(ctx context.Context, in base return nil, diags } - listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -2219,7 +2219,7 @@ func NewListNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeTwoValueUnknown(), diags } - listNestedAttributeTwoListNestedAttributeOne, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] + listNestedAttributeTwoListNestedAttributeOneAttribute, ok := attributes["list_nested_attribute_two_list_nested_attribute_one"] if !ok { diags.AddError( @@ -2229,12 +2229,12 @@ func NewListNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attribu return NewListNestedAttributeTwoValueUnknown(), diags } - listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOne.(basetypes.ListValue) + listNestedAttributeTwoListNestedAttributeOneVal, ok := listNestedAttributeTwoListNestedAttributeOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOne)) + fmt.Sprintf(`list_nested_attribute_two_list_nested_attribute_one expected to be basetypes.ListValue, was: %T`, listNestedAttributeTwoListNestedAttributeOneAttribute)) } if diags.HasError() { @@ -2475,7 +2475,7 @@ func (t ListNestedAttributeTwoListNestedAttributeOneType) ValueFromObject(ctx co attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2485,12 +2485,12 @@ func (t ListNestedAttributeTwoListNestedAttributeOneType) ValueFromObject(ctx co return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -2566,7 +2566,7 @@ func NewListNestedAttributeTwoListNestedAttributeOneValue(attributeTypes map[str return NewListNestedAttributeTwoListNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2576,12 +2576,12 @@ func NewListNestedAttributeTwoListNestedAttributeOneValue(attributeTypes map[str return NewListNestedAttributeTwoListNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -2787,7 +2787,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2797,15 +2797,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2815,15 +2815,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2833,15 +2833,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2851,15 +2851,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2869,12 +2869,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2954,7 +2954,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2964,15 +2964,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2982,15 +2982,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3000,15 +3000,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3018,15 +3018,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3036,12 +3036,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3319,7 +3319,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3329,15 +3329,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3347,15 +3347,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3365,15 +3365,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3383,15 +3383,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3401,12 +3401,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3486,7 +3486,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3496,15 +3496,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3514,15 +3514,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3532,15 +3532,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3550,15 +3550,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3568,12 +3568,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3851,7 +3851,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3861,15 +3861,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3879,15 +3879,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3897,15 +3897,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3915,15 +3915,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3933,12 +3933,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -4018,7 +4018,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4028,15 +4028,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -4046,15 +4046,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -4064,15 +4064,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -4082,15 +4082,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -4100,12 +4100,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -4383,7 +4383,7 @@ func (t SingleNestedAttributeOneType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4393,12 +4393,12 @@ func (t SingleNestedAttributeOneType) ValueFromObject(ctx context.Context, in ba return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -4474,7 +4474,7 @@ func NewSingleNestedAttributeOneValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -4484,12 +4484,12 @@ func NewSingleNestedAttributeOneValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -4695,7 +4695,7 @@ func (t SingleNestedAttributeThreeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - singleNestedAttributeThreeSingleNestedAttributeOne, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] + singleNestedAttributeThreeSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] if !ok { diags.AddError( @@ -4705,12 +4705,12 @@ func (t SingleNestedAttributeThreeType) ValueFromObject(ctx context.Context, in return nil, diags } - singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -4786,7 +4786,7 @@ func NewSingleNestedAttributeThreeValue(attributeTypes map[string]attr.Type, att return NewSingleNestedAttributeThreeValueUnknown(), diags } - singleNestedAttributeThreeSingleNestedAttributeOne, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] + singleNestedAttributeThreeSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_three_single_nested_attribute_one"] if !ok { diags.AddError( @@ -4796,12 +4796,12 @@ func NewSingleNestedAttributeThreeValue(attributeTypes map[string]attr.Type, att return NewSingleNestedAttributeThreeValueUnknown(), diags } - singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeThreeSingleNestedAttributeOneVal, ok := singleNestedAttributeThreeSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_three_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeThreeSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5034,7 +5034,7 @@ func (t SingleNestedAttributeThreeSingleNestedAttributeOneType) ValueFromObject( attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -5044,12 +5044,12 @@ func (t SingleNestedAttributeThreeSingleNestedAttributeOneType) ValueFromObject( return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -5125,7 +5125,7 @@ func NewSingleNestedAttributeThreeSingleNestedAttributeOneValue(attributeTypes m return NewSingleNestedAttributeThreeSingleNestedAttributeOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -5135,12 +5135,12 @@ func NewSingleNestedAttributeThreeSingleNestedAttributeOneValue(attributeTypes m return NewSingleNestedAttributeThreeSingleNestedAttributeOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -5352,7 +5352,7 @@ func (t SingleNestedAttributeTwoType) ValueFromObject(ctx context.Context, in ba attributes := in.Attributes() - singleNestedAttributeTwoSingleNestedAttributeOne, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] + singleNestedAttributeTwoSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] if !ok { diags.AddError( @@ -5362,12 +5362,12 @@ func (t SingleNestedAttributeTwoType) ValueFromObject(ctx context.Context, in ba return nil, diags } - singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5443,7 +5443,7 @@ func NewSingleNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeTwoValueUnknown(), diags } - singleNestedAttributeTwoSingleNestedAttributeOne, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] + singleNestedAttributeTwoSingleNestedAttributeOneAttribute, ok := attributes["single_nested_attribute_two_single_nested_attribute_one"] if !ok { diags.AddError( @@ -5453,12 +5453,12 @@ func NewSingleNestedAttributeTwoValue(attributeTypes map[string]attr.Type, attri return NewSingleNestedAttributeTwoValueUnknown(), diags } - singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOne.(basetypes.ObjectValue) + singleNestedAttributeTwoSingleNestedAttributeOneVal, ok := singleNestedAttributeTwoSingleNestedAttributeOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOne)) + fmt.Sprintf(`single_nested_attribute_two_single_nested_attribute_one expected to be basetypes.ObjectValue, was: %T`, singleNestedAttributeTwoSingleNestedAttributeOneAttribute)) } if diags.HasError() { @@ -5691,7 +5691,7 @@ func (t SingleNestedAttributeTwoSingleNestedAttributeOneType) ValueFromObject(ct attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -5701,12 +5701,12 @@ func (t SingleNestedAttributeTwoSingleNestedAttributeOneType) ValueFromObject(ct return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -5782,7 +5782,7 @@ func NewSingleNestedAttributeTwoSingleNestedAttributeOneValue(attributeTypes map return NewSingleNestedAttributeTwoSingleNestedAttributeOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -5792,12 +5792,12 @@ func NewSingleNestedAttributeTwoSingleNestedAttributeOneValue(attributeTypes map return NewSingleNestedAttributeTwoSingleNestedAttributeOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6003,7 +6003,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6013,15 +6013,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -6031,15 +6031,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -6049,15 +6049,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -6067,15 +6067,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -6085,12 +6085,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -6170,7 +6170,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6180,15 +6180,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -6198,15 +6198,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -6216,15 +6216,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -6234,15 +6234,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -6252,12 +6252,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -6535,7 +6535,7 @@ func (t ListNestedBlockOneType) ValueFromObject(ctx context.Context, in basetype attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6545,12 +6545,12 @@ func (t ListNestedBlockOneType) ValueFromObject(ctx context.Context, in basetype return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6626,7 +6626,7 @@ func NewListNestedBlockOneValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -6636,12 +6636,12 @@ func NewListNestedBlockOneValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -6847,7 +6847,7 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - listNestedBlockThreeListNestedBlockOne, ok := attributes["list_nested_block_three_list_nested_block_one"] + listNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["list_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -6857,15 +6857,15 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety return nil, diags } - listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOneAttribute)) } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -6875,12 +6875,12 @@ func (t ListNestedBlockThreeType) ValueFromObject(ctx context.Context, in basety return nil, diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } if diags.HasError() { @@ -6957,7 +6957,7 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - listNestedBlockThreeListNestedBlockOne, ok := attributes["list_nested_block_three_list_nested_block_one"] + listNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["list_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -6967,15 +6967,15 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + listNestedBlockThreeListNestedBlockOneVal, ok := listNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockThreeListNestedBlockOneAttribute)) } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -6985,12 +6985,12 @@ func NewListNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribute return NewListNestedBlockThreeValueUnknown(), diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } if diags.HasError() { @@ -7261,7 +7261,7 @@ func (t ListNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx context. attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -7271,12 +7271,12 @@ func (t ListNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx context. return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -7352,7 +7352,7 @@ func NewListNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string]at return NewListNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -7362,12 +7362,12 @@ func NewListNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string]at return NewListNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -7579,7 +7579,7 @@ func (t ListNestedBlockTwoType) ValueFromObject(ctx context.Context, in basetype attributes := in.Attributes() - listNestedBlockTwoListNestedBlockOne, ok := attributes["list_nested_block_two_list_nested_block_one"] + listNestedBlockTwoListNestedBlockOneAttribute, ok := attributes["list_nested_block_two_list_nested_block_one"] if !ok { diags.AddError( @@ -7589,12 +7589,12 @@ func (t ListNestedBlockTwoType) ValueFromObject(ctx context.Context, in basetype return nil, diags } - listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOne.(basetypes.ListValue) + listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOneAttribute)) } if diags.HasError() { @@ -7670,7 +7670,7 @@ func NewListNestedBlockTwoValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockTwoValueUnknown(), diags } - listNestedBlockTwoListNestedBlockOne, ok := attributes["list_nested_block_two_list_nested_block_one"] + listNestedBlockTwoListNestedBlockOneAttribute, ok := attributes["list_nested_block_two_list_nested_block_one"] if !ok { diags.AddError( @@ -7680,12 +7680,12 @@ func NewListNestedBlockTwoValue(attributeTypes map[string]attr.Type, attributes return NewListNestedBlockTwoValueUnknown(), diags } - listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOne.(basetypes.ListValue) + listNestedBlockTwoListNestedBlockOneVal, ok := listNestedBlockTwoListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOne)) + fmt.Sprintf(`list_nested_block_two_list_nested_block_one expected to be basetypes.ListValue, was: %T`, listNestedBlockTwoListNestedBlockOneAttribute)) } if diags.HasError() { @@ -7926,7 +7926,7 @@ func (t ListNestedBlockTwoListNestedBlockOneType) ValueFromObject(ctx context.Co attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -7936,12 +7936,12 @@ func (t ListNestedBlockTwoListNestedBlockOneType) ValueFromObject(ctx context.Co return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -8017,7 +8017,7 @@ func NewListNestedBlockTwoListNestedBlockOneValue(attributeTypes map[string]attr return NewListNestedBlockTwoListNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8027,12 +8027,12 @@ func NewListNestedBlockTwoListNestedBlockOneValue(attributeTypes map[string]attr return NewListNestedBlockTwoListNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -8238,7 +8238,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8248,15 +8248,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8266,15 +8266,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8284,15 +8284,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8302,15 +8302,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8320,12 +8320,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8405,7 +8405,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8415,15 +8415,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8433,15 +8433,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8451,15 +8451,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8469,15 +8469,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8487,12 +8487,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8770,7 +8770,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8780,15 +8780,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8798,15 +8798,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8816,15 +8816,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -8834,15 +8834,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -8852,12 +8852,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -8937,7 +8937,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -8947,15 +8947,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -8965,15 +8965,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -8983,15 +8983,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -9001,15 +9001,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -9019,12 +9019,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -9302,7 +9302,7 @@ func (t SingleNestedBlockOneType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -9312,12 +9312,12 @@ func (t SingleNestedBlockOneType) ValueFromObject(ctx context.Context, in basety return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -9393,7 +9393,7 @@ func NewSingleNestedBlockOneValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -9403,12 +9403,12 @@ func NewSingleNestedBlockOneValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -9614,7 +9614,7 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base attributes := in.Attributes() - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -9624,15 +9624,15 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base return nil, diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } - singleNestedBlockThreeListNestedBlockOne, ok := attributes["single_nested_block_three_list_nested_block_one"] + singleNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["single_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -9642,12 +9642,12 @@ func (t SingleNestedBlockThreeType) ValueFromObject(ctx context.Context, in base return nil, diags } - singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOneAttribute)) } if diags.HasError() { @@ -9724,7 +9724,7 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - objectAttribute, ok := attributes["object_attribute"] + objectAttributeAttribute, ok := attributes["object_attribute"] if !ok { diags.AddError( @@ -9734,15 +9734,15 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - objectAttributeVal, ok := objectAttribute.(basetypes.ObjectValue) + objectAttributeVal, ok := objectAttributeAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttribute)) + fmt.Sprintf(`object_attribute expected to be basetypes.ObjectValue, was: %T`, objectAttributeAttribute)) } - singleNestedBlockThreeListNestedBlockOne, ok := attributes["single_nested_block_three_list_nested_block_one"] + singleNestedBlockThreeListNestedBlockOneAttribute, ok := attributes["single_nested_block_three_list_nested_block_one"] if !ok { diags.AddError( @@ -9752,12 +9752,12 @@ func NewSingleNestedBlockThreeValue(attributeTypes map[string]attr.Type, attribu return NewSingleNestedBlockThreeValueUnknown(), diags } - singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOne.(basetypes.ListValue) + singleNestedBlockThreeListNestedBlockOneVal, ok := singleNestedBlockThreeListNestedBlockOneAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOne)) + fmt.Sprintf(`single_nested_block_three_list_nested_block_one expected to be basetypes.ListValue, was: %T`, singleNestedBlockThreeListNestedBlockOneAttribute)) } if diags.HasError() { @@ -10028,7 +10028,7 @@ func (t SingleNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx contex attributes := in.Attributes() - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -10038,12 +10038,12 @@ func (t SingleNestedBlockThreeListNestedBlockOneType) ValueFromObject(ctx contex return nil, diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -10119,7 +10119,7 @@ func NewSingleNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttribute, ok := attributes["list_attribute"] + listAttributeAttribute, ok := attributes["list_attribute"] if !ok { diags.AddError( @@ -10129,12 +10129,12 @@ func NewSingleNestedBlockThreeListNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockThreeListNestedBlockOneValueUnknown(), diags } - listAttributeVal, ok := listAttribute.(basetypes.ListValue) + listAttributeVal, ok := listAttributeAttribute.(basetypes.ListValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttribute)) + fmt.Sprintf(`list_attribute expected to be basetypes.ListValue, was: %T`, listAttributeAttribute)) } if diags.HasError() { @@ -10346,7 +10346,7 @@ func (t SingleNestedBlockTwoType) ValueFromObject(ctx context.Context, in basety attributes := in.Attributes() - singleNestedBlockTwoSingleNestedBlockOne, ok := attributes["single_nested_block_two_single_nested_block_one"] + singleNestedBlockTwoSingleNestedBlockOneAttribute, ok := attributes["single_nested_block_two_single_nested_block_one"] if !ok { diags.AddError( @@ -10356,12 +10356,12 @@ func (t SingleNestedBlockTwoType) ValueFromObject(ctx context.Context, in basety return nil, diags } - singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOne.(basetypes.ObjectValue) + singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOne)) + fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOneAttribute)) } if diags.HasError() { @@ -10437,7 +10437,7 @@ func NewSingleNestedBlockTwoValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockTwoValueUnknown(), diags } - singleNestedBlockTwoSingleNestedBlockOne, ok := attributes["single_nested_block_two_single_nested_block_one"] + singleNestedBlockTwoSingleNestedBlockOneAttribute, ok := attributes["single_nested_block_two_single_nested_block_one"] if !ok { diags.AddError( @@ -10447,12 +10447,12 @@ func NewSingleNestedBlockTwoValue(attributeTypes map[string]attr.Type, attribute return NewSingleNestedBlockTwoValueUnknown(), diags } - singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOne.(basetypes.ObjectValue) + singleNestedBlockTwoSingleNestedBlockOneVal, ok := singleNestedBlockTwoSingleNestedBlockOneAttribute.(basetypes.ObjectValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOne)) + fmt.Sprintf(`single_nested_block_two_single_nested_block_one expected to be basetypes.ObjectValue, was: %T`, singleNestedBlockTwoSingleNestedBlockOneAttribute)) } if diags.HasError() { @@ -10685,7 +10685,7 @@ func (t SingleNestedBlockTwoSingleNestedBlockOneType) ValueFromObject(ctx contex attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -10695,12 +10695,12 @@ func (t SingleNestedBlockTwoSingleNestedBlockOneType) ValueFromObject(ctx contex return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { @@ -10776,7 +10776,7 @@ func NewSingleNestedBlockTwoSingleNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockTwoSingleNestedBlockOneValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -10786,12 +10786,12 @@ func NewSingleNestedBlockTwoSingleNestedBlockOneValue(attributeTypes map[string] return NewSingleNestedBlockTwoSingleNestedBlockOneValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/provider_output/example_provider_gen.go b/internal/cmd/testdata/custom_and_external/provider_output/example_provider_gen.go index 4231e9b2..2f18ccae 100644 --- a/internal/cmd/testdata/custom_and_external/provider_output/example_provider_gen.go +++ b/internal/cmd/testdata/custom_and_external/provider_output/example_provider_gen.go @@ -242,7 +242,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -252,15 +252,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -270,15 +270,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -288,15 +288,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -306,15 +306,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -324,12 +324,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -409,7 +409,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -419,15 +419,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -437,15 +437,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -455,15 +455,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -473,15 +473,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -491,12 +491,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -774,7 +774,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -784,15 +784,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -802,15 +802,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -820,15 +820,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -838,15 +838,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -856,12 +856,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -941,7 +941,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -951,15 +951,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -969,15 +969,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -987,15 +987,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1005,15 +1005,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1023,12 +1023,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1306,7 +1306,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1316,15 +1316,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1334,15 +1334,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1352,15 +1352,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1370,15 +1370,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1388,12 +1388,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1473,7 +1473,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1483,15 +1483,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1501,15 +1501,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1519,15 +1519,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1537,15 +1537,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1555,12 +1555,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1838,7 +1838,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1848,15 +1848,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1866,15 +1866,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1884,15 +1884,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1902,15 +1902,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1920,12 +1920,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2005,7 +2005,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2015,15 +2015,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2033,15 +2033,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2051,15 +2051,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2069,15 +2069,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2087,12 +2087,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2370,7 +2370,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2380,15 +2380,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2398,15 +2398,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2416,15 +2416,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2434,15 +2434,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2452,12 +2452,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2537,7 +2537,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2547,15 +2547,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2565,15 +2565,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2583,15 +2583,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2601,15 +2601,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2619,12 +2619,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2902,7 +2902,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2912,15 +2912,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2930,15 +2930,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2948,15 +2948,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2966,15 +2966,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2984,12 +2984,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3069,7 +3069,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3079,15 +3079,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3097,15 +3097,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3115,15 +3115,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3133,15 +3133,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3151,12 +3151,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3434,7 +3434,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3444,15 +3444,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3462,15 +3462,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3480,15 +3480,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3498,15 +3498,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3516,12 +3516,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3601,7 +3601,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3611,15 +3611,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3629,15 +3629,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3647,15 +3647,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3665,15 +3665,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3683,12 +3683,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { diff --git a/internal/cmd/testdata/custom_and_external/resources_output/example_resource_gen.go b/internal/cmd/testdata/custom_and_external/resources_output/example_resource_gen.go index 78f094a2..e0719973 100644 --- a/internal/cmd/testdata/custom_and_external/resources_output/example_resource_gen.go +++ b/internal/cmd/testdata/custom_and_external/resources_output/example_resource_gen.go @@ -260,7 +260,7 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -270,15 +270,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -288,15 +288,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -306,15 +306,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -324,15 +324,15 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -342,12 +342,12 @@ func (t ListNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -427,7 +427,7 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -437,15 +437,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -455,15 +455,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -473,15 +473,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -491,15 +491,15 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -509,12 +509,12 @@ func NewListNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type return NewListNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -792,7 +792,7 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -802,15 +802,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -820,15 +820,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -838,15 +838,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -856,15 +856,15 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -874,12 +874,12 @@ func (t MapNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -959,7 +959,7 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -969,15 +969,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -987,15 +987,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1005,15 +1005,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1023,15 +1023,15 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1041,12 +1041,12 @@ func NewMapNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewMapNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1324,7 +1324,7 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1334,15 +1334,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1352,15 +1352,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1370,15 +1370,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1388,15 +1388,15 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1406,12 +1406,12 @@ func (t SetNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1491,7 +1491,7 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1501,15 +1501,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1519,15 +1519,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1537,15 +1537,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1555,15 +1555,15 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1573,12 +1573,12 @@ func NewSetNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSetNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -1856,7 +1856,7 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -1866,15 +1866,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -1884,15 +1884,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -1902,15 +1902,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -1920,15 +1920,15 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -1938,12 +1938,12 @@ func (t SingleNestedAttributeAssocExtTypeType) ValueFromObject(ctx context.Conte return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2023,7 +2023,7 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2033,15 +2033,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2051,15 +2051,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2069,15 +2069,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2087,15 +2087,15 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2105,12 +2105,12 @@ func NewSingleNestedAttributeAssocExtTypeValue(attributeTypes map[string]attr.Ty return NewSingleNestedAttributeAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2388,7 +2388,7 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2398,15 +2398,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2416,15 +2416,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2434,15 +2434,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2452,15 +2452,15 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2470,12 +2470,12 @@ func (t ListNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2555,7 +2555,7 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2565,15 +2565,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2583,15 +2583,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2601,15 +2601,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2619,15 +2619,15 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -2637,12 +2637,12 @@ func NewListNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, at return NewListNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -2920,7 +2920,7 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -2930,15 +2930,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -2948,15 +2948,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -2966,15 +2966,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -2984,15 +2984,15 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3002,12 +3002,12 @@ func (t SetNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, in return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3087,7 +3087,7 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3097,15 +3097,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3115,15 +3115,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3133,15 +3133,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3151,15 +3151,15 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3169,12 +3169,12 @@ func NewSetNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, att return NewSetNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3452,7 +3452,7 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, attributes := in.Attributes() - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3462,15 +3462,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3480,15 +3480,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3498,15 +3498,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3516,15 +3516,15 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3534,12 +3534,12 @@ func (t SingleNestedBlockAssocExtTypeType) ValueFromObject(ctx context.Context, return nil, diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { @@ -3619,7 +3619,7 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttribute, ok := attributes["bool_attribute"] + boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -3629,15 +3629,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) + boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttribute)) + fmt.Sprintf(`bool_attribute expected to be basetypes.BoolValue, was: %T`, boolAttributeAttribute)) } - float64Attribute, ok := attributes["float64_attribute"] + float64AttributeAttribute, ok := attributes["float64_attribute"] if !ok { diags.AddError( @@ -3647,15 +3647,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - float64AttributeVal, ok := float64Attribute.(basetypes.Float64Value) + float64AttributeVal, ok := float64AttributeAttribute.(basetypes.Float64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64Attribute)) + fmt.Sprintf(`float64_attribute expected to be basetypes.Float64Value, was: %T`, float64AttributeAttribute)) } - int64Attribute, ok := attributes["int64_attribute"] + int64AttributeAttribute, ok := attributes["int64_attribute"] if !ok { diags.AddError( @@ -3665,15 +3665,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - int64AttributeVal, ok := int64Attribute.(basetypes.Int64Value) + int64AttributeVal, ok := int64AttributeAttribute.(basetypes.Int64Value) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64Attribute)) + fmt.Sprintf(`int64_attribute expected to be basetypes.Int64Value, was: %T`, int64AttributeAttribute)) } - numberAttribute, ok := attributes["number_attribute"] + numberAttributeAttribute, ok := attributes["number_attribute"] if !ok { diags.AddError( @@ -3683,15 +3683,15 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - numberAttributeVal, ok := numberAttribute.(basetypes.NumberValue) + numberAttributeVal, ok := numberAttributeAttribute.(basetypes.NumberValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttribute)) + fmt.Sprintf(`number_attribute expected to be basetypes.NumberValue, was: %T`, numberAttributeAttribute)) } - stringAttribute, ok := attributes["string_attribute"] + stringAttributeAttribute, ok := attributes["string_attribute"] if !ok { diags.AddError( @@ -3701,12 +3701,12 @@ func NewSingleNestedBlockAssocExtTypeValue(attributeTypes map[string]attr.Type, return NewSingleNestedBlockAssocExtTypeValueUnknown(), diags } - stringAttributeVal, ok := stringAttribute.(basetypes.StringValue) + stringAttributeVal, ok := stringAttributeAttribute.(basetypes.StringValue) if !ok { diags.AddError( "Attribute Wrong Type", - fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttribute)) + fmt.Sprintf(`string_attribute expected to be basetypes.StringValue, was: %T`, stringAttributeAttribute)) } if diags.HasError() { diff --git a/internal/schema/custom_object_test.go b/internal/schema/custom_object_test.go index 77cf96d3..753148fb 100644 --- a/internal/schema/custom_object_test.go +++ b/internal/schema/custom_object_test.go @@ -229,7 +229,7 @@ return NewExampleValueUnknown(), diags } -boolAttribute, ok := attributes["bool_attribute"] +boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -239,12 +239,12 @@ diags.AddError( return NewExampleValueUnknown(), diags } -boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) +boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", -fmt.Sprintf(` + "`bool_attribute expected to be basetypes.BoolValue, was: %T`" + `, boolAttribute)) +fmt.Sprintf(` + "`bool_attribute expected to be basetypes.BoolValue, was: %T`" + `, boolAttributeAttribute)) } @@ -302,7 +302,7 @@ var diags diag.Diagnostics attributes := in.Attributes() -boolAttribute, ok := attributes["bool_attribute"] +boolAttributeAttribute, ok := attributes["bool_attribute"] if !ok { diags.AddError( @@ -312,12 +312,12 @@ diags.AddError( return nil, diags } -boolAttributeVal, ok := boolAttribute.(basetypes.BoolValue) +boolAttributeVal, ok := boolAttributeAttribute.(basetypes.BoolValue) if !ok { diags.AddError( "Attribute Wrong Type", -fmt.Sprintf(` + "`bool_attribute expected to be basetypes.BoolValue, was: %T`" + `, boolAttribute)) +fmt.Sprintf(` + "`bool_attribute expected to be basetypes.BoolValue, was: %T`" + `, boolAttributeAttribute)) } diff --git a/internal/schema/templates/object_type_value.gotmpl b/internal/schema/templates/object_type_value.gotmpl index 2cc738b3..304f738a 100644 --- a/internal/schema/templates/object_type_value.gotmpl +++ b/internal/schema/templates/object_type_value.gotmpl @@ -51,7 +51,7 @@ return New{{.Name}}ValueUnknown(), diags } {{range $key, $value := .AttrValues }} -{{$key.ToCamelCase}}, ok := attributes["{{$key}}"] +{{$key.ToCamelCase}}Attribute, ok := attributes["{{$key}}"] if !ok { diags.AddError( @@ -61,12 +61,12 @@ diags.AddError( return New{{$.Name}}ValueUnknown(), diags } -{{$key.ToCamelCase}}Val, ok := {{$key.ToCamelCase}}.({{$value}}) +{{$key.ToCamelCase}}Val, ok := {{$key.ToCamelCase}}Attribute.({{$value}}) if !ok { diags.AddError( "Attribute Wrong Type", -fmt.Sprintf(`{{$key}} expected to be {{$value}}, was: %T`, {{$key.ToCamelCase}})) +fmt.Sprintf(`{{$key}} expected to be {{$value}}, was: %T`, {{$key.ToCamelCase}}Attribute)) } {{end}} diff --git a/internal/schema/templates/object_type_value_from_object.gotmpl b/internal/schema/templates/object_type_value_from_object.gotmpl index cc0d8914..e727b396 100644 --- a/internal/schema/templates/object_type_value_from_object.gotmpl +++ b/internal/schema/templates/object_type_value_from_object.gotmpl @@ -5,7 +5,7 @@ var diags diag.Diagnostics attributes := in.Attributes() {{range $key, $value := .AttrValues }} -{{$key.ToCamelCase}}, ok := attributes["{{$key}}"] +{{$key.ToCamelCase}}Attribute, ok := attributes["{{$key}}"] if !ok { diags.AddError( @@ -15,12 +15,12 @@ diags.AddError( return nil, diags } -{{$key.ToCamelCase}}Val, ok := {{$key.ToCamelCase}}.({{$value}}) +{{$key.ToCamelCase}}Val, ok := {{$key.ToCamelCase}}Attribute.({{$value}}) if !ok { diags.AddError( "Attribute Wrong Type", -fmt.Sprintf(`{{$key}} expected to be {{$value}}, was: %T`, {{$key.ToCamelCase}})) +fmt.Sprintf(`{{$key}} expected to be {{$value}}, was: %T`, {{$key.ToCamelCase}}Attribute)) } {{end}}