Skip to content

Commit ab9bc1b

Browse files
committed
Enable data source name query option of ip to sgt mapping group resource
1 parent 982c216 commit ab9bc1b

7 files changed

+53
-13
lines changed

docs/data-sources/trustsec_ip_to_sgt_mapping_group.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ data "ise_trustsec_ip_to_sgt_mapping_group" "example" {
2121
<!-- schema generated by tfplugindocs -->
2222
## Schema
2323

24-
### Required
24+
### Optional
2525

2626
- `id` (String) The id of the object
27+
- `name` (String) The name of the IP to SGT mapping Group
2728

2829
### Read-Only
2930

30-
- `deploy_to` (String) Mandatory unless `deployType=ALL`
31+
- `deploy_to` (String) Mandatory unless `deploy_type` is `ALL`
3132
- `deploy_type` (String) Deploy Type
3233
- `description` (String) Description
33-
- `name` (String) The name of the IP to SGT mapping Group
3434
- `sgt` (String) Trustsec Security Group ID

docs/resources/trustsec_ip_to_sgt_mapping_group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resource "ise_trustsec_ip_to_sgt_mapping_group" "example" {
3232

3333
### Optional
3434

35-
- `deploy_to` (String) Mandatory unless `deployType=ALL`
35+
- `deploy_to` (String) Mandatory unless `deploy_type` is `ALL`
3636
- `description` (String) Description
3737

3838
### Read-Only

gen/definitions/trustsec_ip_to_sgt_mapping_group.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: TrustSec IP to SGT Mapping Group
33
rest_endpoint: /ers/config/sgmappinggroup
44
doc_category: TrustSec
5+
data_source_name_query: true
56
id_path: response.id
67
attributes:
78
- model_name: name
@@ -18,7 +19,7 @@ attributes:
1819
- model_name: deployTo
1920
data_path: [SGMappingGroup]
2021
type: String
21-
description: "Mandatory unless `deployType=ALL`"
22+
description: "Mandatory unless `deploy_type` is `ALL`"
2223
exclude_test: true
2324
example: "All Locations"
2425
- model_name: deployType
@@ -33,7 +34,7 @@ attributes:
3334
type: String
3435
example: "93e1bf00-8c01-11e6-996c-525400b48521"
3536
mandatory: true
36-
minimum_test_value: ise_trustsec_security_group.test.id
37+
test_value: ise_trustsec_security_group.test.id
3738
description: Trustsec Security Group ID
3839

3940
test_prerequisites: |

internal/provider/data_source_ise_trustsec_ip_to_sgt_mapping_group.go

Lines changed: 43 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/data_source_ise_trustsec_ip_to_sgt_mapping_group_test.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_ise_trustsec_ip_to_sgt_mapping_group.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_ise_trustsec_ip_to_sgt_mapping_group_test.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)