File tree Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -26,48 +26,32 @@ func resourceRouteServiceBinding() *schema.Resource {
26
26
StateContext : resourceRouteServiceBindingImport ,
27
27
},
28
28
29
- Schema : map [string ]* schema.Schema {
30
- "service_instance" : & schema.Schema {
31
- Type : schema .TypeString ,
32
- Required : true ,
33
- ForceNew : true ,
34
- },
35
- "route" : & schema.Schema {
36
- Type : schema .TypeString ,
37
- Required : true ,
38
- ForceNew : true ,
39
- },
40
- "json_params" : & schema.Schema {
41
- Type : schema .TypeString ,
42
- Optional : true ,
43
- ForceNew : true ,
44
- },
45
- },
29
+ Schema : resourceRouteServiceBindingSchema ().Schema ,
46
30
SchemaVersion : 1 ,
47
31
StateUpgraders : []schema.StateUpgrader {
48
32
{
49
- Type : resourceRouteServiceBindingResourceV0 ().CoreConfigSchema ().ImpliedType (),
33
+ Type : resourceRouteServiceBindingSchema ().CoreConfigSchema ().ImpliedType (),
50
34
Upgrade : upgradeStateRouteServiceBindingStateV0toV1ChangeID ,
51
35
Version : 0 ,
52
36
},
53
37
},
54
38
}
55
39
}
56
40
57
- func resourceRouteServiceBindingResourceV0 () * schema.Resource {
41
+ func resourceRouteServiceBindingSchema () * schema.Resource {
58
42
return & schema.Resource {
59
43
Schema : map [string ]* schema.Schema {
60
- "service_instance" : & schema. Schema {
44
+ "service_instance" : {
61
45
Type : schema .TypeString ,
62
46
Required : true ,
63
47
ForceNew : true ,
64
48
},
65
- "route" : & schema. Schema {
49
+ "route" : {
66
50
Type : schema .TypeString ,
67
51
Required : true ,
68
52
ForceNew : true ,
69
53
},
70
- "json_params" : & schema. Schema {
54
+ "json_params" : {
71
55
Type : schema .TypeString ,
72
56
Optional : true ,
73
57
ForceNew : true ,
You can’t perform that action at this time.
0 commit comments