forked from hashicorp/terraform-provider-azurerm
-
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.
toolins: adding a generator for Resource ID Formatters and Parsers
- Loading branch information
1 parent
dd720e7
commit 84a7acf
Showing
3 changed files
with
511 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## Generator: Resource ID | ||
|
||
Each Service Definition contains one or more Resource ID's - this tool allows the generation of: | ||
|
||
* Resource ID Formatters | ||
* Resource ID Parsers | ||
* Resource ID Structs | ||
|
||
This is run via go:generate whenever the provider is compiled - at this time this doesn't wipe an existing "parse" folder so it's possible to mix and match if necessary. | ||
|
||
## Example Usage | ||
|
||
``` | ||
go run main.go -path=-path=./ -name=MyResourceType -id=/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AnalysisServices/servers/Server1 | ||
``` | ||
|
||
## Arguments | ||
|
||
* `help` - Show help? | ||
|
||
* `id` - An example of the Azure Resource ID for this Resource. | ||
|
||
* `name` - The name of this Resource Type, without the Service Name. For example `AnalysisServicesServer` becomes `Server`. | ||
|
||
* `path` - The Relative Path to the Service Package. | ||
|
Oops, something went wrong.