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

     1  {
     2    "name": "mypkg",
     3    "version": "0.0.1",
     4    "functions": {
     5      "mypkg::funcWithAllOptionalInputs": {
     6        "description": "Check codegen of functions with all optional inputs.",
     7        "inputs": {
     8          "type": "object",
     9          "properties": {
    10            "a": {
    11              "type": "string",
    12              "description": "Property A"
    13            },
    14            "b": {
    15              "type": "string",
    16              "description": "Property B"
    17            }
    18          }
    19        },
    20        "outputs": {
    21          "properties": {
    22            "r": {
    23              "type": "string"
    24            }
    25          },
    26          "type": "object",
    27          "required": [
    28            "r"
    29          ]
    30        }
    31      },
    32      "mypkg::funcWithConstInput": {
    33        "description": "Codegen demo with const inputs",
    34        "inputs": {
    35          "type": "object",
    36          "properties": {
    37            "plainInput": {
    38              "type": "string",
    39              "const": "fixed"
    40            }
    41          }
    42        }
    43      },
    44      "mypkg::funcWithDefaultValue": {
    45        "description": "Check codegen of functions with default values.",
    46        "inputs": {
    47          "type": "object",
    48          "required": [
    49            "a"
    50          ],
    51          "properties": {
    52            "a": {
    53              "type": "string"
    54            },
    55            "b": {
    56              "type": "string",
    57              "default": "b-default"
    58            }
    59          }
    60        },
    61        "outputs": {
    62          "properties": {
    63            "r": {
    64              "type": "string"
    65            }
    66          },
    67          "type": "object",
    68          "required": [
    69            "r"
    70          ]
    71        }
    72      },
    73      "mypkg::funcWithDictParam": {
    74        "description": "Check codegen of functions with a Dict<str,str> parameter.",
    75        "inputs": {
    76          "type": "object",
    77          "properties": {
    78            "a": {
    79              "type": "object",
    80              "additionalProperties": {
    81                "type": "string"
    82              }
    83            },
    84            "b": {
    85              "type": "string"
    86            }
    87          }
    88        },
    89        "outputs": {
    90          "properties": {
    91            "r": {
    92              "type": "string"
    93            }
    94          },
    95          "type": "object",
    96          "required": [
    97            "r"
    98          ]
    99        }
   100      },
   101      "mypkg::funcWithListParam": {
   102        "description": "Check codegen of functions with a List parameter.",
   103        "inputs": {
   104          "type": "object",
   105          "properties": {
   106            "a": {
   107              "type": "array",
   108              "items": {
   109                "type": "string"
   110              }
   111            },
   112            "b": {
   113              "type": "string"
   114            }
   115          }
   116        },
   117        "outputs": {
   118          "properties": {
   119            "r": {
   120              "type": "string"
   121            }
   122          },
   123          "type": "object",
   124          "required": [
   125            "r"
   126          ]
   127        }
   128      },
   129      "mypkg::getClientConfig": {
   130        "description": "Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider.",
   131        "outputs": {
   132          "description": "Configuration values returned by getClientConfig.",
   133          "properties": {
   134            "clientId": {
   135              "type": "string",
   136              "description": "Azure Client ID (Application Object ID)."
   137            },
   138            "objectId": {
   139              "type": "string",
   140              "description": "Azure Object ID of the current user or service principal."
   141            },
   142            "subscriptionId": {
   143              "type": "string",
   144              "description": "Azure Subscription ID"
   145            },
   146            "tenantId": {
   147              "type": "string",
   148              "description": "Azure Tenant ID"
   149            }
   150          },
   151          "type": "object",
   152          "required": [
   153            "clientId",
   154            "objectId",
   155            "subscriptionId",
   156            "tenantId"
   157          ]
   158        }
   159      },
   160      "mypkg::getIntegrationRuntimeObjectMetadatum": {
   161        "description": "Another failing example. A list of SSIS object metadata.\nAPI Version: 2018-06-01.",
   162        "inputs": {
   163          "properties": {
   164            "factoryName": {
   165              "type": "string",
   166              "description": "The factory name."
   167            },
   168            "integrationRuntimeName": {
   169              "type": "string",
   170              "description": "The integration runtime name."
   171            },
   172            "metadataPath": {
   173              "type": "string",
   174              "description": "Metadata path."
   175            },
   176            "resourceGroupName": {
   177              "type": "string",
   178              "description": "The resource group name."
   179            }
   180          },
   181          "type": "object",
   182          "required": [
   183            "factoryName",
   184            "integrationRuntimeName",
   185            "resourceGroupName"
   186          ]
   187        },
   188        "outputs": {
   189          "description": "A list of SSIS object metadata.",
   190          "properties": {
   191            "nextLink": {
   192              "type": "string",
   193              "description": "The link to the next page of results, if any remaining results exist."
   194            },
   195            "value": {
   196              "type": "array",
   197              "items": {
   198                "oneOf": [
   199                  {
   200                    "type": "object",
   201                    "$ref": "#/types/mypkg::SsisEnvironmentResponse"
   202                  },
   203                  {
   204                    "type": "object",
   205                    "$ref": "#/types/mypkg::SsisFolderResponse"
   206                  },
   207                  {
   208                    "type": "object",
   209                    "$ref": "#/types/mypkg::SsisPackageResponse"
   210                  },
   211                  {
   212                    "type": "object",
   213                    "$ref": "#/types/mypkg::SsisProjectResponse"
   214                  }
   215                ],
   216                "discriminator": {
   217                  "propertyName": "type",
   218                  "mapping": {
   219                    "Environment": "#/types/mypkg::SsisEnvironmentResponse",
   220                    "Folder": "#/types/mypkg::SsisFolderResponse",
   221                    "Package": "#/types/mypkg::SsisPackageResponse",
   222                    "Project": "#/types/mypkg::SsisProjectResponse"
   223                  }
   224                }
   225              },
   226              "description": "List of SSIS object metadata."
   227            }
   228          },
   229          "type": "object"
   230        }
   231      },
   232      "mypkg::listStorageAccountKeys": {
   233        "description": "The response from the ListKeys operation.\nAPI Version: 2021-02-01.",
   234        "inputs": {
   235          "properties": {
   236            "accountName": {
   237              "type": "string",
   238              "description": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."
   239            },
   240            "expand": {
   241              "type": "string",
   242              "description": "Specifies type of the key to be listed. Possible value is kerb."
   243            },
   244            "resourceGroupName": {
   245              "type": "string",
   246              "description": "The name of the resource group within the user's subscription. The name is case insensitive."
   247            }
   248          },
   249          "type": "object",
   250          "required": [
   251            "accountName",
   252            "resourceGroupName"
   253          ]
   254        },
   255        "outputs": {
   256          "description": "The response from the ListKeys operation.",
   257          "properties": {
   258            "keys": {
   259              "type": "array",
   260              "items": {
   261                "type": "object",
   262                "$ref": "#/types/mypkg::StorageAccountKeyResponse"
   263              },
   264              "description": "Gets the list of storage account keys and their properties for the specified storage account."
   265            }
   266          },
   267          "type": "object",
   268          "required": [
   269            "keys"
   270          ]
   271        }
   272      },
   273      "mypkg::getBastionShareableLink": {
   274        "description": "Response for all the Bastion Shareable Link endpoints.\nAPI Version: 2020-11-01.",
   275        "inputs": {
   276          "properties": {
   277            "bastionHostName": {
   278              "type": "string",
   279              "description": "The name of the Bastion Host."
   280            },
   281            "resourceGroupName": {
   282              "type": "string",
   283              "description": "The name of the resource group."
   284            },
   285            "vms": {
   286              "type": "array",
   287              "items": {
   288                "type": "object",
   289                "$ref": "#/types/mypkg::BastionShareableLink"
   290              },
   291              "description": "List of VM references."
   292            }
   293          },
   294          "type": "object",
   295          "required": [
   296            "bastionHostName",
   297            "resourceGroupName"
   298          ]
   299        },
   300        "outputs": {
   301          "description": "Response for all the Bastion Shareable Link endpoints.",
   302          "properties": {
   303            "nextLink": {
   304              "type": "string",
   305              "description": "The URL to get the next set of results."
   306            }
   307          },
   308          "type": "object"
   309        }
   310      },
   311      "mypkg::funcWithEmptyOutputs": {
   312        "description": "n/a",
   313        "inputs": {
   314            "properties": {
   315                "name": {
   316                    "type": "string",
   317                    "description": "The Name of the FeatureGroup."
   318                }
   319            },
   320            "required": [
   321                "name"
   322            ]
   323        },
   324        "outputs": {}
   325      }
   326    },
   327    "types": {
   328      "mypkg::BastionShareableLink": {
   329        "description": "Bastion Shareable Link.",
   330        "properties": {
   331          "vm": {
   332            "type": "string",
   333            "description": "Reference of the virtual machine resource."
   334          }
   335        },
   336        "type": "object",
   337        "required": [
   338          "vm"
   339        ]
   340      },
   341      "mypkg::SsisEnvironmentResponse": {
   342        "description": "Ssis environment.",
   343        "properties": {
   344          "description": {
   345            "type": "string",
   346            "description": "Metadata description."
   347          },
   348          "folderId": {
   349            "type": "number",
   350            "description": "Folder id which contains environment."
   351          },
   352          "id": {
   353            "type": "number",
   354            "description": "Metadata id."
   355          },
   356          "name": {
   357            "type": "string",
   358            "description": "Metadata name."
   359          },
   360          "type": {
   361            "type": "string",
   362            "description": "The type of SSIS object metadata.\nExpected value is 'Environment'.",
   363            "const": "Environment"
   364          },
   365          "variables": {
   366            "type": "array",
   367            "items": {
   368              "type": "object",
   369              "$ref": "#/types/mypkg::SsisVariableResponse"
   370            },
   371            "description": "Variable in environment"
   372          }
   373        },
   374        "type": "object",
   375        "required": [
   376          "type"
   377        ]
   378      },
   379      "mypkg::SsisFolderResponse": {
   380        "description": "Ssis folder.",
   381        "properties": {
   382          "description": {
   383            "type": "string",
   384            "description": "Metadata description."
   385          },
   386          "id": {
   387            "type": "number",
   388            "description": "Metadata id."
   389          },
   390          "name": {
   391            "type": "string",
   392            "description": "Metadata name."
   393          },
   394          "type": {
   395            "type": "string",
   396            "description": "The type of SSIS object metadata.\nExpected value is 'Folder'.",
   397            "const": "Folder"
   398          }
   399        },
   400        "type": "object",
   401        "required": [
   402          "type"
   403        ]
   404      },
   405      "mypkg::SsisPackageResponse": {
   406        "description": "Ssis Package.",
   407        "properties": {
   408          "description": {
   409            "type": "string",
   410            "description": "Metadata description."
   411          },
   412          "folderId": {
   413            "type": "number",
   414            "description": "Folder id which contains package."
   415          },
   416          "id": {
   417            "type": "number",
   418            "description": "Metadata id."
   419          },
   420          "name": {
   421            "type": "string",
   422            "description": "Metadata name."
   423          },
   424          "parameters": {
   425            "type": "array",
   426            "items": {
   427              "type": "object",
   428              "$ref": "#/types/mypkg::SsisParameterResponse"
   429            },
   430            "description": "Parameters in package"
   431          },
   432          "projectId": {
   433            "type": "number",
   434            "description": "Project id which contains package."
   435          },
   436          "projectVersion": {
   437            "type": "number",
   438            "description": "Project version which contains package."
   439          },
   440          "type": {
   441            "type": "string",
   442            "description": "The type of SSIS object metadata.\nExpected value is 'Package'.",
   443            "const": "Package"
   444          }
   445        },
   446        "type": "object",
   447        "required": [
   448          "type"
   449        ]
   450      },
   451      "mypkg::SsisProjectResponse": {
   452        "description": "Ssis project.",
   453        "properties": {
   454          "description": {
   455            "type": "string",
   456            "description": "Metadata description."
   457          },
   458          "environmentRefs": {
   459            "type": "array",
   460            "items": {
   461              "type": "object",
   462              "$ref": "#/types/mypkg::SsisEnvironmentReferenceResponse"
   463            },
   464            "description": "Environment reference in project"
   465          },
   466          "folderId": {
   467            "type": "number",
   468            "description": "Folder id which contains project."
   469          },
   470          "id": {
   471            "type": "number",
   472            "description": "Metadata id."
   473          },
   474          "name": {
   475            "type": "string",
   476            "description": "Metadata name."
   477          },
   478          "parameters": {
   479            "type": "array",
   480            "items": {
   481              "type": "object",
   482              "$ref": "#/types/mypkg::SsisParameterResponse"
   483            },
   484            "description": "Parameters in project"
   485          },
   486          "type": {
   487            "type": "string",
   488            "description": "The type of SSIS object metadata.\nExpected value is 'Project'.",
   489            "const": "Project"
   490          },
   491          "version": {
   492            "type": "number",
   493            "description": "Project version."
   494          }
   495        },
   496        "type": "object",
   497        "required": [
   498          "type"
   499        ]
   500      },
   501      "mypkg::SsisEnvironmentReferenceResponse": {
   502        "description": "Ssis environment reference.",
   503        "properties": {
   504          "environmentFolderName": {
   505            "type": "string",
   506            "description": "Environment folder name."
   507          },
   508          "environmentName": {
   509            "type": "string",
   510            "description": "Environment name."
   511          },
   512          "id": {
   513            "type": "number",
   514            "description": "Environment reference id."
   515          },
   516          "referenceType": {
   517            "type": "string",
   518            "description": "Reference type"
   519          }
   520        },
   521        "type": "object"
   522      },
   523      "mypkg::SsisParameterResponse": {
   524        "description": "Ssis parameter.",
   525        "properties": {
   526          "dataType": {
   527            "type": "string",
   528            "description": "Parameter type."
   529          },
   530          "defaultValue": {
   531            "type": "string",
   532            "description": "Default value of parameter."
   533          },
   534          "description": {
   535            "type": "string",
   536            "description": "Parameter description."
   537          },
   538          "designDefaultValue": {
   539            "type": "string",
   540            "description": "Design default value of parameter."
   541          },
   542          "id": {
   543            "type": "number",
   544            "description": "Parameter id."
   545          },
   546          "name": {
   547            "type": "string",
   548            "description": "Parameter name."
   549          },
   550          "required": {
   551            "type": "boolean",
   552            "description": "Whether parameter is required."
   553          },
   554          "sensitive": {
   555            "type": "boolean",
   556            "description": "Whether parameter is sensitive."
   557          },
   558          "sensitiveDefaultValue": {
   559            "type": "string",
   560            "description": "Default sensitive value of parameter."
   561          },
   562          "valueSet": {
   563            "type": "boolean",
   564            "description": "Parameter value set."
   565          },
   566          "valueType": {
   567            "type": "string",
   568            "description": "Parameter value type."
   569          },
   570          "variable": {
   571            "type": "string",
   572            "description": "Parameter reference variable."
   573          }
   574        },
   575        "type": "object"
   576      },
   577      "mypkg::SsisVariableResponse": {
   578        "description": "Ssis variable.",
   579        "properties": {
   580          "dataType": {
   581            "type": "string",
   582            "description": "Variable type."
   583          },
   584          "description": {
   585            "type": "string",
   586            "description": "Variable description."
   587          },
   588          "id": {
   589            "type": "number",
   590            "description": "Variable id."
   591          },
   592          "name": {
   593            "type": "string",
   594            "description": "Variable name."
   595          },
   596          "sensitive": {
   597            "type": "boolean",
   598            "description": "Whether variable is sensitive."
   599          },
   600          "sensitiveValue": {
   601            "type": "string",
   602            "description": "Variable sensitive value."
   603          },
   604          "value": {
   605            "type": "string",
   606            "description": "Variable value."
   607          }
   608        },
   609        "type": "object"
   610      },
   611      "mypkg::StorageAccountKeyResponse": {
   612        "description": "An access key for the storage account.",
   613        "properties": {
   614          "creationTime": {
   615            "type": "string",
   616            "description": "Creation time of the key, in round trip date format."
   617          },
   618          "keyName": {
   619            "type": "string",
   620            "description": "Name of the key."
   621          },
   622          "permissions": {
   623            "type": "string",
   624            "description": "Permissions for the key -- read-only or full permissions."
   625          },
   626          "value": {
   627            "type": "string",
   628            "description": "Base 64-encoded value of the key."
   629          }
   630        },
   631        "type": "object",
   632        "required": [
   633          "creationTime",
   634          "keyName",
   635          "permissions",
   636          "value"
   637        ]
   638      }
   639    },
   640    "language": {
   641      "nodejs": {
   642        "optimizeNodeModuleLoading": ["lazy-load-functions", "lazy-load-resources", "use-type-only-enums-references"],
   643        "devDependencies": {
   644          "@types/mocha": "latest",
   645          "@types/node": "latest",
   646          "mocha": "latest",
   647          "ts-node": "latest"
   648        },
   649        "extraTypeScriptFiles": [
   650          "tests/codegen.spec.ts"
   651        ]
   652      },
   653      "go": {
   654        "generateExtraInputTypes": true
   655      },
   656      "python": {},
   657      "csharp": {
   658        "projectReferences": [
   659           "..\\..\\..\\..\\..\\..\\..\\sdk\\dotnet\\Pulumi\\Pulumi.csproj"
   660        ],
   661        "packageReferences": {
   662          "FluentAssertions": "5.10.2",
   663          "Microsoft.NET.Test.Sdk": "16.5.0",
   664          "Moq": "4.13.1",
   665          "NUnit": "3.12.0",
   666          "NUnit3TestAdapter": "4.2.1"
   667        }
   668      }
   669    }
   670  }