Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade terraform-provider-ovh to v0.40.0 #127

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions provider/cmd/pulumi-resource-ovh/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"ovh:CloudProject/containerRegistryUser:ContainerRegistryUser": 0,
"ovh:CloudProject/database:Database": 0,
"ovh:CloudProject/failoverIpAttach:FailoverIpAttach": 0,
"ovh:CloudProject/gateway:Gateway": 0,
"ovh:CloudProject/kube:Kube": 0,
"ovh:CloudProject/kubeIpRestrictions:KubeIpRestrictions": 0,
"ovh:CloudProject/kubeNodePool:KubeNodePool": 0,
Expand Down Expand Up @@ -59,6 +60,7 @@
"ovh:Iam/policy:Policy": 0,
"ovh:Iam/resourceGroup:ResourceGroup": 0,
"ovh:Ip/ipService:IpService": 0,
"ovh:Ip/move:Move": 0,
"ovh:Ip/reverse:Reverse": 0,
"ovh:IpLoadBalancing/httpFarm:HttpFarm": 0,
"ovh:IpLoadBalancing/httpFarmServer:HttpFarmServer": 0,
Expand Down Expand Up @@ -147,6 +149,7 @@
"ovh:Dedicated/getCeph:getCeph": 0,
"ovh:Dedicated/getNasHA:getNasHA": 0,
"ovh:Dedicated/getServerBoots:getServerBoots": 0,
"ovh:Dedicated/getServerSpecificationsHardware:getServerSpecificationsHardware": 1,
"ovh:Domain/getZone:getZone": 0,
"ovh:Hosting/getPrivateDatabase:getPrivateDatabase": 0,
"ovh:Hosting/getPrivateDatabaseAllowlist:getPrivateDatabaseAllowlist": 0,
Expand Down
645 changes: 594 additions & 51 deletions provider/cmd/pulumi-resource-ovh/schema.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ toolchain go1.21.1
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240229143312-4f60ee4e2975

require (
github.com/ovh/terraform-provider-ovh v0.39.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.30.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.77.0
github.com/pulumi/pulumi/sdk/v3 v3.108.1
github.com/ovh/terraform-provider-ovh v0.40.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.31.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0
github.com/pulumi/pulumi/sdk/v3 v3.111.1
)

