Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade terraform-provider-vercel to v1.2.0 #143

Merged
merged 2 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/pulumiverse/pulumi-vercel/examples

go 1.20

require github.com/pulumi/pulumi/pkg/v3 v3.105.0
require github.com/pulumi/pulumi/pkg/v3 v3.107.0

require (
cloud.google.com/go v0.110.10 // indirect
Expand Down Expand Up @@ -135,7 +135,7 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
github.com/pulumi/esc v0.6.2 // indirect
github.com/pulumi/pulumi/sdk/v3 v3.105.0 // indirect
github.com/pulumi/pulumi/sdk/v3 v3.107.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions examples/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1450,10 +1450,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw=
github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k=
github.com/pulumi/pulumi/pkg/v3 v3.105.0 h1:bJG1vUiYH2gDF1pfBKlIABDNoJD2LvU1LmjjL+EbvuM=
github.com/pulumi/pulumi/pkg/v3 v3.105.0/go.mod h1:eZAFEFOwE/skElTfwetfyTxPebmWr5vOS5NSU9XwlVw=
github.com/pulumi/pulumi/sdk/v3 v3.105.0 h1:OKEeubZigWyQVnZS6udnFnZHZ/8OWXuUYv9ir3OY+vs=
github.com/pulumi/pulumi/sdk/v3 v3.105.0/go.mod h1:Ml3rpGfyZlI4zQCG7LN2XDSmH4XUNYdyBwJ3yEr/OpI=
github.com/pulumi/pulumi/pkg/v3 v3.107.0 h1:HRyIl1c9ur0PVQW+GuFL1APBEuGa/fQQMp3F+WluxW8=
github.com/pulumi/pulumi/pkg/v3 v3.107.0/go.mod h1:7edfZu4FlrXdIn4339tJ+SQX5VKGqbFntmpc8cai0Zg=
github.com/pulumi/pulumi/sdk/v3 v3.107.0 h1:bef+ayh9+4KkAqXih4EjlHfQXRY24NWPwWBIQhBxTjg=
github.com/pulumi/pulumi/sdk/v3 v3.107.0/go.mod h1:Ml3rpGfyZlI4zQCG7LN2XDSmH4XUNYdyBwJ3yEr/OpI=
github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4=
github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
12 changes: 12 additions & 0 deletions provider/cmd/pulumi-resource-vercel/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@
"vercel_project_directory": {
"current": "vercel:index/getProjectDirectory:getProjectDirectory",
"majorVersion": 1
},
"vercel_shared_environment_variable": {
"current": "vercel:index/getSharedEnvironmentVariable:getSharedEnvironmentVariable",
"majorVersion": 1,
"fields": {
"project_ids": {
"maxItemsOne": false
},
"target": {
"maxItemsOne": false
}
}
}
}
},
Expand Down
86 changes: 82 additions & 4 deletions provider/cmd/pulumi-resource-vercel/schema.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
module github.com/pulumiverse/pulumi-vercel/provider

go 1.20
go 1.21

toolchain go1.21.7

require (
github.com/pulumi/pulumi-terraform-bridge/pf v0.28.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.75.0
github.com/vercel/terraform-provider-vercel v1.1.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.29.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.76.0
github.com/vercel/terraform-provider-vercel v1.2.0
golang.org/x/text v0.14.0
)

