Skip to content

Commit

Permalink
Merge pull request #70 from pulumi/jkodroff/v0.26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 authored Feb 8, 2022
2 parents 9012a3c + 27a7012 commit 8a7deb7
Show file tree
Hide file tree
Showing 28 changed files with 4,200 additions and 8 deletions.
420 changes: 420 additions & 0 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 @@ -8,7 +8,7 @@ replace (
)

require (
github.com/chanzuckerberg/terraform-provider-snowflake v0.25.34
github.com/chanzuckerberg/terraform-provider-snowflake v0.26.1
github.com/hashicorp/terraform-plugin-sdk v1.9.1 // indirect
github.com/pulumi/pulumi-terraform-bridge/v3 v3.18.0
github.com/pulumi/pulumi/sdk/v3 v3.23.2
Expand Down
8 changes: 4 additions & 4 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,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-20210907173712-618127c04a73 h1:CD7GXPOaHahGVTrmqF7qr+xARoTwWZXHW2u0v7cM5KE=
github.com/chanzuckerberg/go-misc v0.0.0-20210907173712-618127c04a73/go.mod h1:4Kf7OxUaVoQxT2PJt44vy93byI0T7sJqlwEoVevclHE=
github.com/chanzuckerberg/terraform-provider-snowflake v0.25.34 h1:M2NEL6AdST/+NFILLgfKxXq+ws/g6fZknmnMpNIeKZU=
github.com/chanzuckerberg/terraform-provider-snowflake v0.25.34/go.mod h1:EWaIce3+oGUPGk+RgK+OnUy/+KCEclC62QFJrrwLn7M=
github.com/chanzuckerberg/terraform-provider-snowflake v0.26.1 h1:40FdHhpKIxUz1JbC7Ff2zx5xKO0SPZTQUvBioAT6u+E=
github.com/chanzuckerberg/terraform-provider-snowflake v0.26.1/go.mod h1:0lipnkJtNYw5TTeuiWiIu9zu1tZdRlOwGjQK5ZAsrlM=
github.com/cheggaaa/pb v1.0.18/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc=
github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
Expand Down Expand Up @@ -1776,8 +1776,8 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.8 h1:P1HhGGuLW4aAclzjtmJdf0mJOjVUZUzOTqkAkWL+l6w=
golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
golang.org/x/tools v0.1.9 h1:j9KsMiaP1c3B0OTQGth0/k+miLGTgLsAFUCrF2vLcF8=
golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
2 changes: 2 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func Provider() tfbridge.ProviderInfo {
"snowflake_view_grant": {Tok: makeResource(mainMod, "ViewGrant")},
"snowflake_warehouse": {Tok: makeResource(mainMod, "Warehouse")},
"snowflake_warehouse_grant": {Tok: makeResource(mainMod, "WarehouseGrant")},
"snowflake_oauth_integration": {Tok: makeResource(mainMod, "OauthIntegration")},
"snowflake_saml_integration": {Tok: makeResource(mainMod, "SamlIntegration")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
"snowflake_current_account": {Tok: makeDataSource(mainMod, "getCurrentAccount")},
Expand Down
18 changes: 18 additions & 0 deletions sdk/dotnet/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ public partial class Database : Pulumi.CustomResource
[Output("fromDatabase")]
public Output<string?> FromDatabase { get; private set; } = null!;

/// <summary>
/// Specify a fully-qualified path to a database to create a replica from.
/// </summary>
[Output("fromReplica")]
public Output<string?> FromReplica { get; private set; } = null!;

/// <summary>
/// Specify a provider and a share in this map to create a database from a share.
/// </summary>
Expand Down Expand Up @@ -128,6 +134,12 @@ public sealed class DatabaseArgs : Pulumi.ResourceArgs
[Input("fromDatabase")]
public Input<string>? FromDatabase { get; set; }

/// <summary>
/// Specify a fully-qualified path to a database to create a replica from.
/// </summary>
[Input("fromReplica")]
public Input<string>? FromReplica { get; set; }

[Input("fromShare")]
private InputMap<object>? _fromShare;

Expand Down Expand Up @@ -174,6 +186,12 @@ public sealed class DatabaseState : Pulumi.ResourceArgs
[Input("fromDatabase")]
public Input<string>? FromDatabase { get; set; }

/// <summary>
/// Specify a fully-qualified path to a database to create a replica from.
/// </summary>
[Input("fromReplica")]
public Input<string>? FromReplica { get; set; }

[Input("fromShare")]
private InputMap<object>? _fromShare;

Expand Down
273 changes: 273 additions & 0 deletions sdk/dotnet/OauthIntegration.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Snowflake
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using Pulumi;
/// using Snowflake = Pulumi.Snowflake;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var tableauDesktop = new Snowflake.OauthIntegration("tableauDesktop", new Snowflake.OauthIntegrationArgs
/// {
/// BlockedRolesLists =
/// {
/// "SYSADMIN",
/// },
/// Enabled = true,
/// OauthClient = "TABLEAU_DESKTOP",
/// OauthIssueRefreshTokens = true,
/// OauthRefreshTokenValidity = 3600,
/// });
/// }
///
/// }
/// ```
///
/// ## Import
///
/// ```sh
/// $ pulumi import snowflake:index/oauthIntegration:OauthIntegration example name
/// ```
/// </summary>
[SnowflakeResourceType("snowflake:index/oauthIntegration:OauthIntegration")]
public partial class OauthIntegration : Pulumi.CustomResource
{
/// <summary>
/// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
/// </summary>
[Output("blockedRolesLists")]
public Output<ImmutableArray<string>> BlockedRolesLists { get; private set; } = null!;

/// <summary>
/// Specifies a comment for the OAuth integration.
/// </summary>
[Output("comment")]
public Output<string?> Comment { get; private set; } = null!;

/// <summary>
/// Date and time when the OAuth integration was created.
/// </summary>
[Output("createdOn")]
public Output<string> CreatedOn { get; private set; } = null!;

/// <summary>
/// Specifies whether this OAuth integration is enabled or disabled.
/// </summary>
[Output("enabled")]
public Output<bool?> Enabled { get; private set; } = null!;

/// <summary>
/// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// Specifies the OAuth client type.
/// </summary>
[Output("oauthClient")]
public Output<string> OauthClient { get; private set; } = null!;

/// <summary>
/// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
/// </summary>
[Output("oauthIssueRefreshTokens")]
public Output<bool?> OauthIssueRefreshTokens { get; private set; } = null!;

/// <summary>
/// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
/// </summary>
[Output("oauthRefreshTokenValidity")]
public Output<int?> OauthRefreshTokenValidity { get; private set; } = null!;

/// <summary>
/// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
/// </summary>
[Output("oauthUseSecondaryRoles")]
public Output<string?> OauthUseSecondaryRoles { get; private set; } = null!;


/// <summary>
/// Create a OauthIntegration resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public OauthIntegration(string name, OauthIntegrationArgs args, CustomResourceOptions? options = null)
: base("snowflake:index/oauthIntegration:OauthIntegration", name, args ?? new OauthIntegrationArgs(), MakeResourceOptions(options, ""))
{
}

private OauthIntegration(string name, Input<string> id, OauthIntegrationState? state = null, CustomResourceOptions? options = null)
: base("snowflake:index/oauthIntegration:OauthIntegration", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing OauthIntegration resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static OauthIntegration Get(string name, Input<string> id, OauthIntegrationState? state = null, CustomResourceOptions? options = null)
{
return new OauthIntegration(name, id, state, options);
}
}

public sealed class OauthIntegrationArgs : Pulumi.ResourceArgs
{
[Input("blockedRolesLists")]
private InputList<string>? _blockedRolesLists;

/// <summary>
/// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
/// </summary>
public InputList<string> BlockedRolesLists
{
get => _blockedRolesLists ?? (_blockedRolesLists = new InputList<string>());
set => _blockedRolesLists = value;
}

/// <summary>
/// Specifies a comment for the OAuth integration.
/// </summary>
[Input("comment")]
public Input<string>? Comment { get; set; }

/// <summary>
/// Specifies whether this OAuth integration is enabled or disabled.
/// </summary>
[Input("enabled")]
public Input<bool>? Enabled { get; set; }

/// <summary>
/// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// Specifies the OAuth client type.
/// </summary>
[Input("oauthClient", required: true)]
public Input<string> OauthClient { get; set; } = null!;

/// <summary>
/// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
/// </summary>
[Input("oauthIssueRefreshTokens")]
public Input<bool>? OauthIssueRefreshTokens { get; set; }

/// <summary>
/// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
/// </summary>
[Input("oauthRefreshTokenValidity")]
public Input<int>? OauthRefreshTokenValidity { get; set; }

/// <summary>
/// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
/// </summary>
[Input("oauthUseSecondaryRoles")]
public Input<string>? OauthUseSecondaryRoles { get; set; }

public OauthIntegrationArgs()
{
}
}

public sealed class OauthIntegrationState : Pulumi.ResourceArgs
{
[Input("blockedRolesLists")]
private InputList<string>? _blockedRolesLists;

/// <summary>
/// List of roles that a user cannot explicitly consent to using after authenticating. Do not include ACCOUNTADMIN, ORGADMIN or SECURITYADMIN as they are already implicitly enforced and will cause in-place updates.
/// </summary>
public InputList<string> BlockedRolesLists
{
get => _blockedRolesLists ?? (_blockedRolesLists = new InputList<string>());
set => _blockedRolesLists = value;
}

/// <summary>
/// Specifies a comment for the OAuth integration.
/// </summary>
[Input("comment")]
public Input<string>? Comment { get; set; }

/// <summary>
/// Date and time when the OAuth integration was created.
/// </summary>
[Input("createdOn")]
public Input<string>? CreatedOn { get; set; }

/// <summary>
/// Specifies whether this OAuth integration is enabled or disabled.
/// </summary>
[Input("enabled")]
public Input<bool>? Enabled { get; set; }

/// <summary>
/// Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// Specifies the OAuth client type.
/// </summary>
[Input("oauthClient")]
public Input<string>? OauthClient { get; set; }

/// <summary>
/// Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired.
/// </summary>
[Input("oauthIssueRefreshTokens")]
public Input<bool>? OauthIssueRefreshTokens { get; set; }

/// <summary>
/// Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
/// </summary>
[Input("oauthRefreshTokenValidity")]
public Input<int>? OauthRefreshTokenValidity { get; set; }

/// <summary>
/// Specifies whether default secondary roles set in the user properties are activated by default in the session being opened.
/// </summary>
[Input("oauthUseSecondaryRoles")]
public Input<string>? OauthUseSecondaryRoles { get; set; }

public OauthIntegrationState()
{
}
}
}
Loading

0 comments on commit 8a7deb7

Please sign in to comment.