-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement CSharpName property on provider resource (#1551)
This PR implements the missing part for PR pulumi/pulumi#14308 from the Pulumi SDK to have the ability to rename the generated C# (dotnet) class from it's provider resource name. This PR comes with an update of `github.com/pulumi/pulumi/pkg/v3` and `github.com/pulumi/pulumi/sdk/v3` to at v3.95.0 because this is the first version of Pulumi which implements the required code for the `dotnet` codegen to emit a renamed class using the `CSharpName` property. --------- Co-authored-by: Thomas Meckel <[email protected]> Co-authored-by: Anton Tayanovskyy <[email protected]>
- Loading branch information
1 parent
9a9bbf1
commit bcf2ed0
Showing
5 changed files
with
219 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"name": "random", | ||
"description": "A Pulumi package to safely use randomness in Pulumi programs.", | ||
"keywords": [ | ||
"pulumi", | ||
"random" | ||
], | ||
"homepage": "https://pulumi.io", | ||
"license": "Apache-2.0", | ||
"attribution": "This Pulumi package is based on the [`random` Terraform Provider](https://github.com/terraform-providers/terraform-provider-random).", | ||
"repository": "https://github.com/pulumi/pulumi-random", | ||
"meta": { | ||
"moduleFormat": "(.*)(?:/[^/]*)" | ||
}, | ||
"language": { | ||
"nodejs": { | ||
"packageDescription": "A Pulumi package to safely use randomness in Pulumi programs.", | ||
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-random)\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-random` repo](https://github.com/pulumi/pulumi-random/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-random` repo](https://github.com/terraform-providers/terraform-provider-random/issues).", | ||
"compatibility": "tfbridge20", | ||
"disableUnionOutputTypes": true | ||
}, | ||
"python": { | ||
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-random)\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-random` repo](https://github.com/pulumi/pulumi-random/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-random` repo](https://github.com/terraform-providers/terraform-provider-random/issues).", | ||
"compatibility": "tfbridge20", | ||
"pyproject": {} | ||
} | ||
}, | ||
"config": {}, | ||
"provider": { | ||
"description": "The provider type for the random 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" | ||
}, | ||
"resources": { | ||
"random:index/randomInteger:RandomInteger": { | ||
"properties": { | ||
"keepers": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "pulumi.json#/Any" | ||
}, | ||
"description": "Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider\ndocumentation](../index.html) for more information.\n" | ||
}, | ||
"max": { | ||
"type": "integer", | ||
"description": "The maximum inclusive value of the range.\n" | ||
}, | ||
"min": { | ||
"type": "integer", | ||
"description": "The minimum inclusive value of the range.\n" | ||
}, | ||
"result": { | ||
"type": "integer", | ||
"description": "The random integer result.\n" | ||
}, | ||
"seed": { | ||
"type": "string", | ||
"description": "A custom seed to always produce the same value.\n", | ||
"language": { | ||
"csharp": { | ||
"name": "CSharpSeed" | ||
} | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"max", | ||
"min", | ||
"result" | ||
], | ||
"inputProperties": { | ||
"keepers": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "pulumi.json#/Any" | ||
}, | ||
"description": "Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider\ndocumentation](../index.html) for more information.\n", | ||
"willReplaceOnChanges": true | ||
}, | ||
"max": { | ||
"type": "integer", | ||
"description": "The maximum inclusive value of the range.\n", | ||
"willReplaceOnChanges": true | ||
}, | ||
"min": { | ||
"type": "integer", | ||
"description": "The minimum inclusive value of the range.\n", | ||
"willReplaceOnChanges": true | ||
}, | ||
"seed": { | ||
"type": "string", | ||
"description": "A custom seed to always produce the same value.\n", | ||
"willReplaceOnChanges": true, | ||
"language": { | ||
"csharp": { | ||
"name": "CSharpSeed" | ||
} | ||
} | ||
} | ||
}, | ||
"requiredInputs": [ | ||
"max", | ||
"min" | ||
], | ||
"stateInputs": { | ||
"description": "Input properties used for looking up and filtering RandomInteger resources.\n", | ||
"properties": { | ||
"keepers": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "pulumi.json#/Any" | ||
}, | ||
"description": "Arbitrary map of values that, when changed, will trigger recreation of resource. See [the main provider\ndocumentation](../index.html) for more information.\n", | ||
"willReplaceOnChanges": true | ||
}, | ||
"max": { | ||
"type": "integer", | ||
"description": "The maximum inclusive value of the range.\n", | ||
"willReplaceOnChanges": true | ||
}, | ||
"min": { | ||
"type": "integer", | ||
"description": "The minimum inclusive value of the range.\n", | ||
"willReplaceOnChanges": true | ||
}, | ||
"result": { | ||
"type": "integer", | ||
"description": "The random integer result.\n" | ||
}, | ||
"seed": { | ||
"type": "string", | ||
"description": "A custom seed to always produce the same value.\n", | ||
"willReplaceOnChanges": true, | ||
"language": { | ||
"csharp": { | ||
"name": "CSharpSeed" | ||
} | ||
} | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"language": { | ||
"csharp": { | ||
"name": "CSharpRandomInteger" | ||
} | ||
} | ||
} | ||
} | ||
} |