Skip to content

Commit

Permalink
Remove expiry date attributes from internal user resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Oct 10, 2023
1 parent 335577d commit 928e636
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 77 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- Fix issue with reading nested conditions using `ise_network_access_condition` resource
- Add support for nested conditions to `ise_network_access_policy_set` resource and data source
- Add `agentless_posture` attribute to `ise_authorization_profile` resource and data source
- Add `identity_groups`, `custom_attributes`, `expiry_date_enabled` and `expiry_date` attributes to `ise_internal_user` resource and data source
- Add `identity_groups` and `custom_attributes` attributes to `ise_internal_user` resource and data source
- Add support for nested conditions to `ise_network_access_authentication_rule` resource and data source
- Add support for nested conditions to `ise_network_access_authorization_rule` resource and data source
- Add `ise_trustsec_egress_matrix_cell` resource and data source
Expand Down
2 changes: 0 additions & 2 deletions docs/data-sources/internal_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ data "ise_internal_user" "example" {
- `email` (String) Email address
- `enable_password` (String) This field is added in ISE 2.0 to support TACACS+
- `enabled` (Boolean) Whether the user is enabled/disabled
- `expiry_date` (String) Password expiry date. It's format is = 'YYYY-MM-DD'
- `expiry_date_enabled` (Boolean) Enable a password expiry date
- `first_name` (String) First name of the internal user
- `identity_groups` (String) Comma separated list of identity group IDs.
- `last_name` (String) Last name of the internal user
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: |-
- Fix issue with reading nested conditions using `ise_network_access_condition` resource
- Add support for nested conditions to `ise_network_access_policy_set` resource and data source
- Add `agentless_posture` attribute to `ise_authorization_profile` resource and data source
- Add `identity_groups`, `custom_attributes`, `expiry_date_enabled` and `expiry_date` attributes to `ise_internal_user` resource and data source
- Add `identity_groups` and `custom_attributes` attributes to `ise_internal_user` resource and data source
- Add support for nested conditions to `ise_network_access_authentication_rule` resource and data source
- Add support for nested conditions to `ise_network_access_authorization_rule` resource and data source
- Add `ise_trustsec_egress_matrix_cell` resource and data source
Expand Down
4 changes: 0 additions & 4 deletions docs/resources/internal_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ resource "ise_internal_user" "example" {
first_name = "John"
last_name = "Doe"
password_id_store = "Internal Users"
expiry_date_enabled = false
description = "My first Terraform user"
}
```
Expand All @@ -48,9 +47,6 @@ resource "ise_internal_user" "example" {
- `email` (String) Email address
- `enable_password` (String) This field is added in ISE 2.0 to support TACACS+
- `enabled` (Boolean) Whether the user is enabled/disabled
- `expiry_date` (String) Password expiry date. It's format is = 'YYYY-MM-DD'
- `expiry_date_enabled` (Boolean) Enable a password expiry date
- Default value: `false`
- `first_name` (String) First name of the internal user
- `identity_groups` (String) Comma separated list of identity group IDs.
- `last_name` (String) Last name of the internal user
Expand Down
1 change: 0 additions & 1 deletion examples/resources/ise_internal_user/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ resource "ise_internal_user" "example" {
first_name = "John"
last_name = "Doe"
password_id_store = "Internal Users"
expiry_date_enabled = false
description = "My first Terraform user"
}
32 changes: 15 additions & 17 deletions gen/definitions/internal_user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,23 @@ attributes:
description: The ID store where the internal user's password is kept
default_value: Internal Users
example: Internal Users
- model_name: expiryDateEnabled
data_path: [InternalUser]
tf_name: expiry_date_enabled
type: Bool
description: Enable a password expiry date
default_value: false
example: false
- model_name: expiryDate
data_path: [InternalUser]
tf_name: expiry_date
type: String
description: Password expiry date. It's format is = 'YYYY-MM-DD'
example: "2024-12-11"
exclude_test: true
# expiryDate works with PUT but fails with POST
# - model_name: expiryDateEnabled
# data_path: [InternalUser]
# tf_name: expiry_date_enabled
# type: Bool
# description: Enable a password expiry date
# default_value: false
# example: false
# - model_name: expiryDate
# data_path: [InternalUser]
# tf_name: expiry_date
# type: String
# description: Password expiry date. It's format is = 'YYYY-MM-DD'
# example: "2024-12-11"
# exclude_test: true
- model_name: description
data_path: [InternalUser]
type: String
description: Description
example: My first Terraform user



8 changes: 0 additions & 8 deletions internal/provider/data_source_ise_internal_user.go

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

2 changes: 0 additions & 2 deletions internal/provider/data_source_ise_internal_user_test.go

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

28 changes: 0 additions & 28 deletions internal/provider/model_ise_internal_user.go

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

10 changes: 0 additions & 10 deletions internal/provider/resource_ise_internal_user.go

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

2 changes: 0 additions & 2 deletions internal/provider/resource_ise_internal_user_test.go

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

2 changes: 1 addition & 1 deletion templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: |-
- Fix issue with reading nested conditions using `ise_network_access_condition` resource
- Add support for nested conditions to `ise_network_access_policy_set` resource and data source
- Add `agentless_posture` attribute to `ise_authorization_profile` resource and data source
- Add `identity_groups`, `custom_attributes`, `expiry_date_enabled` and `expiry_date` attributes to `ise_internal_user` resource and data source
- Add `identity_groups` and `custom_attributes` attributes to `ise_internal_user` resource and data source
- Add support for nested conditions to `ise_network_access_authentication_rule` resource and data source
- Add support for nested conditions to `ise_network_access_authorization_rule` resource and data source
- Add `ise_trustsec_egress_matrix_cell` resource and data source
Expand Down

0 comments on commit 928e636

Please sign in to comment.