-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add import support for ethernet and add additional specs (#130)
* Update ethernet layer3 imports specification * Implement the new location import API * Terraform part of importing resources * Mark datasource attributes other than location and name as computed * Update to specs and codegen to support more resources (#135) * Update administrative tag and add all constant values * Add panorama template variable specification Also, update terraform generator to use always use defined suffix to generate resource names, and not the name provided in the spec. * Add device group parent specification and custom codegen * Fix sensitive not being properly set for terraform attributes (#136)
- Loading branch information
1 parent
373b796
commit dfa889a
Showing
23 changed files
with
1,372 additions
and
455 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,9 +1,11 @@ | ||
package imports | ||
|
||
import "github.com/paloaltonetworks/pan-os-codegen/pkg/schema/xpath" | ||
import ( | ||
"github.com/paloaltonetworks/pan-os-codegen/pkg/schema/location" | ||
) | ||
|
||
type Import struct { | ||
Name string `yaml:"name"` | ||
Xpath xpathschema.Xpath `yaml:"xpath"` | ||
OnlyForParams []string `yaml:"only_for_params"` | ||
Variant string `yaml:"variant"` | ||
Type string `yaml:"type"` | ||
Locations []location.Location `yaml:"locations"` | ||
} |
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
Oops, something went wrong.