-
Notifications
You must be signed in to change notification settings - Fork 132
/
data_ip_mitigation_gen.go
47 lines (43 loc) · 1.67 KB
/
data_ip_mitigation_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Code generated by terraform-plugin-framework-generator DO NOT EDIT.
package ovh
import (
"context"
ovhtypes "github.com/ovh/terraform-provider-ovh/ovh/types"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
)
func IpMitigationDataSourceSchema(ctx context.Context) schema.Schema {
return schema.Schema{
Attributes: map[string]schema.Attribute{
"auto": schema.BoolAttribute{
CustomType: ovhtypes.TfBoolType{},
Computed: true,
Description: "Set on true if your ip is on auto-mitigation",
MarkdownDescription: "Set on true if your ip is on auto-mitigation",
},
"ip": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Required: true,
Description: "IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)",
MarkdownDescription: "IP (v4 or v6) CIDR notation (e.g., 192.0.2.0/24)",
},
"ip_on_mitigation": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Required: true,
Description: "IPv4 address (e.g., 192.0.2.0)",
MarkdownDescription: "IPv4 address (e.g., 192.0.2.0)",
},
"permanent": schema.BoolAttribute{
CustomType: ovhtypes.TfBoolType{},
Computed: true,
Description: "Set on true if your ip is on permanent mitigation",
MarkdownDescription: "Set on true if your ip is on permanent mitigation",
},
"state": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Computed: true,
Description: "Current state of your ip on mitigation",
MarkdownDescription: "Current state of your ip on mitigation",
},
},
}
}