Skip to content

Commit

Permalink
Upgrade terraform-provider-scaleway to v2.24.0 (#99)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks
  • Loading branch information
dirien committed Jul 18, 2023
1 parent 6892d4e commit a226071
Show file tree
Hide file tree
Showing 191 changed files with 3,040 additions and 606 deletions.
170 changes: 154 additions & 16 deletions provider/cmd/pulumi-resource-scaleway/schema.json

Large diffs are not rendered by default.

19 changes: 8 additions & 11 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ module github.com/dirien/pulumi-scaleway/provider/v2

go 1.20

replace (
github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230327102345-3fa930f86570
github.com/scaleway/scaleway-sdk-go => github.com/scaleway/scaleway-sdk-go v1.0.0-beta.17.0.20230619154501-6a12f2ddaa47
)
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230710100801-03a71d0fca3d

require (
github.com/pulumi/pulumi-terraform-bridge/v3 v3.53.0
github.com/pulumi/pulumi/sdk/v3 v3.74.0
github.com/scaleway/terraform-provider-scaleway/v2 v2.23.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.54.0
github.com/pulumi/pulumi/sdk/v3 v3.75.0
github.com/scaleway/terraform-provider-scaleway/v2 v2.24.0
)

require (
Expand All @@ -21,7 +18,7 @@ require (
cloud.google.com/go/kms v1.10.1 // indirect
cloud.google.com/go/logging v1.7.0 // indirect
cloud.google.com/go/longrunning v0.4.1 // indirect
cloud.google.com/go/storage v1.28.1 // indirect
cloud.google.com/go/storage v1.29.0 // indirect
github.com/AlecAivazis/survey/v2 v2.0.5 // indirect
github.com/Azure/azure-sdk-for-go v66.0.0+incompatible // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 // indirect
Expand Down Expand Up @@ -192,7 +189,7 @@ require (
github.com/pulumi/pulumi-java/pkg v0.9.4 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect
github.com/pulumi/pulumi-yaml v1.1.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.74.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.75.0 // indirect
github.com/pulumi/schema-tools v0.1.2 // indirect
github.com/pulumi/terraform-diff-reader v0.0.2 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
Expand All @@ -202,7 +199,7 @@ require (
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
github.com/santhosh-tekuri/jsonschema/v5 v5.3.0 // indirect
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.17.0.20230626132518-b0dfa1defaaf // indirect
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.18.0.20230707094537-b73e88c770db // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/segmentio/encoding v0.3.6 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
Expand Down Expand Up @@ -238,7 +235,7 @@ require (
golang.org/x/sys v0.9.0 // indirect
golang.org/x/term v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
golang.org/x/time v0.1.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.8.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.114.0 // indirect
Expand Down
641 changes: 614 additions & 27 deletions provider/go.sum

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func Provider() tfbridge.ProviderInfo {
"scaleway_function_trigger": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "FunctionTrigger")},
"scaleway_lb_acl": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "LbAcl")},
"scaleway_vpc": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Vpc")},
"scaleway_container_trigger": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "ContainerTrigger")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
"scaleway_account_project": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "getAccountProject")},
Expand Down
205 changes: 205 additions & 0 deletions sdk/dotnet/ContainerTrigger.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
// *** 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 ediri.Scaleway
{
/// <summary>
/// Creates and manages Scaleway Container Triggers.
/// For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-triggers).
///
/// ## Examples
///
/// ### Basic
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Scaleway = ediri.Scaleway;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var main = new Scaleway.ContainerTrigger("main", new()
/// {
/// ContainerId = scaleway_container.Main.Id,
/// Sqs = new Scaleway.Inputs.ContainerTriggerSqsArgs
/// {
/// NamespaceId = scaleway_mnq_namespace.Main.Id,
/// Queue = "MyQueue",
/// ProjectId = scaleway_mnq_namespace.Main.Project_id,
/// Region = scaleway_mnq_namespace.Main.Region,
/// },
/// });
///
/// });
/// ```
///
/// ## Import
///
/// Container Triggers can be imported using the `{region}/{id}`, e.g. bash
///
/// ```sh
/// $ pulumi import scaleway:index/containerTrigger:ContainerTrigger main fr-par/11111111-1111-1111-1111-111111111111
/// ```
/// </summary>
[ScalewayResourceType("scaleway:index/containerTrigger:ContainerTrigger")]
public partial class ContainerTrigger : global::Pulumi.CustomResource
{
/// <summary>
/// The ID of the container to create a trigger for
/// </summary>
[Output("containerId")]
public Output<string> ContainerId { get; private set; } = null!;

/// <summary>
/// The description of the trigger.
/// </summary>
[Output("description")]
public Output<string?> Description { get; private set; } = null!;

/// <summary>
/// The unique name of the trigger. Default to a generated name.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// `region`). The region in which the namespace should be created.
/// </summary>
[Output("region")]
public Output<string> Region { get; private set; } = null!;

/// <summary>
/// The configuration of the Scaleway's SQS used by the trigger
/// </summary>
[Output("sqs")]
public Output<Outputs.ContainerTriggerSqs?> Sqs { get; private set; } = null!;


/// <summary>
/// Create a ContainerTrigger 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 ContainerTrigger(string name, ContainerTriggerArgs args, CustomResourceOptions? options = null)
: base("scaleway:index/containerTrigger:ContainerTrigger", name, args ?? new ContainerTriggerArgs(), MakeResourceOptions(options, ""))
{
}

private ContainerTrigger(string name, Input<string> id, ContainerTriggerState? state = null, CustomResourceOptions? options = null)
: base("scaleway:index/containerTrigger:ContainerTrigger", 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/dirien/pulumi-scaleway",
};
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 ContainerTrigger 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 ContainerTrigger Get(string name, Input<string> id, ContainerTriggerState? state = null, CustomResourceOptions? options = null)
{
return new ContainerTrigger(name, id, state, options);
}
}

public sealed class ContainerTriggerArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The ID of the container to create a trigger for
/// </summary>
[Input("containerId", required: true)]
public Input<string> ContainerId { get; set; } = null!;

/// <summary>
/// The description of the trigger.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// The unique name of the trigger. Default to a generated name.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// `region`). The region in which the namespace should be created.
/// </summary>
[Input("region")]
public Input<string>? Region { get; set; }

/// <summary>
/// The configuration of the Scaleway's SQS used by the trigger
/// </summary>
[Input("sqs")]
public Input<Inputs.ContainerTriggerSqsArgs>? Sqs { get; set; }

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

public sealed class ContainerTriggerState : global::Pulumi.ResourceArgs
{
/// <summary>
/// The ID of the container to create a trigger for
/// </summary>
[Input("containerId")]
public Input<string>? ContainerId { get; set; }

/// <summary>
/// The description of the trigger.
/// </summary>
[Input("description")]
public Input<string>? Description { get; set; }

/// <summary>
/// The unique name of the trigger. Default to a generated name.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// `region`). The region in which the namespace should be created.
/// </summary>
[Input("region")]
public Input<string>? Region { get; set; }

/// <summary>
/// The configuration of the Scaleway's SQS used by the trigger
/// </summary>
[Input("sqs")]
public Input<Inputs.ContainerTriggerSqsGetArgs>? Sqs { get; set; }

public ContainerTriggerState()
{
}
public static new ContainerTriggerState Empty => new ContainerTriggerState();
}
}
4 changes: 4 additions & 0 deletions sdk/dotnet/GetLbBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public sealed class GetLbBackendResult
public readonly int HealthCheckPort;
public readonly ImmutableArray<Outputs.GetLbBackendHealthCheckTcpResult> HealthCheckTcps;
public readonly string HealthCheckTimeout;
public readonly string HealthCheckTransientDelay;
/// <summary>
/// The provider-assigned unique ID for this managed resource.
/// </summary>
Expand Down Expand Up @@ -236,6 +237,8 @@ public sealed class GetLbBackendResult

string healthCheckTimeout,

string healthCheckTransientDelay,

string id,

bool ignoreSslServerVerify,
Expand Down Expand Up @@ -284,6 +287,7 @@ public sealed class GetLbBackendResult
HealthCheckPort = healthCheckPort;
HealthCheckTcps = healthCheckTcps;
HealthCheckTimeout = healthCheckTimeout;
HealthCheckTransientDelay = healthCheckTransientDelay;
Id = id;
IgnoreSslServerVerify = ignoreSslServerVerify;
LbId = lbId;
Expand Down
45 changes: 45 additions & 0 deletions sdk/dotnet/Inputs/ContainerTriggerSqsArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// *** 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 ediri.Scaleway.Inputs
{

public sealed class ContainerTriggerSqsArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// ID of the mnq namespace
/// </summary>
[Input("namespaceId", required: true)]
public Input<string> NamespaceId { get; set; } = null!;

/// <summary>
/// ID of the project that contain the mnq namespace, defaults to provider's project
/// </summary>
[Input("projectId")]
public Input<string>? ProjectId { get; set; }

/// <summary>
/// Name of the queue
/// </summary>
[Input("queue", required: true)]
public Input<string> Queue { get; set; } = null!;

/// <summary>
/// `region`). The region in which the namespace should be created.
/// </summary>
[Input("region")]
public Input<string>? Region { get; set; }

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

public sealed class ContainerTriggerSqsGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// ID of the mnq namespace
/// </summary>
[Input("namespaceId", required: true)]
public Input<string> NamespaceId { get; set; } = null!;

/// <summary>
/// ID of the project that contain the mnq namespace, defaults to provider's project
/// </summary>
[Input("projectId")]
public Input<string>? ProjectId { get; set; }

/// <summary>
/// Name of the queue
/// </summary>
[Input("queue", required: true)]
public Input<string> Queue { get; set; } = null!;

/// <summary>
/// `region`). The region in which the namespace should be created.
/// </summary>
[Input("region")]
public Input<string>? Region { get; set; }

public ContainerTriggerSqsGetArgs()
{
}
public static new ContainerTriggerSqsGetArgs Empty => new ContainerTriggerSqsGetArgs();
}
}
3 changes: 3 additions & 0 deletions sdk/dotnet/Inputs/RedisClusterPrivateNetworkArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ namespace ediri.Scaleway.Inputs

public sealed class RedisClusterPrivateNetworkArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The ID of the endpoint.
/// </summary>
[Input("endpointId")]
public Input<string>? EndpointId { get; set; }

Expand Down
Loading

0 comments on commit a226071

Please sign in to comment.