package provider

import "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

type RDPWindowsIntegrationConfiguration struct {
	Version  string `yaml:"version"`
	Name     string `yaml:"name"`
	Hostname string `yaml:"hostname"`
	Password string `yaml:"password"`
	Username string `yaml:"username"`
	Port     string `yaml:"port"`
}

func schemaToRDPWindowsIntegrationConfiguration(d *schema.ResourceData) RDPWindowsIntegrationConfiguration {
	return RDPWindowsIntegrationConfiguration{
		Version:  "1.0",
		Name:     d.Get("name").(string),
		Hostname: d.Get("hostname").(string),
		Password: d.Get("password").(string),
		Username: d.Get("username").(string),
		Port:     d.Get("port").(string),
	}
}
