Refactor: multiple rename to fix the spelling of subtype (#1227)

The definition of 'subtype' is 'a secondary or subordinate type'. The
'T' should not be capitalized (unless it is referring to a type of
submarine, which its not).
This commit is contained in:
Michael Gaffney authored and GitHub committed 2021-05-17 15:36:45 -04:00
1 parent a23d68b0dd
commit 21033a6174
16 files changed
+80 -80

No files matched your search

+6 -6
View File
@@ -55,7 +55,7 @@ type structInfo struct {
// mappings of names of resources and param names for sub slice types, e.g.
// role principals and group members
sliceSubTypes map[string]string
sliceSubtypes map[string]string
// outputOnly indicates that we shouldn't create options for setting members
// for mapping src field struct
@@ -169,7 +169,7 @@ var inputStructs = []*structInfo{
deleteTemplate,
listTemplate,
},
sliceSubTypes: map[string]string{
sliceSubtypes: map[string]string{
"Accounts": "accountIds",
},
pathArgs: []string{"user"},
@@ -194,7 +194,7 @@ var inputStructs = []*structInfo{
deleteTemplate,
listTemplate,
},
sliceSubTypes: map[string]string{
sliceSubtypes: map[string]string{
"Members": "memberIds",
},
pathArgs: []string{"group"},
@@ -229,7 +229,7 @@ var inputStructs = []*structInfo{
deleteTemplate,
listTemplate,
},
sliceSubTypes: map[string]string{
sliceSubtypes: map[string]string{
"Principals": "principalIds",
"Grants": "grantStrings",
},
@@ -364,7 +364,7 @@ var inputStructs = []*structInfo{
},
pathArgs: []string{"host-set"},
parentTypeName: "host-catalog",
sliceSubTypes: map[string]string{
sliceSubtypes: map[string]string{
"Hosts": "hostIds",
},
versionEnabled: true,
@@ -401,7 +401,7 @@ var inputStructs = []*structInfo{
listTemplate,
},
pathArgs: []string{"target"},
sliceSubTypes: map[string]string{
sliceSubtypes: map[string]string{
"HostSets": "hostSetIds",
},
extraOptions: []fieldInfo{