0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-04 21:14:05 +00:00
terraform-provider-proxmox/proxmoxtf/datasource/firewall/security_group.go
Pavel Boldyrev efd0d7b466
chore: remove unused code (#1236)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-04-24 20:52:41 -04:00

40 lines
1010 B
Go

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package firewall
import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
const (
mkSecurityGroupName = "name"
mkSecurityGroupComment = "comment"
mkRules = "rules"
)
// SecurityGroupSchema defines the schema for the security group data source.
func SecurityGroupSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
mkSecurityGroupName: {
Type: schema.TypeString,
Description: "Security group name",
Required: true,
},
mkSecurityGroupComment: {
Type: schema.TypeString,
Description: "Security group comment",
Computed: true,
},
mkRules: {
Type: schema.TypeList,
Description: "List of rules",
Computed: true,
Elem: &schema.Resource{Schema: RuleSchema()},
},
}
}