From 13b65af10c62c2ff6d8c1c5f52e2cb8a73d276c9 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:09:32 -0800 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.98.0 (#904) This PR was generated via `$ upgrade-provider pulumi/pulumi-digitalocean --kind=bridge --pr-reviewers=iwahbe`. --- - Upgrading pulumi-terraform-bridge from v3.97.1 to v3.98.0. --- examples/go.mod | 14 +-- examples/go.sum | 28 +++--- provider/go.mod | 20 ++-- provider/go.sum | 36 +++---- sdk/dotnet/GetAccount.cs | 23 +++++ sdk/dotnet/GetApp.cs | 30 ++++++ sdk/dotnet/GetCertificate.cs | 31 ++++++ sdk/dotnet/GetContainerRegistry.cs | 33 +++++++ sdk/dotnet/GetDatabaseCa.cs | 28 ++++++ sdk/dotnet/GetDatabaseCluster.cs | 28 ++++++ sdk/dotnet/GetDatabaseConnectionPool.cs | 34 +++++++ sdk/dotnet/GetDatabaseReplica.cs | 34 +++++++ sdk/dotnet/GetDatabaseUser.cs | 34 +++++++ sdk/dotnet/GetDomain.cs | 55 +++++++++++ sdk/dotnet/GetDomains.cs | 45 +++++++++ sdk/dotnet/GetDroplet.cs | 72 ++++++++++++++ sdk/dotnet/GetDropletAutoscale.cs | 42 ++++++++ sdk/dotnet/GetDropletSnapshot.cs | 58 +++++++++++ sdk/dotnet/GetDroplets.cs | 92 ++++++++++++++++++ sdk/dotnet/GetFirewall.cs | 30 ++++++ sdk/dotnet/GetFloatingIp.cs | 39 ++++++++ sdk/dotnet/GetImage.cs | 75 +++++++++++++++ sdk/dotnet/GetImages.cs | 90 +++++++++++++++++ sdk/dotnet/GetKubernetesCluster.cs | 24 +++++ sdk/dotnet/GetKubernetesVersions.cs | 86 +++++++++++++++++ sdk/dotnet/GetLoadBalancer.cs | 53 ++++++++++ sdk/dotnet/GetProject.cs | 27 ++++++ sdk/dotnet/GetProjects.cs | 88 +++++++++++++++++ sdk/dotnet/GetRecord.cs | 49 ++++++++++ sdk/dotnet/GetRecords.cs | 47 +++++++++ sdk/dotnet/GetRegion.cs | 29 ++++++ sdk/dotnet/GetRegions.cs | 86 +++++++++++++++++ sdk/dotnet/GetReservedIp.cs | 30 ++++++ sdk/dotnet/GetReservedIpv6.cs | 3 + sdk/dotnet/GetSizes.cs | 8 ++ sdk/dotnet/GetSpacesBucket.cs | 32 +++++++ sdk/dotnet/GetSpacesBucketObject.cs | 43 +++++++++ sdk/dotnet/GetSpacesBucketObjects.cs | 8 ++ sdk/dotnet/GetSpacesBuckets.cs | 77 +++++++++++++++ sdk/dotnet/GetSshKey.cs | 43 +++++++++ sdk/dotnet/GetSshKeys.cs | 68 +++++++++++++ sdk/dotnet/GetTag.cs | 42 ++++++++ sdk/dotnet/GetTags.cs | 37 +++++++ sdk/dotnet/GetVolume.cs | 65 +++++++++++++ sdk/dotnet/GetVolumeSnapshot.cs | 58 +++++++++++ sdk/dotnet/GetVpc.cs | 60 ++++++++++++ sdk/dotnet/GetVpcPeering.cs | 96 +++++++++++++++++++ sdk/dotnet/Utilities.cs | 7 ++ sdk/go.mod | 12 +-- sdk/go.sum | 24 ++--- sdk/go/digitalocean/getAccount.go | 14 +-- sdk/go/digitalocean/getApp.go | 16 +--- sdk/go/digitalocean/getCertificate.go | 16 +--- sdk/go/digitalocean/getContainerRegistry.go | 16 +--- sdk/go/digitalocean/getDatabaseCa.go | 16 +--- sdk/go/digitalocean/getDatabaseCluster.go | 16 +--- .../digitalocean/getDatabaseConnectionPool.go | 16 +--- sdk/go/digitalocean/getDatabaseReplica.go | 16 +--- sdk/go/digitalocean/getDatabaseUser.go | 16 +--- sdk/go/digitalocean/getDomain.go | 16 +--- sdk/go/digitalocean/getDomains.go | 16 +--- sdk/go/digitalocean/getDroplet.go | 16 +--- sdk/go/digitalocean/getDropletAutoscale.go | 16 +--- sdk/go/digitalocean/getDropletSnapshot.go | 16 +--- sdk/go/digitalocean/getDroplets.go | 16 +--- sdk/go/digitalocean/getFirewall.go | 16 +--- sdk/go/digitalocean/getFloatingIp.go | 16 +--- sdk/go/digitalocean/getImage.go | 16 +--- sdk/go/digitalocean/getImages.go | 16 +--- sdk/go/digitalocean/getKubernetesCluster.go | 16 +--- sdk/go/digitalocean/getKubernetesVersions.go | 16 +--- sdk/go/digitalocean/getLoadBalancer.go | 16 +--- sdk/go/digitalocean/getProject.go | 16 +--- sdk/go/digitalocean/getProjects.go | 16 +--- sdk/go/digitalocean/getRecord.go | 16 +--- sdk/go/digitalocean/getRecords.go | 16 +--- sdk/go/digitalocean/getRegion.go | 16 +--- sdk/go/digitalocean/getRegions.go | 16 +--- sdk/go/digitalocean/getReservedIp.go | 16 +--- sdk/go/digitalocean/getReservedIpv6.go | 16 +--- sdk/go/digitalocean/getSizes.go | 16 +--- sdk/go/digitalocean/getSpacesBucket.go | 16 +--- sdk/go/digitalocean/getSpacesBucketObject.go | 16 +--- sdk/go/digitalocean/getSpacesBucketObjects.go | 16 +--- sdk/go/digitalocean/getSpacesBuckets.go | 16 +--- sdk/go/digitalocean/getSshKey.go | 16 +--- sdk/go/digitalocean/getSshKeys.go | 16 +--- sdk/go/digitalocean/getTag.go | 16 +--- sdk/go/digitalocean/getTags.go | 16 +--- sdk/go/digitalocean/getVolume.go | 16 +--- sdk/go/digitalocean/getVolumeSnapshot.go | 16 +--- sdk/go/digitalocean/getVpc.go | 16 +--- sdk/go/digitalocean/getVpcPeering.go | 16 +--- sdk/nodejs/package.json | 2 +- sdk/python/pyproject.toml | 4 +- 95 files changed, 2237 insertions(+), 628 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 600e298f..6f6f0657 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-digitalocean/examples/v4 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.142.0 +require github.com/pulumi/pulumi/pkg/v3 v3.143.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.142.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.143.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect @@ -153,15 +153,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/examples/go.sum b/examples/go.sum index 304740d7..bb2014fc 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= -github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -434,8 +434,8 @@ golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= @@ -485,8 +485,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -513,8 +513,8 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -524,8 +524,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -536,8 +536,8 @@ golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/provider/go.mod b/provider/go.mod index 1fcf10b8..054e0249 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,15 +1,15 @@ module github.com/pulumi/pulumi-digitalocean/provider/v4 -go 1.22.0 +go 1.22.3 toolchain go1.22.7 require ( github.com/digitalocean/terraform-provider-digitalocean v0.0.0 github.com/pulumi/providertest v0.1.3 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1 - github.com/pulumi/pulumi/pkg/v3 v3.142.0 - github.com/pulumi/pulumi/sdk/v3 v3.142.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0 + github.com/pulumi/pulumi/pkg/v3 v3.143.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 github.com/stretchr/testify v1.9.0 ) @@ -186,7 +186,7 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.19.0 // indirect github.com/pulumi/pulumi-yaml v1.12.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect @@ -228,15 +228,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.24.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.8.0 // indirect golang.org/x/tools v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/provider/go.sum b/provider/go.sum index b2606fb6..c24a6d23 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1924,16 +1924,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= -github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1 h1:+KTtmSk6jqcqKvgNgtGVUWEimkpEZdLZs0xEYwFw288= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-java/pkg v0.19.0 h1:T9kkGUQJV7UTxenw08m3txsgQkNVnZZxvn1zCcNjaE8= +github.com/pulumi/pulumi-java/pkg v0.19.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0 h1:FpoJNeqICq0p0IlSs1vOvHarp7uVPMMeTXF321T075k= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0/go.mod h1:q0QIquTDad7QvzdLmT31bzISahN1XrnGF/w/vIsxlX0= github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= -github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= -github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= 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= @@ -2144,8 +2144,8 @@ golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2351,8 +2351,8 @@ golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -2463,8 +2463,8 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2485,8 +2485,8 @@ golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2508,8 +2508,8 @@ golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/sdk/dotnet/GetAccount.cs b/sdk/dotnet/GetAccount.cs index cd188a14..e31b6407 100644 --- a/sdk/dotnet/GetAccount.cs +++ b/sdk/dotnet/GetAccount.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(InvokeOptions? options = null) /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getAccount:getAccount", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Get information on your DigitalOcean account. + /// + /// ## Example Usage + /// + /// Get the account: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetAccount.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getAccount:getAccount", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/GetApp.cs b/sdk/dotnet/GetApp.cs index fdd3153f..402ab5f0 100644 --- a/sdk/dotnet/GetApp.cs +++ b/sdk/dotnet/GetApp.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetAppArgs args, InvokeOptions? opt /// public static Output Invoke(GetAppInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getApp:getApp", args ?? new GetAppInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a DigitalOcean App. + /// + /// ## Example Usage + /// + /// Get the account: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetApp.Invoke(new() + /// { + /// AppId = "e665d18d-7b56-44a9-92ce-31979174d544", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultIngress"] = example.Apply(getAppResult => getAppResult.DefaultIngress), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAppInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getApp:getApp", args ?? new GetAppInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetCertificate.cs b/sdk/dotnet/GetCertificate.cs index 882f1087..93793b4b 100644 --- a/sdk/dotnet/GetCertificate.cs +++ b/sdk/dotnet/GetCertificate.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetCertificateArgs args, In /// public static Output Invoke(GetCertificateInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getCertificate:getCertificate", args ?? new GetCertificateInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a certificate. This data source provides the name, type, state, + /// domains, expiry date, and the sha1 fingerprint as configured on your DigitalOcean account. + /// This is useful if the certificate in question is not managed by this provider or you need to utilize + /// any of the certificates data. + /// + /// An error is triggered if the provided certificate name does not exist. + /// + /// ## Example Usage + /// + /// Get the certificate: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetCertificate.Invoke(new() + /// { + /// Name = "example", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCertificateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getCertificate:getCertificate", args ?? new GetCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetContainerRegistry.cs b/sdk/dotnet/GetContainerRegistry.cs index 64790f36..e08788bc 100644 --- a/sdk/dotnet/GetContainerRegistry.cs +++ b/sdk/dotnet/GetContainerRegistry.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetContainerRegistryA /// public static Output Invoke(GetContainerRegistryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getContainerRegistry:getContainerRegistry", args ?? new GetContainerRegistryInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a container registry. This data source provides the name as + /// configured on your DigitalOcean account. This is useful if the container + /// registry name in question is not managed by this provider or you need validate if + /// the container registry exists in the account. + /// + /// An error is triggered if the provided container registry name does not exist. + /// + /// ## Example Usage + /// + /// ### Basic Example + /// + /// Get the container registry: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetContainerRegistry.Invoke(new() + /// { + /// Name = "example", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetContainerRegistryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getContainerRegistry:getContainerRegistry", args ?? new GetContainerRegistryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDatabaseCa.cs b/sdk/dotnet/GetDatabaseCa.cs index 7127d8a5..c5a995b9 100644 --- a/sdk/dotnet/GetDatabaseCa.cs +++ b/sdk/dotnet/GetDatabaseCa.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetDatabaseCaArgs args, Invo /// public static Output Invoke(GetDatabaseCaInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseCa:getDatabaseCa", args ?? new GetDatabaseCaInvokeArgs(), options.WithDefaults()); + + /// + /// Provides the CA certificate for a DigitalOcean database. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ca = DigitalOcean.GetDatabaseCa.Invoke(new() + /// { + /// ClusterId = "aaa-bbb-ccc-ddd", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["caOutput"] = ca.Apply(getDatabaseCaResult => getDatabaseCaResult.Certificate), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseCaInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseCa:getDatabaseCa", args ?? new GetDatabaseCaInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDatabaseCluster.cs b/sdk/dotnet/GetDatabaseCluster.cs index 1e52b045..b51d7c53 100644 --- a/sdk/dotnet/GetDatabaseCluster.cs +++ b/sdk/dotnet/GetDatabaseCluster.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetDatabaseClusterArgs /// public static Output Invoke(GetDatabaseClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseCluster:getDatabaseCluster", args ?? new GetDatabaseClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information on a DigitalOcean database cluster resource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetDatabaseCluster.Invoke(new() + /// { + /// Name = "example-cluster", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["databaseOutput"] = example.Apply(getDatabaseClusterResult => getDatabaseClusterResult.Uri), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseCluster:getDatabaseCluster", args ?? new GetDatabaseClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDatabaseConnectionPool.cs b/sdk/dotnet/GetDatabaseConnectionPool.cs index 60e3b011..d2a35aba 100644 --- a/sdk/dotnet/GetDatabaseConnectionPool.cs +++ b/sdk/dotnet/GetDatabaseConnectionPool.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetDatabaseConne /// public static Output Invoke(GetDatabaseConnectionPoolInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseConnectionPool:getDatabaseConnectionPool", args ?? new GetDatabaseConnectionPoolInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information on a DigitalOcean PostgreSQL database connection pool. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetDatabaseCluster.Invoke(new() + /// { + /// Name = "example-cluster", + /// }); + /// + /// var read_only = DigitalOcean.GetDatabaseConnectionPool.Invoke(new() + /// { + /// ClusterId = example.Apply(getDatabaseClusterResult => getDatabaseClusterResult.Id), + /// Name = "pool-01", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["connectionPoolUriOutput"] = read_only.Apply(read_only => read_only.Apply(getDatabaseConnectionPoolResult => getDatabaseConnectionPoolResult.Uri)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseConnectionPoolInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseConnectionPool:getDatabaseConnectionPool", args ?? new GetDatabaseConnectionPoolInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDatabaseReplica.cs b/sdk/dotnet/GetDatabaseReplica.cs index 928857f6..fd491daa 100644 --- a/sdk/dotnet/GetDatabaseReplica.cs +++ b/sdk/dotnet/GetDatabaseReplica.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetDatabaseReplicaArgs /// public static Output Invoke(GetDatabaseReplicaInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseReplica:getDatabaseReplica", args ?? new GetDatabaseReplicaInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information on a DigitalOcean database replica. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetDatabaseCluster.Invoke(new() + /// { + /// Name = "example-cluster", + /// }); + /// + /// var read_only = DigitalOcean.GetDatabaseReplica.Invoke(new() + /// { + /// ClusterId = example.Apply(getDatabaseClusterResult => getDatabaseClusterResult.Id), + /// Name = "terra-test-ro", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["replicaOutput"] = read_only.Apply(read_only => read_only.Apply(getDatabaseReplicaResult => getDatabaseReplicaResult.Uri)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseReplicaInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseReplica:getDatabaseReplica", args ?? new GetDatabaseReplicaInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDatabaseUser.cs b/sdk/dotnet/GetDatabaseUser.cs index 3e29f826..2ec5f7b0 100644 --- a/sdk/dotnet/GetDatabaseUser.cs +++ b/sdk/dotnet/GetDatabaseUser.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetDatabaseUserArgs args, /// public static Output Invoke(GetDatabaseUserInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseUser:getDatabaseUser", args ?? new GetDatabaseUserInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information on a DigitalOcean database user resource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var main = DigitalOcean.GetDatabaseCluster.Invoke(new() + /// { + /// Name = "main-cluster", + /// }); + /// + /// var example = DigitalOcean.GetDatabaseUser.Invoke(new() + /// { + /// ClusterId = main.Apply(getDatabaseClusterResult => getDatabaseClusterResult.Id), + /// Name = "example-user", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["databaseUserPassword"] = example.Apply(getDatabaseUserResult => getDatabaseUserResult.Password), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseUserInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDatabaseUser:getDatabaseUser", args ?? new GetDatabaseUserInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDomain.cs b/sdk/dotnet/GetDomain.cs index bd3bccdb..5776e7b3 100644 --- a/sdk/dotnet/GetDomain.cs +++ b/sdk/dotnet/GetDomain.cs @@ -120,6 +120,61 @@ public static Task InvokeAsync(GetDomainArgs args, InvokeOption /// public static Output Invoke(GetDomainInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDomain:getDomain", args ?? new GetDomainInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a domain. This data source provides the name, TTL, and zone + /// file as configured on your DigitalOcean account. This is useful if the domain + /// name in question is not managed by this provider or you need to utilize TTL or zone + /// file data. + /// + /// An error is triggered if the provided domain name is not managed with your + /// DigitalOcean account. + /// + /// ## Example Usage + /// + /// Get the zone file for a domain: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetDomain.Invoke(new() + /// { + /// Name = "example.com", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["domainOutput"] = example.Apply(getDomainResult => getDomainResult.ZoneFile), + /// }; + /// }); + /// ``` + /// + /// ``` + /// + /// data.digitalocean_domain.example: Refreshing state... + /// + /// Apply complete! Resources: 0 added, 0 changed, 0 destroyed. + /// + /// Outputs: + /// + /// domain_output = $ORIGIN example.com. + /// $TTL 1800 + /// example.com. IN SOA ns1.digitalocean.com. hostmaster.example.com. 1516944700 10800 3600 604800 1800 + /// example.com. 1800 IN NS ns1.digitalocean.com. + /// example.com. 1800 IN NS ns2.digitalocean.com. + /// example.com. 1800 IN NS ns3.digitalocean.com. + /// www.example.com. 3600 IN A 176.107.155.137 + /// db.example.com. 3600 IN A 179.189.166.115 + /// jira.example.com. 3600 IN A 207.189.228.15 + /// ``` + /// + public static Output Invoke(GetDomainInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDomain:getDomain", args ?? new GetDomainInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDomains.cs b/sdk/dotnet/GetDomains.cs index a0d68418..3ee7c461 100644 --- a/sdk/dotnet/GetDomains.cs +++ b/sdk/dotnet/GetDomains.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(GetDomainsArgs? args = null, In /// public static Output Invoke(GetDomainsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on domains for use in other resources, with the ability to filter and sort the results. + /// If no filters are specified, all domains will be returned. + /// + /// This data source is useful if the domains in question are not managed by this provider or you need to + /// utilize any of the domains' data. + /// + /// Note: You can use the `digitalocean.Domain` data source to obtain metadata + /// about a single domain if you already know the `name`. + /// + /// ## Example Usage + /// + /// Use the `filter` block with a `key` string and `values` list to filter domains. (This example + /// also uses the regular expression `match_by` mode in order to match domains by suffix.) + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var examples = DigitalOcean.GetDomains.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetDomainsFilterInputArgs + /// { + /// Key = "name", + /// Values = new[] + /// { + /// "example\\.com$", + /// }, + /// MatchBy = "re", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDomainsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDomains:getDomains", args ?? new GetDomainsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDroplet.cs b/sdk/dotnet/GetDroplet.cs index 790148d0..e9dd4b34 100644 --- a/sdk/dotnet/GetDroplet.cs +++ b/sdk/dotnet/GetDroplet.cs @@ -154,6 +154,78 @@ public static Task InvokeAsync(GetDropletArgs? args = null, In /// public static Output Invoke(GetDropletInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDroplet:getDroplet", args ?? new GetDropletInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a Droplet for use in other resources. This data source provides + /// all of the Droplet's properties as configured on your DigitalOcean account. This + /// is useful if the Droplet in question is not managed by this provider or you need to + /// utilize any of the Droplet's data. + /// + /// **Note:** This data source returns a single Droplet. When specifying a `tag`, an + /// error is triggered if more than one Droplet is found. + /// + /// ## Example Usage + /// + /// Get the Droplet by name: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetDroplet.Invoke(new() + /// { + /// Name = "web", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["dropletOutput"] = example.Apply(getDropletResult => getDropletResult.Ipv4Address), + /// }; + /// }); + /// ``` + /// + /// Get the Droplet by tag: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetDroplet.Invoke(new() + /// { + /// Tag = "web", + /// }); + /// + /// }); + /// ``` + /// + /// Get the Droplet by ID: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetDroplet.Invoke(new() + /// { + /// Id = exampleDigitaloceanKubernetesCluster.NodePool[0].Nodes[0].DropletId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDropletInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDroplet:getDroplet", args ?? new GetDropletInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDropletAutoscale.cs b/sdk/dotnet/GetDropletAutoscale.cs index fd1e5143..88d5df76 100644 --- a/sdk/dotnet/GetDropletAutoscale.cs +++ b/sdk/dotnet/GetDropletAutoscale.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetDropletAutoscaleArg /// public static Output Invoke(GetDropletAutoscaleInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDropletAutoscale:getDropletAutoscale", args ?? new GetDropletAutoscaleInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// Get the Droplet Autoscale pool by name: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_imported_autoscale_pool = DigitalOcean.GetDropletAutoscale.Invoke(new() + /// { + /// Name = my_existing_autoscale_pool.Name, + /// }); + /// + /// }); + /// ``` + /// + /// Get the Droplet Autoscale pool by ID: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_imported_autoscale_pool = DigitalOcean.GetDropletAutoscale.Invoke(new() + /// { + /// Id = my_existing_autoscale_pool.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDropletAutoscaleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDropletAutoscale:getDropletAutoscale", args ?? new GetDropletAutoscaleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDropletSnapshot.cs b/sdk/dotnet/GetDropletSnapshot.cs index de3a1875..7c5a2c2e 100644 --- a/sdk/dotnet/GetDropletSnapshot.cs +++ b/sdk/dotnet/GetDropletSnapshot.cs @@ -126,6 +126,64 @@ public static Task InvokeAsync(GetDropletSnapshotArgs? /// public static Output Invoke(GetDropletSnapshotInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDropletSnapshot:getDropletSnapshot", args ?? new GetDropletSnapshotInvokeArgs(), options.WithDefaults()); + + /// + /// Droplet snapshots are saved instances of a Droplet. Use this data + /// source to retrieve the ID of a DigitalOcean Droplet snapshot for use in other + /// resources. + /// + /// ## Example Usage + /// + /// Get the Droplet snapshot: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var web_snapshot = DigitalOcean.GetDropletSnapshot.Invoke(new() + /// { + /// NameRegex = "^web", + /// Region = "nyc3", + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + /// Create image from snapshot: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var web_snapshot = DigitalOcean.GetDropletSnapshot.Invoke(new() + /// { + /// NameRegex = "^web", + /// Region = "nyc3", + /// MostRecent = true, + /// }); + /// + /// var from_snapshot = new DigitalOcean.Droplet("from-snapshot", new() + /// { + /// Image = web_snapshot.Apply(web_snapshot => web_snapshot.Apply(getDropletSnapshotResult => getDropletSnapshotResult.Id)), + /// Name = "web-02", + /// Region = DigitalOcean.Region.NYC3, + /// Size = DigitalOcean.DropletSlug.DropletS2VCPU4GB, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDropletSnapshotInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDropletSnapshot:getDropletSnapshot", args ?? new GetDropletSnapshotInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetDroplets.cs b/sdk/dotnet/GetDroplets.cs index 7540c2d3..9e5ec394 100644 --- a/sdk/dotnet/GetDroplets.cs +++ b/sdk/dotnet/GetDroplets.cs @@ -194,6 +194,98 @@ public static Task InvokeAsync(GetDropletsArgs? args = null, /// public static Output Invoke(GetDropletsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDroplets:getDroplets", args ?? new GetDropletsInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on Droplets for use in other resources, with the ability to filter and sort the results. + /// If no filters are specified, all Droplets will be returned. + /// + /// This data source is useful if the Droplets in question are not managed by the provider or you need to + /// utilize any of the Droplets' data. + /// + /// By default, only non-GPU Droplets are returned. To list only GPU Droplets, set + /// the `gpus` attribute to `true`. + /// + /// Note: You can use the `digitalocean.Droplet` data source to obtain metadata + /// about a single Droplet if you already know the `id`, unique `name`, or unique `tag` to retrieve. + /// + /// ## Example Usage + /// + /// Use the `filter` block with a `key` string and `values` list to filter images. + /// + /// For example to find all Droplets with size `s-1vcpu-1gb`: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var small = DigitalOcean.GetDroplets.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetDropletsFilterInputArgs + /// { + /// Key = "size", + /// Values = new[] + /// { + /// "s-1vcpu-1gb", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// You can filter on multiple fields and sort the results as well: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var small_with_backups = DigitalOcean.GetDroplets.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetDropletsFilterInputArgs + /// { + /// Key = "size", + /// Values = new[] + /// { + /// "s-1vcpu-1gb", + /// }, + /// }, + /// new DigitalOcean.Inputs.GetDropletsFilterInputArgs + /// { + /// Key = "backups", + /// Values = new[] + /// { + /// "true", + /// }, + /// }, + /// }, + /// Sorts = new[] + /// { + /// new DigitalOcean.Inputs.GetDropletsSortInputArgs + /// { + /// Key = "created_at", + /// Direction = "desc", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDropletsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getDroplets:getDroplets", args ?? new GetDropletsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFirewall.cs b/sdk/dotnet/GetFirewall.cs index 6c7d1613..2acdeeec 100644 --- a/sdk/dotnet/GetFirewall.cs +++ b/sdk/dotnet/GetFirewall.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetFirewallArgs args, InvokeOp /// public static Output Invoke(GetFirewallInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getFirewall:getFirewall", args ?? new GetFirewallInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a DigitalOcean Firewall. + /// + /// ## Example Usage + /// + /// Get the firewall: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetFirewall.Invoke(new() + /// { + /// FirewallId = "1df48973-6eef-4214-854f-fa7726e7e583", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["exampleFirewallName"] = example.Apply(getFirewallResult => getFirewallResult.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFirewallInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getFirewall:getFirewall", args ?? new GetFirewallInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetFloatingIp.cs b/sdk/dotnet/GetFloatingIp.cs index d213238d..27b54c16 100644 --- a/sdk/dotnet/GetFloatingIp.cs +++ b/sdk/dotnet/GetFloatingIp.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetFloatingIpArgs args, Invo /// public static Output Invoke(GetFloatingIpInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getFloatingIp:getFloatingIp", args ?? new GetFloatingIpInvokeArgs(), options.WithDefaults()); + + /// + /// > **Deprecated:** DigitalOcean Floating IPs have been renamed reserved IPs. This data source will be removed in a future release. Please use `digitalocean.ReservedIp` instead. + /// + /// Get information on a floating ip. This data source provides the region and Droplet id + /// as configured on your DigitalOcean account. This is useful if the floating IP + /// in question is not managed by the provider or you need to find the Droplet the IP is + /// attached to. + /// + /// An error is triggered if the provided floating IP does not exist. + /// + /// ## Example Usage + /// + /// Get the floating IP: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var publicIp = config.RequireObject<dynamic>("publicIp"); + /// var example = DigitalOcean.GetFloatingIp.Invoke(new() + /// { + /// IpAddress = publicIp, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["fipOutput"] = example.Apply(getFloatingIpResult => getFloatingIpResult.DropletId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFloatingIpInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getFloatingIp:getFloatingIp", args ?? new GetFloatingIpInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetImage.cs b/sdk/dotnet/GetImage.cs index 6d176249..c51450b2 100644 --- a/sdk/dotnet/GetImage.cs +++ b/sdk/dotnet/GetImage.cs @@ -160,6 +160,81 @@ public static Task InvokeAsync(GetImageArgs? args = null, Invoke /// public static Output Invoke(GetImageInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on an image for use in other resources (e.g. creating a Droplet + /// based on snapshot). This data source provides all of the image properties as + /// configured on your DigitalOcean account. This is useful if the image in question + /// is not managed by the provider or you need to utilize any of the image's data. + /// + /// An error is triggered if zero or more than one result is returned by the query. + /// + /// ## Example Usage + /// + /// Get the data about a snapshot: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example1 = DigitalOcean.GetImage.Invoke(new() + /// { + /// Name = "example-1.0.0", + /// }); + /// + /// }); + /// ``` + /// + /// Reuse the data about a snapshot to create a Droplet: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetImage.Invoke(new() + /// { + /// Name = "example-1.0.0", + /// }); + /// + /// var exampleDroplet = new DigitalOcean.Droplet("example", new() + /// { + /// Image = example.Apply(getImageResult => getImageResult.Id), + /// Name = "example-1", + /// Region = DigitalOcean.Region.NYC2, + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// }); + /// + /// }); + /// ``` + /// + /// Get the data about an official image: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example2 = DigitalOcean.GetImage.Invoke(new() + /// { + /// Slug = "ubuntu-18-04-x64", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetImages.cs b/sdk/dotnet/GetImages.cs index b09b4498..d0c453e0 100644 --- a/sdk/dotnet/GetImages.cs +++ b/sdk/dotnet/GetImages.cs @@ -190,6 +190,96 @@ public static Task InvokeAsync(GetImagesArgs? args = null, Invo /// public static Output Invoke(GetImagesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on images for use in other resources (e.g. creating a Droplet + /// based on a snapshot), with the ability to filter and sort the results. If no filters are specified, + /// all images will be returned. + /// + /// This data source is useful if the image in question is not managed by the provider or you need to utilize any + /// of the image's data. + /// + /// Note: You can use the `digitalocean.getImage` data source to obtain metadata + /// about a single image if you already know the `slug`, unique `name`, or `id` to retrieve. + /// + /// ## Example Usage + /// + /// Use the `filter` block with a `key` string and `values` list to filter images. + /// + /// For example to find all Ubuntu images: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ubuntu = DigitalOcean.GetImages.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetImagesFilterInputArgs + /// { + /// Key = "distribution", + /// Values = new[] + /// { + /// "Ubuntu", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// You can filter on multiple fields and sort the results as well: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = DigitalOcean.GetImages.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetImagesFilterInputArgs + /// { + /// Key = "distribution", + /// Values = new[] + /// { + /// "Ubuntu", + /// }, + /// }, + /// new DigitalOcean.Inputs.GetImagesFilterInputArgs + /// { + /// Key = "regions", + /// Values = new[] + /// { + /// "nyc3", + /// }, + /// }, + /// }, + /// Sorts = new[] + /// { + /// new DigitalOcean.Inputs.GetImagesSortInputArgs + /// { + /// Key = "created", + /// Direction = "desc", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImagesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getImages:getImages", args ?? new GetImagesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetKubernetesCluster.cs b/sdk/dotnet/GetKubernetesCluster.cs index fbc449ca..41eb8396 100644 --- a/sdk/dotnet/GetKubernetesCluster.cs +++ b/sdk/dotnet/GetKubernetesCluster.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetKubernetesClusterA /// public static Output Invoke(GetKubernetesClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getKubernetesCluster:getKubernetesCluster", args ?? new GetKubernetesClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves information about a DigitalOcean Kubernetes cluster for use in other resources. This data source provides all of the cluster's properties as configured on your DigitalOcean account. This is useful if the cluster in question is not managed by the provider. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetKubernetesCluster.Invoke(new() + /// { + /// Name = "prod-cluster-01", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKubernetesClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getKubernetesCluster:getKubernetesCluster", args ?? new GetKubernetesClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetKubernetesVersions.cs b/sdk/dotnet/GetKubernetesVersions.cs index e22a3044..61f678be 100644 --- a/sdk/dotnet/GetKubernetesVersions.cs +++ b/sdk/dotnet/GetKubernetesVersions.cs @@ -182,6 +182,92 @@ public static Task InvokeAsync(GetKubernetesVersion /// public static Output Invoke(GetKubernetesVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getKubernetesVersions:getKubernetesVersions", args ?? new GetKubernetesVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to the available DigitalOcean Kubernetes Service versions. + /// + /// ## Example Usage + /// + /// ### Output a list of all available versions + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetKubernetesVersions.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["k8s-versions"] = example.Apply(getKubernetesVersionsResult => getKubernetesVersionsResult.ValidVersions), + /// }; + /// }); + /// ``` + /// + /// ### Create a Kubernetes cluster using the most recent version available + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetKubernetesVersions.Invoke(); + /// + /// var example_cluster = new DigitalOcean.KubernetesCluster("example-cluster", new() + /// { + /// Name = "example-cluster", + /// Region = DigitalOcean.Region.LON1, + /// Version = example.Apply(getKubernetesVersionsResult => getKubernetesVersionsResult.LatestVersion), + /// NodePool = new DigitalOcean.Inputs.KubernetesClusterNodePoolArgs + /// { + /// Name = "default", + /// Size = "s-1vcpu-2gb", + /// NodeCount = 3, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ### Pin a Kubernetes cluster to a specific minor version + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetKubernetesVersions.Invoke(new() + /// { + /// VersionPrefix = "1.22.", + /// }); + /// + /// var example_cluster = new DigitalOcean.KubernetesCluster("example-cluster", new() + /// { + /// Name = "example-cluster", + /// Region = DigitalOcean.Region.LON1, + /// Version = example.Apply(getKubernetesVersionsResult => getKubernetesVersionsResult.LatestVersion), + /// NodePool = new DigitalOcean.Inputs.KubernetesClusterNodePoolArgs + /// { + /// Name = "default", + /// Size = "s-1vcpu-2gb", + /// NodeCount = 3, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKubernetesVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getKubernetesVersions:getKubernetesVersions", args ?? new GetKubernetesVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetLoadBalancer.cs b/sdk/dotnet/GetLoadBalancer.cs index f5d25a87..3338a133 100644 --- a/sdk/dotnet/GetLoadBalancer.cs +++ b/sdk/dotnet/GetLoadBalancer.cs @@ -116,6 +116,59 @@ public static Task InvokeAsync(GetLoadBalancerArgs? args /// public static Output Invoke(GetLoadBalancerInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getLoadBalancer:getLoadBalancer", args ?? new GetLoadBalancerInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a load balancer for use in other resources. This data source + /// provides all of the load balancers properties as configured on your DigitalOcean + /// account. This is useful if the load balancer in question is not managed by + /// the provider or you need to utilize any of the load balancers data. + /// + /// An error is triggered if the provided load balancer name does not exist. + /// + /// ## Example Usage + /// + /// Get the load balancer by name: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetLoadBalancer.Invoke(new() + /// { + /// Name = "app", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["lbOutput"] = example.Apply(getLoadBalancerResult => getLoadBalancerResult.Ip), + /// }; + /// }); + /// ``` + /// + /// Get the load balancer by ID: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetLoadBalancer.Invoke(new() + /// { + /// Id = "loadbalancer_id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLoadBalancerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getLoadBalancer:getLoadBalancer", args ?? new GetLoadBalancerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetProject.cs b/sdk/dotnet/GetProject.cs index 64267761..0d93188d 100644 --- a/sdk/dotnet/GetProject.cs +++ b/sdk/dotnet/GetProject.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetProjectArgs? args = null, In /// public static Output Invoke(GetProjectInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a single DigitalOcean project. If neither the `id` nor `name` attributes are provided, + /// then this data source returns the default project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = DigitalOcean.GetProject.Invoke(); + /// + /// var staging = DigitalOcean.GetProject.Invoke(new() + /// { + /// Name = "My Staging Project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetProjects.cs b/sdk/dotnet/GetProjects.cs index 1f0fee4a..3be20430 100644 --- a/sdk/dotnet/GetProjects.cs +++ b/sdk/dotnet/GetProjects.cs @@ -186,6 +186,94 @@ public static Task InvokeAsync(GetProjectsArgs? args = null, /// public static Output Invoke(GetProjectsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about all DigitalOcean projects associated with an account, with + /// the ability to filter and sort the results. If no filters are specified, all projects + /// will be returned. + /// + /// Note: You can use the `digitalocean.Project` data source to + /// obtain metadata about a single project if you already know the `id` to retrieve or the unique + /// `name` of the project. + /// + /// ## Example Usage + /// + /// Use the `filter` block with a `key` string and `values` list to filter projects. + /// + /// For example to find all staging environment projects: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var staging = DigitalOcean.GetProjects.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetProjectsFilterInputArgs + /// { + /// Key = "environment", + /// Values = new[] + /// { + /// "Staging", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// You can filter on multiple fields and sort the results as well: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var non_default_production = DigitalOcean.GetProjects.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetProjectsFilterInputArgs + /// { + /// Key = "environment", + /// Values = new[] + /// { + /// "Production", + /// }, + /// }, + /// new DigitalOcean.Inputs.GetProjectsFilterInputArgs + /// { + /// Key = "is_default", + /// Values = new[] + /// { + /// "false", + /// }, + /// }, + /// }, + /// Sorts = new[] + /// { + /// new DigitalOcean.Inputs.GetProjectsSortInputArgs + /// { + /// Key = "name", + /// Direction = "asc", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getProjects:getProjects", args ?? new GetProjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRecord.cs b/sdk/dotnet/GetRecord.cs index 609695c0..d21552e6 100644 --- a/sdk/dotnet/GetRecord.cs +++ b/sdk/dotnet/GetRecord.cs @@ -108,6 +108,55 @@ public static Task InvokeAsync(GetRecordArgs args, InvokeOption /// public static Output Invoke(GetRecordInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRecord:getRecord", args ?? new GetRecordInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a DNS record. This data source provides the name, TTL, and zone + /// file as configured on your DigitalOcean account. This is useful if the record + /// in question is not managed by the provider. + /// + /// An error is triggered if the provided domain name or record are not managed with + /// your DigitalOcean account. + /// + /// ## Example Usage + /// + /// Get data from a DNS record: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetRecord.Invoke(new() + /// { + /// Domain = "example.com", + /// Name = "test", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["recordType"] = example.Apply(getRecordResult => getRecordResult.Type), + /// ["recordTtl"] = example.Apply(getRecordResult => getRecordResult.Ttl), + /// }; + /// }); + /// ``` + /// + /// ``` + /// + /// data.digitalocean_record.example: Refreshing state... + /// + /// Apply complete! Resources: 0 added, 0 changed, 0 destroyed. + /// + /// Outputs: + /// + /// record_ttl = 3600 + /// record_type = A + /// ``` + /// + public static Output Invoke(GetRecordInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRecord:getRecord", args ?? new GetRecordInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRecords.cs b/sdk/dotnet/GetRecords.cs index 781bdfff..625afec9 100644 --- a/sdk/dotnet/GetRecords.cs +++ b/sdk/dotnet/GetRecords.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetRecordsArgs args, InvokeOpti /// public static Output Invoke(GetRecordsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRecords:getRecords", args ?? new GetRecordsInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about all DNS records within a domain, with the ability to filter and sort the results. + /// If no filters are specified, all records will be returned. + /// + /// ## Example Usage + /// + /// Get data for all MX records in a domain: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetRecords.Invoke(new() + /// { + /// Domain = "example.com", + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetRecordsFilterInputArgs + /// { + /// Key = "type", + /// Values = new[] + /// { + /// "MX", + /// }, + /// }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["mailServers"] = Std.Join.Invoke(new() + /// { + /// Separator = ",", + /// Input = example.Apply(getRecordsResult => getRecordsResult.Records).Select(__item => __item.Value).ToList(), + /// }).Apply(invoke => invoke.Result), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRecordsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRecords:getRecords", args ?? new GetRecordsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRegion.cs b/sdk/dotnet/GetRegion.cs index c6c5d430..05e3ef8f 100644 --- a/sdk/dotnet/GetRegion.cs +++ b/sdk/dotnet/GetRegion.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRegionArgs args, InvokeOption /// public static Output Invoke(GetRegionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRegion:getRegion", args ?? new GetRegionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a single DigitalOcean region. This is useful to find out + /// what Droplet sizes and features are supported within a region. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sfo2 = DigitalOcean.GetRegion.Invoke(new() + /// { + /// Slug = "sfo2", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["regionName"] = sfo2.Apply(getRegionResult => getRegionResult.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRegion:getRegion", args ?? new GetRegionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetRegions.cs b/sdk/dotnet/GetRegions.cs index 118f9556..8f39643b 100644 --- a/sdk/dotnet/GetRegions.cs +++ b/sdk/dotnet/GetRegions.cs @@ -182,6 +182,92 @@ public static Task InvokeAsync(GetRegionsArgs? args = null, In /// public static Output Invoke(GetRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about all supported DigitalOcean regions, with the ability to + /// filter and sort the results. If no filters are specified, all regions will be returned. + /// + /// Note: You can use the `digitalocean.getRegion` data source + /// to obtain metadata about a single region if you already know the `slug` to retrieve. + /// + /// ## Example Usage + /// + /// Use the `filter` block with a `key` string and `values` list to filter regions. + /// + /// For example to find all available regions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = DigitalOcean.GetRegions.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetRegionsFilterInputArgs + /// { + /// Key = "available", + /// Values = new[] + /// { + /// "true", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// You can filter on multiple fields and sort the results as well: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = DigitalOcean.GetRegions.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetRegionsFilterInputArgs + /// { + /// Key = "available", + /// Values = new[] + /// { + /// "true", + /// }, + /// }, + /// new DigitalOcean.Inputs.GetRegionsFilterInputArgs + /// { + /// Key = "features", + /// Values = new[] + /// { + /// "private_networking", + /// }, + /// }, + /// }, + /// Sorts = new[] + /// { + /// new DigitalOcean.Inputs.GetRegionsSortInputArgs + /// { + /// Key = "name", + /// Direction = "desc", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetReservedIp.cs b/sdk/dotnet/GetReservedIp.cs index 7d9a009f..828e3873 100644 --- a/sdk/dotnet/GetReservedIp.cs +++ b/sdk/dotnet/GetReservedIp.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetReservedIpArgs args, Invo /// public static Output Invoke(GetReservedIpInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getReservedIp:getReservedIp", args ?? new GetReservedIpInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// Get the reserved IP: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// var publicIp = config.RequireObject<dynamic>("publicIp"); + /// var example = DigitalOcean.GetReservedIp.Invoke(new() + /// { + /// IpAddress = publicIp, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["fipOutput"] = example.Apply(getReservedIpResult => getReservedIpResult.DropletId), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetReservedIpInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getReservedIp:getReservedIp", args ?? new GetReservedIpInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetReservedIpv6.cs b/sdk/dotnet/GetReservedIpv6.cs index a0906ce7..0ee75eea 100644 --- a/sdk/dotnet/GetReservedIpv6.cs +++ b/sdk/dotnet/GetReservedIpv6.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetReservedIpv6Args args, public static Output Invoke(GetReservedIpv6InvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getReservedIpv6:getReservedIpv6", args ?? new GetReservedIpv6InvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetReservedIpv6InvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getReservedIpv6:getReservedIpv6", args ?? new GetReservedIpv6InvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSizes.cs b/sdk/dotnet/GetSizes.cs index 1a587efe..b8a9e3bb 100644 --- a/sdk/dotnet/GetSizes.cs +++ b/sdk/dotnet/GetSizes.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetSizesArgs? args = null, Invoke /// public static Output Invoke(GetSizesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSizes:getSizes", args ?? new GetSizesInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves information about the Droplet sizes that DigitalOcean supports, with + /// the ability to filter and sort the results. If no filters are specified, all sizes + /// will be returned. + /// + public static Output Invoke(GetSizesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSizes:getSizes", args ?? new GetSizesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSpacesBucket.cs b/sdk/dotnet/GetSpacesBucket.cs index 928b82b3..157cb36e 100644 --- a/sdk/dotnet/GetSpacesBucket.cs +++ b/sdk/dotnet/GetSpacesBucket.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetSpacesBucketArgs args, /// public static Output Invoke(GetSpacesBucketInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBucket:getSpacesBucket", args ?? new GetSpacesBucketInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question + /// is not managed by the provider or you need to utilize any of the bucket's data. + /// + /// ## Example Usage + /// + /// Get the bucket by name: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetSpacesBucket.Invoke(new() + /// { + /// Name = "my-spaces-bucket", + /// Region = "nyc3", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["bucketDomainName"] = example.Apply(getSpacesBucketResult => getSpacesBucketResult.BucketDomainName), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetSpacesBucketInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBucket:getSpacesBucket", args ?? new GetSpacesBucketInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSpacesBucketObject.cs b/sdk/dotnet/GetSpacesBucketObject.cs index b4226658..76edd718 100644 --- a/sdk/dotnet/GetSpacesBucketObject.cs +++ b/sdk/dotnet/GetSpacesBucketObject.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetSpacesBucketObjec /// public static Output Invoke(GetSpacesBucketObjectInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBucketObject:getSpacesBucketObject", args ?? new GetSpacesBucketObjectInvokeArgs(), options.WithDefaults()); + + /// + /// The Spaces object data source allows access to the metadata and + /// _optionally_ (see below) content of an object stored inside a Spaces bucket. + /// + /// > **Note:** The content of an object (`body` field) is available only for objects which have a human-readable + /// `Content-Type` (`text/*` and `application/json`). This is to prevent printing unsafe characters and potentially + /// downloading large amount of data which would be thrown away in favor of metadata. + /// + /// ## Example Usage + /// + /// The following example retrieves a text object (which must have a `Content-Type` + /// value starting with `text/`) and uses it as the `user_data` for a Droplet: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var bootstrapScript = DigitalOcean.GetSpacesBucketObject.Invoke(new() + /// { + /// Bucket = "ourcorp-deploy-config", + /// Region = "nyc3", + /// Key = "droplet-bootstrap-script.sh", + /// }); + /// + /// var web = new DigitalOcean.Droplet("web", new() + /// { + /// Image = "ubuntu-18-04-x64", + /// Name = "web-1", + /// Region = DigitalOcean.Region.NYC2, + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// UserData = bootstrapScript.Apply(getSpacesBucketObjectResult => getSpacesBucketObjectResult.Body), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSpacesBucketObjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBucketObject:getSpacesBucketObject", args ?? new GetSpacesBucketObjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSpacesBucketObjects.cs b/sdk/dotnet/GetSpacesBucketObjects.cs index 78efdc6e..a6971945 100644 --- a/sdk/dotnet/GetSpacesBucketObjects.cs +++ b/sdk/dotnet/GetSpacesBucketObjects.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetSpacesBucketObje /// public static Output Invoke(GetSpacesBucketObjectsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBucketObjects:getSpacesBucketObjects", args ?? new GetSpacesBucketObjectsInvokeArgs(), options.WithDefaults()); + + /// + /// > **NOTE on `max_keys`:** Retrieving very large numbers of keys can adversely affect the provider's performance. + /// + /// The bucket-objects data source returns keys (i.e., file names) and other metadata about objects in a Spaces bucket. + /// + public static Output Invoke(GetSpacesBucketObjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBucketObjects:getSpacesBucketObjects", args ?? new GetSpacesBucketObjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSpacesBuckets.cs b/sdk/dotnet/GetSpacesBuckets.cs index ee7e0091..e7154341 100644 --- a/sdk/dotnet/GetSpacesBuckets.cs +++ b/sdk/dotnet/GetSpacesBuckets.cs @@ -164,6 +164,83 @@ public static Task InvokeAsync(GetSpacesBucketsArgs? arg /// public static Output Invoke(GetSpacesBucketsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBuckets:getSpacesBuckets", args ?? new GetSpacesBucketsInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on Spaces buckets for use in other resources, with the ability to filter and sort the results. + /// If no filters are specified, all Spaces buckets will be returned. + /// + /// Note: You can use the `digitalocean.SpacesBucket` data source to + /// obtain metadata about a single bucket if you already know its `name` and `region`. + /// + /// ## Example Usage + /// + /// Use the `filter` block with a `key` string and `values` list to filter buckets. + /// + /// Get all buckets in a region: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nyc3 = DigitalOcean.GetSpacesBuckets.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetSpacesBucketsFilterInputArgs + /// { + /// Key = "region", + /// Values = new[] + /// { + /// "nyc3", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// You can sort the results as well: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var nyc3 = DigitalOcean.GetSpacesBuckets.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetSpacesBucketsFilterInputArgs + /// { + /// Key = "region", + /// Values = new[] + /// { + /// "nyc3", + /// }, + /// }, + /// }, + /// Sorts = new[] + /// { + /// new DigitalOcean.Inputs.GetSpacesBucketsSortInputArgs + /// { + /// Key = "name", + /// Direction = "desc", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSpacesBucketsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSpacesBuckets:getSpacesBuckets", args ?? new GetSpacesBucketsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSshKey.cs b/sdk/dotnet/GetSshKey.cs index 2390b13e..8f74639d 100644 --- a/sdk/dotnet/GetSshKey.cs +++ b/sdk/dotnet/GetSshKey.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetSshKeyArgs args, InvokeOption /// public static Output Invoke(GetSshKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSshKey:getSshKey", args ?? new GetSshKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a ssh key. This data source provides the name, public key, + /// and fingerprint as configured on your DigitalOcean account. This is useful if + /// the ssh key in question is not managed by the provider or you need to utilize any + /// of the keys data. + /// + /// An error is triggered if the provided ssh key name does not exist. + /// + /// ## Example Usage + /// + /// Get the ssh key: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetSshKey.Invoke(new() + /// { + /// Name = "example", + /// }); + /// + /// var exampleDroplet = new DigitalOcean.Droplet("example", new() + /// { + /// Image = "ubuntu-18-04-x64", + /// Name = "example-1", + /// Region = DigitalOcean.Region.NYC2, + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// SshKeys = new[] + /// { + /// example.Apply(getSshKeyResult => getSshKeyResult.Id), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSshKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSshKey:getSshKey", args ?? new GetSshKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetSshKeys.cs b/sdk/dotnet/GetSshKeys.cs index 3f5c7ba3..be117c98 100644 --- a/sdk/dotnet/GetSshKeys.cs +++ b/sdk/dotnet/GetSshKeys.cs @@ -146,6 +146,74 @@ public static Task InvokeAsync(GetSshKeysArgs? args = null, In /// public static Output Invoke(GetSshKeysInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSshKeys:getSshKeys", args ?? new GetSshKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on SSH Keys for use in other resources. + /// + /// This data source is useful if the SSH Keys in question are not managed by the provider or you need to + /// utilize any of the SSH Keys' data. + /// + /// Note: You can use the `digitalocean.SshKey` data source to obtain metadata + /// about a single SSH Key if you already know the unique `name` to retrieve. + /// + /// ## Example Usage + /// + /// For example, to find all SSH keys: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var keys = DigitalOcean.GetSshKeys.Invoke(new() + /// { + /// Sorts = new[] + /// { + /// new DigitalOcean.Inputs.GetSshKeysSortInputArgs + /// { + /// Key = "name", + /// Direction = "asc", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// Or to find ones matching specific values: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var keys = DigitalOcean.GetSshKeys.Invoke(new() + /// { + /// Filters = new[] + /// { + /// new DigitalOcean.Inputs.GetSshKeysFilterInputArgs + /// { + /// Key = "name", + /// Values = new[] + /// { + /// "laptop", + /// "desktop", + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSshKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getSshKeys:getSshKeys", args ?? new GetSshKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTag.cs b/sdk/dotnet/GetTag.cs index 7eda3439..9dcf8414 100644 --- a/sdk/dotnet/GetTag.cs +++ b/sdk/dotnet/GetTag.cs @@ -94,6 +94,48 @@ public static Task InvokeAsync(GetTagArgs args, InvokeOptions? opt /// public static Output Invoke(GetTagInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getTag:getTag", args ?? new GetTagInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a tag. This data source provides the name as configured on + /// your DigitalOcean account. This is useful if the tag name in question is not + /// managed by the provider or you need validate if the tag exists in the account. + /// + /// An error is triggered if the provided tag name does not exist. + /// + /// ## Example Usage + /// + /// Get the tag: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetTag.Invoke(new() + /// { + /// Name = "example", + /// }); + /// + /// var exampleDroplet = new DigitalOcean.Droplet("example", new() + /// { + /// Image = "ubuntu-18-04-x64", + /// Name = "example-1", + /// Region = DigitalOcean.Region.NYC2, + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// Tags = new[] + /// { + /// example.Apply(getTagResult => getTagResult.Name), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getTag:getTag", args ?? new GetTagInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetTags.cs b/sdk/dotnet/GetTags.cs index 3fa04f16..b19361a9 100644 --- a/sdk/dotnet/GetTags.cs +++ b/sdk/dotnet/GetTags.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetTagsArgs? args = null, InvokeOp /// public static Output Invoke(GetTagsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getTags:getTags", args ?? new GetTagsInvokeArgs(), options.WithDefaults()); + + /// + /// Returns a list of tags in your DigitalOcean account, with the ability to + /// filter and sort the results. If no filters are specified, all tags will be + /// returned. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var list = DigitalOcean.GetTags.Invoke(new() + /// { + /// Sorts = new[] + /// { + /// new DigitalOcean.Inputs.GetTagsSortInputArgs + /// { + /// Key = "total_resource_count", + /// Direction = "asc", + /// }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["sortedTags"] = list.Apply(getTagsResult => getTagsResult.Tags), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTagsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getTags:getTags", args ?? new GetTagsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetVolume.cs b/sdk/dotnet/GetVolume.cs index 8f6a7cca..f17ca3f1 100644 --- a/sdk/dotnet/GetVolume.cs +++ b/sdk/dotnet/GetVolume.cs @@ -140,6 +140,71 @@ public static Task InvokeAsync(GetVolumeArgs args, InvokeOption /// public static Output Invoke(GetVolumeInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVolume:getVolume", args ?? new GetVolumeInvokeArgs(), options.WithDefaults()); + + /// + /// Get information on a volume for use in other resources. This data source provides + /// all of the volumes properties as configured on your DigitalOcean account. This is + /// useful if the volume in question is not managed by the provider or you need to utilize + /// any of the volumes data. + /// + /// An error is triggered if the provided volume name does not exist. + /// + /// ## Example Usage + /// + /// Get the volume: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVolume.Invoke(new() + /// { + /// Name = "app-data", + /// Region = "nyc3", + /// }); + /// + /// }); + /// ``` + /// + /// Reuse the data about a volume to attach it to a Droplet: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVolume.Invoke(new() + /// { + /// Name = "app-data", + /// Region = "nyc3", + /// }); + /// + /// var exampleDroplet = new DigitalOcean.Droplet("example", new() + /// { + /// Name = "foo", + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// Image = "ubuntu-18-04-x64", + /// Region = DigitalOcean.Region.NYC3, + /// }); + /// + /// var foobar = new DigitalOcean.VolumeAttachment("foobar", new() + /// { + /// DropletId = exampleDroplet.Id, + /// VolumeId = example.Apply(getVolumeResult => getVolumeResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVolumeInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVolume:getVolume", args ?? new GetVolumeInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetVolumeSnapshot.cs b/sdk/dotnet/GetVolumeSnapshot.cs index 6bc8e63c..7c3385dd 100644 --- a/sdk/dotnet/GetVolumeSnapshot.cs +++ b/sdk/dotnet/GetVolumeSnapshot.cs @@ -126,6 +126,64 @@ public static Task InvokeAsync(GetVolumeSnapshotArgs? a /// public static Output Invoke(GetVolumeSnapshotInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVolumeSnapshot:getVolumeSnapshot", args ?? new GetVolumeSnapshotInvokeArgs(), options.WithDefaults()); + + /// + /// Volume snapshots are saved instances of a block storage volume. Use this data + /// source to retrieve the ID of a DigitalOcean volume snapshot for use in other + /// resources. + /// + /// ## Example Usage + /// + /// Get the volume snapshot: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var snapshot = DigitalOcean.GetVolumeSnapshot.Invoke(new() + /// { + /// NameRegex = "^web", + /// Region = "nyc3", + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + /// Reuse the data about a volume snapshot to create a new volume based on it: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var snapshot = DigitalOcean.GetVolumeSnapshot.Invoke(new() + /// { + /// NameRegex = "^web", + /// Region = "nyc3", + /// MostRecent = true, + /// }); + /// + /// var foobar = new DigitalOcean.Volume("foobar", new() + /// { + /// Region = DigitalOcean.Region.NYC3, + /// Name = "baz", + /// Size = 100, + /// SnapshotId = snapshot.Apply(getVolumeSnapshotResult => getVolumeSnapshotResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVolumeSnapshotInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVolumeSnapshot:getVolumeSnapshot", args ?? new GetVolumeSnapshotInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetVpc.cs b/sdk/dotnet/GetVpc.cs index 52ef9147..39c47e00 100644 --- a/sdk/dotnet/GetVpc.cs +++ b/sdk/dotnet/GetVpc.cs @@ -130,6 +130,66 @@ public static Task InvokeAsync(GetVpcArgs? args = null, InvokeOpti /// public static Output Invoke(GetVpcInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVpc:getVpc", args ?? new GetVpcInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about a VPC for use in other resources. + /// + /// This data source provides all of the VPC's properties as configured on your + /// DigitalOcean account. This is useful if the VPC in question is not managed by + /// the provider or you need to utilize any of the VPC's data. + /// + /// VPCs may be looked up by `id` or `name`. Specifying a `region` will + /// return that that region's default VPC. + /// + /// ## Example Usage + /// + /// ### VPC By Name + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVpc.Invoke(new() + /// { + /// Name = "example-network", + /// }); + /// + /// }); + /// ``` + /// + /// Reuse the data about a VPC to assign a Droplet to it: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVpc.Invoke(new() + /// { + /// Name = "example-network", + /// }); + /// + /// var exampleDroplet = new DigitalOcean.Droplet("example", new() + /// { + /// Name = "example-01", + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// Image = "ubuntu-18-04-x64", + /// Region = DigitalOcean.Region.NYC3, + /// VpcUuid = example.Apply(getVpcResult => getVpcResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVpcInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVpc:getVpc", args ?? new GetVpcInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GetVpcPeering.cs b/sdk/dotnet/GetVpcPeering.cs index db4393dd..9cc7e6fe 100644 --- a/sdk/dotnet/GetVpcPeering.cs +++ b/sdk/dotnet/GetVpcPeering.cs @@ -202,6 +202,102 @@ public static Task InvokeAsync(GetVpcPeeringArgs? args = nu /// public static Output Invoke(GetVpcPeeringInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVpcPeering:getVpcPeering", args ?? new GetVpcPeeringInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ### VPC Peering By Id + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVpcPeering.Invoke(new() + /// { + /// Id = "example-id", + /// }); + /// + /// }); + /// ``` + /// + /// Reuse the data about a VPC Peering in other resources: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVpcPeering.Invoke(new() + /// { + /// Id = "example-id", + /// }); + /// + /// var exampleDroplet = new DigitalOcean.Droplet("example", new() + /// { + /// Name = "example-01", + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// Image = "ubuntu-18-04-x64", + /// Region = DigitalOcean.Region.NYC3, + /// VpcUuid = example.Apply(getVpcPeeringResult => getVpcPeeringResult.VpcIds[0]), + /// }); + /// + /// }); + /// ``` + /// + /// ### VPC Peering By Name + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVpcPeering.Invoke(new() + /// { + /// Name = "example-peering", + /// }); + /// + /// }); + /// ``` + /// + /// Reuse the data about a VPC Peering in other resources: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using DigitalOcean = Pulumi.DigitalOcean; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = DigitalOcean.GetVpcPeering.Invoke(new() + /// { + /// Name = "example-peering", + /// }); + /// + /// var exampleDroplet = new DigitalOcean.Droplet("example", new() + /// { + /// Name = "example-01", + /// Size = DigitalOcean.DropletSlug.DropletS1VCPU1GB, + /// Image = "ubuntu-18-04-x64", + /// Region = DigitalOcean.Region.NYC3, + /// VpcUuid = example.Apply(getVpcPeeringResult => getVpcPeeringResult.VpcIds[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVpcPeeringInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("digitalocean:index/getVpcPeering:getVpcPeering", args ?? new GetVpcPeeringInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index 00c426ea..cf24cdee 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -56,6 +56,13 @@ static class Utilities return dst; } + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + return dst; + } + private readonly static string version; public static string Version => version; diff --git a/sdk/go.mod b/sdk/go.mod index 4495cdf3..c9f5ba2b 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.142.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 ) require ( @@ -74,14 +74,14 @@ require ( github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.24.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.26.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/tools v0.22.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 54cd0acd..8fc058c0 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= 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/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -209,8 +209,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= @@ -239,8 +239,8 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -261,15 +261,15 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -277,8 +277,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= diff --git a/sdk/go/digitalocean/getAccount.go b/sdk/go/digitalocean/getAccount.go index 208aa6a6..01d53c9b 100644 --- a/sdk/go/digitalocean/getAccount.go +++ b/sdk/go/digitalocean/getAccount.go @@ -70,18 +70,8 @@ type GetAccountResult struct { func GetAccountOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetAccountResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetAccountResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getAccount:getAccount", nil, &rv, "", opts...) - if err != nil { - return GetAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getAccount:getAccount", nil, GetAccountResultOutput{}, options).(GetAccountResultOutput), nil }).(GetAccountResultOutput) } diff --git a/sdk/go/digitalocean/getApp.go b/sdk/go/digitalocean/getApp.go index ebfe54af..95c937c8 100644 --- a/sdk/go/digitalocean/getApp.go +++ b/sdk/go/digitalocean/getApp.go @@ -87,21 +87,11 @@ type LookupAppResult struct { } func LookupAppOutput(ctx *pulumi.Context, args LookupAppOutputArgs, opts ...pulumi.InvokeOption) LookupAppResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppResultOutput, error) { args := v.(LookupAppArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getApp:getApp", args, &rv, "", opts...) - if err != nil { - return LookupAppResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getApp:getApp", args, LookupAppResultOutput{}, options).(LookupAppResultOutput), nil }).(LookupAppResultOutput) } diff --git a/sdk/go/digitalocean/getCertificate.go b/sdk/go/digitalocean/getCertificate.go index 957f371c..0fedef60 100644 --- a/sdk/go/digitalocean/getCertificate.go +++ b/sdk/go/digitalocean/getCertificate.go @@ -81,21 +81,11 @@ type LookupCertificateResult struct { } func LookupCertificateOutput(ctx *pulumi.Context, args LookupCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupCertificateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCertificateResultOutput, error) { args := v.(LookupCertificateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCertificateResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getCertificate:getCertificate", args, &rv, "", opts...) - if err != nil { - return LookupCertificateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCertificateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCertificateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getCertificate:getCertificate", args, LookupCertificateResultOutput{}, options).(LookupCertificateResultOutput), nil }).(LookupCertificateResultOutput) } diff --git a/sdk/go/digitalocean/getContainerRegistry.go b/sdk/go/digitalocean/getContainerRegistry.go index 3d6185a0..cd817dac 100644 --- a/sdk/go/digitalocean/getContainerRegistry.go +++ b/sdk/go/digitalocean/getContainerRegistry.go @@ -84,21 +84,11 @@ type LookupContainerRegistryResult struct { } func LookupContainerRegistryOutput(ctx *pulumi.Context, args LookupContainerRegistryOutputArgs, opts ...pulumi.InvokeOption) LookupContainerRegistryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupContainerRegistryResultOutput, error) { args := v.(LookupContainerRegistryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupContainerRegistryResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getContainerRegistry:getContainerRegistry", args, &rv, "", opts...) - if err != nil { - return LookupContainerRegistryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupContainerRegistryResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupContainerRegistryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getContainerRegistry:getContainerRegistry", args, LookupContainerRegistryResultOutput{}, options).(LookupContainerRegistryResultOutput), nil }).(LookupContainerRegistryResultOutput) } diff --git a/sdk/go/digitalocean/getDatabaseCa.go b/sdk/go/digitalocean/getDatabaseCa.go index dc04f9eb..9cd1bb9a 100644 --- a/sdk/go/digitalocean/getDatabaseCa.go +++ b/sdk/go/digitalocean/getDatabaseCa.go @@ -65,21 +65,11 @@ type GetDatabaseCaResult struct { } func GetDatabaseCaOutput(ctx *pulumi.Context, args GetDatabaseCaOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseCaResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabaseCaResultOutput, error) { args := v.(GetDatabaseCaArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseCaResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDatabaseCa:getDatabaseCa", args, &rv, "", opts...) - if err != nil { - return GetDatabaseCaResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabaseCaResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabaseCaResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDatabaseCa:getDatabaseCa", args, GetDatabaseCaResultOutput{}, options).(GetDatabaseCaResultOutput), nil }).(GetDatabaseCaResultOutput) } diff --git a/sdk/go/digitalocean/getDatabaseCluster.go b/sdk/go/digitalocean/getDatabaseCluster.go index a30b0c8b..65490049 100644 --- a/sdk/go/digitalocean/getDatabaseCluster.go +++ b/sdk/go/digitalocean/getDatabaseCluster.go @@ -112,21 +112,11 @@ type LookupDatabaseClusterResult struct { } func LookupDatabaseClusterOutput(ctx *pulumi.Context, args LookupDatabaseClusterOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseClusterResultOutput, error) { args := v.(LookupDatabaseClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseClusterResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDatabaseCluster:getDatabaseCluster", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDatabaseCluster:getDatabaseCluster", args, LookupDatabaseClusterResultOutput{}, options).(LookupDatabaseClusterResultOutput), nil }).(LookupDatabaseClusterResultOutput) } diff --git a/sdk/go/digitalocean/getDatabaseConnectionPool.go b/sdk/go/digitalocean/getDatabaseConnectionPool.go index c8cc8836..ace872f5 100644 --- a/sdk/go/digitalocean/getDatabaseConnectionPool.go +++ b/sdk/go/digitalocean/getDatabaseConnectionPool.go @@ -93,21 +93,11 @@ type LookupDatabaseConnectionPoolResult struct { } func LookupDatabaseConnectionPoolOutput(ctx *pulumi.Context, args LookupDatabaseConnectionPoolOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseConnectionPoolResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseConnectionPoolResultOutput, error) { args := v.(LookupDatabaseConnectionPoolArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseConnectionPoolResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDatabaseConnectionPool:getDatabaseConnectionPool", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseConnectionPoolResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseConnectionPoolResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseConnectionPoolResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDatabaseConnectionPool:getDatabaseConnectionPool", args, LookupDatabaseConnectionPoolResultOutput{}, options).(LookupDatabaseConnectionPoolResultOutput), nil }).(LookupDatabaseConnectionPoolResultOutput) } diff --git a/sdk/go/digitalocean/getDatabaseReplica.go b/sdk/go/digitalocean/getDatabaseReplica.go index 527e42bf..70ccb254 100644 --- a/sdk/go/digitalocean/getDatabaseReplica.go +++ b/sdk/go/digitalocean/getDatabaseReplica.go @@ -98,21 +98,11 @@ type LookupDatabaseReplicaResult struct { } func LookupDatabaseReplicaOutput(ctx *pulumi.Context, args LookupDatabaseReplicaOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseReplicaResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseReplicaResultOutput, error) { args := v.(LookupDatabaseReplicaArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseReplicaResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDatabaseReplica:getDatabaseReplica", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseReplicaResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseReplicaResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseReplicaResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDatabaseReplica:getDatabaseReplica", args, LookupDatabaseReplicaResultOutput{}, options).(LookupDatabaseReplicaResultOutput), nil }).(LookupDatabaseReplicaResultOutput) } diff --git a/sdk/go/digitalocean/getDatabaseUser.go b/sdk/go/digitalocean/getDatabaseUser.go index f09aa2c1..cbcab077 100644 --- a/sdk/go/digitalocean/getDatabaseUser.go +++ b/sdk/go/digitalocean/getDatabaseUser.go @@ -84,21 +84,11 @@ type LookupDatabaseUserResult struct { } func LookupDatabaseUserOutput(ctx *pulumi.Context, args LookupDatabaseUserOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseUserResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseUserResultOutput, error) { args := v.(LookupDatabaseUserArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseUserResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDatabaseUser:getDatabaseUser", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseUserResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseUserResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseUserResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDatabaseUser:getDatabaseUser", args, LookupDatabaseUserResultOutput{}, options).(LookupDatabaseUserResultOutput), nil }).(LookupDatabaseUserResultOutput) } diff --git a/sdk/go/digitalocean/getDomain.go b/sdk/go/digitalocean/getDomain.go index b58676d1..53918e48 100644 --- a/sdk/go/digitalocean/getDomain.go +++ b/sdk/go/digitalocean/getDomain.go @@ -77,21 +77,11 @@ type LookupDomainResult struct { } func LookupDomainOutput(ctx *pulumi.Context, args LookupDomainOutputArgs, opts ...pulumi.InvokeOption) LookupDomainResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDomainResultOutput, error) { args := v.(LookupDomainArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDomainResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDomain:getDomain", args, &rv, "", opts...) - if err != nil { - return LookupDomainResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDomainResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDomainResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDomain:getDomain", args, LookupDomainResultOutput{}, options).(LookupDomainResultOutput), nil }).(LookupDomainResultOutput) } diff --git a/sdk/go/digitalocean/getDomains.go b/sdk/go/digitalocean/getDomains.go index f8197089..27fe9019 100644 --- a/sdk/go/digitalocean/getDomains.go +++ b/sdk/go/digitalocean/getDomains.go @@ -87,21 +87,11 @@ type GetDomainsResult struct { } func GetDomainsOutput(ctx *pulumi.Context, args GetDomainsOutputArgs, opts ...pulumi.InvokeOption) GetDomainsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDomainsResultOutput, error) { args := v.(GetDomainsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDomainsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDomains:getDomains", args, &rv, "", opts...) - if err != nil { - return GetDomainsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDomainsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDomainsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDomains:getDomains", args, GetDomainsResultOutput{}, options).(GetDomainsResultOutput), nil }).(GetDomainsResultOutput) } diff --git a/sdk/go/digitalocean/getDroplet.go b/sdk/go/digitalocean/getDroplet.go index bac5451b..a6c5b13f 100644 --- a/sdk/go/digitalocean/getDroplet.go +++ b/sdk/go/digitalocean/getDroplet.go @@ -178,21 +178,11 @@ type LookupDropletResult struct { } func LookupDropletOutput(ctx *pulumi.Context, args LookupDropletOutputArgs, opts ...pulumi.InvokeOption) LookupDropletResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDropletResultOutput, error) { args := v.(LookupDropletArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDropletResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDroplet:getDroplet", args, &rv, "", opts...) - if err != nil { - return LookupDropletResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDropletResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDropletResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDroplet:getDroplet", args, LookupDropletResultOutput{}, options).(LookupDropletResultOutput), nil }).(LookupDropletResultOutput) } diff --git a/sdk/go/digitalocean/getDropletAutoscale.go b/sdk/go/digitalocean/getDropletAutoscale.go index 7f155484..ac4ffa67 100644 --- a/sdk/go/digitalocean/getDropletAutoscale.go +++ b/sdk/go/digitalocean/getDropletAutoscale.go @@ -95,21 +95,11 @@ type LookupDropletAutoscaleResult struct { } func LookupDropletAutoscaleOutput(ctx *pulumi.Context, args LookupDropletAutoscaleOutputArgs, opts ...pulumi.InvokeOption) LookupDropletAutoscaleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDropletAutoscaleResultOutput, error) { args := v.(LookupDropletAutoscaleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDropletAutoscaleResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDropletAutoscale:getDropletAutoscale", args, &rv, "", opts...) - if err != nil { - return LookupDropletAutoscaleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDropletAutoscaleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDropletAutoscaleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDropletAutoscale:getDropletAutoscale", args, LookupDropletAutoscaleResultOutput{}, options).(LookupDropletAutoscaleResultOutput), nil }).(LookupDropletAutoscaleResultOutput) } diff --git a/sdk/go/digitalocean/getDropletSnapshot.go b/sdk/go/digitalocean/getDropletSnapshot.go index e61bcb81..841950d0 100644 --- a/sdk/go/digitalocean/getDropletSnapshot.go +++ b/sdk/go/digitalocean/getDropletSnapshot.go @@ -128,21 +128,11 @@ type LookupDropletSnapshotResult struct { } func LookupDropletSnapshotOutput(ctx *pulumi.Context, args LookupDropletSnapshotOutputArgs, opts ...pulumi.InvokeOption) LookupDropletSnapshotResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDropletSnapshotResultOutput, error) { args := v.(LookupDropletSnapshotArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDropletSnapshotResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDropletSnapshot:getDropletSnapshot", args, &rv, "", opts...) - if err != nil { - return LookupDropletSnapshotResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDropletSnapshotResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDropletSnapshotResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDropletSnapshot:getDropletSnapshot", args, LookupDropletSnapshotResultOutput{}, options).(LookupDropletSnapshotResultOutput), nil }).(LookupDropletSnapshotResultOutput) } diff --git a/sdk/go/digitalocean/getDroplets.go b/sdk/go/digitalocean/getDroplets.go index e38fe3ff..8cd268d4 100644 --- a/sdk/go/digitalocean/getDroplets.go +++ b/sdk/go/digitalocean/getDroplets.go @@ -138,21 +138,11 @@ type GetDropletsResult struct { } func GetDropletsOutput(ctx *pulumi.Context, args GetDropletsOutputArgs, opts ...pulumi.InvokeOption) GetDropletsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDropletsResultOutput, error) { args := v.(GetDropletsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDropletsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getDroplets:getDroplets", args, &rv, "", opts...) - if err != nil { - return GetDropletsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDropletsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDropletsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getDroplets:getDroplets", args, GetDropletsResultOutput{}, options).(GetDropletsResultOutput), nil }).(GetDropletsResultOutput) } diff --git a/sdk/go/digitalocean/getFirewall.go b/sdk/go/digitalocean/getFirewall.go index b28a5c9b..ba9fc230 100644 --- a/sdk/go/digitalocean/getFirewall.go +++ b/sdk/go/digitalocean/getFirewall.go @@ -93,21 +93,11 @@ type LookupFirewallResult struct { } func LookupFirewallOutput(ctx *pulumi.Context, args LookupFirewallOutputArgs, opts ...pulumi.InvokeOption) LookupFirewallResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFirewallResultOutput, error) { args := v.(LookupFirewallArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFirewallResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getFirewall:getFirewall", args, &rv, "", opts...) - if err != nil { - return LookupFirewallResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFirewallResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFirewallResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getFirewall:getFirewall", args, LookupFirewallResultOutput{}, options).(LookupFirewallResultOutput), nil }).(LookupFirewallResultOutput) } diff --git a/sdk/go/digitalocean/getFloatingIp.go b/sdk/go/digitalocean/getFloatingIp.go index a80417e4..c5c9d547 100644 --- a/sdk/go/digitalocean/getFloatingIp.go +++ b/sdk/go/digitalocean/getFloatingIp.go @@ -81,21 +81,11 @@ type LookupFloatingIpResult struct { } func LookupFloatingIpOutput(ctx *pulumi.Context, args LookupFloatingIpOutputArgs, opts ...pulumi.InvokeOption) LookupFloatingIpResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFloatingIpResultOutput, error) { args := v.(LookupFloatingIpArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFloatingIpResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getFloatingIp:getFloatingIp", args, &rv, "", opts...) - if err != nil { - return LookupFloatingIpResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFloatingIpResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFloatingIpResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getFloatingIp:getFloatingIp", args, LookupFloatingIpResultOutput{}, options).(LookupFloatingIpResultOutput), nil }).(LookupFloatingIpResultOutput) } diff --git a/sdk/go/digitalocean/getImage.go b/sdk/go/digitalocean/getImage.go index 22d3065f..af62b807 100644 --- a/sdk/go/digitalocean/getImage.go +++ b/sdk/go/digitalocean/getImage.go @@ -167,21 +167,11 @@ type GetImageResult struct { } func GetImageOutput(ctx *pulumi.Context, args GetImageOutputArgs, opts ...pulumi.InvokeOption) GetImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImageResultOutput, error) { args := v.(GetImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImageResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getImage:getImage", args, &rv, "", opts...) - if err != nil { - return GetImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImageResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getImage:getImage", args, GetImageResultOutput{}, options).(GetImageResultOutput), nil }).(GetImageResultOutput) } diff --git a/sdk/go/digitalocean/getImages.go b/sdk/go/digitalocean/getImages.go index 0c35d5a4..ef49cb4a 100644 --- a/sdk/go/digitalocean/getImages.go +++ b/sdk/go/digitalocean/getImages.go @@ -133,21 +133,11 @@ type GetImagesResult struct { } func GetImagesOutput(ctx *pulumi.Context, args GetImagesOutputArgs, opts ...pulumi.InvokeOption) GetImagesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImagesResultOutput, error) { args := v.(GetImagesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImagesResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getImages:getImages", args, &rv, "", opts...) - if err != nil { - return GetImagesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImagesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImagesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getImages:getImages", args, GetImagesResultOutput{}, options).(GetImagesResultOutput), nil }).(GetImagesResultOutput) } diff --git a/sdk/go/digitalocean/getKubernetesCluster.go b/sdk/go/digitalocean/getKubernetesCluster.go index 15e30a6b..bf814434 100644 --- a/sdk/go/digitalocean/getKubernetesCluster.go +++ b/sdk/go/digitalocean/getKubernetesCluster.go @@ -99,21 +99,11 @@ type LookupKubernetesClusterResult struct { } func LookupKubernetesClusterOutput(ctx *pulumi.Context, args LookupKubernetesClusterOutputArgs, opts ...pulumi.InvokeOption) LookupKubernetesClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupKubernetesClusterResultOutput, error) { args := v.(LookupKubernetesClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupKubernetesClusterResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getKubernetesCluster:getKubernetesCluster", args, &rv, "", opts...) - if err != nil { - return LookupKubernetesClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupKubernetesClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupKubernetesClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getKubernetesCluster:getKubernetesCluster", args, LookupKubernetesClusterResultOutput{}, options).(LookupKubernetesClusterResultOutput), nil }).(LookupKubernetesClusterResultOutput) } diff --git a/sdk/go/digitalocean/getKubernetesVersions.go b/sdk/go/digitalocean/getKubernetesVersions.go index 58e0752c..b17d3e43 100644 --- a/sdk/go/digitalocean/getKubernetesVersions.go +++ b/sdk/go/digitalocean/getKubernetesVersions.go @@ -143,21 +143,11 @@ type GetKubernetesVersionsResult struct { } func GetKubernetesVersionsOutput(ctx *pulumi.Context, args GetKubernetesVersionsOutputArgs, opts ...pulumi.InvokeOption) GetKubernetesVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKubernetesVersionsResultOutput, error) { args := v.(GetKubernetesVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKubernetesVersionsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getKubernetesVersions:getKubernetesVersions", args, &rv, "", opts...) - if err != nil { - return GetKubernetesVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKubernetesVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKubernetesVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getKubernetesVersions:getKubernetesVersions", args, GetKubernetesVersionsResultOutput{}, options).(GetKubernetesVersionsResultOutput), nil }).(GetKubernetesVersionsResultOutput) } diff --git a/sdk/go/digitalocean/getLoadBalancer.go b/sdk/go/digitalocean/getLoadBalancer.go index 11c9c317..0e733033 100644 --- a/sdk/go/digitalocean/getLoadBalancer.go +++ b/sdk/go/digitalocean/getLoadBalancer.go @@ -123,21 +123,11 @@ type LookupLoadBalancerResult struct { } func LookupLoadBalancerOutput(ctx *pulumi.Context, args LookupLoadBalancerOutputArgs, opts ...pulumi.InvokeOption) LookupLoadBalancerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupLoadBalancerResultOutput, error) { args := v.(LookupLoadBalancerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupLoadBalancerResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getLoadBalancer:getLoadBalancer", args, &rv, "", opts...) - if err != nil { - return LookupLoadBalancerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupLoadBalancerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupLoadBalancerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getLoadBalancer:getLoadBalancer", args, LookupLoadBalancerResultOutput{}, options).(LookupLoadBalancerResultOutput), nil }).(LookupLoadBalancerResultOutput) } diff --git a/sdk/go/digitalocean/getProject.go b/sdk/go/digitalocean/getProject.go index 1ac6612b..e27b902f 100644 --- a/sdk/go/digitalocean/getProject.go +++ b/sdk/go/digitalocean/getProject.go @@ -86,21 +86,11 @@ type LookupProjectResult struct { } func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts ...pulumi.InvokeOption) LookupProjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupProjectResultOutput, error) { args := v.(LookupProjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupProjectResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getProject:getProject", args, &rv, "", opts...) - if err != nil { - return LookupProjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupProjectResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupProjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getProject:getProject", args, LookupProjectResultOutput{}, options).(LookupProjectResultOutput), nil }).(LookupProjectResultOutput) } diff --git a/sdk/go/digitalocean/getProjects.go b/sdk/go/digitalocean/getProjects.go index 88e49058..afb477ad 100644 --- a/sdk/go/digitalocean/getProjects.go +++ b/sdk/go/digitalocean/getProjects.go @@ -132,21 +132,11 @@ type GetProjectsResult struct { } func GetProjectsOutput(ctx *pulumi.Context, args GetProjectsOutputArgs, opts ...pulumi.InvokeOption) GetProjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectsResultOutput, error) { args := v.(GetProjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getProjects:getProjects", args, &rv, "", opts...) - if err != nil { - return GetProjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getProjects:getProjects", args, GetProjectsResultOutput{}, options).(GetProjectsResultOutput), nil }).(GetProjectsResultOutput) } diff --git a/sdk/go/digitalocean/getRecord.go b/sdk/go/digitalocean/getRecord.go index 56206607..c0455dfa 100644 --- a/sdk/go/digitalocean/getRecord.go +++ b/sdk/go/digitalocean/getRecord.go @@ -91,21 +91,11 @@ type GetRecordResult struct { } func GetRecordOutput(ctx *pulumi.Context, args GetRecordOutputArgs, opts ...pulumi.InvokeOption) GetRecordResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRecordResultOutput, error) { args := v.(GetRecordArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRecordResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getRecord:getRecord", args, &rv, "", opts...) - if err != nil { - return GetRecordResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRecordResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRecordResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getRecord:getRecord", args, GetRecordResultOutput{}, options).(GetRecordResultOutput), nil }).(GetRecordResultOutput) } diff --git a/sdk/go/digitalocean/getRecords.go b/sdk/go/digitalocean/getRecords.go index 7413825a..c75765ce 100644 --- a/sdk/go/digitalocean/getRecords.go +++ b/sdk/go/digitalocean/getRecords.go @@ -86,21 +86,11 @@ type GetRecordsResult struct { } func GetRecordsOutput(ctx *pulumi.Context, args GetRecordsOutputArgs, opts ...pulumi.InvokeOption) GetRecordsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRecordsResultOutput, error) { args := v.(GetRecordsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRecordsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getRecords:getRecords", args, &rv, "", opts...) - if err != nil { - return GetRecordsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRecordsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRecordsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getRecords:getRecords", args, GetRecordsResultOutput{}, options).(GetRecordsResultOutput), nil }).(GetRecordsResultOutput) } diff --git a/sdk/go/digitalocean/getRegion.go b/sdk/go/digitalocean/getRegion.go index ce37679d..1122c33e 100644 --- a/sdk/go/digitalocean/getRegion.go +++ b/sdk/go/digitalocean/getRegion.go @@ -73,21 +73,11 @@ type GetRegionResult struct { } func GetRegionOutput(ctx *pulumi.Context, args GetRegionOutputArgs, opts ...pulumi.InvokeOption) GetRegionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionResultOutput, error) { args := v.(GetRegionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getRegion:getRegion", args, &rv, "", opts...) - if err != nil { - return GetRegionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getRegion:getRegion", args, GetRegionResultOutput{}, options).(GetRegionResultOutput), nil }).(GetRegionResultOutput) } diff --git a/sdk/go/digitalocean/getRegions.go b/sdk/go/digitalocean/getRegions.go index e1586835..96d95bd6 100644 --- a/sdk/go/digitalocean/getRegions.go +++ b/sdk/go/digitalocean/getRegions.go @@ -129,21 +129,11 @@ type GetRegionsResult struct { } func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionsResultOutput, error) { args := v.(GetRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getRegions:getRegions", args, &rv, "", opts...) - if err != nil { - return GetRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getRegions:getRegions", args, GetRegionsResultOutput{}, options).(GetRegionsResultOutput), nil }).(GetRegionsResultOutput) } diff --git a/sdk/go/digitalocean/getReservedIp.go b/sdk/go/digitalocean/getReservedIp.go index 292c016d..706ffe6e 100644 --- a/sdk/go/digitalocean/getReservedIp.go +++ b/sdk/go/digitalocean/getReservedIp.go @@ -72,21 +72,11 @@ type LookupReservedIpResult struct { } func LookupReservedIpOutput(ctx *pulumi.Context, args LookupReservedIpOutputArgs, opts ...pulumi.InvokeOption) LookupReservedIpResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupReservedIpResultOutput, error) { args := v.(LookupReservedIpArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupReservedIpResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getReservedIp:getReservedIp", args, &rv, "", opts...) - if err != nil { - return LookupReservedIpResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupReservedIpResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupReservedIpResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getReservedIp:getReservedIp", args, LookupReservedIpResultOutput{}, options).(LookupReservedIpResultOutput), nil }).(LookupReservedIpResultOutput) } diff --git a/sdk/go/digitalocean/getReservedIpv6.go b/sdk/go/digitalocean/getReservedIpv6.go index de6119d5..962c2a80 100644 --- a/sdk/go/digitalocean/getReservedIpv6.go +++ b/sdk/go/digitalocean/getReservedIpv6.go @@ -37,21 +37,11 @@ type LookupReservedIpv6Result struct { } func LookupReservedIpv6Output(ctx *pulumi.Context, args LookupReservedIpv6OutputArgs, opts ...pulumi.InvokeOption) LookupReservedIpv6ResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupReservedIpv6ResultOutput, error) { args := v.(LookupReservedIpv6Args) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupReservedIpv6Result - secret, err := ctx.InvokePackageRaw("digitalocean:index/getReservedIpv6:getReservedIpv6", args, &rv, "", opts...) - if err != nil { - return LookupReservedIpv6ResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupReservedIpv6ResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupReservedIpv6ResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getReservedIpv6:getReservedIpv6", args, LookupReservedIpv6ResultOutput{}, options).(LookupReservedIpv6ResultOutput), nil }).(LookupReservedIpv6ResultOutput) } diff --git a/sdk/go/digitalocean/getSizes.go b/sdk/go/digitalocean/getSizes.go index a4c4f18d..c06a3e08 100644 --- a/sdk/go/digitalocean/getSizes.go +++ b/sdk/go/digitalocean/getSizes.go @@ -44,21 +44,11 @@ type GetSizesResult struct { } func GetSizesOutput(ctx *pulumi.Context, args GetSizesOutputArgs, opts ...pulumi.InvokeOption) GetSizesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSizesResultOutput, error) { args := v.(GetSizesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSizesResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getSizes:getSizes", args, &rv, "", opts...) - if err != nil { - return GetSizesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSizesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSizesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getSizes:getSizes", args, GetSizesResultOutput{}, options).(GetSizesResultOutput), nil }).(GetSizesResultOutput) } diff --git a/sdk/go/digitalocean/getSpacesBucket.go b/sdk/go/digitalocean/getSpacesBucket.go index aa18331c..83a4887c 100644 --- a/sdk/go/digitalocean/getSpacesBucket.go +++ b/sdk/go/digitalocean/getSpacesBucket.go @@ -78,21 +78,11 @@ type LookupSpacesBucketResult struct { } func LookupSpacesBucketOutput(ctx *pulumi.Context, args LookupSpacesBucketOutputArgs, opts ...pulumi.InvokeOption) LookupSpacesBucketResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSpacesBucketResultOutput, error) { args := v.(LookupSpacesBucketArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSpacesBucketResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getSpacesBucket:getSpacesBucket", args, &rv, "", opts...) - if err != nil { - return LookupSpacesBucketResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSpacesBucketResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSpacesBucketResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getSpacesBucket:getSpacesBucket", args, LookupSpacesBucketResultOutput{}, options).(LookupSpacesBucketResultOutput), nil }).(LookupSpacesBucketResultOutput) } diff --git a/sdk/go/digitalocean/getSpacesBucketObject.go b/sdk/go/digitalocean/getSpacesBucketObject.go index 867f9fca..9bd2c6ac 100644 --- a/sdk/go/digitalocean/getSpacesBucketObject.go +++ b/sdk/go/digitalocean/getSpacesBucketObject.go @@ -120,21 +120,11 @@ type LookupSpacesBucketObjectResult struct { } func LookupSpacesBucketObjectOutput(ctx *pulumi.Context, args LookupSpacesBucketObjectOutputArgs, opts ...pulumi.InvokeOption) LookupSpacesBucketObjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSpacesBucketObjectResultOutput, error) { args := v.(LookupSpacesBucketObjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSpacesBucketObjectResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getSpacesBucketObject:getSpacesBucketObject", args, &rv, "", opts...) - if err != nil { - return LookupSpacesBucketObjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSpacesBucketObjectResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSpacesBucketObjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getSpacesBucketObject:getSpacesBucketObject", args, LookupSpacesBucketObjectResultOutput{}, options).(LookupSpacesBucketObjectResultOutput), nil }).(LookupSpacesBucketObjectResultOutput) } diff --git a/sdk/go/digitalocean/getSpacesBucketObjects.go b/sdk/go/digitalocean/getSpacesBucketObjects.go index ec36eca6..aacbf560 100644 --- a/sdk/go/digitalocean/getSpacesBucketObjects.go +++ b/sdk/go/digitalocean/getSpacesBucketObjects.go @@ -59,21 +59,11 @@ type GetSpacesBucketObjectsResult struct { } func GetSpacesBucketObjectsOutput(ctx *pulumi.Context, args GetSpacesBucketObjectsOutputArgs, opts ...pulumi.InvokeOption) GetSpacesBucketObjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSpacesBucketObjectsResultOutput, error) { args := v.(GetSpacesBucketObjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSpacesBucketObjectsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getSpacesBucketObjects:getSpacesBucketObjects", args, &rv, "", opts...) - if err != nil { - return GetSpacesBucketObjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSpacesBucketObjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSpacesBucketObjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getSpacesBucketObjects:getSpacesBucketObjects", args, GetSpacesBucketObjectsResultOutput{}, options).(GetSpacesBucketObjectsResultOutput), nil }).(GetSpacesBucketObjectsResultOutput) } diff --git a/sdk/go/digitalocean/getSpacesBuckets.go b/sdk/go/digitalocean/getSpacesBuckets.go index 7e37cd44..bff59933 100644 --- a/sdk/go/digitalocean/getSpacesBuckets.go +++ b/sdk/go/digitalocean/getSpacesBuckets.go @@ -122,21 +122,11 @@ type GetSpacesBucketsResult struct { } func GetSpacesBucketsOutput(ctx *pulumi.Context, args GetSpacesBucketsOutputArgs, opts ...pulumi.InvokeOption) GetSpacesBucketsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSpacesBucketsResultOutput, error) { args := v.(GetSpacesBucketsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSpacesBucketsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getSpacesBuckets:getSpacesBuckets", args, &rv, "", opts...) - if err != nil { - return GetSpacesBucketsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSpacesBucketsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSpacesBucketsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getSpacesBuckets:getSpacesBuckets", args, GetSpacesBucketsResultOutput{}, options).(GetSpacesBucketsResultOutput), nil }).(GetSpacesBucketsResultOutput) } diff --git a/sdk/go/digitalocean/getSshKey.go b/sdk/go/digitalocean/getSshKey.go index 1a3b5281..bd399a5d 100644 --- a/sdk/go/digitalocean/getSshKey.go +++ b/sdk/go/digitalocean/getSshKey.go @@ -85,21 +85,11 @@ type LookupSshKeyResult struct { } func LookupSshKeyOutput(ctx *pulumi.Context, args LookupSshKeyOutputArgs, opts ...pulumi.InvokeOption) LookupSshKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSshKeyResultOutput, error) { args := v.(LookupSshKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSshKeyResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getSshKey:getSshKey", args, &rv, "", opts...) - if err != nil { - return LookupSshKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSshKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSshKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getSshKey:getSshKey", args, LookupSshKeyResultOutput{}, options).(LookupSshKeyResultOutput), nil }).(LookupSshKeyResultOutput) } diff --git a/sdk/go/digitalocean/getSshKeys.go b/sdk/go/digitalocean/getSshKeys.go index 75f864a9..b4dda712 100644 --- a/sdk/go/digitalocean/getSshKeys.go +++ b/sdk/go/digitalocean/getSshKeys.go @@ -116,21 +116,11 @@ type GetSshKeysResult struct { } func GetSshKeysOutput(ctx *pulumi.Context, args GetSshKeysOutputArgs, opts ...pulumi.InvokeOption) GetSshKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSshKeysResultOutput, error) { args := v.(GetSshKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSshKeysResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getSshKeys:getSshKeys", args, &rv, "", opts...) - if err != nil { - return GetSshKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSshKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSshKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getSshKeys:getSshKeys", args, GetSshKeysResultOutput{}, options).(GetSshKeysResultOutput), nil }).(GetSshKeysResultOutput) } diff --git a/sdk/go/digitalocean/getTag.go b/sdk/go/digitalocean/getTag.go index 9dcf2864..bc9aa3d7 100644 --- a/sdk/go/digitalocean/getTag.go +++ b/sdk/go/digitalocean/getTag.go @@ -92,21 +92,11 @@ type LookupTagResult struct { } func LookupTagOutput(ctx *pulumi.Context, args LookupTagOutputArgs, opts ...pulumi.InvokeOption) LookupTagResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagResultOutput, error) { args := v.(LookupTagArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getTag:getTag", args, &rv, "", opts...) - if err != nil { - return LookupTagResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getTag:getTag", args, LookupTagResultOutput{}, options).(LookupTagResultOutput), nil }).(LookupTagResultOutput) } diff --git a/sdk/go/digitalocean/getTags.go b/sdk/go/digitalocean/getTags.go index 07f1614b..7ce1321a 100644 --- a/sdk/go/digitalocean/getTags.go +++ b/sdk/go/digitalocean/getTags.go @@ -76,21 +76,11 @@ type GetTagsResult struct { } func GetTagsOutput(ctx *pulumi.Context, args GetTagsOutputArgs, opts ...pulumi.InvokeOption) GetTagsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTagsResultOutput, error) { args := v.(GetTagsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTagsResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getTags:getTags", args, &rv, "", opts...) - if err != nil { - return GetTagsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTagsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTagsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getTags:getTags", args, GetTagsResultOutput{}, options).(GetTagsResultOutput), nil }).(GetTagsResultOutput) } diff --git a/sdk/go/digitalocean/getVolume.go b/sdk/go/digitalocean/getVolume.go index 2f694adb..47a1356b 100644 --- a/sdk/go/digitalocean/getVolume.go +++ b/sdk/go/digitalocean/getVolume.go @@ -132,21 +132,11 @@ type LookupVolumeResult struct { } func LookupVolumeOutput(ctx *pulumi.Context, args LookupVolumeOutputArgs, opts ...pulumi.InvokeOption) LookupVolumeResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVolumeResultOutput, error) { args := v.(LookupVolumeArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVolumeResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getVolume:getVolume", args, &rv, "", opts...) - if err != nil { - return LookupVolumeResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVolumeResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVolumeResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getVolume:getVolume", args, LookupVolumeResultOutput{}, options).(LookupVolumeResultOutput), nil }).(LookupVolumeResultOutput) } diff --git a/sdk/go/digitalocean/getVolumeSnapshot.go b/sdk/go/digitalocean/getVolumeSnapshot.go index d21d4965..745a0e61 100644 --- a/sdk/go/digitalocean/getVolumeSnapshot.go +++ b/sdk/go/digitalocean/getVolumeSnapshot.go @@ -130,21 +130,11 @@ type LookupVolumeSnapshotResult struct { } func LookupVolumeSnapshotOutput(ctx *pulumi.Context, args LookupVolumeSnapshotOutputArgs, opts ...pulumi.InvokeOption) LookupVolumeSnapshotResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVolumeSnapshotResultOutput, error) { args := v.(LookupVolumeSnapshotArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVolumeSnapshotResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getVolumeSnapshot:getVolumeSnapshot", args, &rv, "", opts...) - if err != nil { - return LookupVolumeSnapshotResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVolumeSnapshotResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVolumeSnapshotResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getVolumeSnapshot:getVolumeSnapshot", args, LookupVolumeSnapshotResultOutput{}, options).(LookupVolumeSnapshotResultOutput), nil }).(LookupVolumeSnapshotResultOutput) } diff --git a/sdk/go/digitalocean/getVpc.go b/sdk/go/digitalocean/getVpc.go index 91a5e07e..56346454 100644 --- a/sdk/go/digitalocean/getVpc.go +++ b/sdk/go/digitalocean/getVpc.go @@ -124,21 +124,11 @@ type LookupVpcResult struct { } func LookupVpcOutput(ctx *pulumi.Context, args LookupVpcOutputArgs, opts ...pulumi.InvokeOption) LookupVpcResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVpcResultOutput, error) { args := v.(LookupVpcArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVpcResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getVpc:getVpc", args, &rv, "", opts...) - if err != nil { - return LookupVpcResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVpcResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVpcResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getVpc:getVpc", args, LookupVpcResultOutput{}, options).(LookupVpcResultOutput), nil }).(LookupVpcResultOutput) } diff --git a/sdk/go/digitalocean/getVpcPeering.go b/sdk/go/digitalocean/getVpcPeering.go index 38484585..ab90851d 100644 --- a/sdk/go/digitalocean/getVpcPeering.go +++ b/sdk/go/digitalocean/getVpcPeering.go @@ -171,21 +171,11 @@ type LookupVpcPeeringResult struct { } func LookupVpcPeeringOutput(ctx *pulumi.Context, args LookupVpcPeeringOutputArgs, opts ...pulumi.InvokeOption) LookupVpcPeeringResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVpcPeeringResultOutput, error) { args := v.(LookupVpcPeeringArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVpcPeeringResult - secret, err := ctx.InvokePackageRaw("digitalocean:index/getVpcPeering:getVpcPeering", args, &rv, "", opts...) - if err != nil { - return LookupVpcPeeringResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVpcPeeringResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVpcPeeringResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("digitalocean:index/getVpcPeering:getVpcPeering", args, LookupVpcPeeringResultOutput{}, options).(LookupVpcPeeringResultOutput), nil }).(LookupVpcPeeringResultOutput) } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index a08bd943..6c625758 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.136.0", + "@pulumi/pulumi": "^3.142.0", "builtin-modules": "3.0.0", "read-package-tree": "^5.2.1", "resolve": "^1.7.1" diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 483f56b8..e8a045e9 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pulumi_digitalocean" description = "A Pulumi package for creating and managing DigitalOcean cloud resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] + dependencies = ["parver>=0.2.1", "pulumi>=3.142.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "digitalocean"] readme = "README.md" - requires-python = ">=3.8" + requires-python = ">=3.9" version = "4.0.0a0+dev" [project.license] text = "Apache-2.0"