Skip to content

Commit

Permalink
chore: update tf plugin framework to latest to support embedded structs
Browse files Browse the repository at this point in the history
  • Loading branch information
hnrkndrssn committed Aug 8, 2024
1 parent 0826a7e commit 8d08416
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/google/uuid v1.6.0
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637
github.com/hashicorp/terraform-plugin-docs v0.13.0
github.com/hashicorp/terraform-plugin-framework v1.9.0
github.com/hashicorp/terraform-plugin-framework v1.11.0
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0
github.com/hashicorp/terraform-plugin-go v0.23.0
github.com/hashicorp/terraform-plugin-log v0.9.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ github.com/hashicorp/terraform-plugin-docs v0.13.0 h1:6e+VIWsVGb6jYJewfzq2ok2smP
github.com/hashicorp/terraform-plugin-docs v0.13.0/go.mod h1:W0oCmHAjIlTHBbvtppWHe8fLfZ2BznQbuv8+UD8OucQ=
github.com/hashicorp/terraform-plugin-framework v1.9.0 h1:caLcDoxiRucNi2hk8+j3kJwkKfvHznubyFsJMWfZqKU=
github.com/hashicorp/terraform-plugin-framework v1.9.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework v1.11.0 h1:M7+9zBArexHFXDx/pKTxjE6n/2UCXY6b8FIq9ZYhwfE=
github.com/hashicorp/terraform-plugin-framework v1.11.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg=
github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co=
Expand Down
3 changes: 2 additions & 1 deletion octopusdeploy_framework/schemas/artifactory_generic_feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func GetArtifactoryGenericFeedResourceSchema() map[string]resourceSchema.Attribu
}

type ArtifactoryGenericFeedTypeResourceModel struct {
ResourceModel
FeedUri types.String `tfsdk:"feed_uri"`
Name types.String `tfsdk:"name"`
PackageAcquisitionLocationOptions types.List `tfsdk:"package_acquisition_location_options"`
Expand All @@ -41,4 +40,6 @@ type ArtifactoryGenericFeedTypeResourceModel struct {
Username types.String `tfsdk:"username"`
Repository types.String `tfsdk:"repository"`
LayoutRegex types.String `tfsdk:"layout_regex"`

ResourceModel
}
3 changes: 2 additions & 1 deletion octopusdeploy_framework/schemas/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ type IResourceModel interface {
}

type ResourceModel struct {
IResourceModel
ID types.String `tfsdk:"id"`

IResourceModel `tfsdk:"-"`
}

func (r ResourceModel) GetID() string {
Expand Down
6 changes: 4 additions & 2 deletions octopusdeploy_framework/schemas/variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ func GetVariableResourceSchema() resourceSchema.Schema {
}

type VariableTypeResourceModel struct {
ResourceModel
Name types.String `tfsdk:"name"`
Description types.String `tfsdk:"description"`
OwnerID types.String `tfsdk:"owner_id"`
Expand All @@ -234,10 +233,11 @@ type VariableTypeResourceModel struct {
Prompt types.List `tfsdk:"prompt"`
Scope types.List `tfsdk:"scope"`
SpaceID types.String `tfsdk:"space_id"`

ResourceModel
}

type VariablesDataSourceModel struct {
ResourceModel
OwnerID types.String `tfsdk:"owner_id"`
Name types.String `tfsdk:"name"`
Scope types.List `tfsdk:"scope"`
Expand All @@ -249,4 +249,6 @@ type VariablesDataSourceModel struct {
SensitiveValue types.String `tfsdk:"sensitive_value"`
Type types.String `tfsdk:"type"`
Value types.String `tfsdk:"value"`

ResourceModel
}

0 comments on commit 8d08416

Please sign in to comment.