Versions in this module Expand all Collapse all v0 v0.4.0 Feb 21, 2025 Changes in this version + func ClearDoubleQuote(s string) string + func ConvertKeys(input interface{}) interface + func ConvertMapToObject(ctx context.Context, data map[string]interface{}) (types.Object, error) + func CreateFuncMap() template.FuncMap + func DiagOff[V, T interface{}](...) V + func ExtractDto(jsonFilePath, refreshObjectName string) ([]byte, error) + func ExtractPath(s string) string + func ExtractResourceName(jsonFilePath string) (string, error) + func FirstAlphabet(s string) string + func FirstAlphabetToLowerCase(s string) string + func FirstAlphabetToUpperCase(s string) string + func JoinStrings(sep string, items []string) string + func MakeIdGetter(target string) string + func MakeRequest(method, path, endpoint, reqBody string) (map[string]interface{}, error) + func MustAbs(path string) string + func PathToPascal(s string) string + func ReadAndUnmarshal[T any](filePath string, result *T) error + func RemoveCustomType(filePath string) error + func RemoveDuplicates(filePath string) error + func RemovingWhiteSpace(input string) string + func SliceContains(slice []string, value string) bool + func ToCamelCase(s string) string + func ToLowerCase(s string) string + func ToPascalCase(s string) string + func ToSnakeCase(s string) string + type Attribute struct + Computed bool + Optional bool + Required bool + type Components struct + Schemas map[string]OASchema + type CrudParameters struct + Create *NcloudCommonRequestType + Delete *NcloudCommonRequestType + Read *NcloudCommonRequestType + Update []*NcloudCommonRequestType + type DataSource struct + CRUDParameters CrudParameters + Id string + ImportStateOverride string + RefreshObjectName string + type DetailedRequestType struct + Parameters *RequestParameters + RequestBody *NcloudRequestBody + type Info struct + Name string + type Items struct + Properties map[string]Property + Type string + type ListAttributeElementType struct + Bool interface{} + Int64 interface{} + String interface{} + type ListAttributeType struct + ComputedOptionalRequired string + ElementType ListAttributeElementType + type ListNestedAttributeType struct + ComputedOptionalRequired string + NestedObject NestedObjectType + type NcloudCommonRequestType struct + Method string + Path string + type NcloudProvider struct + Endpoint string + type NcloudRequestBody struct + Optional []*RequestParametersInfo + Required []*RequestParametersInfo + type NcloudSpecification struct + DataSources []DataSource + Provider *NcloudProvider + Resources []Resource + type NestedObjectType struct + Attributes []resource.Attribute + type OASchema struct + Properties map[string]Property + type OpenAPI struct + Components *Components + Info *Info + Paths map[string]*PathItem + type OptionalRequestBody struct + Name string + Optional []*RequestParametersInfo + Required []string + type PathItem struct + Get *high.Operation + Post *high.Operation + type Paths struct + AttributePath string + ConfigPath string + func InitializePaths(inputSpec, inputConfig, outputDir string) Paths + type Property struct + ComputedOptionalRequired string + Format string + Items Items + Properties map[string]Property + Type string + type RequestParameters struct + Optional []*RequestParametersInfo + Required []*RequestParametersInfo + type RequestParametersInfo struct + Format string + Name string + Type string + type Resource struct + CRUDParameters CrudParameters + Id string + ImportStateOverride string + RefreshObjectName string + type Schema struct + Attributes resource.Attributes + type SingleNestedAttributeType struct + Attributes []resource.Attribute + ComputedOptionalRequired string