Skip to content

Commit

Permalink
Update terraform-provider-snowflake to v0.28.8 (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot authored Mar 22, 2022
1 parent d025620 commit f6ebcf2
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 290 deletions.
37 changes: 8 additions & 29 deletions provider/cmd/pulumi-resource-snowflake/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ replace (

require (
cloud.google.com/go/kms v1.4.0 // indirect
github.com/chanzuckerberg/terraform-provider-snowflake v0.28.7
github.com/chanzuckerberg/terraform-provider-snowflake v0.28.8
github.com/hashicorp/terraform-plugin-sdk v1.9.1 // indirect
github.com/pulumi/pulumi-terraform-bridge/v3 v3.19.1
github.com/pulumi/pulumi/sdk/v3 v3.25.0
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ github.com/chanzuckerberg/aws-oidc v0.23.1/go.mod h1:AbN6f7tGQ1aR8kJdr5Mpnyk3iab
github.com/chanzuckerberg/go-misc v0.0.0-20200814145037-61fd36eedee6/go.mod h1:5GljuH2+xw/T7ovs4sRj9WbNRrgePgom8sMzJJPlAAo=
github.com/chanzuckerberg/go-misc v0.0.0-20220309145137-a6d9e8c090d2 h1:yQ3ygwbCH0Wp0YPQSlILa21yGLD5guv4eUZrVaJ0ZPw=
github.com/chanzuckerberg/go-misc v0.0.0-20220309145137-a6d9e8c090d2/go.mod h1:josvORVy6Us8JVr+O3qkNUgFmqu2I0Goy/5ZXKK5bVQ=
github.com/chanzuckerberg/terraform-provider-snowflake v0.28.7 h1:4dR726VYQShA4mVoXhta8zvZX9oNd8mPUCWTWZ6I8iY=
github.com/chanzuckerberg/terraform-provider-snowflake v0.28.7/go.mod h1:1vwIUm8Ot8i1AcxqVksNTIq4tTzp3F46qR1PrS/oX5k=
github.com/chanzuckerberg/terraform-provider-snowflake v0.28.8 h1:r0LVx9Ptukaraw4eG8BIBTeK7H6pMkeEeQLzSStr2vA=
github.com/chanzuckerberg/terraform-provider-snowflake v0.28.8/go.mod h1:1vwIUm8Ot8i1AcxqVksNTIq4tTzp3F46qR1PrS/oX5k=
github.com/checkpoint-restore/go-criu/v4 v4.1.0/go.mod h1:xUQBLp4RLc5zJtWY++yjOoMoB5lihDt7fai+75m+rGw=
github.com/cheggaaa/pb v1.0.18/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc=
Expand Down
8 changes: 4 additions & 4 deletions sdk/dotnet/FunctionGrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Pulumi.Snowflake
/// %!v(PANIC=Format method: interface conversion: model.Expression is *model.TemplateExpression, not *model.LiteralValueExpression),
/// },
/// ReturnType = "string",
/// Privilege = "select",
/// Privilege = "USAGE",
/// Roles =
/// {
/// "role1",
Expand Down Expand Up @@ -90,7 +90,7 @@ public partial class FunctionGrant : Pulumi.CustomResource
public Output<bool?> OnFuture { get; private set; } = null!;

/// <summary>
/// The privilege to grant on the current or future function.
/// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
/// </summary>
[Output("privilege")]
public Output<string?> Privilege { get; private set; } = null!;
Expand Down Expand Up @@ -202,7 +202,7 @@ public InputList<Inputs.FunctionGrantArgumentArgs> Arguments
public Input<bool>? OnFuture { get; set; }

/// <summary>
/// The privilege to grant on the current or future function.
/// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
/// </summary>
[Input("privilege")]
public Input<string>? Privilege { get; set; }
Expand Down Expand Up @@ -287,7 +287,7 @@ public InputList<Inputs.FunctionGrantArgumentGetArgs> Arguments
public Input<bool>? OnFuture { get; set; }

/// <summary>
/// The privilege to grant on the current or future function.
/// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
/// </summary>
[Input("privilege")]
public Input<string>? Privilege { get; set; }
Expand Down
70 changes: 3 additions & 67 deletions sdk/dotnet/StageGrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,6 @@
namespace Pulumi.Snowflake
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using Pulumi;
/// using Snowflake = Pulumi.Snowflake;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var grant = new Snowflake.StageGrant("grant", new Snowflake.StageGrantArgs
/// {
/// DatabaseName = "db",
/// OnFuture = false,
/// Privilege = "USAGE",
/// Roles =
/// {
/// "role1",
/// "role2",
/// },
/// SchemaName = "schema",
/// Shares =
/// {
/// "share1",
/// "share2",
/// },
/// StageName = "stage",
/// WithGrantOption = false,
/// });
/// }
///
/// }
/// ```
///
/// ## Import
///
/// # format is database name | schema name | stage name | privilege | true/false for with_grant_option
Expand All @@ -62,7 +28,7 @@ public partial class StageGrant : Pulumi.CustomResource
public Output<string> DatabaseName { get; private set; } = null!;

/// <summary>
/// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name and shares fields must be unset in order to use on*future.
/// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future.
/// </summary>
[Output("onFuture")]
public Output<bool?> OnFuture { get; private set; } = null!;
Expand All @@ -85,12 +51,6 @@ public partial class StageGrant : Pulumi.CustomResource
[Output("schemaName")]
public Output<string> SchemaName { get; private set; } = null!;

/// <summary>
/// Grants privilege to these shares (only valid if on_future is false).
/// </summary>
[Output("shares")]
public Output<ImmutableArray<string>> Shares { get; private set; } = null!;

/// <summary>
/// The name of the stage on which to grant privilege (only valid if on_future is false).
/// </summary>
Expand Down Expand Up @@ -156,7 +116,7 @@ public sealed class StageGrantArgs : Pulumi.ResourceArgs
public Input<string> DatabaseName { get; set; } = null!;

/// <summary>
/// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name and shares fields must be unset in order to use on*future.
/// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future.
/// </summary>
[Input("onFuture")]
public Input<bool>? OnFuture { get; set; }
Expand Down Expand Up @@ -185,18 +145,6 @@ public InputList<string> Roles
[Input("schemaName", required: true)]
public Input<string> SchemaName { get; set; } = null!;

[Input("shares")]
private InputList<string>? _shares;

/// <summary>
/// Grants privilege to these shares (only valid if on_future is false).
/// </summary>
public InputList<string> Shares
{
get => _shares ?? (_shares = new InputList<string>());
set => _shares = value;
}

/// <summary>
/// The name of the stage on which to grant privilege (only valid if on_future is false).
/// </summary>
Expand All @@ -223,7 +171,7 @@ public sealed class StageGrantState : Pulumi.ResourceArgs
public Input<string>? DatabaseName { get; set; }

/// <summary>
/// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name and shares fields must be unset in order to use on*future.
/// When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future.
/// </summary>
[Input("onFuture")]
public Input<bool>? OnFuture { get; set; }
Expand Down Expand Up @@ -252,18 +200,6 @@ public InputList<string> Roles
[Input("schemaName")]
public Input<string>? SchemaName { get; set; }

[Input("shares")]
private InputList<string>? _shares;

/// <summary>
/// Grants privilege to these shares (only valid if on_future is false).
/// </summary>
public InputList<string> Shares
{
get => _shares ?? (_shares = new InputList<string>());
set => _shares = value;
}

/// <summary>
/// The name of the stage on which to grant privilege (only valid if on_future is false).
/// </summary>
Expand Down
12 changes: 6 additions & 6 deletions sdk/go/snowflake/functionGrant.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (
// },
// },
// ReturnType: pulumi.String("string"),
// Privilege: pulumi.String("select"),
// Privilege: pulumi.String("USAGE"),
// Roles: pulumi.StringArray{
// pulumi.String("role1"),
// pulumi.String("role2"),
Expand Down Expand Up @@ -76,7 +76,7 @@ type FunctionGrant struct {
FunctionName pulumi.StringPtrOutput `pulumi:"functionName"`
// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on_future.
OnFuture pulumi.BoolPtrOutput `pulumi:"onFuture"`
// The privilege to grant on the current or future function.
// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
Privilege pulumi.StringPtrOutput `pulumi:"privilege"`
// The return type of the function (must be present if functionName is present)
ReturnType pulumi.StringPtrOutput `pulumi:"returnType"`
Expand Down Expand Up @@ -133,7 +133,7 @@ type functionGrantState struct {
FunctionName *string `pulumi:"functionName"`
// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on_future.
OnFuture *bool `pulumi:"onFuture"`
// The privilege to grant on the current or future function.
// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
Privilege *string `pulumi:"privilege"`
// The return type of the function (must be present if functionName is present)
ReturnType *string `pulumi:"returnType"`
Expand All @@ -156,7 +156,7 @@ type FunctionGrantState struct {
FunctionName pulumi.StringPtrInput
// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on_future.
OnFuture pulumi.BoolPtrInput
// The privilege to grant on the current or future function.
// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
Privilege pulumi.StringPtrInput
// The return type of the function (must be present if functionName is present)
ReturnType pulumi.StringPtrInput
Expand All @@ -183,7 +183,7 @@ type functionGrantArgs struct {
FunctionName *string `pulumi:"functionName"`
// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on_future.
OnFuture *bool `pulumi:"onFuture"`
// The privilege to grant on the current or future function.
// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
Privilege *string `pulumi:"privilege"`
// The return type of the function (must be present if functionName is present)
ReturnType *string `pulumi:"returnType"`
Expand All @@ -207,7 +207,7 @@ type FunctionGrantArgs struct {
FunctionName pulumi.StringPtrInput
// When this is set to true and a schema*name is provided, apply this grant on all future functions in the given schema. When this is true and no schema*name is provided apply this grant on all future functions in the given database. The function*name, arguments, return*type, and shares fields must be unset in order to use on_future.
OnFuture pulumi.BoolPtrInput
// The privilege to grant on the current or future function.
// The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
Privilege pulumi.StringPtrInput
// The return type of the function (must be present if functionName is present)
ReturnType pulumi.StringPtrInput
Expand Down
Loading

0 comments on commit f6ebcf2

Please sign in to comment.