Skip to content

Commit

Permalink
add open_in parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
defelmnq committed Dec 16, 2024
1 parent 6ca152d commit 1eaeede
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions provider/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package provider

import (
"context"
"fmt"
"net/url"
"regexp"

Expand Down Expand Up @@ -83,6 +84,18 @@ func appResource() *schema.Resource {
Optional: true,
ForceNew: true,
},
"open_in": {
Type: schema.TypeString,
Description: "The application to open the app in.",
Optional: true,
ForceNew: true,
ValidateFunc: func(i interface{}, s string) ([]string, []error) {
if s == "tab" || s == "window" || s == "slim-window" {
return nil, nil
}
return nil, []error{fmt.Errorf("invalid open_in value %q, must be one of \"tab\", \"window\" or \"slim-window\"", s)}
},
},
"icon": {
Type: schema.TypeString,
Description: "A URL to an icon that will display in the dashboard. View built-in " +
Expand Down

0 comments on commit 1eaeede

Please sign in to comment.