github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/plain-object-defaults/schema.json (about)

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