Skip to content

Commit

Permalink
Fix attribute names
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 4, 2023
1 parent 549dec6 commit 18cde1d
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 35 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.1.1 (unreleased)

- BREAKING CHANGE: Rename `https_read` attribute of `catalystcenter_assign_credentials` to `https_read_id`
- BREAKING CHANGE: Rename `https_write` attribute of `catalystcenter_assign_credentials` to `https_write_id`

## 0.1.0

- Initial release
4 changes: 2 additions & 2 deletions docs/data-sources/assign_credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ data "catalystcenter_assign_credentials" "example" {
### Read-Only

- `cli_id` (String) The ID of the CLI credentials
- `https_read` (String) The ID of the HTTPS read credentials
- `https_write` (String) The ID of the HTTPS write credentials
- `https_read_id` (String) The ID of the HTTPS read credentials
- `https_write_id` (String) The ID of the HTTPS write credentials
- `snmp_v2_read_id` (String) The ID of the SNMPv2 read credentials
- `snmp_v2_write_id` (String) The ID of the SNMPv2 write credentials
- `snmp_v3_id` (String) The ID of the SNMPv3 credentials
5 changes: 5 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ description: |-

# Changelog

## 0.1.1 (unreleased)

- BREAKING CHANGE: Rename `https_read` attribute of `catalystcenter_assign_credentials` to `https_read_id`
- BREAKING CHANGE: Rename `https_write` attribute of `catalystcenter_assign_credentials` to `https_write_id`

## 0.1.0

- Initial release
Expand Down
10 changes: 5 additions & 5 deletions docs/resources/assign_credentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ This resource can manage the assigned credentials of a site.

```terraform
resource "catalystcenter_assign_credentials" "example" {
site_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
cli_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
https_read = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
site_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
cli_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
https_read_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
}
```

Expand All @@ -30,8 +30,8 @@ resource "catalystcenter_assign_credentials" "example" {
### Optional

- `cli_id` (String) The ID of the CLI credentials
- `https_read` (String) The ID of the HTTPS read credentials
- `https_write` (String) The ID of the HTTPS write credentials
- `https_read_id` (String) The ID of the HTTPS read credentials
- `https_write_id` (String) The ID of the HTTPS write credentials
- `snmp_v2_read_id` (String) The ID of the SNMPv2 read credentials
- `snmp_v2_write_id` (String) The ID of the SNMPv2 write credentials
- `snmp_v3_id` (String) The ID of the SNMPv3 credentials
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "catalystcenter_assign_credentials" "example" {
site_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
cli_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
https_read = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
site_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
cli_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
https_read_id = "5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1"
}
5 changes: 2 additions & 3 deletions gen/definitions/assign_credentials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ attributes:
exclude_test: true
- model_name: httpRead
response_data_path: 'response.#(key=\"credential.http.read\").value.0.objReferences.0'
tf_name: https_read
tf_name: https_read_id
type: String
description: The ID of the HTTPS read credentials
example: 5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1
test_value: catalystcenter_credentials_https_read.test.id
- model_name: httpWrite
response_data_path: 'response.#(key=\"credential.http.write\").value.0.objReferences.0'
tf_name: https_write
tf_name: https_write_id
type: String
description: The ID of the HTTPS write credentials
example: 5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1
Expand All @@ -77,4 +77,3 @@ test_prerequisites: |
username = "user1"
password = "password1"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions internal/provider/model_catalystcenter_assign_credentials.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ description: |-

# Changelog

## 0.1.1 (unreleased)

- BREAKING CHANGE: Rename `https_read` attribute of `catalystcenter_assign_credentials` to `https_read_id`
- BREAKING CHANGE: Rename `https_write` attribute of `catalystcenter_assign_credentials` to `https_write_id`

## 0.1.0

- Initial release
Expand Down

0 comments on commit 18cde1d

Please sign in to comment.