-
Notifications
You must be signed in to change notification settings - Fork 984
Expand file tree
/
Copy pathschema_webhook_configuration.go
More file actions
40 lines (38 loc) · 1.08 KB
/
schema_webhook_configuration.go
File metadata and controls
40 lines (38 loc) · 1.08 KB
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
package github
import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
func webhookConfigurationSchema() *schema.Schema {
return &schema.Schema{
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Description: "Configuration for the webhook.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"url": {
Type: schema.TypeString,
Required: true,
Sensitive: true,
Description: "The URL of the webhook.",
},
"content_type": {
Type: schema.TypeString,
Optional: true,
Description: "The content type for the payload. Valid values are either 'form' or 'json'.",
},
"secret": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
Description: "The shared secret for the webhook. [See API documentation](https://developer.github.com/v3/repos/hooks/#create-a-hook).",
},
"insecure_ssl": {
Type: schema.TypeBool,
Optional: true,
Description: "Insecure SSL boolean toggle. Defaults to 'false'.",
},
},
},
}
}