Skip to content

Commit

Permalink
Upgrade terraform-provider-vercel to v1.11.0 (#192)
Browse files Browse the repository at this point in the history
Co-authored-by: omercnet <runner@fv-az1245-978.44uquw3knzoenloncamig1c14h.dx.internal.cloudapp.net>
  • Loading branch information
github-actions[bot] and omercnet authored May 23, 2024
1 parent 1873ce7 commit b8b959e
Show file tree
Hide file tree
Showing 25 changed files with 1,001 additions and 4 deletions.
14 changes: 14 additions & 0 deletions provider/cmd/pulumi-resource-vercel/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
}
}
},
"options_allowlist": {
"fields": {
"paths": {
"maxItemsOne": false
}
}
},
"trusted_ips": {
"fields": {
"addresses": {
Expand Down Expand Up @@ -200,6 +207,13 @@
}
}
},
"options_allowlist": {
"fields": {
"paths": {
"maxItemsOne": false
}
}
},
"trusted_ips": {
"fields": {
"addresses": {
Expand Down
80 changes: 80 additions & 0 deletions provider/cmd/pulumi-resource-vercel/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,33 @@
}
}
},
"vercel:index/ProjectOptionsAllowlist:ProjectOptionsAllowlist": {
"properties": {
"paths": {
"type": "array",
"items": {
"$ref": "#/types/vercel:index/ProjectOptionsAllowlistPath:ProjectOptionsAllowlistPath"
},
"description": "The allowed paths for the OPTIONS Allowlist. Incoming requests will bypass Deployment Protection if they have the method `OPTIONS` and **start with** one of the path values.\n"
}
},
"type": "object",
"required": [
"paths"
]
},
"vercel:index/ProjectOptionsAllowlistPath:ProjectOptionsAllowlistPath": {
"properties": {
"value": {
"type": "string",
"description": "The path prefix to compare with the incoming request path.\n"
}
},
"type": "object",
"required": [
"value"
]
},
"vercel:index/ProjectPasswordProtection:ProjectPasswordProtection": {
"properties": {
"deploymentType": {
Expand Down Expand Up @@ -476,6 +503,42 @@
}
}
},
"vercel:index/getProjectOptionsAllowlist:getProjectOptionsAllowlist": {
"properties": {
"paths": {
"type": "array",
"items": {
"$ref": "#/types/vercel:index/getProjectOptionsAllowlistPath:getProjectOptionsAllowlistPath"
},
"description": "The allowed paths for the OPTIONS Allowlist. Incoming requests will bypass Deployment Protection if they have the method `OPTIONS` and **start with** one of the path values.\n"
}
},
"type": "object",
"required": [
"paths"
],
"language": {
"nodejs": {
"requiredInputs": []
}
}
},
"vercel:index/getProjectOptionsAllowlistPath:getProjectOptionsAllowlistPath": {
"properties": {
"value": {
"type": "string"
}
},
"type": "object",
"required": [
"value"
],
"language": {
"nodejs": {
"requiredInputs": []
}
}
},
"vercel:index/getProjectPasswordProtection:getProjectPasswordProtection": {
"properties": {
"deploymentType": {
Expand Down Expand Up @@ -1423,6 +1486,10 @@
"type": "string",
"description": "The desired name for the project.\n"
},
"optionsAllowlist": {
"$ref": "#/types/vercel:index/ProjectOptionsAllowlist:ProjectOptionsAllowlist",
"description": "Disable Deployment Protection for CORS preflight `OPTIONS` requests for a list of paths.\n"
},
"outputDirectory": {
"type": "string",
"description": "The output directory of the project. If omitted, this value will be automatically detected.\n"
Expand Down Expand Up @@ -1559,6 +1626,10 @@
"type": "string",
"description": "The desired name for the project.\n"
},
"optionsAllowlist": {
"$ref": "#/types/vercel:index/ProjectOptionsAllowlist:ProjectOptionsAllowlist",
"description": "Disable Deployment Protection for CORS preflight `OPTIONS` requests for a list of paths.\n"
},
"outputDirectory": {
"type": "string",
"description": "The output directory of the project. If omitted, this value will be automatically detected.\n"
Expand Down Expand Up @@ -1678,6 +1749,10 @@
"type": "string",
"description": "The desired name for the project.\n"
},
"optionsAllowlist": {
"$ref": "#/types/vercel:index/ProjectOptionsAllowlist:ProjectOptionsAllowlist",
"description": "Disable Deployment Protection for CORS preflight `OPTIONS` requests for a list of paths.\n"
},
"outputDirectory": {
"type": "string",
"description": "The output directory of the project. If omitted, this value will be automatically detected.\n"
Expand Down Expand Up @@ -2839,6 +2914,10 @@
"type": "string",
"description": "The name of the project.\n"
},
"optionsAllowlist": {
"$ref": "#/types/vercel:index/getProjectOptionsAllowlist:getProjectOptionsAllowlist",
"description": "Disable Deployment Protection for CORS preflight `OPTIONS` requests for a list of paths.\n"
},
"outputDirectory": {
"type": "string",
"description": "The output directory of the project. When null is used this value will be automatically detected.\n"
Expand Down Expand Up @@ -2907,6 +2986,7 @@
"ignoreCommand",
"installCommand",
"name",
"optionsAllowlist",
"outputDirectory",
"passwordProtection",
"previewComments",
Expand Down
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.35.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.82.0
github.com/vercel/terraform-provider-vercel v1.10.1
github.com/vercel/terraform-provider-vercel v1.11.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 @@ -1866,8 +1866,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.10.1 h1:f6xUz3UO8X9APi8Y8R4rhvde2id5//0Igu6rEtDcKIM=
github.com/vercel/terraform-provider-vercel v1.10.1/go.mod h1:eBu7BcowyyLXlIqcy2KLpGqytaKA/rCNbCVJ5YqvuvQ=
github.com/vercel/terraform-provider-vercel v1.11.0 h1:iruy38rk8hyOdMgnRnaaSXs+FPsQQmWmSf6YBWoVF9Y=
github.com/vercel/terraform-provider-vercel v1.11.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
7 changes: 7 additions & 0 deletions sdk/dotnet/GetProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ public sealed class GetProjectResult
/// </summary>
public readonly string Name;
/// <summary>
/// Disable Deployment Protection for CORS preflight `OPTIONS` requests for a list of paths.
/// </summary>
public readonly Outputs.GetProjectOptionsAllowlistResult OptionsAllowlist;
/// <summary>
/// The output directory of the project. When null is used this value will be automatically detected.
/// </summary>
public readonly string OutputDirectory;
Expand Down Expand Up @@ -275,6 +279,8 @@ private GetProjectResult(

string name,

Outputs.GetProjectOptionsAllowlistResult optionsAllowlist,

string outputDirectory,

Outputs.GetProjectPasswordProtectionResult passwordProtection,
Expand Down Expand Up @@ -316,6 +322,7 @@ private GetProjectResult(
IgnoreCommand = ignoreCommand;
InstallCommand = installCommand;
Name = name;
OptionsAllowlist = optionsAllowlist;
OutputDirectory = outputDirectory;
PasswordProtection = passwordProtection;
PreviewComments = previewComments;
Expand Down
33 changes: 33 additions & 0 deletions sdk/dotnet/Inputs/ProjectOptionsAllowlistArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// *** 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.Inputs
{

public sealed class ProjectOptionsAllowlistArgs : global::Pulumi.ResourceArgs
{
[Input("paths", required: true)]
private InputList<Inputs.ProjectOptionsAllowlistPathArgs>? _paths;

/// <summary>
/// The allowed paths for the OPTIONS Allowlist. Incoming requests will bypass Deployment Protection if they have the method `OPTIONS` and **start with** one of the path values.
/// </summary>
public InputList<Inputs.ProjectOptionsAllowlistPathArgs> Paths
{
get => _paths ?? (_paths = new InputList<Inputs.ProjectOptionsAllowlistPathArgs>());
set => _paths = value;
}

public ProjectOptionsAllowlistArgs()
{
}
public static new ProjectOptionsAllowlistArgs Empty => new ProjectOptionsAllowlistArgs();
}
}
33 changes: 33 additions & 0 deletions sdk/dotnet/Inputs/ProjectOptionsAllowlistGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// *** 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.Inputs
{

public sealed class ProjectOptionsAllowlistGetArgs : global::Pulumi.ResourceArgs
{
[Input("paths", required: true)]
private InputList<Inputs.ProjectOptionsAllowlistPathGetArgs>? _paths;

/// <summary>
/// The allowed paths for the OPTIONS Allowlist. Incoming requests will bypass Deployment Protection if they have the method `OPTIONS` and **start with** one of the path values.
/// </summary>
public InputList<Inputs.ProjectOptionsAllowlistPathGetArgs> Paths
{
get => _paths ?? (_paths = new InputList<Inputs.ProjectOptionsAllowlistPathGetArgs>());
set => _paths = value;
}

public ProjectOptionsAllowlistGetArgs()
{
}
public static new ProjectOptionsAllowlistGetArgs Empty => new ProjectOptionsAllowlistGetArgs();
}
}
27 changes: 27 additions & 0 deletions sdk/dotnet/Inputs/ProjectOptionsAllowlistPathArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// *** 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.Inputs
{

public sealed class ProjectOptionsAllowlistPathArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The path prefix to compare with the incoming request path.
/// </summary>
[Input("value", required: true)]
public Input<string> Value { get; set; } = null!;

public ProjectOptionsAllowlistPathArgs()
{
}
public static new ProjectOptionsAllowlistPathArgs Empty => new ProjectOptionsAllowlistPathArgs();
}
}
27 changes: 27 additions & 0 deletions sdk/dotnet/Inputs/ProjectOptionsAllowlistPathGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// *** 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.Inputs
{

public sealed class ProjectOptionsAllowlistPathGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The path prefix to compare with the incoming request path.
/// </summary>
[Input("value", required: true)]
public Input<string> Value { get; set; } = null!;

public ProjectOptionsAllowlistPathGetArgs()
{
}
public static new ProjectOptionsAllowlistPathGetArgs Empty => new ProjectOptionsAllowlistPathGetArgs();
}
}
25 changes: 25 additions & 0 deletions sdk/dotnet/Outputs/GetProjectOptionsAllowlistPathResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// *** 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.Outputs
{

[OutputType]
public sealed class GetProjectOptionsAllowlistPathResult
{
public readonly string Value;

[OutputConstructor]
private GetProjectOptionsAllowlistPathResult(string value)
{
Value = value;
}
}
}
28 changes: 28 additions & 0 deletions sdk/dotnet/Outputs/GetProjectOptionsAllowlistResult.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// *** 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.Outputs
{

[OutputType]
public sealed class GetProjectOptionsAllowlistResult
{
/// <summary>
/// The allowed paths for the OPTIONS Allowlist. Incoming requests will bypass Deployment Protection if they have the method `OPTIONS` and **start with** one of the path values.
/// </summary>
public readonly ImmutableArray<Outputs.GetProjectOptionsAllowlistPathResult> Paths;

[OutputConstructor]
private GetProjectOptionsAllowlistResult(ImmutableArray<Outputs.GetProjectOptionsAllowlistPathResult> paths)
{
Paths = paths;
}
}
}
Loading

0 comments on commit b8b959e

Please sign in to comment.