Skip to content

Commit

Permalink
Fixed description
Browse files Browse the repository at this point in the history
  • Loading branch information
tuteng committed Dec 29, 2023
1 parent cdcc3a8 commit 279114e
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions cloud/resource_pulsar_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,19 @@ func resourcePulsarCluster() *schema.Resource {
"websocket_enabled": {
Type: schema.TypeBool,
Optional: true,
Default: true,
},
"function_enabled": {
Type: schema.TypeBool,
Optional: true,
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: descriptions["function_enabled"],
},
"transaction_enabled": {
Type: schema.TypeBool,
Optional: true,
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: descriptions["transaction_enabled"],
},
"protocols": {
Type: schema.TypeSet,
Expand All @@ -167,13 +172,16 @@ func resourcePulsarCluster() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"kafka": {
Type: schema.TypeMap,
Default: map[string]interface{}{},
Optional: true,
Type: schema.TypeMap,
Default: map[string]interface{}{},
Optional: true,
Description: descriptions["kafka"],
},
"mqtt": {
Type: schema.TypeMap,
Optional: true,
Type: schema.TypeMap,
Optional: true,
Default: map[string]interface{}{},
Description: descriptions["mqtt"],
},
},
},
Expand All @@ -185,9 +193,10 @@ func resourcePulsarCluster() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"categories": {
Type: schema.TypeSet,
Optional: true,
MinItems: 1,
Type: schema.TypeSet,
Optional: true,
MinItems: 1,
Description: descriptions["categories"],
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validateAuditLog,
Expand Down

0 comments on commit 279114e

Please sign in to comment.