Skip to content

Commit

Permalink
Upgrade terraform-provider-snowflake to v0.70.0 (#317)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks

---------

Co-authored-by: pulumi-bot <runner@fv-az255-51.54km3ax3mhvehkq0h1bkgrewib.dx.internal.cloudapp.net>
  • Loading branch information
pulumi-bot and pulumi-bot committed Aug 22, 2023
1 parent 089cb2f commit 7a1a0d7
Show file tree
Hide file tree
Showing 29 changed files with 65 additions and 1,169 deletions.
3 changes: 1 addition & 2 deletions provider/cmd/pulumi-resource-snowflake/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1940,8 +1940,7 @@
"loginName": "login_name",
"mustChangePassword": "must_change_password",
"rsaPublicKey": "rsa_public_key",
"rsaPublicKey2": "rsa_public_key_2",
"tags": "tag"
"rsaPublicKey2": "rsa_public_key_2"
},
"snowflake:index/userGrant:UserGrant": {
"enableMultipleGrants": "enable_multiple_grants",
Expand Down
83 changes: 17 additions & 66 deletions provider/cmd/pulumi-resource-snowflake/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,36 @@
},
"language": {
"csharp": {
"compatibility": "tfbridge20",
"namespaces": null,
"packageReferences": {
"Pulumi": "3.*"
}
},
"compatibility": "tfbridge20"
},
"go": {
"generateExtraInputTypes": true,
"importBasePath": "github.com/pulumi/pulumi-snowflake/sdk/go/snowflake",
"generateResourceContainerTypes": true,
"importBasePath": "github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"generateExtraInputTypes": true
},
"nodejs": {
"compatibility": "tfbridge20",
"packageDescription": "A Pulumi package for creating and managing snowflake cloud resources.",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/Snowflake-Labs/terraform-provider-snowflake)\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-snowflake` repo](https://github.com/pulumi/pulumi-snowflake/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-snowflake` repo](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues).",
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
},
"devDependencies": {
"@types/mime": "^2.0.0",
"@types/node": "^10.0.0"
},
"disableUnionOutputTypes": true,
"packageDescription": "A Pulumi package for creating and managing snowflake cloud resources.",
"packageName": "",
"pluginName": "",
"pluginVersion": "",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/Snowflake-Labs/terraform-provider-snowflake)\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-snowflake` repo](https://github.com/pulumi/pulumi-snowflake/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-snowflake` repo](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues).",
"typescriptVersion": ""
"compatibility": "tfbridge20",
"disableUnionOutputTypes": true
},
"python": {
"compatibility": "tfbridge20",
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/Snowflake-Labs/terraform-provider-snowflake)\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-snowflake` repo](https://github.com/pulumi/pulumi-snowflake/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-snowflake` repo](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues).",
"requires": {
"pulumi": "\u003e=3.0.0,\u003c4.0.0"
}
},
"readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/Snowflake-Labs/terraform-provider-snowflake)\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-snowflake` repo](https://github.com/pulumi/pulumi-snowflake/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-snowflake` repo](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues).",
"compatibility": "tfbridge20",
"pyproject": {}
}
},
"config": {
Expand Down Expand Up @@ -894,31 +890,6 @@
"name"
]
},
"snowflake:index/UserTag:UserTag": {
"properties": {
"database": {
"type": "string",
"description": "Name of the database that the tag was created in.\n"
},
"name": {
"type": "string",
"description": "Tag name, e.g. department.\n"
},
"schema": {
"type": "string",
"description": "Name of the schema that the tag was created in.\n"
},
"value": {
"type": "string",
"description": "Tag value, e.g. marketing_info.\n"
}
},
"type": "object",
"required": [
"name",
"value"
]
},
"snowflake:index/ViewTag:ViewTag": {
"properties": {
"database": {
Expand Down Expand Up @@ -12920,14 +12891,6 @@
"rsaPublicKey2": {
"type": "string",
"description": "Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.\n"
},
"tags": {
"type": "array",
"items": {
"$ref": "#/types/snowflake:index/UserTag:UserTag"
},
"description": "Definitions of a tag to associate with the resource.\n",
"deprecationMessage": "Use the 'snowflake_tag_association' resource instead."
}
},
"required": [
Expand Down Expand Up @@ -13009,14 +12972,6 @@
"rsaPublicKey2": {
"type": "string",
"description": "Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.\n"
},
"tags": {
"type": "array",
"items": {
"$ref": "#/types/snowflake:index/UserTag:UserTag"
},
"description": "Definitions of a tag to associate with the resource.\n",
"deprecationMessage": "Use the 'snowflake_tag_association' resource instead."
}
},
"stateInputs": {
Expand Down Expand Up @@ -13096,14 +13051,6 @@
"rsaPublicKey2": {
"type": "string",
"description": "Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.\n"
},
"tags": {
"type": "array",
"items": {
"$ref": "#/types/snowflake:index/UserTag:UserTag"
},
"description": "Definitions of a tag to associate with the resource.\n",
"deprecationMessage": "Use the 'snowflake_tag_association' resource instead."
}
},
"type": "object"
Expand Down Expand Up @@ -14222,7 +14169,10 @@
"description": "The database from which to return the database roles from.\n"
}
},
"type": "object"
"type": "object",
"required": [
"database"
]
},
"outputs": {
"description": "A collection of values returned by getDatabaseRoles.\n",
Expand All @@ -14245,6 +14195,7 @@
},
"type": "object",
"required": [
"database",
"databaseRoles",
"id"
]
Expand Down
4 changes: 2 additions & 2 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ replace (
)

