Skip to content

Commit 1eaeede

Browse files
committed
add open_in parameter
1 parent 6ca152d commit 1eaeede

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

provider/app.go

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package provider
22

33
import (
44
"context"
5+
"fmt"
56
"net/url"
67
"regexp"
78

@@ -83,6 +84,18 @@ func appResource() *schema.Resource {
8384
Optional: true,
8485
ForceNew: true,
8586
},
87+
"open_in": {
88+
Type: schema.TypeString,
89+
Description: "The application to open the app in.",
90+
Optional: true,
91+
ForceNew: true,
92+
ValidateFunc: func(i interface{}, s string) ([]string, []error) {
93+
if s == "tab" || s == "window" || s == "slim-window" {
94+
return nil, nil
95+
}
96+
return nil, []error{fmt.Errorf("invalid open_in value %q, must be one of \"tab\", \"window\" or \"slim-window\"", s)}
97+
},
98+
},
8699
"icon": {
87100
Type: schema.TypeString,
88101
Description: "A URL to an icon that will display in the dashboard. View built-in " +

0 commit comments

Comments
 (0)