github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/plain-object-disable-defaults/schema.json (about) 1 { 2 "version": "0.0.1", 3 "name": "example", 4 5 "allowedPackageNames": ["mypkg"], 6 7 "provider": { 8 "description": "The provider type for the kubernetes package.", 9 "type": "object", 10 "inputProperties": { 11 "helmReleaseSettings": { 12 "$ref": "#/types/example:index:HelmReleaseSettings", 13 "description": "BETA FEATURE - Options to configure the Helm Release resource." 14 } 15 } 16 }, 17 18 "resources": { 19 "example:index:Foo": { 20 "description": "test new feature with resoruces", 21 "inputProperties": { 22 "argument": { 23 "type": "string", 24 "plain": true 25 }, 26 "settings": { 27 "$ref": "#/types/example:index:LayeredType", 28 "description": "describing things" 29 }, 30 "kubeClientSettings": { 31 "$ref": "#/types/example:index:KubeClientSettings", 32 "description": "Options for tuning the Kubernetes client used by a Provider." 33 }, 34 "backupKubeClientSettings": { 35 "$ref": "#/types/example:index:KubeClientSettings", 36 "description": "Options for tuning the Kubernetes client used by a Provider." 37 } 38 }, 39 "properties": { 40 "defaultKubeClientSettings": { 41 "$ref": "#/types/example:index:KubeClientSettings", 42 "description": "A test for plain types", 43 "plain": true 44 } 45 }, 46 "requiredInputs": ["backupKubeClientSettings"] 47 }, 48 "example:index:moduleTest": { 49 "inputProperties": { 50 "val": { 51 "$ref": "#/types/example:index:typ" 52 }, 53 "mod1": { 54 "$ref": "#/types/example:mod1:typ" 55 } 56 } 57 } 58 }, 59 60 "types": { 61 "example:mod1:typ": { 62 "description": "A test for namespaces (mod 1)", 63 "properties": { 64 "val": { 65 "type": "string", 66 "default": "mod1" 67 } 68 }, 69 "type": "object" 70 }, 71 "example:mod2:typ": { 72 "description": "A test for namespaces (mod 2)", 73 "properties": { 74 "val": { 75 "type": "string", 76 "default": "mod2" 77 }, 78 "mod1": { 79 "$ref": "#/types/example:mod1:typ" 80 } 81 }, 82 "type": "object" 83 }, 84 "example:index:typ": { 85 "description": "A test for namespaces (mod main)", 86 "properties": { 87 "val": { 88 "type": "string", 89 "default": "mod main" 90 }, 91 "mod1": { 92 "$ref": "#/types/example:mod1:typ" 93 }, 94 "mod2": { 95 "$ref": "#/types/example:mod2:typ" 96 } 97 }, 98 "type": "object" 99 }, 100 101 "example:index:HelmReleaseSettings": { 102 "description": "BETA FEATURE - Options to configure the Helm Release resource.", 103 "properties": { 104 "driver": { 105 "type": "string", 106 "description": "The backend storage driver for Helm. Values are: configmap, secret, memory, sql.", 107 "default": "secret", 108 "defaultInfo": { 109 "environment": ["PULUMI_K8S_HELM_DRIVER"] 110 } 111 }, 112 "pluginsPath": { 113 "type": "string", 114 "description": "The path to the helm plugins directory.", 115 "defaultInfo": { 116 "environment": ["PULUMI_K8S_HELM_PLUGINS_PATH"] 117 } 118 }, 119 "requiredArg": { 120 "type": "string", 121 "description": "to test required args" 122 } 123 }, 124 "required": ["requiredArg"], 125 "type": "object" 126 }, 127 "example:index:LayeredType": { 128 "description": "Make sure that defaults propagate through types", 129 "type": "object", 130 "properties": { 131 "answer": { 132 "description": "The answer to the question", 133 "type": "number", 134 "default": 42 135 }, 136 "question": { 137 "description": "The question already answered", 138 "type": "string", 139 "default": "<unknown>", 140 "defaultInfo": { 141 "environment": ["PULUMI_THE_QUESTION"] 142 } 143 }, 144 "thinker": { 145 "description": "To ask and answer", 146 "type": "string", 147 "default": "not a good interaction" 148 }, 149 "other": { 150 "$ref": "#/types/example:index:HelmReleaseSettings" 151 }, 152 "plainOther": { 153 "description": "Test how plain types interact", 154 "$ref": "#/types/example:index:HelmReleaseSettings", 155 "plain": true 156 }, 157 "recursive": { 158 "$ref": "#/types/example:index:LayeredType" 159 } 160 }, 161 "required": ["other", "thinker"] 162 }, 163 "example:index:KubeClientSettings": { 164 "description": "Options for tuning the Kubernetes client used by a Provider.", 165 "properties": { 166 "burst": { 167 "type": "integer", 168 "description": "Maximum burst for throttle. Default value is 10.", 169 "defaultInfo": { 170 "environment": ["PULUMI_K8S_CLIENT_BURST"] 171 } 172 }, 173 "qps": { 174 "type": "number", 175 "description": "Maximum queries per second (QPS) to the API server from this client. Default value is 5.", 176 "defaultInfo": { 177 "environment": ["PULUMI_K8S_CLIENT_QPS"] 178 } 179 }, 180 "recTest": { 181 "$ref": "#/types/example:index:KubeClientSettings" 182 } 183 }, 184 "type": "object" 185 } 186 }, 187 188 "functions": { 189 "mypkg::funcWithAllOptionalInputs": { 190 "description": "Check codegen of functions with all optional inputs.", 191 "inputs": { 192 "type": "object", 193 "properties": { 194 "a": { 195 "$ref": "#/types/example:index:HelmReleaseSettings", 196 "description": "Property A" 197 }, 198 "b": { 199 "type": "string", 200 "description": "Property B", 201 "default": "defValue" 202 } 203 } 204 }, 205 "outputs": { 206 "properties": { 207 "r": { 208 "type": "string" 209 } 210 }, 211 "type": "object", 212 "required": ["r"] 213 } 214 } 215 }, 216 217 "language": { 218 "csharp": { 219 "projectReferences": [ 220 "..\\..\\..\\..\\..\\..\\..\\sdk\\dotnet\\Pulumi\\Pulumi.csproj" 221 ] 222 }, 223 "go": { 224 "importBasePath": "plain-object-disable-defaults/example", 225 "disableObjectDefaults": true, 226 "generateExtraInputTypes": true 227 }, 228 "nodejs": { 229 "dependencies": { 230 "@pulumi/pulumi": "^3.12" 231 }, 232 "devDependencies": { 233 "typescript": "^3.7.0" 234 } 235 }, 236 "python": {} 237 } 238 }