Skip to content

Commit

Permalink
Generate properties for optional query parameters (#68)
Browse files Browse the repository at this point in the history
* Schema

* Node.js

* Python

* .NET

* Go

* Codegen, provider, example

* Refactor to use url to build query
  • Loading branch information
mikhailshilkov authored May 8, 2021
1 parent 2da011f commit 21647b6
Show file tree
Hide file tree
Showing 1,689 changed files with 23,245 additions and 2,611 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ CHANGELOG
- Fix refresh to re-populate inputs and provide accurate diff and drift detection
[#65](https://github.com/pulumi/pulumi-google-native/issues/65)

- Generate properties for optional query parameters. Fix pub/sub schema creation
[#67](https://github.com/pulumi/pulumi-google-native/issues/67)

---

## 0.1.1 (2021-04-26)
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ clean::
rm -rf sdk/python && mkdir sdk/python && touch sdk/python/go.mod && cp README.md sdk/python
rm -rf sdk/dotnet && mkdir sdk/dotnet && touch sdk/dotnet/go.mod
rm -rf sdk/go/google
rm -rf sdk/schema

install_dotnet_sdk::
mkdir -p $(WORKING_DIR)/nuget
Expand Down
27 changes: 27 additions & 0 deletions examples/pubsub-ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,30 @@ const sub = new google.pubsub.v1.Subscription("sub", {
topic: topic.name,
subscriptionsId: randomString.result,
});

const schemaId = randomString.result;
const schema = new google.pubsub.v1.Schema("schema", {
projectsId: project,
schemasId: schemaId,
schemaId: schemaId,
definition: JSON.stringify({
type: "record",
name: "State",
namespace: "utilities",
doc: "A list of states in the United States of America.",
fields: [
{
name: "name",
type: "string",
doc: "The common name of the state",
},
{
name: "post_abbr",
type: "string",
doc: "The postal code abbreviation of the state.",
},
],
}),
name: "my-schema",
type: "avro",
});
Loading

0 comments on commit 21647b6

Please sign in to comment.