diff --git a/internal/provider/resources/install/gcp/common.go b/internal/provider/resources/install/gcp/common.go index ab3e0fb..b776709 100644 --- a/internal/provider/resources/install/gcp/common.go +++ b/internal/provider/resources/install/gcp/common.go @@ -20,7 +20,7 @@ type gcpRoleMetadata struct { type gcpPermissionsMetadata struct { Permissions []string `json:"requiredPermissions" tfsdk:"permissions"` - Role gcpRoleMetadata `json:"customRole" tfsdk:"custom_role"` + CustomRole gcpRoleMetadata `json:"customRole" tfsdk:"custom_role"` } type gcpPermissionsMetadataWithPredefinedRole struct { diff --git a/internal/provider/resources/install/gcp/iam_assessment_staged.go b/internal/provider/resources/install/gcp/iam_assessment_staged.go index 1f295ff..8ffff29 100644 --- a/internal/provider/resources/install/gcp/iam_assessment_staged.go +++ b/internal/provider/resources/install/gcp/iam_assessment_staged.go @@ -39,7 +39,7 @@ type gcpIamAssessmentStagedApi struct { Item struct { State string `json:"state"` } `json:"item"` - Metadata gcpPermissionsMetadataWithPredefinedRole `json:"metadata"` + Metadata gcpPermissionsMetadata `json:"metadata"` } func (r *GcpIamAssessmentStaged) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) {