This pull request addresses a bug in our codebase where the Weight property was incorrectly typed as String. The correct type for the Weight property is Int64.
The changes in this pull request include:
In the OriginsDataSourceModel struct, the Weight property has been changed from types.String to types.Int64.
In the OriginsAddressResults struct, the Weight property has been changed from types.String to types.Int64.
In the OriginResourceResults struct, the Weight property has been changed from types.String to types.Int64.
In the OriginAddress struct, the Weight property has been changed from types.String to types.Int64.
In the Schema function of the originResource struct, the Weight attribute has been changed from schema.StringAttribute to schema.Int64Attribute.
In the Create, Read, and Update functions of the originResource struct, the Weight value is now retrieved using types.Int64Value instead of types.StringValue.
These changes ensure that the Weight property is handled correctly throughout the codebase, preventing potential type mismatch errors and improving the accuracy of our data handling.
Description:
This pull request addresses a bug in our codebase where the Weight property was incorrectly typed as String. The correct type for the Weight property is Int64.
The changes in this pull request include:
In the OriginsDataSourceModel struct, the Weight property has been changed from types.String to types.Int64.
In the OriginsAddressResults struct, the Weight property has been changed from types.String to types.Int64.
In the OriginResourceResults struct, the Weight property has been changed from types.String to types.Int64.
In the OriginAddress struct, the Weight property has been changed from types.String to types.Int64.
In the Schema function of the originResource struct, the Weight attribute has been changed from schema.StringAttribute to schema.Int64Attribute.
In the Create, Read, and Update functions of the originResource struct, the Weight value is now retrieved using types.Int64Value instead of types.StringValue.
These changes ensure that the Weight property is handled correctly throughout the codebase, preventing potential type mismatch errors and improving the accuracy of our data handling.