require (
Expand Down Expand Up @@ -127,9 +127,9 @@ 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.6.1 // indirect
github.com/hashicorp/terraform-plugin-framework v1.7.0 // indirect
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.22.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.22.1 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.8.0 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect
Expand Down Expand Up @@ -173,7 +173,7 @@ require (
github.com/oklog/run v1.1.0 // indirect
github.com/opentracing/basictracer-go v1.1.0 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/ovh/go-ovh v1.4.2 // indirect
github.com/ovh/go-ovh v1.4.3 // indirect
github.com/pgavlin/fx v0.1.6 // indirect
github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
Expand All @@ -187,8 +187,8 @@ require (
github.com/pulumi/esc v0.6.2 // indirect
github.com/pulumi/pulumi-java/pkg v0.9.9 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect
github.com/pulumi/pulumi-yaml v1.5.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.108.1 // indirect
github.com/pulumi/pulumi-yaml v1.6.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.111.1 // 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 Expand Up @@ -247,8 +247,8 @@ require (
google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
google.golang.org/grpc v1.62.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
google.golang.org/grpc v1.62.1 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down
42 changes: 22 additions & 20 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2242,12 +2242,13 @@ 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.6.1 h1:hw2XrmUu8d8jVL52ekxim2IqDc+2Kpekn21xZANARLU=
github.com/hashicorp/terraform-plugin-framework v1.6.1/go.mod h1:aJI+n/hBPhz1J+77GdgNfk5svW12y7fmtxe/5L5IuwI=
github.com/hashicorp/terraform-plugin-framework v1.7.0 h1:wOULbVmfONnJo9iq7/q+iBOBJul5vRovaYJIu2cY/Pw=
github.com/hashicorp/terraform-plugin-framework v1.7.0/go.mod h1:jY9Id+3KbZ17OMpulgnWLSfwxNVYSoYBQFTgsx044CI=
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 h1:1OS1Jk5mO0f5hrziWJGXXIxBrMe2j/B8E+DVGw43Xmc=
github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE=
github.com/hashicorp/terraform-plugin-go v0.22.1 h1:iTS7WHNVrn7uhe3cojtvWWn83cm2Z6ryIUDTRO0EV7w=
github.com/hashicorp/terraform-plugin-go v0.22.1/go.mod h1:qrjnqRghvQ6KnDbB12XeZ4FluclYwptntoWCr9QaXTI=
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=
github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow=
github.com/hashicorp/terraform-plugin-mux v0.15.0 h1:+/+lDx0WUsIOpkAmdwBIoFU8UP9o2eZASoOnLsWbKME=
Expand Down Expand Up @@ -2698,10 +2699,10 @@ github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxS
github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=
github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4=
github.com/ovh/go-ovh v1.4.2 h1:ub4jVK6ERbiBTo4y5wbLCjeKCjGY+K36e7BviW+MaAU=
github.com/ovh/go-ovh v1.4.2/go.mod h1:AkPXVtgwB6xlKblMjRKJJmjRp+ogrE7fz2lVgcQY8SY=
github.com/ovh/terraform-provider-ovh v0.39.0 h1:yQjg8n19vfDzKCRGbLU1e6PtXEdAAilY8mvU4do1yi8=
github.com/ovh/terraform-provider-ovh v0.39.0/go.mod h1:HZlStnRUjLc6qWOqS/OyWe4vxRnDxEeyFTT8cL4T3YM=
github.com/ovh/go-ovh v1.4.3 h1:Gs3V823zwTFpzgGLZNI6ILS4rmxZgJwJCz54Er9LwD0=
github.com/ovh/go-ovh v1.4.3/go.mod h1:AkPXVtgwB6xlKblMjRKJJmjRp+ogrE7fz2lVgcQY8SY=
github.com/ovh/terraform-provider-ovh v0.40.0 h1:oOPv4OVV839xNq/AhGOe8FLEuzjeaS7C9QJSZvIO0Sw=
github.com/ovh/terraform-provider-ovh v0.40.0/go.mod h1:FsrDVZQIEqlMKRb8d22BwYvbOjmP6WtW+eVasFdJdcU=
github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
Expand Down Expand Up @@ -2816,18 +2817,18 @@ github.com/pulumi/providertest v0.0.11 h1:mg8MQ7Cq7+9XlHIkBD+aCqQO4mwAJEISngZgVd
github.com/pulumi/providertest v0.0.11/go.mod h1:HsxjVsytcMIuNj19w1lT2W0QXY0oReXl1+h6eD2JXP8=
github.com/pulumi/pulumi-java/pkg v0.9.9 h1:F3xJUtMFDVrTGCxb7Rh2Q8s6tj7gMfM5pcoUthz7vFY=
github.com/pulumi/pulumi-java/pkg v0.9.9/go.mod h1:LVF1zeg3UkToHWxb67V+zEIxQc3EdMnlot5NWSt+FpA=
github.com/pulumi/pulumi-terraform-bridge/pf v0.30.0 h1:2Jn0lXcfid0E2gbbpPwtRBWkJxGmOiUenTYP07A8b+U=
github.com/pulumi/pulumi-terraform-bridge/pf v0.30.0/go.mod h1:6MjVHzJy4MVmb/19nbRv7p9VkcKcpjl8a8uEp1CDKwo=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.77.0 h1:BZhD7yNZz7O5MWeM4WofY6XBLjtiA3qH2UJJTg8+Nts=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.77.0/go.mod h1:OCfjEGPU2fbBlda8UZhN/N3FljW6R08SK6lXPXzahwA=
github.com/pulumi/pulumi-terraform-bridge/pf v0.31.0 h1:KnVMjyTmkqjUDBVoQNODPMH0VpPmRmu7JHMruBF+Fvs=
github.com/pulumi/pulumi-terraform-bridge/pf v0.31.0/go.mod h1:kdaazbdv0Hn6/innKvWcPfRRn/0YeNYI/oWA4j8lV3k=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0 h1:zl1nXrx02X7u/w5kNjIVGVUzccEILcMWsIpg4QQanCI=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0/go.mod h1:WpkN/lgtBrDYGrMyG9cmncy5pN95lnowbmjILHWcm0M=
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.5.0 h1:HfXu+WSFNpycref9CK935cViYJzXwSgHGWM/RepyrW0=
github.com/pulumi/pulumi-yaml v1.5.0/go.mod h1:AvKSmEQv2EkPbpvAQroR1eP1LkJGC8z5NDM34rVWOtg=
github.com/pulumi/pulumi/pkg/v3 v3.108.1 h1:K1UK40v5IpEPIaJ2un3WNOTBbLQaKR26HbLLh5EmMHY=
github.com/pulumi/pulumi/pkg/v3 v3.108.1/go.mod h1:48uCfxkPXUq/XTBqei9VuR0CRWObnSVlqcLkD6DhII8=
github.com/pulumi/pulumi/sdk/v3 v3.108.1 h1:5idjc3JmzToYVizRPbFyjJ5UU4AbExd04pcSP9AhPEc=
github.com/pulumi/pulumi/sdk/v3 v3.108.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg=
github.com/pulumi/pulumi-yaml v1.6.0 h1:mb/QkebWXTa1fR+P3ZkCCHGXOYC6iTN8X8By9eNz8xM=
github.com/pulumi/pulumi-yaml v1.6.0/go.mod h1:RyEPo4MhL363sbAiFMVKRsQmXpQPDCY1S8pGv3E6Ij0=
github.com/pulumi/pulumi/pkg/v3 v3.111.1 h1:SrVgQE96T7YlZx/AZoFSlXYwur7ZmQUHyjbPI8sH96Q=
github.com/pulumi/pulumi/pkg/v3 v3.111.1/go.mod h1:ZWsq8Y0EMHZ5E2ju92jC+POz97TEXs3BbQ6r2o0U4SA=
github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw=
github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg=
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 Expand Up @@ -4184,8 +4185,8 @@ google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSs
google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0=
google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98=
google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs=
google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk=
google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE=
google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk=
google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
Expand All @@ -4206,8 +4207,9 @@ google.golang.org/protobuf v1.28.2-0.20230222093303-bc1253ad3743/go.mod h1:HV8QO
google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
9 changes: 9 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ func Provider() tfbridge.ProviderInfo {
"ovh_cloud_project_failover_ip_attach": {
Tok: ovhResource(cloudProjectMod, "FailoverIpAttach"),
},
"ovh_cloud_project_gateway": {
Tok: ovhResource(cloudProjectMod, "Gateway"),
},
"ovh_cloud_project_kube": {
Tok: ovhResource(cloudProjectMod, "Kube"),
},
Expand Down Expand Up @@ -310,6 +313,9 @@ func Provider() tfbridge.ProviderInfo {
"ovh_hosting_privatedatabase_whitelist": {
Tok: ovhResource(hostingMod, "PrivateDatabaseAllowlist"),
},
"ovh_ip_move": {
Tok: ovhResource(ipMod, "Move"),
},
"ovh_ip_reverse": {
Tok: ovhResource(ipMod, "Reverse"),
Fields: map[string]*tfbridge.SchemaInfo{
Expand Down Expand Up @@ -633,6 +639,9 @@ func Provider() tfbridge.ProviderInfo {
"ovh_dedicated_server_boots": {
Tok: ovhDataSource(dedicatedMod, "getServerBoots"),
},
"ovh_dedicated_server_specifications_hardware": {
Tok: ovhDataSource(dedicatedMod, "getServerSpecificationsHardware"),
},
"ovh_hosting_privatedatabase": {
Tok: ovhDataSource(hostingMod, "getPrivateDatabase"),
},
Expand Down
198 changes: 198 additions & 0 deletions sdk/dotnet/CloudProject/Gateway.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
// *** 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 for existing subnet in the specified public cloud project.
/// </summary>
[OvhResourceType("ovh:CloudProject/gateway:Gateway")]
public partial class Gateway : global::Pulumi.CustomResource
{
/// <summary>
/// The model of the gateway.
/// </summary>
[Output("model")]
public Output<string> Model { get; private set; } = null!;

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

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

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

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

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

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


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

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

public sealed class GatewayArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The model of the gateway.
/// </summary>
[Input("model", required: true)]
public Input<string> Model { get; set; } = null!;

/// <summary>
/// The name of the gateway.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// The ID of the private network.
/// </summary>
[Input("networkId", required: true)]
public Input<string> NetworkId { get; set; } = null!;

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

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

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

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

public sealed class GatewayState : global::Pulumi.ResourceArgs
{
/// <summary>
/// The model of the gateway.
/// </summary>
[Input("model")]
public Input<string>? Model { get; set; }

/// <summary>
/// The name of the gateway.
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// The ID of the private network.
/// </summary>
[Input("networkId")]
public Input<string>? NetworkId { get; set; }

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

/// <summary>
/// The ID of the private network.
/// </summary>
[Input("serviceName")]
public Input<string>? ServiceName { get; set; }

/// <summary>
/// The status of the gateway.
/// </summary>
[Input("status")]
public Input<string>? Status { get; set; }

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

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