-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor class map policy object resource and data source
- Loading branch information
Showing
14 changed files
with
121 additions
and
162 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
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,8 +1,4 @@ | ||
resource "sdwan_class_map_policy_object" "example" { | ||
name = "Example" | ||
entries = [ | ||
{ | ||
queue = 2 | ||
} | ||
] | ||
name = "Example" | ||
queue = 2 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: Class Map Policy Object | ||
rest_endpoint: /template/policy/list/class/ | ||
has_version: true | ||
id_attribute: listId | ||
doc_category: Policy Objects | ||
attributes: | ||
- model_name: type | ||
value: class | ||
- model_name: name | ||
tf_name: name | ||
type: String | ||
mandatory: true | ||
description: The name of the policy object | ||
example: Example | ||
- model_name: queue | ||
data_path: [entries.0] | ||
type: Int64 | ||
mandatory: true | ||
model_type_string: true | ||
description: Queue | ||
min_int: 0 | ||
max_int: 7 | ||
example: 2 |
This file was deleted.
Oops, something went wrong.
20 changes: 6 additions & 14 deletions
20
internal/provider/data_source_sdwan_class_map_policy_object.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
internal/provider/data_source_sdwan_class_map_policy_object_test.go
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.