Skip to content

Commit ab7df64

Browse files
committed
Fix some formats in token docs
1 parent 4ba2c08 commit ab7df64

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

sumologic/resource_sumologic_token.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ func resourceSumologicTokenUpdate(d *schema.ResourceData, meta interface{}) erro
101101
if err != nil {
102102
return err
103103
}
104-
// Each successful update will increment version
105-
d.Set("version", token.Version+1)
104+
106105
return resourceSumologicTokenRead(d, meta)
107106
}
108107

sumologic/resource_sumologic_token_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ func TestAccSumologicToken_create(t *testing.T) {
5959
resource.TestCheckResourceAttr("sumologic_token.test", "description", testDescription),
6060
resource.TestCheckResourceAttr("sumologic_token.test", "status", testStatus),
6161
resource.TestCheckResourceAttr("sumologic_token.test", "type", testType),
62-
resource.TestCheckResourceAttr("sumologic_token.test", "version", "0"),
6362
),
6463
},
6564
},
@@ -128,7 +127,6 @@ func TestAccSumologicToken_update(t *testing.T) {
128127
resource.TestCheckResourceAttr("sumologic_token.test", "description", testDescription),
129128
resource.TestCheckResourceAttr("sumologic_token.test", "status", testStatus),
130129
resource.TestCheckResourceAttr("sumologic_token.test", "type", testType),
131-
resource.TestCheckResourceAttr("sumologic_token.test", "version", "0"),
132130
),
133131
},
134132
{
@@ -140,7 +138,6 @@ func TestAccSumologicToken_update(t *testing.T) {
140138
resource.TestCheckResourceAttr("sumologic_token.test", "description", testUpdatedDescription),
141139
resource.TestCheckResourceAttr("sumologic_token.test", "status", testUpdatedStatus),
142140
resource.TestCheckResourceAttr("sumologic_token.test", "type", testType),
143-
resource.TestCheckResourceAttr("sumologic_token.test", "version", "1"),
144141
),
145142
},
146143
},

website/docs/r/token.html.markdown

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@ resource "sumologic_token" "example_token" {
1515
description = "Testing resource sumologic_token"
1616
status = "Active"
1717
type = "CollectorRegistration"
18-
version = 0
1918
}
2019
```
2120

2221
## Argument Reference
2322

2423
The following arguments are supported:
2524

25+
* `type` - (Required) Type of the token. Valid value:
26+
- `CollectorRegistration`.
2627
* `name` - (Required) Display name of the token. This must be unique across all of the tokens.
2728
* `description` - (Optional) The description of the token.
28-
* `status` - (Required) Status of the token. Supported values are `Active`, and `Inactive`.
29-
* `type` - (Required) Type of the token. Supported value is `CollectorRegistration`.
30-
* `version` - (Required for update) Version of the token. This is only required for update. It starts from 0 when created and gets incremented with each update.
29+
* `status` - (Required) Status of the token. Valid values:
30+
- `Active`
31+
- `Inactive`
3132

3233
The following attributes are exported:
3334

0 commit comments

Comments
 (0)