Skip to content

Commit

Permalink
fix python sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Mar 20, 2024
1 parent 60cc809 commit f1d1123
Show file tree
Hide file tree
Showing 1,566 changed files with 282,044 additions and 485 deletions.
25 changes: 22 additions & 3 deletions provider/cmd/pulumi-resource-xyz/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,38 @@
},
"datasources": {
"xyz_data_source": {
"current": "xyz:index/getDataSource:getDataSource"
"current": "xyz:index/dataSource:DataSource",
"past": [
{
"name": "xyz:index/getDataSource:getDataSource",
"inCodegen": true,
"majorVersion": 0
}
]
}
}
},
"auto-settings": {
"datasources": {
"xyz_data_source": {
"renames": [
"xyz:index/getDataSource:getDataSource"
]
}
}
},
"auto-settings": {},
"renames": {
"resources": {
"xyz:index/resource:Resource": "xyz_resource"
},
"functions": {
"xyz:index/getDataSource:getDataSource": "xyz_data_source"
"xyz:index/dataSource:DataSource": "xyz_data_source",
"xyz:index/getDataSource:getDataSource": "xyz_data_source_legacy"
},
"renamedProperties": {
"xyz:index/dataSource:DataSource": {
"sampleAttribute": "sample_attribute"
},
"xyz:index/getDataSource:getDataSource": {
"sampleAttribute": "sample_attribute"
},
Expand Down
36 changes: 35 additions & 1 deletion provider/cmd/pulumi-resource-xyz/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
},
"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",
"pyproject": {}
"pyproject": {
"enabled": true
}
}
},
"config": {},
Expand Down Expand Up @@ -79,7 +81,39 @@
}
},
"functions": {
"xyz:index/dataSource:DataSource": {
"inputs": {
"description": "A collection of arguments for invoking DataSource.\n",
"properties": {
"sampleAttribute": {
"type": "string"
}
},
"type": "object",
"required": [
"sampleAttribute"
]
},
"outputs": {
"description": "A collection of values returned by DataSource.\n",
"properties": {
"id": {
"description": "The provider-assigned unique ID for this managed resource.\n",
"type": "string"
},
"sampleAttribute": {
"type": "string"
}
},
"required": [
"sampleAttribute",
"id"
],
"type": "object"
}
},
"xyz:index/getDataSource:getDataSource": {
"deprecationMessage": "xyz.index/getdatasource.getDataSource has been deprecated in favor of xyz.index/datasource.DataSource",
"inputs": {
"description": "A collection of arguments for invoking getDataSource.\n",
"properties": {
Expand Down
16 changes: 10 additions & 6 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func Provider() tfbridge.ProviderInfo {
License: "Apache-2.0",
Homepage: "https://www.pulumi.com",
Repository: "https://github.com/pulumi/pulumi-xyz",
Version: version.Version,
// The GitHub Org for the provider - defaults to `terraform-providers`. Note that this
// should match the TF provider module's require directive, not any replace directives.
GitHubOrg: "",
Expand Down Expand Up @@ -126,12 +127,15 @@ func Provider() tfbridge.ProviderInfo {
// no overlay files.
// Overlay: &tfbridge.OverlayInfo{},
},
Python: &tfbridge.PythonInfo{
// List any Python dependencies and their version ranges
Requires: map[string]string{
"pulumi": ">=3.0.0,<4.0.0",
},
},
Python: (func() *tfbridge.PythonInfo {
i := &tfbridge.PythonInfo{
Requires: map[string]string{
"pulumi": ">=3.0.0,<4.0.0",
},
}
i.PyProject.Enabled = true
return i
})(),
Golang: &tfbridge.GolangInfo{
ImportBasePath: path.Join(
fmt.Sprintf("github.com/pulumi/pulumi-%[1]s/sdk/", mainPkg),
Expand Down
64 changes: 64 additions & 0 deletions sdk/dotnet/DataSource.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/dotnet/GetDataSource.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions sdk/dotnet/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions sdk/go/xyz/dataSource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/go/xyz/getDataSource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions sdk/nodejs/dataSource.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions sdk/nodejs/getDataSource.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions sdk/nodejs/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions sdk/nodejs/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/nodejs/tsconfig.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f1d1123

Please sign in to comment.