forked from ovh/terraform-provider-ovh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_cloud_project_gateway_interface_gen.go
54 lines (49 loc) · 1.37 KB
/
data_cloud_project_gateway_interface_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
48
49
50
51
52
53
54
// Code generated by terraform-plugin-framework-generator DO NOT EDIT.
package ovh
import (
"context"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
ovhtypes "github.com/ovh/terraform-provider-ovh/ovh/types"
)
func CloudProjectGatewayInterfaceDataSourceSchema(ctx context.Context) schema.Schema {
attrs := map[string]schema.Attribute{
"id": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Required: true,
Description: "Id",
},
"interface_id": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Required: true,
Description: "Interface ID",
},
"ip": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Computed: true,
Description: "IP of the interface",
},
"network_id": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Computed: true,
Description: "Network ID of the interface",
},
"region": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Required: true,
Description: "Region name",
},
"service_name": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Required: true,
Description: "Service name",
},
"subnet_id": schema.StringAttribute{
CustomType: ovhtypes.TfStringType{},
Computed: true,
Description: "Subnet ID of the interface",
},
}
return schema.Schema{
Attributes: attrs,
}
}