Skip to content

Commit

Permalink
Bump resources
Browse files Browse the repository at this point in the history
Signed-off-by: James Humphries <[email protected]>
  • Loading branch information
Yantrio committed Feb 23, 2024
1 parent 8b6c1ba commit e12bf48
Show file tree
Hide file tree
Showing 117 changed files with 9,279 additions and 4,195 deletions.
1,145 changes: 1,088 additions & 57 deletions provider/cmd/pulumi-resource-spacelift/schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ replace (
require (
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.1
github.com/pulumi/pulumi/sdk/v3 v3.91.0
github.com/spacelift-io/terraform-provider-spacelift v1.6.0
github.com/spacelift-io/terraform-provider-spacelift v1.9.3
)

require (
Expand Down Expand Up @@ -111,7 +111,7 @@ require (
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.5.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
Expand Down Expand Up @@ -221,7 +221,7 @@ require (
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/oauth2 v0.13.0 // indirect
golang.org/x/sync v0.4.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
Expand Down
11 changes: 6 additions & 5 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1574,8 +1574,9 @@ github.com/hashicorp/go-plugin v1.5.1 h1:oGm7cWBaYIp3lJpx1RUEfLWophprE2EV/KUeqBY
github.com/hashicorp/go-plugin v1.5.1/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4=
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
github.com/hashicorp/go-retryablehttp v0.7.1 h1:sUiuQAnLlbvmExtFQs72iFW/HXeUn8Z1aJLQ4LJJbTQ=
github.com/hashicorp/go-retryablehttp v0.7.1/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY=
github.com/hashicorp/go-retryablehttp v0.7.4 h1:ZQgVdpTdAL7WpMIwLzCfbalOcSUdkDZnpUv3/+BxzFA=
github.com/hashicorp/go-retryablehttp v0.7.4/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc=
github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8=
Expand Down Expand Up @@ -2252,8 +2253,8 @@ github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE
github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY=
github.com/spacelift-io/graphql v1.1.0 h1:LHVbHHPev1xCBAgJqVoo2t8XPgck4plq7TxlumVR+3Y=
github.com/spacelift-io/graphql v1.1.0/go.mod h1:38Gellz6DbdwPcYHLHByFDScgORYU7pVCOE7rFCg3bg=
github.com/spacelift-io/terraform-provider-spacelift v1.6.0 h1:nCDQho6DnQ6DluQGl8AUiUaumUeYGktc13Dylw6Ljfk=
github.com/spacelift-io/terraform-provider-spacelift v1.6.0/go.mod h1:wjWvyoM6Y8sUwxC/j1tMXekBxXYheh1yj/RYv1GZszA=
github.com/spacelift-io/terraform-provider-spacelift v1.9.3 h1:jneOBNVWvd9wr6GmsB9/WUUwxTUMgI+j5PKF5t9lJgU=
github.com/spacelift-io/terraform-provider-spacelift v1.9.3/go.mod h1:DfjA8XAXSDn1q9a2e3WGn6Uqv0R23/frf99TL12ZpkE=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk=
Expand Down Expand Up @@ -2746,8 +2747,8 @@ golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec
golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I=
golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw=
golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4=
golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8=
golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE=
golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY=
golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
3 changes: 2 additions & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package spacelift

import (
"fmt"

"path/filepath"

"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
Expand Down Expand Up @@ -94,6 +93,7 @@ func Provider() tfbridge.ProviderInfo {
},
PreConfigureCallback: preConfigureCallback,
Resources: map[string]*tfbridge.ResourceInfo{
"spacelift_audit_trail_webhook": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AuditTrailWebhook")},
"spacelift_aws_integration": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AwsIntegration")},
"spacelift_aws_integration_attachment": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AwsIntegrationAttachment")},
"spacelift_aws_role": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "AwsRole")},
Expand All @@ -115,6 +115,7 @@ func Provider() tfbridge.ProviderInfo {
"spacelift_run": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Run")},
"spacelift_scheduled_delete_stack": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "ScheduledDeleteTask")},
"spacelift_scheduled_task": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "ScheduledTask")},
"spacelift_security_email": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "SecurityEmail")},
"spacelift_space": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Space")},
"spacelift_stack": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Stack"), Fields: map[string]*tfbridge.SchemaInfo{
"pulumi": {
Expand Down
194 changes: 194 additions & 0 deletions sdk/dotnet/AuditTrailWebhook.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
// *** 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.Spacelift
{
/// <summary>
/// `spacelift.AuditTrailWebhook` represents a webhook endpoint to which Spacelift sends POST requests about audit events.
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Spacelift = Pulumi.Spacelift;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var example = new Spacelift.AuditTrailWebhook("example", new()
/// {
/// Enabled = true,
/// Endpoint = "https://example.com",
/// Secret = "mysecretkey",
/// });
///
/// });
/// ```
/// </summary>
[SpaceliftResourceType("spacelift:index/auditTrailWebhook:AuditTrailWebhook")]
public partial class AuditTrailWebhook : global::Pulumi.CustomResource
{
/// <summary>
/// `enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.
/// </summary>
[Output("enabled")]
public Output<bool> Enabled { get; private set; } = null!;

/// <summary>
/// `endpoint` is the URL to which Spacelift will send POST requests about audit events.
/// </summary>
[Output("endpoint")]
public Output<string> Endpoint { get; private set; } = null!;

/// <summary>
/// `include_runs` determines whether the webhook should include information about the run that triggered the event.
/// </summary>
[Output("includeRuns")]
public Output<bool?> IncludeRuns { get; private set; } = null!;

/// <summary>
/// `secret` is a secret that Spacelift will send with the request
/// </summary>
[Output("secret")]
public Output<string> Secret { get; private set; } = null!;


/// <summary>
/// Create a AuditTrailWebhook 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 AuditTrailWebhook(string name, AuditTrailWebhookArgs args, CustomResourceOptions? options = null)
: base("spacelift:index/auditTrailWebhook:AuditTrailWebhook", name, args ?? new AuditTrailWebhookArgs(), MakeResourceOptions(options, ""))
{
}

private AuditTrailWebhook(string name, Input<string> id, AuditTrailWebhookState? state = null, CustomResourceOptions? options = null)
: base("spacelift:index/auditTrailWebhook:AuditTrailWebhook", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://downloads.spacelift.io/pulumi-plugins",
AdditionalSecretOutputs =
{
"secret",
},
};
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 AuditTrailWebhook 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 AuditTrailWebhook Get(string name, Input<string> id, AuditTrailWebhookState? state = null, CustomResourceOptions? options = null)
{
return new AuditTrailWebhook(name, id, state, options);
}
}

public sealed class AuditTrailWebhookArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// `enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.
/// </summary>
[Input("enabled", required: true)]
public Input<bool> Enabled { get; set; } = null!;

/// <summary>
/// `endpoint` is the URL to which Spacelift will send POST requests about audit events.
/// </summary>
[Input("endpoint", required: true)]
public Input<string> Endpoint { get; set; } = null!;

/// <summary>
/// `include_runs` determines whether the webhook should include information about the run that triggered the event.
/// </summary>
[Input("includeRuns")]
public Input<bool>? IncludeRuns { get; set; }

[Input("secret", required: true)]
private Input<string>? _secret;

/// <summary>
/// `secret` is a secret that Spacelift will send with the request
/// </summary>
public Input<string>? Secret
{
get => _secret;
set
{
var emptySecret = Output.CreateSecret(0);
_secret = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

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

public sealed class AuditTrailWebhookState : global::Pulumi.ResourceArgs
{
/// <summary>
/// `enabled` determines whether the webhook is enabled. If it is not, Spacelift will not send any requests to the endpoint.
/// </summary>
[Input("enabled")]
public Input<bool>? Enabled { get; set; }

/// <summary>
/// `endpoint` is the URL to which Spacelift will send POST requests about audit events.
/// </summary>
[Input("endpoint")]
public Input<string>? Endpoint { get; set; }

/// <summary>
/// `include_runs` determines whether the webhook should include information about the run that triggered the event.
/// </summary>
[Input("includeRuns")]
public Input<bool>? IncludeRuns { get; set; }

[Input("secret")]
private Input<string>? _secret;

/// <summary>
/// `secret` is a secret that Spacelift will send with the request
/// </summary>
public Input<string>? Secret
{
get => _secret;
set
{
var emptySecret = Output.CreateSecret(0);
_secret = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
}
}

public AuditTrailWebhookState()
{
}
public static new AuditTrailWebhookState Empty => new AuditTrailWebhookState();
}
}
Loading

0 comments on commit e12bf48

Please sign in to comment.