2021-08-23 20:46:09 +00:00
{
2021-09-23 17:42:20 +00:00
"name" : "mypkg" ,
2021-09-17 19:12:22 +00:00
"version" : "0.0.1" ,
2021-08-23 20:46:09 +00:00
"functions" : {
2021-09-23 17:42:20 +00:00
"mypkg::funcWithAllOptionalInputs" : {
"description" : "Check codegen of functions with all optional inputs." ,
"inputs" : {
"type" : "object" ,
"properties" : {
"a" : {
"type" : "string" ,
"description" : "Property A"
} ,
"b" : {
"type" : "string" ,
"description" : "Property B"
}
}
} ,
"outputs" : {
"properties" : {
"r" : {
"type" : "string"
}
} ,
"type" : "object" ,
"required" : [
"r"
]
}
} ,
"mypkg::funcWithConstInput" : {
"description" : "Codegen demo with const inputs" ,
"inputs" : {
"type" : "object" ,
"properties" : {
"plainInput" : {
"type" : "string" ,
"const" : "fixed"
}
}
}
} ,
"mypkg::funcWithDefaultValue" : {
"description" : "Check codegen of functions with default values." ,
"inputs" : {
"type" : "object" ,
"required" : [
"a"
] ,
"properties" : {
"a" : {
"type" : "string"
} ,
"b" : {
"type" : "string" ,
"default" : "b-default"
}
}
} ,
"outputs" : {
"properties" : {
"r" : {
"type" : "string"
}
} ,
"type" : "object" ,
"required" : [
"r"
]
}
} ,
"mypkg::funcWithDictParam" : {
"description" : "Check codegen of functions with a Dict<str,str> parameter." ,
"inputs" : {
"type" : "object" ,
"properties" : {
"a" : {
"type" : "object" ,
"additionalProperties" : {
"type" : "string"
}
} ,
"b" : {
"type" : "string"
}
}
} ,
"outputs" : {
"properties" : {
"r" : {
"type" : "string"
}
} ,
"type" : "object" ,
"required" : [
"r"
]
}
} ,
"mypkg::funcWithListParam" : {
"description" : "Check codegen of functions with a List parameter." ,
"inputs" : {
"type" : "object" ,
"properties" : {
"a" : {
"type" : "array" ,
"items" : {
"type" : "string"
}
} ,
"b" : {
"type" : "string"
}
}
} ,
"outputs" : {
"properties" : {
"r" : {
"type" : "string"
}
} ,
"type" : "object" ,
"required" : [
"r"
]
}
} ,
"mypkg::getClientConfig" : {
"description" : "Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider." ,
"outputs" : {
"description" : "Configuration values returned by getClientConfig." ,
"properties" : {
"clientId" : {
"type" : "string" ,
"description" : "Azure Client ID (Application Object ID)."
} ,
"objectId" : {
"type" : "string" ,
"description" : "Azure Object ID of the current user or service principal."
} ,
"subscriptionId" : {
"type" : "string" ,
"description" : "Azure Subscription ID"
} ,
"tenantId" : {
"type" : "string" ,
"description" : "Azure Tenant ID"
}
} ,
"type" : "object" ,
"required" : [
"clientId" ,
"objectId" ,
"subscriptionId" ,
"tenantId"
]
}
} ,
"mypkg::getIntegrationRuntimeObjectMetadatum" : {
"description" : "Another failing example. A list of SSIS object metadata.\nAPI Version: 2018-06-01." ,
2021-08-23 20:46:09 +00:00
"inputs" : {
"properties" : {
"factoryName" : {
"type" : "string" ,
"description" : "The factory name."
} ,
"integrationRuntimeName" : {
"type" : "string" ,
"description" : "The integration runtime name."
} ,
"metadataPath" : {
"type" : "string" ,
"description" : "Metadata path."
} ,
"resourceGroupName" : {
"type" : "string" ,
"description" : "The resource group name."
}
} ,
"type" : "object" ,
"required" : [
"factoryName" ,
"integrationRuntimeName" ,
"resourceGroupName"
]
} ,
"outputs" : {
"description" : "A list of SSIS object metadata." ,
"properties" : {
"nextLink" : {
"type" : "string" ,
"description" : "The link to the next page of results, if any remaining results exist."
} ,
"value" : {
"type" : "array" ,
"items" : {
"oneOf" : [
{
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisEnvironmentResponse"
2021-08-23 20:46:09 +00:00
} ,
{
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisFolderResponse"
2021-08-23 20:46:09 +00:00
} ,
{
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisPackageResponse"
2021-08-23 20:46:09 +00:00
} ,
{
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisProjectResponse"
2021-08-23 20:46:09 +00:00
}
] ,
"discriminator" : {
"propertyName" : "type" ,
"mapping" : {
2021-09-23 17:42:20 +00:00
"Environment" : "#/types/mypkg::SsisEnvironmentResponse" ,
"Folder" : "#/types/mypkg::SsisFolderResponse" ,
"Package" : "#/types/mypkg::SsisPackageResponse" ,
"Project" : "#/types/mypkg::SsisProjectResponse"
2021-08-23 20:46:09 +00:00
}
}
} ,
"description" : "List of SSIS object metadata."
}
} ,
"type" : "object"
}
2021-09-23 17:42:20 +00:00
} ,
"mypkg::listStorageAccountKeys" : {
"description" : "The response from the ListKeys operation.\nAPI Version: 2021-02-01." ,
"inputs" : {
"properties" : {
"accountName" : {
"type" : "string" ,
"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."
} ,
"expand" : {
"type" : "string" ,
"description" : "Specifies type of the key to be listed. Possible value is kerb."
} ,
"resourceGroupName" : {
"type" : "string" ,
"description" : "The name of the resource group within the user's subscription. The name is case insensitive."
}
} ,
"type" : "object" ,
"required" : [
"accountName" ,
"resourceGroupName"
]
} ,
"outputs" : {
"description" : "The response from the ListKeys operation." ,
"properties" : {
"keys" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"$ref" : "#/types/mypkg::StorageAccountKeyResponse"
} ,
"description" : "Gets the list of storage account keys and their properties for the specified storage account."
}
} ,
"type" : "object" ,
"required" : [
"keys"
]
}
2021-10-18 22:18:15 +00:00
} ,
"mypkg::getBastionShareableLink" : {
"description" : "Response for all the Bastion Shareable Link endpoints.\nAPI Version: 2020-11-01." ,
"inputs" : {
"properties" : {
"bastionHostName" : {
"type" : "string" ,
"description" : "The name of the Bastion Host."
} ,
"resourceGroupName" : {
"type" : "string" ,
"description" : "The name of the resource group."
} ,
"vms" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
"$ref" : "#/types/mypkg::BastionShareableLink"
} ,
"description" : "List of VM references."
}
} ,
"type" : "object" ,
"required" : [
"bastionHostName" ,
"resourceGroupName"
]
} ,
"outputs" : {
"description" : "Response for all the Bastion Shareable Link endpoints." ,
"properties" : {
"nextLink" : {
"type" : "string" ,
"description" : "The URL to get the next set of results."
}
} ,
"type" : "object"
}
2022-05-23 21:43:38 +00:00
} ,
"mypkg::funcWithEmptyOutputs" : {
"description" : "n/a" ,
"inputs" : {
"properties" : {
"name" : {
"type" : "string" ,
"description" : "The Name of the FeatureGroup."
}
} ,
"required" : [
"name"
]
} ,
"outputs" : { }
2021-08-23 20:46:09 +00:00
}
} ,
"types" : {
2021-10-18 22:18:15 +00:00
"mypkg::BastionShareableLink" : {
"description" : "Bastion Shareable Link." ,
"properties" : {
"vm" : {
"type" : "string" ,
"description" : "Reference of the virtual machine resource."
}
} ,
"type" : "object" ,
"required" : [
"vm"
]
} ,
2021-09-23 17:42:20 +00:00
"mypkg::SsisEnvironmentResponse" : {
2021-08-23 20:46:09 +00:00
"description" : "Ssis environment." ,
"properties" : {
"description" : {
"type" : "string" ,
"description" : "Metadata description."
} ,
"folderId" : {
"type" : "number" ,
"description" : "Folder id which contains environment."
} ,
"id" : {
"type" : "number" ,
"description" : "Metadata id."
} ,
"name" : {
"type" : "string" ,
"description" : "Metadata name."
} ,
"type" : {
"type" : "string" ,
"description" : "The type of SSIS object metadata.\nExpected value is 'Environment'." ,
"const" : "Environment"
} ,
"variables" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisVariableResponse"
2021-08-23 20:46:09 +00:00
} ,
"description" : "Variable in environment"
}
} ,
"type" : "object" ,
"required" : [
"type"
]
} ,
2021-09-23 17:42:20 +00:00
"mypkg::SsisFolderResponse" : {
2021-08-23 20:46:09 +00:00
"description" : "Ssis folder." ,
"properties" : {
"description" : {
"type" : "string" ,
"description" : "Metadata description."
} ,
"id" : {
"type" : "number" ,
"description" : "Metadata id."
} ,
"name" : {
"type" : "string" ,
"description" : "Metadata name."
} ,
"type" : {
"type" : "string" ,
"description" : "The type of SSIS object metadata.\nExpected value is 'Folder'." ,
"const" : "Folder"
}
} ,
"type" : "object" ,
"required" : [
"type"
]
} ,
2021-09-23 17:42:20 +00:00
"mypkg::SsisPackageResponse" : {
2021-08-23 20:46:09 +00:00
"description" : "Ssis Package." ,
"properties" : {
"description" : {
"type" : "string" ,
"description" : "Metadata description."
} ,
"folderId" : {
"type" : "number" ,
"description" : "Folder id which contains package."
} ,
"id" : {
"type" : "number" ,
"description" : "Metadata id."
} ,
"name" : {
"type" : "string" ,
"description" : "Metadata name."
} ,
"parameters" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisParameterResponse"
2021-08-23 20:46:09 +00:00
} ,
"description" : "Parameters in package"
} ,
"projectId" : {
"type" : "number" ,
"description" : "Project id which contains package."
} ,
"projectVersion" : {
"type" : "number" ,
"description" : "Project version which contains package."
} ,
"type" : {
"type" : "string" ,
"description" : "The type of SSIS object metadata.\nExpected value is 'Package'." ,
"const" : "Package"
}
} ,
"type" : "object" ,
"required" : [
"type"
]
} ,
2021-09-23 17:42:20 +00:00
"mypkg::SsisProjectResponse" : {
2021-08-23 20:46:09 +00:00
"description" : "Ssis project." ,
"properties" : {
"description" : {
"type" : "string" ,
"description" : "Metadata description."
} ,
"environmentRefs" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisEnvironmentReferenceResponse"
2021-08-23 20:46:09 +00:00
} ,
"description" : "Environment reference in project"
} ,
"folderId" : {
"type" : "number" ,
"description" : "Folder id which contains project."
} ,
"id" : {
"type" : "number" ,
"description" : "Metadata id."
} ,
"name" : {
"type" : "string" ,
"description" : "Metadata name."
} ,
"parameters" : {
"type" : "array" ,
"items" : {
"type" : "object" ,
2021-09-23 17:42:20 +00:00
"$ref" : "#/types/mypkg::SsisParameterResponse"
2021-08-23 20:46:09 +00:00
} ,
"description" : "Parameters in project"
} ,
"type" : {
"type" : "string" ,
"description" : "The type of SSIS object metadata.\nExpected value is 'Project'." ,
"const" : "Project"
} ,
"version" : {
"type" : "number" ,
"description" : "Project version."
}
} ,
"type" : "object" ,
"required" : [
"type"
]
} ,
2021-09-23 17:42:20 +00:00
"mypkg::SsisEnvironmentReferenceResponse" : {
2021-08-23 20:46:09 +00:00
"description" : "Ssis environment reference." ,
"properties" : {
"environmentFolderName" : {
"type" : "string" ,
"description" : "Environment folder name."
} ,
"environmentName" : {
"type" : "string" ,
"description" : "Environment name."
} ,
"id" : {
"type" : "number" ,
"description" : "Environment reference id."
} ,
"referenceType" : {
"type" : "string" ,
"description" : "Reference type"
}
} ,
"type" : "object"
} ,
2021-09-23 17:42:20 +00:00
"mypkg::SsisParameterResponse" : {
2021-08-23 20:46:09 +00:00
"description" : "Ssis parameter." ,
"properties" : {
"dataType" : {
"type" : "string" ,
"description" : "Parameter type."
} ,
"defaultValue" : {
"type" : "string" ,
"description" : "Default value of parameter."
} ,
"description" : {
"type" : "string" ,
"description" : "Parameter description."
} ,
"designDefaultValue" : {
"type" : "string" ,
"description" : "Design default value of parameter."
} ,
"id" : {
"type" : "number" ,
"description" : "Parameter id."
} ,
"name" : {
"type" : "string" ,
"description" : "Parameter name."
} ,
"required" : {
"type" : "boolean" ,
"description" : "Whether parameter is required."
} ,
"sensitive" : {
"type" : "boolean" ,
"description" : "Whether parameter is sensitive."
} ,
"sensitiveDefaultValue" : {
"type" : "string" ,
"description" : "Default sensitive value of parameter."
} ,
"valueSet" : {
"type" : "boolean" ,
"description" : "Parameter value set."
} ,
"valueType" : {
"type" : "string" ,
"description" : "Parameter value type."
} ,
"variable" : {
"type" : "string" ,
"description" : "Parameter reference variable."
}
} ,
"type" : "object"
} ,
2021-09-23 17:42:20 +00:00
"mypkg::SsisVariableResponse" : {
2021-08-23 20:46:09 +00:00
"description" : "Ssis variable." ,
"properties" : {
"dataType" : {
"type" : "string" ,
"description" : "Variable type."
} ,
"description" : {
"type" : "string" ,
"description" : "Variable description."
} ,
"id" : {
"type" : "number" ,
"description" : "Variable id."
} ,
"name" : {
"type" : "string" ,
"description" : "Variable name."
} ,
"sensitive" : {
"type" : "boolean" ,
"description" : "Whether variable is sensitive."
} ,
"sensitiveValue" : {
"type" : "string" ,
"description" : "Variable sensitive value."
} ,
"value" : {
"type" : "string" ,
"description" : "Variable value."
}
} ,
"type" : "object"
2021-09-23 17:42:20 +00:00
} ,
"mypkg::StorageAccountKeyResponse" : {
"description" : "An access key for the storage account." ,
"properties" : {
"creationTime" : {
"type" : "string" ,
"description" : "Creation time of the key, in round trip date format."
} ,
"keyName" : {
"type" : "string" ,
"description" : "Name of the key."
} ,
"permissions" : {
"type" : "string" ,
"description" : "Permissions for the key -- read-only or full permissions."
} ,
"value" : {
"type" : "string" ,
"description" : "Base 64-encoded value of the key."
}
} ,
"type" : "object" ,
"required" : [
"creationTime" ,
"keyName" ,
"permissions" ,
"value"
]
}
} ,
"language" : {
"nodejs" : {
2022-09-01 22:42:44 +00:00
"optimizeNodeModuleLoading" : [ "lazy-load-functions" , "lazy-load-resources" , "use-type-only-enums-references" ] ,
2021-09-23 17:42:20 +00:00
"devDependencies" : {
"@types/mocha" : "latest" ,
2023-02-07 10:35:58 +00:00
"@types/node" : "ts4.3" ,
2021-09-23 17:42:20 +00:00
"mocha" : "latest" ,
"ts-node" : "latest"
2021-10-07 19:39:19 +00:00
} ,
"extraTypeScriptFiles" : [
"tests/codegen.spec.ts"
]
2021-09-23 17:42:20 +00:00
} ,
2021-12-10 23:35:24 +00:00
"go" : {
2023-06-14 16:34:49 +00:00
"generateExtraInputTypes" : true ,
2023-09-19 10:28:50 +00:00
"importBasePath" : "output-funcs/mypkg" ,
"generics" : "side-by-side"
2021-12-10 23:35:24 +00:00
} ,
2021-10-18 22:18:15 +00:00
"python" : { } ,
2021-10-07 19:39:19 +00:00
"csharp" : {
"packageReferences" : {
2021-10-18 22:18:15 +00:00
"FluentAssertions" : "5.10.2" ,
"Microsoft.NET.Test.Sdk" : "16.5.0" ,
"Moq" : "4.13.1" ,
"NUnit" : "3.12.0" ,
2022-08-30 15:12:06 +00:00
"NUnit3TestAdapter" : "4.2.1"
2021-10-07 19:39:19 +00:00
}
2021-08-23 20:46:09 +00:00
}
}
}