Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added children and nested children support under network_access_policy_set #3

Merged
merged 3 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/data-sources/network_access_policy_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ data "ise_network_access_policy_set" "example" {

### Read-Only

- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `ConditionAttributes` or `ConditionReference`. (see [below for nested schema](#nestedatt--children))
- `condition_attribute_name` (String) Dictionary attribute name
- `condition_attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `condition_dictionary_name` (String) Dictionary name
Expand All @@ -41,3 +42,32 @@ data "ise_network_access_policy_set" "example" {
- `rank` (Number) The rank (priority) in relation to other policy sets. Lower rank is higher priority.
- `service_name` (String) Policy set service identifier. 'Allowed Protocols' or 'Server Sequence'.
- `state` (String) The state that the policy set is in. A disabled policy set cannot be matched.

<a id="nestedatt--children"></a>
### Nested Schema for `children`

Read-Only:

- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `ConditionAttributes` or `ConditionReference`. (see [below for nested schema](#nestedatt--children--children))
- `condition_attribute_name` (String) Dictionary attribute name
- `condition_attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `condition_dictionary_name` (String) Dictionary name
- `condition_dictionary_value` (String) Dictionary value
- `condition_id` (String) UUID for condition
- `condition_is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `condition_operator` (String) Equality operator
- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.

<a id="nestedatt--children--children"></a>
### Nested Schema for `children.children`

Read-Only:

- `condition_attribute_name` (String) Dictionary attribute name
- `condition_attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `condition_dictionary_name` (String) Dictionary name
- `condition_dictionary_value` (String) Dictionary value
- `condition_id` (String) UUID for condition
- `condition_is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `condition_operator` (String) Equality operator
- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
42 changes: 41 additions & 1 deletion docs/resources/network_access_policy_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ resource "ise_network_access_policy_set" "example" {
### Required

- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference`, `LibraryConditionAndBlock`, `LibraryConditionAttributes`, `LibraryConditionOrBlock`, `TimeAndDateCondition`
- Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference`
- `name` (String) Given name for the policy set, [Valid characters are alphanumerics, underscore, hyphen, space, period, parentheses]
- `service_name` (String) Policy set service identifier. 'Allowed Protocols' or 'Server Sequence'.

### Optional

- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `ConditionAttributes` or `ConditionReference`. (see [below for nested schema](#nestedatt--children))
- `condition_attribute_name` (String) Dictionary attribute name
- `condition_attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `condition_dictionary_name` (String) Dictionary name
Expand All @@ -59,6 +60,45 @@ resource "ise_network_access_policy_set" "example" {

- `id` (String) The id of the object

<a id="nestedatt--children"></a>
### Nested Schema for `children`

Required:

- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference`

Optional:

- `children` (Attributes List) List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `ConditionAttributes` or `ConditionReference`. (see [below for nested schema](#nestedatt--children--children))
- `condition_attribute_name` (String) Dictionary attribute name
- `condition_attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `condition_dictionary_name` (String) Dictionary name
- `condition_dictionary_value` (String) Dictionary value
- `condition_id` (String) UUID for condition
- `condition_is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `condition_operator` (String) Equality operator
- Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`

<a id="nestedatt--children--children"></a>
### Nested Schema for `children.children`

Required:

- `condition_type` (String) Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
- Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference`

Optional:

- `condition_attribute_name` (String) Dictionary attribute name
- `condition_attribute_value` (String) Attribute value for condition. Value type is specified in dictionary object.
- `condition_dictionary_name` (String) Dictionary name
- `condition_dictionary_value` (String) Dictionary value
- `condition_id` (String) UUID for condition
- `condition_is_negate` (Boolean) Indicates whereas this condition is in negate mode
- `condition_operator` (String) Equality operator
- Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`

## Import

Import is supported using the following syntax:
Expand Down
102 changes: 100 additions & 2 deletions gen/definitions/network_access_policy_set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ attributes:
data_path: [condition]
mandatory: true
type: String
enum_values: [ConditionAndBlock, ConditionAttributes, ConditionOrBlock, ConditionReference, LibraryConditionAndBlock, LibraryConditionAttributes, LibraryConditionOrBlock, TimeAndDateCondition]
enum_values: [ConditionAndBlock, ConditionAttributes, ConditionOrBlock, ConditionReference]
description: Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
example: ConditionAttributes
minimum_test_value: '"ConditionReference"'
Expand Down Expand Up @@ -85,6 +85,104 @@ attributes:
enum_values: [contains, endsWith, equals, greaterOrEquals, greaterThan, in, ipEquals, ipGreaterThan, ipLessThan, ipNotEquals, lessOrEquals, lessThan, matches, notContains, notEndsWith, notEquals, notIn, notStartsWith, startsWith]
description: Equality operator
example: equals
- model_name: children
type: List
description: List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `ConditionAttributes` or `ConditionReference`.
exclude_test: true
data_path: [condition]
attributes:
- model_name: conditionType
mandatory: true
type: String
enum_values: [ConditionAndBlock, ConditionAttributes, ConditionOrBlock, ConditionReference]
description: Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
example: ConditionAttributes
minimum_test_value: '"ConditionReference"'
- model_name: id
tf_name: condition_id
type: String
description: UUID for condition
example: 12345678-f0e7-456b-a2d1-876543320123
minimum_test_value: ise_network_access_condition.test.id
- model_name: isNegate
tf_name: condition_is_negate
type: Bool
description: Indicates whereas this condition is in negate mode
example: false
- model_name: attributeName
tf_name: condition_attribute_name
type: String
description: Dictionary attribute name
example: Location
- model_name: attributeValue
tf_name: condition_attribute_value
type: String
description: Attribute value for condition. Value type is specified in dictionary object.
example: All Locations
- model_name: dictionaryName
tf_name: condition_dictionary_name
type: String
description: Dictionary name
example: DEVICE
- model_name: dictionaryValue
tf_name: condition_dictionary_value
type: String
description: Dictionary value
example: abc
- model_name: operator
tf_name: condition_operator
type: String
enum_values: [contains, endsWith, equals, greaterOrEquals, greaterThan, in, ipEquals, ipGreaterThan, ipLessThan, ipNotEquals, lessOrEquals, lessThan, matches, notContains, notEndsWith, notEquals, notIn, notStartsWith, startsWith]
description: Equality operator
example: equals
- model_name: children
type: List
description: List of child conditions. `condition_type` must be one of `ConditionAndBlock`, `ConditionOrBlock`, `ConditionAttributes` or `ConditionReference`.
attributes:
- model_name: conditionType
mandatory: true
type: String
enum_values: [ConditionAndBlock, ConditionAttributes, ConditionOrBlock, ConditionReference]
description: Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute.
example: ConditionAttributes
minimum_test_value: '"ConditionReference"'
- model_name: id
tf_name: condition_id
type: String
description: UUID for condition
example: 12345678-f0e7-456b-a2d1-876543320123
minimum_test_value: ise_network_access_condition.test.id
- model_name: isNegate
tf_name: condition_is_negate
type: Bool
description: Indicates whereas this condition is in negate mode
example: false
- model_name: attributeName
tf_name: condition_attribute_name
type: String
description: Dictionary attribute name
example: Location
- model_name: attributeValue
tf_name: condition_attribute_value
type: String
description: Attribute value for condition. Value type is specified in dictionary object.
example: All Locations
- model_name: dictionaryName
tf_name: condition_dictionary_name
type: String
description: Dictionary name
example: DEVICE
- model_name: dictionaryValue
tf_name: condition_dictionary_value
type: String
description: Dictionary value
example: abc
- model_name: operator
tf_name: condition_operator
type: String
enum_values: [contains, endsWith, equals, greaterOrEquals, greaterThan, in, ipEquals, ipGreaterThan, ipLessThan, ipNotEquals, lessOrEquals, lessThan, matches, notContains, notEndsWith, notEquals, notIn, notStartsWith, startsWith]
description: Equality operator
example: equals
test_prerequisites: |
resource "ise_network_access_condition" "test" {
name = "Cond1"
Expand All @@ -93,4 +191,4 @@ test_prerequisites: |
attribute_value = "Wireless - IEEE 802.11"
dictionary_name = "Radius"
operator = "equals"
}
}
80 changes: 80 additions & 0 deletions internal/provider/data_source_ise_network_access_policy_set.go

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

Loading