-
Notifications
You must be signed in to change notification settings - Fork 361
/
migrate.go
53 lines (51 loc) · 1.06 KB
/
migrate.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
package storage
import (
"github.com/hashicorp/go-cty/cty"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
// DbfsFileV0 contains v0.2.x schema
func DbfsFileV0() cty.Type {
return (&schema.Resource{
Schema: map[string]*schema.Schema{
"content": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"source": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ConflictsWith: []string{"content"},
},
"content_b64_md5": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"path": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"overwrite": {
Type: schema.TypeBool,
Optional: true,
Default: false,
},
"mkdirs": {
Type: schema.TypeBool,
Optional: true,
Default: true,
},
"validate_remote_file": {
Type: schema.TypeBool,
Optional: true,
},
"file_size": {
Type: schema.TypeInt,
Computed: true,
},
},
}).CoreConfigSchema().ImpliedType()
}