-
Notifications
You must be signed in to change notification settings - Fork 91
/
framework_datasource_schema.go
50 lines (47 loc) · 1.35 KB
/
framework_datasource_schema.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
48
49
50
package kernel
import (
"github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
)
var KernelAttributes = map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "The unique ID of this Kernel.",
Required: true,
},
"architecture": schema.StringAttribute{
Description: "The architecture of this Kernel.",
Computed: true,
},
"built": schema.StringAttribute{
Description: "The date on which this Kernel was built.",
Computed: true,
CustomType: timetypes.RFC3339Type{},
},
"deprecated": schema.BoolAttribute{
Description: "Whether or not this Kernel is deprecated.",
Computed: true,
},
"kvm": schema.BoolAttribute{
Description: "If this Kernel is suitable for KVM Linodes.",
Computed: true,
},
"label": schema.StringAttribute{
Description: "The friendly name of this Kernel.",
Computed: true,
},
"pvops": schema.BoolAttribute{
Description: "If this Kernel is suitable for paravirtualized operations.",
Computed: true,
},
"version": schema.StringAttribute{
Description: "Linux Kernel version.",
Computed: true,
},
"xen": schema.BoolAttribute{
Description: "If this Kernel is suitable for Xen Linodes.",
Computed: true,
},
}
var frameworkDatasourceSchema = schema.Schema{
Attributes: KernelAttributes,
}