Skip to content

Commit

Permalink
Upgrade terraform-provider-vercel to v1.10.0 (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 5, 2024
1 parent 03d0fb2 commit c9d2952
Show file tree
Hide file tree
Showing 38 changed files with 3,538 additions and 40 deletions.
23 changes: 23 additions & 0 deletions provider/cmd/pulumi-resource-vercel/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"current": "vercel:index/alias:Alias",
"majorVersion": 1
},
"vercel_attack_challenge_mode": {
"current": "vercel:index/attackChallengeMode:AttackChallengeMode",
"majorVersion": 1
},
"vercel_deployment": {
"current": "vercel:index/deployment:Deployment",
"majorVersion": 1,
Expand Down Expand Up @@ -89,6 +93,10 @@
}
}
},
"vercel_project_function_cpu": {
"current": "vercel:index/projectFunctionCpu:ProjectFunctionCpu",
"majorVersion": 1
},
"vercel_shared_environment_variable": {
"current": "vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable",
"majorVersion": 1,
Expand Down Expand Up @@ -119,6 +127,10 @@
"current": "vercel:index/getAlias:getAlias",
"majorVersion": 1
},
"vercel_attack_challenge_mode": {
"current": "vercel:index/getAttackChallengeMode:getAttackChallengeMode",
"majorVersion": 1
},
"vercel_deployment": {
"current": "vercel:index/getDeployment:getDeployment",
"majorVersion": 1,
Expand Down Expand Up @@ -181,6 +193,13 @@
}
}
},
"git_repository": {
"fields": {
"deploy_hooks": {
"maxItemsOne": false
}
}
},
"trusted_ips": {
"fields": {
"addresses": {
Expand All @@ -194,6 +213,10 @@
"current": "vercel:index/getProjectDirectory:getProjectDirectory",
"majorVersion": 1
},
"vercel_project_function_cpu": {
"current": "vercel:index/getProjectFunctionCpu:getProjectFunctionCpu",
"majorVersion": 1
},
"vercel_shared_environment_variable": {
"current": "vercel:index/getSharedEnvironmentVariable:getSharedEnvironmentVariable",
"majorVersion": 1,
Expand Down
259 changes: 256 additions & 3 deletions provider/cmd/pulumi-resource-vercel/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 @@ -7,7 +7,7 @@ toolchain go1.21.7
require (
github.com/pulumi/pulumi-terraform-bridge/pf v0.34.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.81.0
github.com/vercel/terraform-provider-vercel v1.9.0
github.com/vercel/terraform-provider-vercel v1.10.0
golang.org/x/text v0.14.0
)

Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1865,8 +1865,8 @@ github.com/urfave/cli v0.0.0-20171014202726-7bc6a0acffa5/go.mod h1:70zkFmudgCuE/
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
github.com/vercel/terraform-provider-vercel v1.9.0 h1:QHx/bhpDo8HZGV+dYo1tIDwjuXr5Rc8UvEkNKpDn5Q0=
github.com/vercel/terraform-provider-vercel v1.9.0/go.mod h1:eBu7BcowyyLXlIqcy2KLpGqytaKA/rCNbCVJ5YqvuvQ=
github.com/vercel/terraform-provider-vercel v1.10.0 h1:X/k6Pbs9UJLaXhmA3cabAknnmiBqgYKeUtMcR9lxY64=
github.com/vercel/terraform-provider-vercel v1.10.0/go.mod h1:eBu7BcowyyLXlIqcy2KLpGqytaKA/rCNbCVJ5YqvuvQ=
github.com/vishvananda/netlink v0.0.0-20181108222139-023a6dafdcdf/go.mod h1:+SR5DhBJrl6ZM7CoCKvpw5BKroDKQ+PJqOg65H/2ktk=
github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE=
github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhgX83tXhKS2B/PRMpOho=
Expand Down
168 changes: 168 additions & 0 deletions sdk/dotnet/AttackChallengeMode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
// *** 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
{
/// <summary>
/// Provides an Attack Challenge Mode resource.
///
/// Attack Challenge Mode prevent malicious traffic by showing a verification challenge for every visitor.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Vercel = Pulumiverse.Vercel;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var exampleProject = new Vercel.Project("exampleProject");
///
/// var exampleAttackChallengeMode = new Vercel.AttackChallengeMode("exampleAttackChallengeMode", new()
/// {
/// ProjectId = exampleProject.Id,
/// Enabled = true,
/// });
///
/// });
/// ```
///
/// ## Import
///
/// You can import via the team_id and project_id.
///
/// - team_id can be found in the team `settings` tab in the Vercel UI.
///
/// - project_id can be found in the project `settings` tab in the Vercel UI.
///
/// ```sh
/// $ pulumi import vercel:index/attackChallengeMode:AttackChallengeMode example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
/// ```
/// </summary>
[VercelResourceType("vercel:index/attackChallengeMode:AttackChallengeMode")]
public partial class AttackChallengeMode : global::Pulumi.CustomResource
{
/// <summary>
/// Whether Attack Challenge Mode is enabled or not.
/// </summary>
[Output("enabled")]
public Output<bool> Enabled { get; private set; } = null!;

/// <summary>
/// The ID of the Project to adjust the CPU for.
/// </summary>
[Output("projectId")]
public Output<string> ProjectId { get; private set; } = null!;

/// <summary>
/// The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
/// </summary>
[Output("teamId")]
public Output<string> TeamId { get; private set; } = null!;


/// <summary>
/// Create a AttackChallengeMode 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 AttackChallengeMode(string name, AttackChallengeModeArgs args, CustomResourceOptions? options = null)
: base("vercel:index/attackChallengeMode:AttackChallengeMode", name, args ?? new AttackChallengeModeArgs(), MakeResourceOptions(options, ""))
{
}

private AttackChallengeMode(string name, Input<string> id, AttackChallengeModeState? state = null, CustomResourceOptions? options = null)
: base("vercel:index/attackChallengeMode:AttackChallengeMode", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/pulumiverse",
};
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 AttackChallengeMode 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 AttackChallengeMode Get(string name, Input<string> id, AttackChallengeModeState? state = null, CustomResourceOptions? options = null)
{
return new AttackChallengeMode(name, id, state, options);
}
}

public sealed class AttackChallengeModeArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// Whether Attack Challenge Mode is enabled or not.
/// </summary>
[Input("enabled", required: true)]
public Input<bool> Enabled { get; set; } = null!;

/// <summary>
/// The ID of the Project to adjust the CPU for.
/// </summary>
[Input("projectId", required: true)]
public Input<string> ProjectId { get; set; } = null!;

/// <summary>
/// The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
/// </summary>
[Input("teamId")]
public Input<string>? TeamId { get; set; }

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

public sealed class AttackChallengeModeState : global::Pulumi.ResourceArgs
{
/// <summary>
/// Whether Attack Challenge Mode is enabled or not.
/// </summary>
[Input("enabled")]
public Input<bool>? Enabled { get; set; }

/// <summary>
/// The ID of the Project to adjust the CPU for.
/// </summary>
[Input("projectId")]
public Input<string>? ProjectId { get; set; }

/// <summary>
/// The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
/// </summary>
[Input("teamId")]
public Input<string>? TeamId { get; set; }

public AttackChallengeModeState()
{
}
public static new AttackChallengeModeState Empty => new AttackChallengeModeState();
}
}
4 changes: 2 additions & 2 deletions sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public void Set(T value)

private static readonly __Value<string?> _team = new __Value<string?>(() => __config.Get("team"));
/// <summary>
/// The default Vercel Team to use when creating resources. This can be provided as either a team slug, or team ID. The slug
/// and ID are both available from the Team Settings page in the Vercel dashboard.
/// The default Vercel Team to use when creating resources or reading data sources. This can be provided as either a team
/// slug, or team ID. The slug and ID are both available from the Team Settings page in the Vercel dashboard.
/// </summary>
public static string? Team
{
Expand Down

0 comments on commit c9d2952

Please sign in to comment.