-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Package Schema resource-typed properties
A new built-in type, `pulumi.json#/Resource` is added to the schema to refer to any resource. This unblocks schematizing resources like `kubernetes.yaml/v2.ConfigFile`, which ideally would declare an output like so: ```json "properties": { "resources": { "type": "array", "items": { "$ref": "pulumi.json#/Resource" }, "description": "Resources created by the ConfigFile." } }, ``` This is a small ergonomic improvement over `pulumi.json#/Any`, and fixes #6346.
- Loading branch information
1 parent
a2b2276
commit d725baa
Showing
64 changed files
with
3,816 additions
and
6 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog/pending/20240327--sdkgen--support-resource-typed-input-and-output-properties.yaml
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,4 @@ | ||
changes: | ||
- type: feat | ||
scope: sdkgen | ||
description: Support resource-typed input and output properties |
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
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
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,34 @@ | ||
--- | ||
title: "example" | ||
title_tag: "example.example" | ||
meta_desc: "" | ||
layout: api | ||
no_edit_this_page: true | ||
--- | ||
|
||
<!-- WARNING: this file was generated by test. --> | ||
<!-- Do not edit by hand unless you're certain you know what you are doing! --> | ||
|
||
|
||
|
||
<h2 id="resources">Resources</h2> | ||
<ul class="api"> | ||
<li><a href="provider/" title="Provider">Provider</a></li> | ||
<li><a href="resourcewithresources/" title="ResourceWithResources">ResourceWithResources</a></li> | ||
</ul> | ||
|
||
<h2 id="functions">Functions</h2> | ||
<ul class="api"> | ||
<li><a href="getresources/" title="GetResources">GetResources</a></li> | ||
</ul> | ||
|
||
<h2 id="package-details">Package Details</h2> | ||
<dl class="package-details"> | ||
<dt>Repository</dt> | ||
<dd><a href="">example </a></dd> | ||
<dt>License</dt> | ||
<dd></dd> | ||
<dt>Version</dt> | ||
<dd>0.0.1</dd> | ||
</dl> | ||
|
8 changes: 8 additions & 0 deletions
8
tests/testdata/codegen/any-resource/docs/codegen-manifest.json
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,8 @@ | ||
{ | ||
"emittedFiles": [ | ||
"_index.md", | ||
"getresources/_index.md", | ||
"provider/_index.md", | ||
"resourcewithresources/_index.md" | ||
] | ||
} |
Oops, something went wrong.