require (
github.com/Snowflake-Labs/terraform-provider-snowflake v0.69.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.54.3
github.com/Snowflake-Labs/terraform-provider-snowflake v0.70.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0
github.com/pulumi/pulumi/sdk/v3 v3.76.1
)

Expand Down
9 changes: 4 additions & 5 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,6 @@ github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMo
github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8/go.mod h1:oX5x61PbNXchhh0oikYAH+4Pcfw5LKv21+Jnpr6r6Pc=
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
github.com/Pallinder/go-randomdata v1.2.0 h1:DZ41wBchNRb/0GfsePLiSwb0PHZmT67XY00lCDlaYPg=
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo=
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 h1:wPbRQzjjwFc0ih8puEVAOFGELsn1zoIIYdxvML7mDxA=
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g=
Expand All @@ -747,8 +746,8 @@ github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdko
github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ=
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
github.com/Snowflake-Labs/terraform-provider-snowflake v0.69.0 h1:5OktS08vIGRaXFFlGYq9oC41uK37WQxvjLj4qKV10TY=
github.com/Snowflake-Labs/terraform-provider-snowflake v0.69.0/go.mod h1:pw4HVjN5dl2/u5K3Rb8K9FJjXL/tcsh+XXgqL3GelZo=
github.com/Snowflake-Labs/terraform-provider-snowflake v0.70.0 h1:vQ6y+SKfPMePM3UxLT2O5rm6gGxB7vhB9H3/C5xK7ZE=
github.com/Snowflake-Labs/terraform-provider-snowflake v0.70.0/go.mod h1:u2TtgQY/00LNdiI0M5Kbqd2K7iU3AFRtoqT/hT0jltc=
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4=
github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ=
Expand Down Expand Up @@ -2245,8 +2244,8 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T
github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+HzjboiSmK4=
github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.54.3 h1:0qlkyO69M7Hx/KUu/QCaGz/VMKHnGEXwdSfcyyjhGJA=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.54.3/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0 h1:munOxi56glme47MT8/wI29o9wrRBJrEQuwjAgm1zviI=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w=
github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNfyXY=
Expand Down
16 changes: 8 additions & 8 deletions sdk/dotnet/GetDatabaseRoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ namespace Pulumi.Snowflake
{
public static class GetDatabaseRoles
{
public static Task<GetDatabaseRolesResult> InvokeAsync(GetDatabaseRolesArgs? args = null, InvokeOptions? options = null)
public static Task<GetDatabaseRolesResult> InvokeAsync(GetDatabaseRolesArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetDatabaseRolesResult>("snowflake:index/getDatabaseRoles:getDatabaseRoles", args ?? new GetDatabaseRolesArgs(), options.WithDefaults());

public static Output<GetDatabaseRolesResult> Invoke(GetDatabaseRolesInvokeArgs? args = null, InvokeOptions? options = null)
public static Output<GetDatabaseRolesResult> Invoke(GetDatabaseRolesInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetDatabaseRolesResult>("snowflake:index/getDatabaseRoles:getDatabaseRoles", args ?? new GetDatabaseRolesInvokeArgs(), options.WithDefaults());
}

Expand All @@ -24,8 +24,8 @@ public sealed class GetDatabaseRolesArgs : global::Pulumi.InvokeArgs
/// <summary>
/// The database from which to return the database roles from.
/// </summary>
[Input("database")]
public string? Database { get; set; }
[Input("database", required: true)]
public string Database { get; set; } = null!;

public GetDatabaseRolesArgs()
{
Expand All @@ -38,8 +38,8 @@ public sealed class GetDatabaseRolesInvokeArgs : global::Pulumi.InvokeArgs
/// <summary>
/// The database from which to return the database roles from.
/// </summary>
[Input("database")]
public Input<string>? Database { get; set; }
[Input("database", required: true)]
public Input<string> Database { get; set; } = null!;

public GetDatabaseRolesInvokeArgs()
{
Expand All @@ -54,7 +54,7 @@ public sealed class GetDatabaseRolesResult
/// <summary>
/// The database from which to return the database roles from.
/// </summary>
public readonly string? Database;
public readonly string Database;
/// <summary>
/// Lists all the database roles in a specified database.
/// </summary>
Expand All @@ -66,7 +66,7 @@ public sealed class GetDatabaseRolesResult

[OutputConstructor]
private GetDatabaseRolesResult(
string? database,
string database,

ImmutableArray<Outputs.GetDatabaseRolesDatabaseRoleResult> databaseRoles,

Expand Down
44 changes: 0 additions & 44 deletions sdk/dotnet/Inputs/UserTagArgs.cs

This file was deleted.

44 changes: 0 additions & 44 deletions sdk/dotnet/Inputs/UserTagGetArgs.cs

This file was deleted.

49 changes: 0 additions & 49 deletions sdk/dotnet/Outputs/UserTag.cs

This file was deleted.

Loading

0 comments on commit 7a1a0d7

Please sign in to comment.