Skip to content

Commit

Permalink
Upgrade terraform-provider-ovh to v0.48.0 (#196)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks
  • Loading branch information
scraly authored Aug 7, 2024
1 parent f1494fc commit ea72e75
Show file tree
Hide file tree
Showing 42 changed files with 5,331 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .pulumi-java-gen.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.0
0.13.0
5 changes: 5 additions & 0 deletions provider/cmd/pulumi-resource-ovh/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
"ovh:CloudProject/database:Database": 0,
"ovh:CloudProject/failoverIpAttach:FailoverIpAttach": 0,
"ovh:CloudProject/gateway:Gateway": 0,
"ovh:CloudProject/gatewayInterface:GatewayInterface": 1,
"ovh:CloudProject/kube:Kube": 0,
"ovh:CloudProject/kubeIpRestrictions:KubeIpRestrictions": 0,
"ovh:CloudProject/kubeNodePool:KubeNodePool": 0,
"ovh:CloudProject/kubeOidc:KubeOidc": 0,
"ovh:CloudProject/networkPrivate:NetworkPrivate": 0,
"ovh:CloudProject/networkPrivateSubnet:NetworkPrivateSubnet": 0,
"ovh:CloudProject/project:Project": 0,
"ovh:CloudProject/regionLoadBalancerLogSubscription:RegionLoadBalancerLogSubscription": 0,
"ovh:CloudProject/regionStoragePresign:RegionStoragePresign": 0,
"ovh:CloudProject/s3Credential:S3Credential": 0,
"ovh:CloudProject/s3Policy:S3Policy": 0,
Expand Down Expand Up @@ -109,6 +111,7 @@
"ovh:CloudProject/getContainerRegistryOIDC:getContainerRegistryOIDC": 0,
"ovh:CloudProject/getContainerRegistryUsers:getContainerRegistryUsers": 0,
"ovh:CloudProject/getFailoverIpAttach:getFailoverIpAttach": 0,
"ovh:CloudProject/getGatewayInterface:getGatewayInterface": 1,
"ovh:CloudProject/getKube:getKube": 0,
"ovh:CloudProject/getKubeIpRestrictions:getKubeIpRestrictions": 0,
"ovh:CloudProject/getKubeNodePool:getKubeNodePool": 0,
Expand All @@ -126,6 +129,8 @@
"ovh:CloudProject/getOpenSearchUser:getOpenSearchUser": 0,
"ovh:CloudProject/getRedisUser:getRedisUser": 0,
"ovh:CloudProject/getRegion:getRegion": 0,
"ovh:CloudProject/getRegionLoadBalancerLogSubscription:getRegionLoadBalancerLogSubscription": 0,
"ovh:CloudProject/getRegionLoadBalancerLogSubscriptions:getRegionLoadBalancerLogSubscriptions": 0,
"ovh:CloudProject/getRegions:getRegions": 0,
"ovh:CloudProject/getUser:getUser": 0,
"ovh:CloudProject/getUserS3Credential:getUserS3Credential": 0,
Expand Down
498 changes: 496 additions & 2 deletions provider/cmd/pulumi-resource-ovh/schema.json

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ go 1.21.12
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10

require (
github.com/ovh/terraform-provider-ovh v0.47.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.40.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.87.0
github.com/pulumi/pulumi/sdk/v3 v3.124.0
github.com/ovh/terraform-provider-ovh v0.48.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.41.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0
github.com/pulumi/pulumi/sdk/v3 v3.126.0
)

require (
Expand Down Expand Up @@ -120,7 +120,7 @@ require (
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.20.0 // indirect
github.com/hashicorp/terraform-json v0.21.0 // indirect
github.com/hashicorp/terraform-plugin-framework v1.10.0 // indirect
github.com/hashicorp/terraform-plugin-framework v1.11.0 // indirect
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
Expand Down Expand Up @@ -181,7 +181,7 @@ require (
github.com/pulumi/pulumi-java/pkg v0.11.0 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect
github.com/pulumi/pulumi-yaml v1.9.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.124.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.126.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 Down
28 changes: 14 additions & 14 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1651,8 +1651,8 @@ github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8j
github.com/hashicorp/terraform-json v0.19.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk=
github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U=
github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk=
github.com/hashicorp/terraform-plugin-framework v1.10.0 h1:xXhICE2Fns1RYZxEQebwkB2+kXouLC932Li9qelozrc=
github.com/hashicorp/terraform-plugin-framework v1.10.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework v1.11.0 h1:M7+9zBArexHFXDx/pKTxjE6n/2UCXY6b8FIq9ZYhwfE=
github.com/hashicorp/terraform-plugin-framework v1.11.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc=
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg=
github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE=
Expand Down Expand Up @@ -1881,8 +1881,8 @@ github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+
github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc=
github.com/ovh/go-ovh v1.6.0 h1:ixLOwxQdzYDx296sXcgS35TOPEahJkpjMGtzPadCjQI=
github.com/ovh/go-ovh v1.6.0/go.mod h1:cTVDnl94z4tl8pP1uZ/8jlVxntjSIf09bNcQ5TJSC7c=
github.com/ovh/terraform-provider-ovh v0.47.0 h1:ViWQSu8/TN1knNnLDGoSorhOITHX7CYNOWCkb5XYUfI=
github.com/ovh/terraform-provider-ovh v0.47.0/go.mod h1:9W2xVNvXTS4twSTs4VIQg489bahwSHGMIqYbYUrktOI=
github.com/ovh/terraform-provider-ovh v0.48.0 h1:pFiW+ZdaBA7KLRkHHYo8FjwN2+Wome4tC83XE99ynQk=
github.com/ovh/terraform-provider-ovh v0.48.0/go.mod h1:9W2xVNvXTS4twSTs4VIQg489bahwSHGMIqYbYUrktOI=
github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU=
github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M=
github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 h1:LoCV5cscNVWyK5ChN/uCoIFJz8jZD63VQiGJIRgr6uo=
Expand Down Expand Up @@ -1920,22 +1920,22 @@ github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs=
github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c=
github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA=
github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY=
github.com/pulumi/providertest v0.0.13 h1:9CAaoviOTuCVHDI15h3znXa5JsKYtXLYHIIdxOCzo3Y=
github.com/pulumi/providertest v0.0.13/go.mod h1:REAoaN+hGOtdWJGirfWYqcSjCejlbGfzyVTUuemJTuE=
github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8=
github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0=
github.com/pulumi/pulumi-java/pkg v0.11.0 h1:Jw9gBvyfmfOMq/EkYDm9+zGPxsDAA8jfeMpHmtZ+1oA=
github.com/pulumi/pulumi-java/pkg v0.11.0/go.mod h1:sXAk25P47AQVQL6ilAbFmRNgZykC7og/+87ihnqzFTc=
github.com/pulumi/pulumi-terraform-bridge/pf v0.40.0 h1:igJrGpUnN53vi0ORXpoomvaTkmjJDmYIFY9CpKKJJxI=
github.com/pulumi/pulumi-terraform-bridge/pf v0.40.0/go.mod h1:zdR+52XBu6oYOUUy8DpsWhsaMnf9f6yhfXwxukVtYmM=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.87.0 h1:XgsT5w1KHhjP3ChPC1eVY6A47cdg1EPq6JzbQruvUHU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.87.0/go.mod h1:468sr8NULk9QEKwVlMLYy3P+gtWjtgaxLJY1F7fTsak=
github.com/pulumi/pulumi-terraform-bridge/pf v0.41.0 h1:nSXm/mV699EtAXLoA/XrDkFyoyWPFyfcMqk/SGCuH2M=
github.com/pulumi/pulumi-terraform-bridge/pf v0.41.0/go.mod h1:vGN8Ab6u/dxRE1Byqo6dXQE/loVbe9hYqiiHqm00hV4=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0 h1:0W2Y3Fk7VAWHpjD3FwzVnqWo7g1hD+96C0YDobMnvDU=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0/go.mod h1:QSDiqiCMMbfzrsp3oyRPWgSVE/dkVH5ujxoFappqjdo=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw=
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY=
github.com/pulumi/pulumi-yaml v1.9.1 h1:JPeI80M23SPactxgnCFS1casZlSr7ZhAXwSx4H55QQ4=
github.com/pulumi/pulumi-yaml v1.9.1/go.mod h1:OH0R34yJxA5u6zjYBN4JXcWoEvfkRoOVWi6viu8buoA=
github.com/pulumi/pulumi/pkg/v3 v3.124.0 h1:JgUePx6Ga9geBJ1dku6K8GXTrsBYzXMhKIsk+cxeKo8=
github.com/pulumi/pulumi/pkg/v3 v3.124.0/go.mod h1:/XUDPNoIikS3lcQe1HpGuKs73cO5HqBvOdxXFeC3UHM=
github.com/pulumi/pulumi/sdk/v3 v3.124.0 h1:f9Rb2AhLSaacKTaBPbKXPCfviHxTuhEXafhT4E095Y0=
github.com/pulumi/pulumi/sdk/v3 v3.124.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY=
github.com/pulumi/pulumi/pkg/v3 v3.126.0 h1:XaZU1ehjHN2I5ihkfwxK/UFMDiCDM9FSt2TBnbldAx4=
github.com/pulumi/pulumi/pkg/v3 v3.126.0/go.mod h1:1P4/oK9zceOJUm48QQl/TqjDN68lfsdnTR1FITTFddw=
github.com/pulumi/pulumi/sdk/v3 v3.126.0 h1:6GQVhwG2jgnG7wjRiWgrq0/sU39onctAiBcvTlqb20s=
github.com/pulumi/pulumi/sdk/v3 v3.126.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY=
github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo=
github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k=
github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI=
Expand Down
15 changes: 15 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ func Provider() tfbridge.ProviderInfo {
"ovh_cloud_project_gateway": {
Tok: ovhResource(cloudProjectMod, "Gateway"),
},
"ovh_cloud_project_gateway_interface": {
Tok: ovhResource(cloudProjectMod, "GatewayInterface"),
},
"ovh_cloud_project_kube": {
Tok: ovhResource(cloudProjectMod, "Kube"),
},
Expand All @@ -251,6 +254,9 @@ func Provider() tfbridge.ProviderInfo {
"ovh_cloud_project_region_storage_presign": {
Tok: ovhResource(cloudProjectMod, "RegionStoragePresign"),
},
"ovh_cloud_project_region_loadbalancer_log_subscription": {
Tok: ovhResource(cloudProjectMod, "RegionLoadBalancerLogSubscription"),
},
"ovh_cloud_project_user": {
Tok: ovhResource(cloudProjectMod, "User"),
},
Expand Down Expand Up @@ -593,6 +599,9 @@ func Provider() tfbridge.ProviderInfo {
"ovh_cloud_project_failover_ip_attach": {
Tok: ovhDataSource(cloudProjectMod, "getFailoverIpAttach"),
},
"ovh_cloud_project_gateway_interface": {
Tok: ovhDataSource(cloudProjectMod, "getGatewayInterface"),
},
"ovh_cloud_project_kube": {
Tok: ovhDataSource(cloudProjectMod, "getKube"),
},
Expand Down Expand Up @@ -647,6 +656,12 @@ func Provider() tfbridge.ProviderInfo {
"ovh_cloud_project_regions": {
Tok: ovhDataSource(cloudProjectMod, "getRegions"),
},
"ovh_cloud_project_region_loadbalancer_log_subscription": {
Tok: ovhDataSource(cloudProjectMod, "getRegionLoadBalancerLogSubscription"),
},
"ovh_cloud_project_region_loadbalancer_log_subscriptions": {
Tok: ovhDataSource(cloudProjectMod, "getRegionLoadBalancerLogSubscriptions"),
},
"ovh_cloud_project_user": {
Tok: ovhDataSource(cloudProjectMod, "getUser"),
},
Expand Down
184 changes: 184 additions & 0 deletions sdk/dotnet/CloudProject/GatewayInterface.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
// *** 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.Ovh.CloudProject
{
/// <summary>
/// Create a new Gateway Interface for existing subnet in the specified public cloud project.
///
/// ## Import
///
/// A gateway interface can be imported using the `service_name`, `region`, `id` (identifier of the gateway) and `interface_id` properties, separated by a `/`.
///
/// bash
///
/// ```sh
/// $ pulumi import ovh:CloudProject/gatewayInterface:GatewayInterface gateway service_name/region/id/interface_id
/// ```
/// </summary>
[OvhResourceType("ovh:CloudProject/gatewayInterface:GatewayInterface")]
public partial class GatewayInterface : global::Pulumi.CustomResource
{
/// <summary>
/// ID of the interface
/// </summary>
[Output("interfaceId")]
public Output<string> InterfaceId { get; private set; } = null!;

/// <summary>
/// IP of the interface
/// </summary>
[Output("ip")]
public Output<string> Ip { get; private set; } = null!;

/// <summary>
/// Network ID of the interface
/// </summary>
[Output("networkId")]
public Output<string> NetworkId { get; private set; } = null!;

/// <summary>
/// Region of the gateway
/// </summary>
[Output("region")]
public Output<string> Region { get; private set; } = null!;

/// <summary>
/// ID of the cloud project
/// </summary>
[Output("serviceName")]
public Output<string> ServiceName { get; private set; } = null!;

/// <summary>
/// ID of the subnet to add
/// </summary>
[Output("subnetId")]
public Output<string> SubnetId { get; private set; } = null!;


/// <summary>
/// Create a GatewayInterface 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 GatewayInterface(string name, GatewayInterfaceArgs args, CustomResourceOptions? options = null)
: base("ovh:CloudProject/gatewayInterface:GatewayInterface", name, args ?? new GatewayInterfaceArgs(), MakeResourceOptions(options, ""))
{
}

private GatewayInterface(string name, Input<string> id, GatewayInterfaceState? state = null, CustomResourceOptions? options = null)
: base("ovh:CloudProject/gatewayInterface:GatewayInterface", 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/ovh/pulumi-ovh",
};
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 GatewayInterface 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 GatewayInterface Get(string name, Input<string> id, GatewayInterfaceState? state = null, CustomResourceOptions? options = null)
{
return new GatewayInterface(name, id, state, options);
}
}

public sealed class GatewayInterfaceArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// ID of the interface
/// </summary>
[Input("interfaceId")]
public Input<string>? InterfaceId { get; set; }

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

/// <summary>
/// ID of the cloud project
/// </summary>
[Input("serviceName", required: true)]
public Input<string> ServiceName { get; set; } = null!;

/// <summary>
/// ID of the subnet to add
/// </summary>
[Input("subnetId", required: true)]
public Input<string> SubnetId { get; set; } = null!;

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

public sealed class GatewayInterfaceState : global::Pulumi.ResourceArgs
{
/// <summary>
/// ID of the interface
/// </summary>
[Input("interfaceId")]
public Input<string>? InterfaceId { get; set; }

/// <summary>
/// IP of the interface
/// </summary>
[Input("ip")]
public Input<string>? Ip { get; set; }

/// <summary>
/// Network ID of the interface
/// </summary>
[Input("networkId")]
public Input<string>? NetworkId { get; set; }

/// <summary>
/// Region of the gateway
/// </summary>
[Input("region")]
public Input<string>? Region { get; set; }

/// <summary>
/// ID of the cloud project
/// </summary>
[Input("serviceName")]
public Input<string>? ServiceName { get; set; }

/// <summary>
/// ID of the subnet to add
/// </summary>
[Input("subnetId")]
public Input<string>? SubnetId { get; set; }

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

0 comments on commit ea72e75

Please sign in to comment.