Expand Down Expand Up @@ -174,8 +176,8 @@ require (
github.com/pulumi/pulumi-java/pkg v0.9.9 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect
github.com/pulumi/pulumi-yaml v1.5.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.105.0 // indirect
github.com/pulumi/pulumi/sdk/v3 v3.105.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.107.0 // indirect
github.com/pulumi/pulumi/sdk/v3 v3.107.0 // indirect
github.com/pulumi/schema-tools v0.1.2 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
Expand Down Expand Up @@ -226,7 +228,7 @@ require (
google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/grpc v1.61.1 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down
59 changes: 47 additions & 12 deletions provider/go.sum

Large diffs are not rendered by default.

235 changes: 235 additions & 0 deletions sdk/dotnet/GetSharedEnvironmentVariable.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
// *** 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;
using Pulumi;

namespace Pulumiverse.Vercel
{
public static class GetSharedEnvironmentVariable
{
/// <summary>
/// Provides information about an existing Shared Environment Variable within Vercel.
///
/// A Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.
///
/// For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Vercel = Pulumi.Vercel;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var example = Vercel.GetSharedEnvironmentVariable.Invoke(new()
/// {
/// Id = "xxxxxxxxxxxxxxx",
/// });
///
/// var exampleByKeyAndTarget = Vercel.GetSharedEnvironmentVariable.Invoke(new()
/// {
/// Key = "MY_ENV_VAR",
/// Targets = new[]
/// {
/// "production",
/// "preview",
/// },
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetSharedEnvironmentVariableResult> InvokeAsync(GetSharedEnvironmentVariableArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetSharedEnvironmentVariableResult>("vercel:index/getSharedEnvironmentVariable:getSharedEnvironmentVariable", args ?? new GetSharedEnvironmentVariableArgs(), options.WithDefaults());

/// <summary>
/// Provides information about an existing Shared Environment Variable within Vercel.
///
/// A Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.
///
/// For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Vercel = Pulumi.Vercel;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var example = Vercel.GetSharedEnvironmentVariable.Invoke(new()
/// {
/// Id = "xxxxxxxxxxxxxxx",
/// });
///
/// var exampleByKeyAndTarget = Vercel.GetSharedEnvironmentVariable.Invoke(new()
/// {
/// Key = "MY_ENV_VAR",
/// Targets = new[]
/// {
/// "production",
/// "preview",
/// },
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetSharedEnvironmentVariableResult> Invoke(GetSharedEnvironmentVariableInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetSharedEnvironmentVariableResult>("vercel:index/getSharedEnvironmentVariable:getSharedEnvironmentVariable", args ?? new GetSharedEnvironmentVariableInvokeArgs(), options.WithDefaults());
}


public sealed class GetSharedEnvironmentVariableArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// The ID of the Environment Variable.
/// </summary>
[Input("id")]
public string? Id { get; set; }

/// <summary>
/// The name of the Environment Variable.
/// </summary>
[Input("key")]
public string? Key { get; set; }

[Input("targets")]
private List<string>? _targets;

/// <summary>
/// The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
/// </summary>
public List<string> Targets
{
get => _targets ?? (_targets = new List<string>());
set => _targets = value;
}

/// <summary>
/// The ID of the Vercel team. Shared environment variables require a team.
/// </summary>
[Input("teamId")]
public string? TeamId { get; set; }

public GetSharedEnvironmentVariableArgs()
{
}
public static new GetSharedEnvironmentVariableArgs Empty => new GetSharedEnvironmentVariableArgs();
}

public sealed class GetSharedEnvironmentVariableInvokeArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// The ID of the Environment Variable.
/// </summary>
[Input("id")]
public Input<string>? Id { get; set; }

/// <summary>
/// The name of the Environment Variable.
/// </summary>
[Input("key")]
public Input<string>? Key { get; set; }

[Input("targets")]
private InputList<string>? _targets;

/// <summary>
/// The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
/// </summary>
public InputList<string> Targets
{
get => _targets ?? (_targets = new InputList<string>());
set => _targets = value;
}

/// <summary>
/// The ID of the Vercel team. Shared environment variables require a team.
/// </summary>
[Input("teamId")]
public Input<string>? TeamId { get; set; }

public GetSharedEnvironmentVariableInvokeArgs()
{
}
public static new GetSharedEnvironmentVariableInvokeArgs Empty => new GetSharedEnvironmentVariableInvokeArgs();
}


[OutputType]
public sealed class GetSharedEnvironmentVariableResult
{
/// <summary>
/// The ID of the Environment Variable.
/// </summary>
public readonly string Id;
/// <summary>
/// The name of the Environment Variable.
/// </summary>
public readonly string Key;
/// <summary>
/// The ID of the Vercel project.
/// </summary>
public readonly ImmutableArray<string> ProjectIds;
/// <summary>
/// Whether the Environment Variable is sensitive or not.
/// </summary>
public readonly bool Sensitive;
/// <summary>
/// The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
/// </summary>
public readonly ImmutableArray<string> Targets;
/// <summary>
/// The ID of the Vercel team. Shared environment variables require a team.
/// </summary>
public readonly string TeamId;
/// <summary>
/// The value of the Environment Variable.
/// </summary>
public readonly string Value;

[OutputConstructor]
private GetSharedEnvironmentVariableResult(
string id,

string key,

ImmutableArray<string> projectIds,

bool sensitive,

ImmutableArray<string> targets,

string teamId,

string value)
{
Id = id;
Key = key;
ProjectIds = projectIds;
Sensitive = sensitive;
Targets = targets;
TeamId = teamId;
Value = value;
}
}
}
2 changes: 1 addition & 1 deletion sdk/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/blang/semver v3.5.1+incompatible
github.com/pulumi/pulumi/sdk/v3 v3.105.0
github.com/pulumi/pulumi/sdk/v3 v3.107.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions sdk/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw=
github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k=
github.com/pulumi/pulumi/sdk/v3 v3.105.0 h1:OKEeubZigWyQVnZS6udnFnZHZ/8OWXuUYv9ir3OY+vs=
github.com/pulumi/pulumi/sdk/v3 v3.105.0/go.mod h1:Ml3rpGfyZlI4zQCG7LN2XDSmH4XUNYdyBwJ3yEr/OpI=
github.com/pulumi/pulumi/sdk/v3 v3.107.0 h1:bef+ayh9+4KkAqXih4EjlHfQXRY24NWPwWBIQhBxTjg=
github.com/pulumi/pulumi/sdk/v3 v3.107.0/go.mod h1:Ml3rpGfyZlI4zQCG7LN2XDSmH4XUNYdyBwJ3yEr/OpI=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
Expand Down
Loading