ran setup.sh

This commit is contained in:
2025-04-18 13:29:38 -07:00
parent b78296ab5b
commit 0674f1ddab
23 changed files with 195 additions and 123 deletions

View File

@@ -0,0 +1 @@
schema.go

View File

@@ -0,0 +1,32 @@
// Copyright 2016-2018, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package main
import (
_ "embed"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
incus "github.com/brandonkal/pulumi-incus/provider"
"github.com/brandonkal/pulumi-incus/provider/pkg/version"
)
//go:embed schema.json
var pulumiSchema []byte
func main() {
// Modify the path to point to the new provider
tfbridge.Main("incus", version.Version, incus.Provider(), pulumiSchema)
}

View File

@@ -0,0 +1,146 @@
{
"name": "xyz",
"description": "A Pulumi package for creating and managing xyz cloud resources.",
"keywords": [
"xyz",
"category/cloud"
],
"homepage": "https://www.pulumi.com",
"license": "Apache-2.0",
"attribution": "This Pulumi package is based on the [`xyz` Terraform Provider](https://github.com/terraform-providers/terraform-provider-xyz).",
"repository": "https://github.com/pulumi/pulumi-xyz",
"publisher": "Pulumi",
"meta": {
"moduleFormat": "(.*)(?:/[^/]*)"
},
"language": {
"csharp": {
"packageReferences": {
"Pulumi": "3.*"
},
"compatibility": "tfbridge20",
"respectSchemaVersion": true
},
"go": {
"importBasePath": "github.com/pulumi/pulumi-xyz/sdk/go/xyz",
"generateResourceContainerTypes": true,
"generateExtraInputTypes": true,
"respectSchemaVersion": true
},
"nodejs": {
"packageDescription": "A Pulumi package for creating and managing xyz cloud resources.",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-xyz)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-xyz` repo](https://github.com/pulumi/pulumi-xyz/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-xyz` repo](https://github.com/terraform-providers/terraform-provider-xyz/issues).",
"compatibility": "tfbridge20",
"disableUnionOutputTypes": true,
"respectSchemaVersion": true
},
"python": {
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-xyz)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-xyz` repo](https://github.com/pulumi/pulumi-xyz/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-xyz` repo](https://github.com/terraform-providers/terraform-provider-xyz/issues).",
"compatibility": "tfbridge20",
"respectSchemaVersion": true,
"pyproject": {
"enabled": true
}
}
},
"config": {
"variables": {
"region": {
"type": "string",
"$ref": "#/types/xyz:region/region:Region",
"description": "A region which should be used.\n"
}
}
},
"types": {
"xyz:region/region:Region": {
"type": "string",
"enum": [
{
"name": "here",
"value": "HERE"
},
{
"name": "overThere",
"value": "OVER_THERE"
}
]
}
},
"provider": {
"description": "The provider type for the xyz package. By default, resources use package-wide configuration\nsettings, however an explicit `Provider` instance may be created and passed during resource\nconstruction to achieve fine-grained programmatic control over provider settings. See the\n[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.\n",
"properties": {
"region": {
"type": "string",
"$ref": "#/types/xyz:region/region:Region",
"description": "A region which should be used.\n"
}
},
"inputProperties": {
"region": {
"type": "string",
"$ref": "#/types/xyz:region/region:Region",
"description": "A region which should be used.\n"
}
}
},
"resources": {
"xyz:index/resource:Resource": {
"properties": {
"sampleAttribute": {
"type": "string",
"description": "Sample attribute.\n"
}
},
"inputProperties": {
"sampleAttribute": {
"type": "string",
"description": "Sample attribute.\n"
}
},
"stateInputs": {
"description": "Input properties used for looking up and filtering Resource resources.\n",
"properties": {
"sampleAttribute": {
"type": "string",
"description": "Sample attribute.\n"
}
},
"type": "object"
}
}
},
"functions": {
"xyz:index/getDataSource:getDataSource": {
"inputs": {
"description": "A collection of arguments for invoking getDataSource.\n",
"properties": {
"sampleAttribute": {
"type": "string"
}
},
"type": "object",
"required": [
"sampleAttribute"
]
},
"outputs": {
"description": "A collection of values returned by getDataSource.\n",
"properties": {
"id": {
"description": "The provider-assigned unique ID for this managed resource.\n",
"type": "string"
},
"sampleAttribute": {
"type": "string"
}
},
"required": [
"sampleAttribute",
"id"
],
"type": "object"
}
}
}
}