You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above gets converted into a data source named - myprovider_v1_subs_v1, which is because of my pathing convention where I place versions after the resource nouns.
Additionally, the path parameter thingId gets converted into a required argument named v1_id.
Describe the solution you'd like
Probably by using a new meta-attribute, I would like a way to fully customise the name for my sub-resource or sub-data source and not rely on any smarts from the plugin. Desired outcome - myprovider_subs_v1
I would also like to have a way to customise path parameter IDs. Desired outcome - thing_id. I see this as directly related to the above issue but let me know if I should open up a separate issue for the path parameter naming problem.
Acceptance criteria
Meta attributes are available to -
Fully customise the name of sub-resources and sub-data sources such that the parent resource names are not added to the resource/data-source names.
x-terraform-field-name is applicable to path parameters as input arguments.
in the hopes that that would allow me to customise the parent resource's name, but it didn't work.
I also tried using x-terraform-field-name on the thingId path parameter in hopes of renaming the argument to thing_id, but the required input argument was still v1_id.
I have tried defining the parent resource and defining a custom resource name for the parent too, but that didn't change the output -
Is your feature request related to a problem?
The auto-generated resources and schemas seem to enforce a hierarchy in its naming.
The following is a example of a GET list request:
The above gets converted into a data source named -
myprovider_v1_subs_v1
, which is because of my pathing convention where I place versions after the resource nouns.Additionally, the path parameter
thingId
gets converted into a required argument namedv1_id
.Describe the solution you'd like
Probably by using a new meta-attribute, I would like a way to fully customise the name for my sub-resource or sub-data source and not rely on any smarts from the plugin. Desired outcome -
myprovider_subs_v1
I would also like to have a way to customise path parameter IDs. Desired outcome -
thing_id
. I see this as directly related to the above issue but let me know if I should open up a separate issue for the path parameter naming problem.Acceptance criteria
Meta attributes are available to -
x-terraform-field-name
is applicable to path parameters as input arguments.Describe alternatives you've considered
I have tried to define an empty path -
in the hopes that that would allow me to customise the parent resource's name, but it didn't work.
I also tried using
x-terraform-field-name
on thethingId
path parameter in hopes of renaming the argument tothing_id
, but the required input argument was stillv1_id
.I have tried defining the parent resource and defining a custom resource name for the parent too, but that didn't change the output -
Checklist (for admin only)
Don't forget to go through the checklist to make sure the issue is created properly:
The text was updated successfully, but these errors were encountered: