-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix trustsec egress matrix cell resource put issue
- Loading branch information
Showing
8 changed files
with
67 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
resource "ise_trustsec_egress_matrix_cell" "example" { | ||
description = "EgressMatrixCell Description" | ||
matrix_cell_status = "ENABLED" | ||
sgacls = ["26b76b10-66e6-11ee-9cc1-9eb2a3ecc82a,9d64dcd0-6384-11ee-9cc1-9eb2a3ecc82a"] | ||
sgacls = ["26b76b10-66e6-11ee-9cc1-9eb2a3ecc82a, 9d64dcd0-6384-11ee-9cc1-9eb2a3ecc82a"] | ||
source_sgt_id = "93c66ed0-8c01-11e6-996c-525400b48521" | ||
destination_sgt_id = "93e1bf00-8c01-11e6-996c-525400b48521" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
--- | ||
name: str() # Name of the resource | ||
rest_endpoint: str(required=False) # REST endpoint path | ||
get_no_id: bool(required=False) # Set to true if the GET request does not require an ID | ||
no_delete: bool(required=False) # Set to true if the DELETE request is not supported | ||
post_update: bool(required=False) # Set to true if the POST request is used for update | ||
root_list: bool(required=False) # Set to true if the root element of the data structure is a list | ||
no_read_prefix: bool(required=False) # Set to true if it is an Open API endpoint put the response is not embeeded into a "response" element | ||
id_path: str(required=False) # Path to the ID in the response (use "." to access nested elements) | ||
minimum_version: str(required=False) # Define a minimum supported version | ||
ds_description: str(required=False) # Define a data source description | ||
res_description: str(required=False) # Define a resource description | ||
doc_category: str(required=False) # Define a documentation category | ||
skip_minimum_test: bool(required=False) # Do not perform a "minimum" (only mandatory attributes) test | ||
attributes: list(include('attribute'), required=False) # List of attributes | ||
test_tags: list(str(), required=False) # List of test tags, tests are only executed if an environment variable with one of these tags is configured | ||
test_prerequisites: str(required=False) # HCL code that is included in the acceptance tests to define prerequisites | ||
name: str() # Name of the resource | ||
rest_endpoint: str(required=False) # REST endpoint path | ||
get_no_id: bool(required=False) # Set to true if the GET request does not require an ID | ||
no_delete: bool(required=False) # Set to true if the DELETE request is not supported | ||
post_update: bool(required=False) # Set to true if the POST request is used for update | ||
root_list: bool(required=False) # Set to true if the root element of the data structure is a list | ||
no_read_prefix: bool(required=False) # Set to true if it is an Open API endpoint put the response is not embeeded into a "response" element | ||
id_path: str(required=False) # Path to the ID in the response (use "." to access nested elements) | ||
put_id_include_path: str(required=False) # If PUT needs to have specify JSON path where ID should be inserted | ||
minimum_version: str(required=False) # Define a minimum supported version | ||
ds_description: str(required=False) # Define a data source description | ||
res_description: str(required=False) # Define a resource description | ||
doc_category: str(required=False) # Define a documentation category | ||
skip_minimum_test: bool(required=False) # Do not perform a "minimum" (only mandatory attributes) test | ||
attributes: list(include('attribute'), required=False) # List of attributes | ||
test_tags: list(str(), required=False) # List of test tags, tests are only executed if an environment variable with one of these tags is configured | ||
test_prerequisites: str(required=False) # HCL code that is included in the acceptance tests to define prerequisites | ||
--- | ||
attribute: | ||
model_name: str(required=False) # Name of the attribute in the model (payload) | ||
tf_name: str(required=False) # Name of the attribute in the Terraform resource, by default derived from model_name | ||
type: enum('String', 'Int64', 'Float', 'Bool', 'List', 'Set', 'StringList', required=False) # Type of the attribute | ||
data_path: list(str(), required=False) # Path to the attribute in the model structure | ||
id: bool(required=False) # Set to true if the attribute is part of the ID | ||
reference: bool(required=False) # Set to true if the attribute is a reference being used in the path (URL) of the REST endpoint | ||
mandatory: bool(required=False) # Set to true if the attribute is mandatory | ||
write_only: bool(required=False) # Set to true if the attribute is write-only, meaning we cannot read the value | ||
write_changes_only: bool(required=False) # Set to true if the attribute should only be written (included in PUT payload) if it has changed | ||
exclude_test: bool(required=False) # Exclude attribute from example (documentation) and acceptance test | ||
exclude_example: bool(required=False) # Exclude attribute from acceptance test only (example/documentation is still generated) | ||
description: str(required=False) # Attribute description | ||
example: any(str(), int(), bool(), required=False) # Example value for documentation, also used for acceptance test | ||
enum_values: list(str(), required=False) # List of enum values, only relevant if type is "String" | ||
min_list: int(required=False) # Minimum number of elements in a list, only relevant if type is "List" | ||
max_list: int(required=False) # Maximum number of elements in a list, only relevant if type is "List" | ||
min_int: int(required=False) # Minimum value of an integer, only relevant if type is "Int64" | ||
max_int: int(required=False) # Maximum value of an integer, only relevant if type is "Int64" | ||
min_float: num(required=False) # Minimum value of a float, only relevant if type is "Float" | ||
max_float: num(required=False) # Maximum value of a float, only relevant if type is "Float" | ||
string_patterns: list(str(), required=False) # List of regular expressions that the string must match, only relevant if type is "String" | ||
string_min_length: int(required=False) # Minimum length of a string, only relevant if type is "String" | ||
string_max_length: int(required=False) # Maximum length of a string, only relevant if type is "String" | ||
default_value: any(str(), int(), bool(), required=False) # Default value for the attribute | ||
value: any(str(), int(), bool(), required=False) # Hardcoded value for the attribute | ||
test_value: str(required=False) # Value used for acceptance test | ||
minimum_test_value: str(required=False) # Value used for "minimum" resource acceptance test | ||
test_tags: list(str(), required=False) # List of test tags, attribute is only included in acceptance tests if an environment variable with one of these tags is configured | ||
attributes: list(include('attribute'), required=False) # List of attributes, only relevant if type is "List" or "Set" | ||
model_name: str(required=False) # Name of the attribute in the model (payload) | ||
tf_name: str(required=False) # Name of the attribute in the Terraform resource, by default derived from model_name | ||
type: enum('String', 'Int64', 'Float', 'Bool', 'List', 'Set', 'StringList', required=False) # Type of the attribute | ||
data_path: list(str(), required=False) # Path to the attribute in the model structure | ||
id: bool(required=False) # Set to true if the attribute is part of the ID | ||
reference: bool(required=False) # Set to true if the attribute is a reference being used in the path (URL) of the REST endpoint | ||
mandatory: bool(required=False) # Set to true if the attribute is mandatory | ||
write_only: bool(required=False) # Set to true if the attribute is write-only, meaning we cannot read the value | ||
write_changes_only: bool(required=False) # Set to true if the attribute should only be written (included in PUT payload) if it has changed | ||
exclude_test: bool(required=False) # Exclude attribute from example (documentation) and acceptance test | ||
exclude_example: bool(required=False) # Exclude attribute from acceptance test only (example/documentation is still generated) | ||
description: str(required=False) # Attribute description | ||
example: any(str(), int(), bool(), required=False) # Example value for documentation, also used for acceptance test | ||
enum_values: list(str(), required=False) # List of enum values, only relevant if type is "String" | ||
min_list: int(required=False) # Minimum number of elements in a list, only relevant if type is "List" | ||
max_list: int(required=False) # Maximum number of elements in a list, only relevant if type is "List" | ||
min_int: int(required=False) # Minimum value of an integer, only relevant if type is "Int64" | ||
max_int: int(required=False) # Maximum value of an integer, only relevant if type is "Int64" | ||
min_float: num(required=False) # Minimum value of a float, only relevant if type is "Float" | ||
max_float: num(required=False) # Maximum value of a float, only relevant if type is "Float" | ||
string_patterns: list(str(), required=False) # List of regular expressions that the string must match, only relevant if type is "String" | ||
string_min_length: int(required=False) # Minimum length of a string, only relevant if type is "String" | ||
string_max_length: int(required=False) # Maximum length of a string, only relevant if type is "String" | ||
default_value: any(str(), int(), bool(), required=False) # Default value for the attribute | ||
value: any(str(), int(), bool(), required=False) # Hardcoded value for the attribute | ||
test_value: str(required=False) # Value used for acceptance test | ||
minimum_test_value: str(required=False) # Value used for "minimum" resource acceptance test | ||
test_tags: list(str(), required=False) # List of test tags, attribute is only included in acceptance tests if an environment variable with one of these tags is configured | ||
attributes: list(include('attribute'), required=False) # List of attributes, only relevant if type is "List" or "Set" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
internal/provider/resource_ise_trustsec_egress_matrix_cell_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.