gen

package
v0.0.0-...-4511d6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressSchema

func CompressSchema(pkgSpec schema.PackageSpec) ([]byte, error)

func DecompressSchema

func DecompressSchema(compressedSchema []byte) ([]byte, error)

func PulumiSchema

func PulumiSchema() (*schema.PackageSpec, *resources.CloudAPIMetadata, error)

PulumiSchema will generate a Pulumi schema for the given Google Cloud discovery documents.

func ToLowerCamel

func ToLowerCamel(s string) string

ToLowerCamel converts a string to lowerCamelCase. The code is adopted from https://github.com/iancoleman/strcase but changed in several ways to handle all the cases that are found in API specs in a most user-friendly way.

func ToUpperCamel

func ToUpperCamel(s string) string

ToUpperCamel converts a string to UpperCamelCase.

Types

type GetFunction

type GetFunction struct {
	ReturnTypeName string
	Method         *discovery.RestMethod
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL