diff --git a/examples/go.mod b/examples/go.mod index 526c7611..93f02bcb 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-vsphere/examples/v4 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.130.0 +require github.com/pulumi/pulumi/pkg/v3 v3.133.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -122,8 +122,8 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.130.0 // indirect + github.com/pulumi/esc v0.10.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.133.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 @@ -137,7 +137,6 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.9.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect diff --git a/examples/go.sum b/examples/go.sum index 1fc06cde..3cbb21d7 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -340,12 +340,12 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= 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/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= -github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= -github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= -github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +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.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= +github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= +github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= +github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= 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= @@ -390,8 +390,6 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= diff --git a/provider/go.mod b/provider/go.mod index be6138ab..af685d41 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,14 +11,13 @@ replace ( require ( github.com/hashicorp/terraform-provider-vsphere v2.3.1+incompatible - github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 - github.com/pulumi/pulumi/sdk/v3 v3.130.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0 + github.com/pulumi/pulumi/sdk/v3 v3.133.0 ) require ( cloud.google.com/go v0.112.1 // indirect - cloud.google.com/go/compute v1.25.0 // indirect - cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/compute/metadata v0.3.0 // indirect cloud.google.com/go/iam v1.1.6 // indirect cloud.google.com/go/kms v1.15.7 // indirect cloud.google.com/go/logging v1.9.0 // indirect @@ -88,7 +87,7 @@ require ( github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect - github.com/golang/glog v1.2.0 // indirect + github.com/golang/glog v1.2.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/go-cmp v0.6.0 // indirect @@ -108,7 +107,7 @@ require ( github.com/hashicorp/go-getter v1.7.5 // indirect github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.6.0 // indirect + github.com/hashicorp/go-plugin v1.6.1 // indirect github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect @@ -124,7 +123,7 @@ require ( github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.21.0 // indirect github.com/hashicorp/terraform-json v0.22.1 // indirect - github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.24.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect @@ -174,12 +173,12 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/posener/complete v1.2.3 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.9.1 // indirect + github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.14.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.16.1 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect - github.com/pulumi/pulumi-yaml v1.9.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.130.0 // indirect + github.com/pulumi/pulumi-yaml v1.10.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.133.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect @@ -200,7 +199,6 @@ require ( github.com/stretchr/testify v1.9.0 // indirect github.com/teekennedy/goldmark-markdown v0.3.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/ulikunitz/xz v0.5.11 // indirect @@ -227,7 +225,7 @@ require ( golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.27.0 // indirect - golang.org/x/oauth2 v0.18.0 // indirect + golang.org/x/oauth2 v0.21.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.22.0 // indirect golang.org/x/term v0.22.0 // indirect @@ -238,10 +236,10 @@ require ( google.golang.org/api v0.169.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.34.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 // indirect + google.golang.org/grpc v1.66.2 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect lukechampine.com/frand v1.4.2 // indirect diff --git a/provider/go.sum b/provider/go.sum index 8d57e570..93db0147 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -304,13 +304,12 @@ cloud.google.com/go/compute v1.23.0/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdi cloud.google.com/go/compute v1.23.1/go.mod h1:CqB3xpmPKKt3OJpW2ndFIXnA9A4xAy/F3Xp1ixncW78= cloud.google.com/go/compute v1.23.2/go.mod h1:JJ0atRC0J/oWYiiVBmsSsrRnh92DhZPG4hFDcR04Rns= cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= -cloud.google.com/go/compute v1.25.0 h1:H1/4SqSUhjPFE7L5ddzHOfY2bCAvjwNRZPNl6Ni5oYU= -cloud.google.com/go/compute v1.25.0/go.mod h1:GR7F0ZPZH8EhChlMo9FkLd7eUTwEymjqQagxzilIxIE= cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= -cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY= cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck= cloud.google.com/go/contactcenterinsights v1.6.0/go.mod h1:IIDlT6CLcDoyv79kDv8iWxMSTZhLxSCofVV5W6YFM/w= @@ -1438,8 +1437,8 @@ github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfU github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4= +github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -1608,8 +1607,9 @@ github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHh github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= -github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= +github.com/hashicorp/go-plugin v1.6.1 h1:P7MR2UP6gNKGPp+y7EZw2kOiq4IR9WiqLvp0XOsVdwI= +github.com/hashicorp/go-plugin v1.6.1/go.mod h1:XPHFku2tFo3o3QKFgSYo+cghcUhw1NA1hZyMK0PWAw0= github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= @@ -1657,8 +1657,8 @@ github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2D github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= -github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= -github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= +github.com/hashicorp/terraform-plugin-go v0.24.0 h1:2WpHhginCdVhFIrWHxDEg6RBn3YaWzR2o6qUeIEat2U= +github.com/hashicorp/terraform-plugin-go v0.24.0/go.mod h1:tUQ53lAsOyYSckFGEefGC5C8BAaO0ENqzFd3bQeuYQg= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= @@ -1905,24 +1905,24 @@ github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3d github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= 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/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= +github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+SobA= github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2pHgxQ8= github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.14.0 h1:CKL7lLF81Fq6VRhA5TNFsSMnHraTNCUzIhqCzYX8Wzk= -github.com/pulumi/pulumi-java/pkg v0.14.0/go.mod h1:VybuJMWJtJc9ZNbt1kcYH4TbpocMx9mEi7YWL2Co99c= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 h1:e7xfYAiXCE8LCwfKvbGeNAjdPmKwPM3kavEXECt3wvs= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0/go.mod h1:dIVp4qG+GsUwmpz40L7Z+PZnzHf3cQq1CAFwhz++ris= +github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIkaa5QDGAns= +github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0 h1:E4YTsAI8oAF8cDj5XR1cbHUfINCc1IJxElriOZBdsxE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.91.0/go.mod h1:DvueDDtOIbf7W1Or4oH0o7F990ozp/ROmlm/vgLoe+g= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= -github.com/pulumi/pulumi-yaml v1.9.2 h1:BCUuRPA1USmFXrExiHRU8yJ+OiphLYnroPxKRgGCJrs= -github.com/pulumi/pulumi-yaml v1.9.2/go.mod h1:sIh/Oa/NLRGTojevh8D2/cPDPvo2j9iXegVDQIKKfw4= -github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= -github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= -github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= -github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi-yaml v1.10.0 h1:djbgMJCxJBmYMr4kOpAXH5iauxGohYjEuTLfxD3NUUI= +github.com/pulumi/pulumi-yaml v1.10.0/go.mod h1://lTvwHpgJ+WBKeMGiLrd/jinc4dl3eWV5LZ3G8iCfE= +github.com/pulumi/pulumi/pkg/v3 v3.133.0 h1:j1rd7ToLZIQc5H0427ISOXSbOIIemZ6B0MXtRhQ38Yg= +github.com/pulumi/pulumi/pkg/v3 v3.133.0/go.mod h1:JtMAnrsFIccO138WcMfPdhO0PioDukKihnZC0xTRLwo= +github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= +github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= 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= @@ -2013,8 +2013,6 @@ github.com/teekennedy/goldmark-markdown v0.3.0 h1:ik9/biVGCwGWFg8dQ3KVm2pQ/wiiG0 github.com/teekennedy/goldmark-markdown v0.3.0/go.mod h1:kMhDz8La77A9UHvJGsxejd0QUflN9sS+QXCqnhmxmNo= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= @@ -2314,8 +2312,8 @@ golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQ golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= golang.org/x/oauth2 v0.14.0/go.mod h1:lAtNWgaWfL4cm7j2OV8TxGi9Qb7ECORx8DktCY74OwM= -golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= -golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= +golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -2844,8 +2842,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a/go. google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= google.golang.org/genproto/googleapis/api v0.0.0-20231030173426-d783a09b4405/go.mod h1:oT32Z4o8Zv2xPQTg0pbVaPr0MPOH6f14RgXt7zfIpwg= google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:0xJLfVdJqpAPl8tDg1ujOCGzx6LFLttXT5NhllGOXY4= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7 h1:oqta3O3AnlWbmIE3bFnWbu4bRxZjfbWCp0cKSuZh01E= -google.golang.org/genproto/googleapis/api v0.0.0-20240311173647-c811ad7063a7/go.mod h1:VQW3tUculP/D4B+xVCo+VgSq8As6wA9ZjHl//pmk+6s= +google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117 h1:+rdxYoE3E5htTEWIe15GlN6IfvbURM//Jt0mmkmm6ZU= +google.golang.org/genproto/googleapis/api v0.0.0-20240604185151-ef581f913117/go.mod h1:OimBR/bc1wPO9iV4NC2bpyjy3VnAwZh5EBPQdtaE5oo= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230807174057-1744710a1577/go.mod h1:NjCQG/D8JandXxM57PZbAJL1DCNL6EypA0vPPwfsc7c= google.golang.org/genproto/googleapis/bytestream v0.0.0-20231030173426-d783a09b4405/go.mod h1:GRUCuLdzVqZte8+Dl/D4N25yLzcGqqWaYkeVOwulFqw= @@ -2866,8 +2864,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a/go. google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 h1:8EeVk1VKMD+GD/neyEHGmz7pFblqPjHoi+PGQIlLx2s= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117 h1:1GBuWVLM/KMVUv1t1En5Gs+gFZCNd360GGb4sSxtrhU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240604185151-ef581f913117/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= @@ -2918,8 +2916,8 @@ google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSs google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= -google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= -google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= +google.golang.org/grpc v1.66.2 h1:3QdXkuq3Bkh7w+ywLdLvM56cmGvQHUMZpiCzt6Rqaoo= +google.golang.org/grpc v1.66.2/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -2941,8 +2939,8 @@ google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= -google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/sdk/go.mod b/sdk/go.mod index 2fc279fc..dd423fe1 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.130.0 + github.com/pulumi/pulumi/sdk/v3 v3.133.0 ) require ( @@ -69,7 +69,6 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/objx v0.5.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect - github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect github.com/uber/jaeger-lib v2.4.1+incompatible // indirect github.com/xanzy/ssh-agent v0.3.3 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index db4a0a8c..6df8468b 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.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= -github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/sdk/v3 v3.133.0 h1:o+7dbJZY9BVgAjOF5GYIWgjp/zpKAgWZwD4pPjUMXKQ= +github.com/pulumi/pulumi/sdk/v3 v3.133.0/go.mod h1:J5kQEX8v87aeUhk6NdQXnjCo1DbiOnOiL3Sf2DuDda8= 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= @@ -189,8 +189,6 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U= github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68= -github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE= github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= diff --git a/sdk/go/vsphere/getComputeCluster.go b/sdk/go/vsphere/getComputeCluster.go index 8e36e0fc..4dbd405e 100644 --- a/sdk/go/vsphere/getComputeCluster.go +++ b/sdk/go/vsphere/getComputeCluster.go @@ -88,14 +88,20 @@ type LookupComputeClusterResult struct { func LookupComputeClusterOutput(ctx *pulumi.Context, args LookupComputeClusterOutputArgs, opts ...pulumi.InvokeOption) LookupComputeClusterResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupComputeClusterResult, error) { + ApplyT(func(v interface{}) (LookupComputeClusterResultOutput, error) { args := v.(LookupComputeClusterArgs) - r, err := LookupComputeCluster(ctx, &args, opts...) - var s LookupComputeClusterResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupComputeClusterResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getComputeCluster:getComputeCluster", args, &rv, "", opts...) + if err != nil { + return LookupComputeClusterResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupComputeClusterResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupComputeClusterResultOutput), nil + } + return output, nil }).(LookupComputeClusterResultOutput) } diff --git a/sdk/go/vsphere/getComputeClusterHostGroup.go b/sdk/go/vsphere/getComputeClusterHostGroup.go index bd5133bf..044f68ed 100644 --- a/sdk/go/vsphere/getComputeClusterHostGroup.go +++ b/sdk/go/vsphere/getComputeClusterHostGroup.go @@ -98,14 +98,20 @@ type LookupComputeClusterHostGroupResult struct { func LookupComputeClusterHostGroupOutput(ctx *pulumi.Context, args LookupComputeClusterHostGroupOutputArgs, opts ...pulumi.InvokeOption) LookupComputeClusterHostGroupResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupComputeClusterHostGroupResult, error) { + ApplyT(func(v interface{}) (LookupComputeClusterHostGroupResultOutput, error) { args := v.(LookupComputeClusterHostGroupArgs) - r, err := LookupComputeClusterHostGroup(ctx, &args, opts...) - var s LookupComputeClusterHostGroupResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupComputeClusterHostGroupResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup", args, &rv, "", opts...) + if err != nil { + return LookupComputeClusterHostGroupResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupComputeClusterHostGroupResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupComputeClusterHostGroupResultOutput), nil + } + return output, nil }).(LookupComputeClusterHostGroupResultOutput) } diff --git a/sdk/go/vsphere/getContentLibrary.go b/sdk/go/vsphere/getContentLibrary.go index f574c237..ebb2154c 100644 --- a/sdk/go/vsphere/getContentLibrary.go +++ b/sdk/go/vsphere/getContentLibrary.go @@ -67,14 +67,20 @@ type LookupContentLibraryResult struct { func LookupContentLibraryOutput(ctx *pulumi.Context, args LookupContentLibraryOutputArgs, opts ...pulumi.InvokeOption) LookupContentLibraryResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupContentLibraryResult, error) { + ApplyT(func(v interface{}) (LookupContentLibraryResultOutput, error) { args := v.(LookupContentLibraryArgs) - r, err := LookupContentLibrary(ctx, &args, opts...) - var s LookupContentLibraryResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupContentLibraryResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getContentLibrary:getContentLibrary", args, &rv, "", opts...) + if err != nil { + return LookupContentLibraryResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupContentLibraryResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupContentLibraryResultOutput), nil + } + return output, nil }).(LookupContentLibraryResultOutput) } diff --git a/sdk/go/vsphere/getContentLibraryItem.go b/sdk/go/vsphere/getContentLibraryItem.go index 7d8f022c..375d6c7f 100644 --- a/sdk/go/vsphere/getContentLibraryItem.go +++ b/sdk/go/vsphere/getContentLibraryItem.go @@ -49,14 +49,20 @@ type LookupContentLibraryItemResult struct { func LookupContentLibraryItemOutput(ctx *pulumi.Context, args LookupContentLibraryItemOutputArgs, opts ...pulumi.InvokeOption) LookupContentLibraryItemResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupContentLibraryItemResult, error) { + ApplyT(func(v interface{}) (LookupContentLibraryItemResultOutput, error) { args := v.(LookupContentLibraryItemArgs) - r, err := LookupContentLibraryItem(ctx, &args, opts...) - var s LookupContentLibraryItemResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupContentLibraryItemResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getContentLibraryItem:getContentLibraryItem", args, &rv, "", opts...) + if err != nil { + return LookupContentLibraryItemResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupContentLibraryItemResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupContentLibraryItemResultOutput), nil + } + return output, nil }).(LookupContentLibraryItemResultOutput) } diff --git a/sdk/go/vsphere/getCustomAttribute.go b/sdk/go/vsphere/getCustomAttribute.go index e637a881..624c292e 100644 --- a/sdk/go/vsphere/getCustomAttribute.go +++ b/sdk/go/vsphere/getCustomAttribute.go @@ -71,14 +71,20 @@ type LookupCustomAttributeResult struct { func LookupCustomAttributeOutput(ctx *pulumi.Context, args LookupCustomAttributeOutputArgs, opts ...pulumi.InvokeOption) LookupCustomAttributeResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupCustomAttributeResult, error) { + ApplyT(func(v interface{}) (LookupCustomAttributeResultOutput, error) { args := v.(LookupCustomAttributeArgs) - r, err := LookupCustomAttribute(ctx, &args, opts...) - var s LookupCustomAttributeResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupCustomAttributeResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getCustomAttribute:getCustomAttribute", args, &rv, "", opts...) + if err != nil { + return LookupCustomAttributeResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupCustomAttributeResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupCustomAttributeResultOutput), nil + } + return output, nil }).(LookupCustomAttributeResultOutput) } diff --git a/sdk/go/vsphere/getDatacenter.go b/sdk/go/vsphere/getDatacenter.go index c4e7c5cd..bf3ba873 100644 --- a/sdk/go/vsphere/getDatacenter.go +++ b/sdk/go/vsphere/getDatacenter.go @@ -72,14 +72,20 @@ type LookupDatacenterResult struct { func LookupDatacenterOutput(ctx *pulumi.Context, args LookupDatacenterOutputArgs, opts ...pulumi.InvokeOption) LookupDatacenterResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupDatacenterResult, error) { + ApplyT(func(v interface{}) (LookupDatacenterResultOutput, error) { args := v.(LookupDatacenterArgs) - r, err := LookupDatacenter(ctx, &args, opts...) - var s LookupDatacenterResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupDatacenterResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getDatacenter:getDatacenter", args, &rv, "", opts...) + if err != nil { + return LookupDatacenterResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupDatacenterResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupDatacenterResultOutput), nil + } + return output, nil }).(LookupDatacenterResultOutput) } diff --git a/sdk/go/vsphere/getDatastore.go b/sdk/go/vsphere/getDatastore.go index a56f4364..43557d1e 100644 --- a/sdk/go/vsphere/getDatastore.go +++ b/sdk/go/vsphere/getDatastore.go @@ -87,14 +87,20 @@ type GetDatastoreResult struct { func GetDatastoreOutput(ctx *pulumi.Context, args GetDatastoreOutputArgs, opts ...pulumi.InvokeOption) GetDatastoreResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetDatastoreResult, error) { + ApplyT(func(v interface{}) (GetDatastoreResultOutput, error) { args := v.(GetDatastoreArgs) - r, err := GetDatastore(ctx, &args, opts...) - var s GetDatastoreResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetDatastoreResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getDatastore:getDatastore", args, &rv, "", opts...) + if err != nil { + return GetDatastoreResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetDatastoreResultOutput) + if secret { + return pulumi.ToSecret(output).(GetDatastoreResultOutput), nil + } + return output, nil }).(GetDatastoreResultOutput) } diff --git a/sdk/go/vsphere/getDatastoreCluster.go b/sdk/go/vsphere/getDatastoreCluster.go index b55e9de4..be5cda2f 100644 --- a/sdk/go/vsphere/getDatastoreCluster.go +++ b/sdk/go/vsphere/getDatastoreCluster.go @@ -80,14 +80,20 @@ type LookupDatastoreClusterResult struct { func LookupDatastoreClusterOutput(ctx *pulumi.Context, args LookupDatastoreClusterOutputArgs, opts ...pulumi.InvokeOption) LookupDatastoreClusterResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupDatastoreClusterResult, error) { + ApplyT(func(v interface{}) (LookupDatastoreClusterResultOutput, error) { args := v.(LookupDatastoreClusterArgs) - r, err := LookupDatastoreCluster(ctx, &args, opts...) - var s LookupDatastoreClusterResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupDatastoreClusterResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getDatastoreCluster:getDatastoreCluster", args, &rv, "", opts...) + if err != nil { + return LookupDatastoreClusterResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupDatastoreClusterResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupDatastoreClusterResultOutput), nil + } + return output, nil }).(LookupDatastoreClusterResultOutput) } diff --git a/sdk/go/vsphere/getDatastoreStats.go b/sdk/go/vsphere/getDatastoreStats.go index 1c0207e8..20aa769a 100644 --- a/sdk/go/vsphere/getDatastoreStats.go +++ b/sdk/go/vsphere/getDatastoreStats.go @@ -119,14 +119,20 @@ type GetDatastoreStatsResult struct { func GetDatastoreStatsOutput(ctx *pulumi.Context, args GetDatastoreStatsOutputArgs, opts ...pulumi.InvokeOption) GetDatastoreStatsResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetDatastoreStatsResult, error) { + ApplyT(func(v interface{}) (GetDatastoreStatsResultOutput, error) { args := v.(GetDatastoreStatsArgs) - r, err := GetDatastoreStats(ctx, &args, opts...) - var s GetDatastoreStatsResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetDatastoreStatsResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getDatastoreStats:getDatastoreStats", args, &rv, "", opts...) + if err != nil { + return GetDatastoreStatsResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetDatastoreStatsResultOutput) + if secret { + return pulumi.ToSecret(output).(GetDatastoreStatsResultOutput), nil + } + return output, nil }).(GetDatastoreStatsResultOutput) } diff --git a/sdk/go/vsphere/getDistributedVirtualSwitch.go b/sdk/go/vsphere/getDistributedVirtualSwitch.go index e792291d..88914214 100644 --- a/sdk/go/vsphere/getDistributedVirtualSwitch.go +++ b/sdk/go/vsphere/getDistributedVirtualSwitch.go @@ -106,14 +106,20 @@ type LookupDistributedVirtualSwitchResult struct { func LookupDistributedVirtualSwitchOutput(ctx *pulumi.Context, args LookupDistributedVirtualSwitchOutputArgs, opts ...pulumi.InvokeOption) LookupDistributedVirtualSwitchResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupDistributedVirtualSwitchResult, error) { + ApplyT(func(v interface{}) (LookupDistributedVirtualSwitchResultOutput, error) { args := v.(LookupDistributedVirtualSwitchArgs) - r, err := LookupDistributedVirtualSwitch(ctx, &args, opts...) - var s LookupDistributedVirtualSwitchResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupDistributedVirtualSwitchResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getDistributedVirtualSwitch:getDistributedVirtualSwitch", args, &rv, "", opts...) + if err != nil { + return LookupDistributedVirtualSwitchResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupDistributedVirtualSwitchResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupDistributedVirtualSwitchResultOutput), nil + } + return output, nil }).(LookupDistributedVirtualSwitchResultOutput) } diff --git a/sdk/go/vsphere/getDynamic.go b/sdk/go/vsphere/getDynamic.go index 4c0e967c..6c190974 100644 --- a/sdk/go/vsphere/getDynamic.go +++ b/sdk/go/vsphere/getDynamic.go @@ -101,14 +101,20 @@ type GetDynamicResult struct { func GetDynamicOutput(ctx *pulumi.Context, args GetDynamicOutputArgs, opts ...pulumi.InvokeOption) GetDynamicResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetDynamicResult, error) { + ApplyT(func(v interface{}) (GetDynamicResultOutput, error) { args := v.(GetDynamicArgs) - r, err := GetDynamic(ctx, &args, opts...) - var s GetDynamicResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetDynamicResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getDynamic:getDynamic", args, &rv, "", opts...) + if err != nil { + return GetDynamicResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetDynamicResultOutput) + if secret { + return pulumi.ToSecret(output).(GetDynamicResultOutput), nil + } + return output, nil }).(GetDynamicResultOutput) } diff --git a/sdk/go/vsphere/getFolder.go b/sdk/go/vsphere/getFolder.go index 27930545..7dd6ed00 100644 --- a/sdk/go/vsphere/getFolder.go +++ b/sdk/go/vsphere/getFolder.go @@ -72,14 +72,20 @@ type LookupFolderResult struct { func LookupFolderOutput(ctx *pulumi.Context, args LookupFolderOutputArgs, opts ...pulumi.InvokeOption) LookupFolderResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupFolderResult, error) { + ApplyT(func(v interface{}) (LookupFolderResultOutput, error) { args := v.(LookupFolderArgs) - r, err := LookupFolder(ctx, &args, opts...) - var s LookupFolderResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupFolderResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getFolder:getFolder", args, &rv, "", opts...) + if err != nil { + return LookupFolderResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupFolderResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupFolderResultOutput), nil + } + return output, nil }).(LookupFolderResultOutput) } diff --git a/sdk/go/vsphere/getGuestOsCustomization.go b/sdk/go/vsphere/getGuestOsCustomization.go index 2c27b73c..23217900 100644 --- a/sdk/go/vsphere/getGuestOsCustomization.go +++ b/sdk/go/vsphere/getGuestOsCustomization.go @@ -44,14 +44,20 @@ type LookupGuestOsCustomizationResult struct { func LookupGuestOsCustomizationOutput(ctx *pulumi.Context, args LookupGuestOsCustomizationOutputArgs, opts ...pulumi.InvokeOption) LookupGuestOsCustomizationResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupGuestOsCustomizationResult, error) { + ApplyT(func(v interface{}) (LookupGuestOsCustomizationResultOutput, error) { args := v.(LookupGuestOsCustomizationArgs) - r, err := LookupGuestOsCustomization(ctx, &args, opts...) - var s LookupGuestOsCustomizationResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupGuestOsCustomizationResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getGuestOsCustomization:getGuestOsCustomization", args, &rv, "", opts...) + if err != nil { + return LookupGuestOsCustomizationResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupGuestOsCustomizationResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupGuestOsCustomizationResultOutput), nil + } + return output, nil }).(LookupGuestOsCustomizationResultOutput) } diff --git a/sdk/go/vsphere/getHost.go b/sdk/go/vsphere/getHost.go index f742f44e..59eea9b3 100644 --- a/sdk/go/vsphere/getHost.go +++ b/sdk/go/vsphere/getHost.go @@ -83,14 +83,20 @@ type LookupHostResult struct { func LookupHostOutput(ctx *pulumi.Context, args LookupHostOutputArgs, opts ...pulumi.InvokeOption) LookupHostResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupHostResult, error) { + ApplyT(func(v interface{}) (LookupHostResultOutput, error) { args := v.(LookupHostArgs) - r, err := LookupHost(ctx, &args, opts...) - var s LookupHostResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupHostResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getHost:getHost", args, &rv, "", opts...) + if err != nil { + return LookupHostResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupHostResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupHostResultOutput), nil + } + return output, nil }).(LookupHostResultOutput) } diff --git a/sdk/go/vsphere/getHostBaseImages.go b/sdk/go/vsphere/getHostBaseImages.go index b69bcf9a..b9b8f204 100644 --- a/sdk/go/vsphere/getHostBaseImages.go +++ b/sdk/go/vsphere/getHostBaseImages.go @@ -56,13 +56,19 @@ type GetHostBaseImagesResult struct { } func GetHostBaseImagesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetHostBaseImagesResultOutput { - return pulumi.ToOutput(0).ApplyT(func(int) (GetHostBaseImagesResult, error) { - r, err := GetHostBaseImages(ctx, opts...) - var s GetHostBaseImagesResult - if r != nil { - s = *r + return pulumi.ToOutput(0).ApplyT(func(int) (GetHostBaseImagesResultOutput, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetHostBaseImagesResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getHostBaseImages:getHostBaseImages", nil, &rv, "", opts...) + if err != nil { + return GetHostBaseImagesResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetHostBaseImagesResultOutput) + if secret { + return pulumi.ToSecret(output).(GetHostBaseImagesResultOutput), nil + } + return output, nil }).(GetHostBaseImagesResultOutput) } diff --git a/sdk/go/vsphere/getHostPciDevice.go b/sdk/go/vsphere/getHostPciDevice.go index ca0e9bac..e250a7e8 100644 --- a/sdk/go/vsphere/getHostPciDevice.go +++ b/sdk/go/vsphere/getHostPciDevice.go @@ -139,14 +139,20 @@ type GetHostPciDeviceResult struct { func GetHostPciDeviceOutput(ctx *pulumi.Context, args GetHostPciDeviceOutputArgs, opts ...pulumi.InvokeOption) GetHostPciDeviceResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetHostPciDeviceResult, error) { + ApplyT(func(v interface{}) (GetHostPciDeviceResultOutput, error) { args := v.(GetHostPciDeviceArgs) - r, err := GetHostPciDevice(ctx, &args, opts...) - var s GetHostPciDeviceResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetHostPciDeviceResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getHostPciDevice:getHostPciDevice", args, &rv, "", opts...) + if err != nil { + return GetHostPciDeviceResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetHostPciDeviceResultOutput) + if secret { + return pulumi.ToSecret(output).(GetHostPciDeviceResultOutput), nil + } + return output, nil }).(GetHostPciDeviceResultOutput) } diff --git a/sdk/go/vsphere/getHostThumbprint.go b/sdk/go/vsphere/getHostThumbprint.go index 94e32e73..494bfec7 100644 --- a/sdk/go/vsphere/getHostThumbprint.go +++ b/sdk/go/vsphere/getHostThumbprint.go @@ -74,14 +74,20 @@ type GetHostThumbprintResult struct { func GetHostThumbprintOutput(ctx *pulumi.Context, args GetHostThumbprintOutputArgs, opts ...pulumi.InvokeOption) GetHostThumbprintResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetHostThumbprintResult, error) { + ApplyT(func(v interface{}) (GetHostThumbprintResultOutput, error) { args := v.(GetHostThumbprintArgs) - r, err := GetHostThumbprint(ctx, &args, opts...) - var s GetHostThumbprintResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetHostThumbprintResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getHostThumbprint:getHostThumbprint", args, &rv, "", opts...) + if err != nil { + return GetHostThumbprintResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetHostThumbprintResultOutput) + if secret { + return pulumi.ToSecret(output).(GetHostThumbprintResultOutput), nil + } + return output, nil }).(GetHostThumbprintResultOutput) } diff --git a/sdk/go/vsphere/getHostVgpuProfile.go b/sdk/go/vsphere/getHostVgpuProfile.go index 1c5fe2cf..675c7d43 100644 --- a/sdk/go/vsphere/getHostVgpuProfile.go +++ b/sdk/go/vsphere/getHostVgpuProfile.go @@ -132,14 +132,20 @@ type GetHostVgpuProfileResult struct { func GetHostVgpuProfileOutput(ctx *pulumi.Context, args GetHostVgpuProfileOutputArgs, opts ...pulumi.InvokeOption) GetHostVgpuProfileResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetHostVgpuProfileResult, error) { + ApplyT(func(v interface{}) (GetHostVgpuProfileResultOutput, error) { args := v.(GetHostVgpuProfileArgs) - r, err := GetHostVgpuProfile(ctx, &args, opts...) - var s GetHostVgpuProfileResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetHostVgpuProfileResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getHostVgpuProfile:getHostVgpuProfile", args, &rv, "", opts...) + if err != nil { + return GetHostVgpuProfileResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetHostVgpuProfileResultOutput) + if secret { + return pulumi.ToSecret(output).(GetHostVgpuProfileResultOutput), nil + } + return output, nil }).(GetHostVgpuProfileResultOutput) } diff --git a/sdk/go/vsphere/getLicense.go b/sdk/go/vsphere/getLicense.go index 31813d32..4365a017 100644 --- a/sdk/go/vsphere/getLicense.go +++ b/sdk/go/vsphere/getLicense.go @@ -74,14 +74,20 @@ type LookupLicenseResult struct { func LookupLicenseOutput(ctx *pulumi.Context, args LookupLicenseOutputArgs, opts ...pulumi.InvokeOption) LookupLicenseResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupLicenseResult, error) { + ApplyT(func(v interface{}) (LookupLicenseResultOutput, error) { args := v.(LookupLicenseArgs) - r, err := LookupLicense(ctx, &args, opts...) - var s LookupLicenseResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupLicenseResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getLicense:getLicense", args, &rv, "", opts...) + if err != nil { + return LookupLicenseResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupLicenseResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupLicenseResultOutput), nil + } + return output, nil }).(LookupLicenseResultOutput) } diff --git a/sdk/go/vsphere/getNetwork.go b/sdk/go/vsphere/getNetwork.go index 21b000a2..8828fbd8 100644 --- a/sdk/go/vsphere/getNetwork.go +++ b/sdk/go/vsphere/getNetwork.go @@ -91,14 +91,20 @@ type GetNetworkResult struct { func GetNetworkOutput(ctx *pulumi.Context, args GetNetworkOutputArgs, opts ...pulumi.InvokeOption) GetNetworkResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetNetworkResult, error) { + ApplyT(func(v interface{}) (GetNetworkResultOutput, error) { args := v.(GetNetworkArgs) - r, err := GetNetwork(ctx, &args, opts...) - var s GetNetworkResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetNetworkResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getNetwork:getNetwork", args, &rv, "", opts...) + if err != nil { + return GetNetworkResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetNetworkResultOutput) + if secret { + return pulumi.ToSecret(output).(GetNetworkResultOutput), nil + } + return output, nil }).(GetNetworkResultOutput) } diff --git a/sdk/go/vsphere/getOvfVmTemplate.go b/sdk/go/vsphere/getOvfVmTemplate.go index f136802b..a88b5bac 100644 --- a/sdk/go/vsphere/getOvfVmTemplate.go +++ b/sdk/go/vsphere/getOvfVmTemplate.go @@ -129,14 +129,20 @@ type GetOvfVmTemplateResult struct { func GetOvfVmTemplateOutput(ctx *pulumi.Context, args GetOvfVmTemplateOutputArgs, opts ...pulumi.InvokeOption) GetOvfVmTemplateResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetOvfVmTemplateResult, error) { + ApplyT(func(v interface{}) (GetOvfVmTemplateResultOutput, error) { args := v.(GetOvfVmTemplateArgs) - r, err := GetOvfVmTemplate(ctx, &args, opts...) - var s GetOvfVmTemplateResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetOvfVmTemplateResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getOvfVmTemplate:getOvfVmTemplate", args, &rv, "", opts...) + if err != nil { + return GetOvfVmTemplateResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetOvfVmTemplateResultOutput) + if secret { + return pulumi.ToSecret(output).(GetOvfVmTemplateResultOutput), nil + } + return output, nil }).(GetOvfVmTemplateResultOutput) } diff --git a/sdk/go/vsphere/getPolicy.go b/sdk/go/vsphere/getPolicy.go index ccd0d7b0..fa835515 100644 --- a/sdk/go/vsphere/getPolicy.go +++ b/sdk/go/vsphere/getPolicy.go @@ -74,14 +74,20 @@ type GetPolicyResult struct { func GetPolicyOutput(ctx *pulumi.Context, args GetPolicyOutputArgs, opts ...pulumi.InvokeOption) GetPolicyResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetPolicyResult, error) { + ApplyT(func(v interface{}) (GetPolicyResultOutput, error) { args := v.(GetPolicyArgs) - r, err := GetPolicy(ctx, &args, opts...) - var s GetPolicyResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetPolicyResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getPolicy:getPolicy", args, &rv, "", opts...) + if err != nil { + return GetPolicyResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetPolicyResultOutput) + if secret { + return pulumi.ToSecret(output).(GetPolicyResultOutput), nil + } + return output, nil }).(GetPolicyResultOutput) } diff --git a/sdk/go/vsphere/getResourcePool.go b/sdk/go/vsphere/getResourcePool.go index 257aff32..08659801 100644 --- a/sdk/go/vsphere/getResourcePool.go +++ b/sdk/go/vsphere/getResourcePool.go @@ -126,14 +126,20 @@ type LookupResourcePoolResult struct { func LookupResourcePoolOutput(ctx *pulumi.Context, args LookupResourcePoolOutputArgs, opts ...pulumi.InvokeOption) LookupResourcePoolResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupResourcePoolResult, error) { + ApplyT(func(v interface{}) (LookupResourcePoolResultOutput, error) { args := v.(LookupResourcePoolArgs) - r, err := LookupResourcePool(ctx, &args, opts...) - var s LookupResourcePoolResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupResourcePoolResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getResourcePool:getResourcePool", args, &rv, "", opts...) + if err != nil { + return LookupResourcePoolResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupResourcePoolResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupResourcePoolResultOutput), nil + } + return output, nil }).(LookupResourcePoolResultOutput) } diff --git a/sdk/go/vsphere/getRole.go b/sdk/go/vsphere/getRole.go index 7c7913da..5d2f69ec 100644 --- a/sdk/go/vsphere/getRole.go +++ b/sdk/go/vsphere/getRole.go @@ -75,14 +75,20 @@ type LookupRoleResult struct { func LookupRoleOutput(ctx *pulumi.Context, args LookupRoleOutputArgs, opts ...pulumi.InvokeOption) LookupRoleResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupRoleResult, error) { + ApplyT(func(v interface{}) (LookupRoleResultOutput, error) { args := v.(LookupRoleArgs) - r, err := LookupRole(ctx, &args, opts...) - var s LookupRoleResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupRoleResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getRole:getRole", args, &rv, "", opts...) + if err != nil { + return LookupRoleResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupRoleResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupRoleResultOutput), nil + } + return output, nil }).(LookupRoleResultOutput) } diff --git a/sdk/go/vsphere/getTag.go b/sdk/go/vsphere/getTag.go index a200627a..d9cf8153 100644 --- a/sdk/go/vsphere/getTag.go +++ b/sdk/go/vsphere/getTag.go @@ -82,14 +82,20 @@ type LookupTagResult struct { func LookupTagOutput(ctx *pulumi.Context, args LookupTagOutputArgs, opts ...pulumi.InvokeOption) LookupTagResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupTagResult, error) { + ApplyT(func(v interface{}) (LookupTagResultOutput, error) { args := v.(LookupTagArgs) - r, err := LookupTag(ctx, &args, opts...) - var s LookupTagResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupTagResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getTag:getTag", args, &rv, "", opts...) + if err != nil { + return LookupTagResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupTagResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupTagResultOutput), nil + } + return output, nil }).(LookupTagResultOutput) } diff --git a/sdk/go/vsphere/getTagCategory.go b/sdk/go/vsphere/getTagCategory.go index fd83c6e2..9c53d1c5 100644 --- a/sdk/go/vsphere/getTagCategory.go +++ b/sdk/go/vsphere/getTagCategory.go @@ -73,14 +73,20 @@ type LookupTagCategoryResult struct { func LookupTagCategoryOutput(ctx *pulumi.Context, args LookupTagCategoryOutputArgs, opts ...pulumi.InvokeOption) LookupTagCategoryResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupTagCategoryResult, error) { + ApplyT(func(v interface{}) (LookupTagCategoryResultOutput, error) { args := v.(LookupTagCategoryArgs) - r, err := LookupTagCategory(ctx, &args, opts...) - var s LookupTagCategoryResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupTagCategoryResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getTagCategory:getTagCategory", args, &rv, "", opts...) + if err != nil { + return LookupTagCategoryResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupTagCategoryResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupTagCategoryResultOutput), nil + } + return output, nil }).(LookupTagCategoryResultOutput) } diff --git a/sdk/go/vsphere/getVappContainer.go b/sdk/go/vsphere/getVappContainer.go index 5df7ff96..2653c49f 100644 --- a/sdk/go/vsphere/getVappContainer.go +++ b/sdk/go/vsphere/getVappContainer.go @@ -78,14 +78,20 @@ type LookupVappContainerResult struct { func LookupVappContainerOutput(ctx *pulumi.Context, args LookupVappContainerOutputArgs, opts ...pulumi.InvokeOption) LookupVappContainerResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupVappContainerResult, error) { + ApplyT(func(v interface{}) (LookupVappContainerResultOutput, error) { args := v.(LookupVappContainerArgs) - r, err := LookupVappContainer(ctx, &args, opts...) - var s LookupVappContainerResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupVappContainerResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getVappContainer:getVappContainer", args, &rv, "", opts...) + if err != nil { + return LookupVappContainerResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupVappContainerResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupVappContainerResultOutput), nil + } + return output, nil }).(LookupVappContainerResultOutput) } diff --git a/sdk/go/vsphere/getVirtualMachine.go b/sdk/go/vsphere/getVirtualMachine.go index 0032f48b..c9506979 100644 --- a/sdk/go/vsphere/getVirtualMachine.go +++ b/sdk/go/vsphere/getVirtualMachine.go @@ -314,14 +314,20 @@ type LookupVirtualMachineResult struct { func LookupVirtualMachineOutput(ctx *pulumi.Context, args LookupVirtualMachineOutputArgs, opts ...pulumi.InvokeOption) LookupVirtualMachineResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (LookupVirtualMachineResult, error) { + ApplyT(func(v interface{}) (LookupVirtualMachineResultOutput, error) { args := v.(LookupVirtualMachineArgs) - r, err := LookupVirtualMachine(ctx, &args, opts...) - var s LookupVirtualMachineResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupVirtualMachineResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getVirtualMachine:getVirtualMachine", args, &rv, "", opts...) + if err != nil { + return LookupVirtualMachineResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(LookupVirtualMachineResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupVirtualMachineResultOutput), nil + } + return output, nil }).(LookupVirtualMachineResultOutput) } diff --git a/sdk/go/vsphere/getVmfsDisks.go b/sdk/go/vsphere/getVmfsDisks.go index 5a055f06..aa246c0d 100644 --- a/sdk/go/vsphere/getVmfsDisks.go +++ b/sdk/go/vsphere/getVmfsDisks.go @@ -98,14 +98,20 @@ type GetVmfsDisksResult struct { func GetVmfsDisksOutput(ctx *pulumi.Context, args GetVmfsDisksOutputArgs, opts ...pulumi.InvokeOption) GetVmfsDisksResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetVmfsDisksResult, error) { + ApplyT(func(v interface{}) (GetVmfsDisksResultOutput, error) { args := v.(GetVmfsDisksArgs) - r, err := GetVmfsDisks(ctx, &args, opts...) - var s GetVmfsDisksResult - if r != nil { - s = *r + opts = internal.PkgInvokeDefaultOpts(opts) + var rv GetVmfsDisksResult + secret, err := ctx.InvokePackageRaw("vsphere:index/getVmfsDisks:getVmfsDisks", args, &rv, "", opts...) + if err != nil { + return GetVmfsDisksResultOutput{}, err } - return s, err + + output := pulumi.ToOutput(rv).(GetVmfsDisksResultOutput) + if secret { + return pulumi.ToSecret(output).(GetVmfsDisksResultOutput), nil + } + return output, nil }).(GetVmfsDisksResultOutput) } diff --git a/sdk/nodejs/getComputeCluster.ts b/sdk/nodejs/getComputeCluster.ts index 531521da..4205a866 100644 --- a/sdk/nodejs/getComputeCluster.ts +++ b/sdk/nodejs/getComputeCluster.ts @@ -31,7 +31,6 @@ import * as utilities from "./utilities"; * ``` */ export function getComputeCluster(args: GetComputeClusterArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getComputeCluster:getComputeCluster", { "datacenterId": args.datacenterId, @@ -99,7 +98,11 @@ export interface GetComputeClusterResult { * ``` */ export function getComputeClusterOutput(args: GetComputeClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getComputeCluster(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getComputeCluster:getComputeCluster", { + "datacenterId": args.datacenterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getComputeClusterHostGroup.ts b/sdk/nodejs/getComputeClusterHostGroup.ts index b8c8b5b2..342f94d0 100644 --- a/sdk/nodejs/getComputeClusterHostGroup.ts +++ b/sdk/nodejs/getComputeClusterHostGroup.ts @@ -35,7 +35,6 @@ import * as utilities from "./utilities"; * ``` */ export function getComputeClusterHostGroup(args: GetComputeClusterHostGroupArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup", { "computeClusterId": args.computeClusterId, @@ -108,7 +107,11 @@ export interface GetComputeClusterHostGroupResult { * ``` */ export function getComputeClusterHostGroupOutput(args: GetComputeClusterHostGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getComputeClusterHostGroup(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup", { + "computeClusterId": args.computeClusterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getContentLibrary.ts b/sdk/nodejs/getContentLibrary.ts index 8dca9b63..5f4961ff 100644 --- a/sdk/nodejs/getContentLibrary.ts +++ b/sdk/nodejs/getContentLibrary.ts @@ -23,7 +23,6 @@ import * as utilities from "./utilities"; * ``` */ export function getContentLibrary(args: GetContentLibraryArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getContentLibrary:getContentLibrary", { "name": args.name, @@ -69,7 +68,10 @@ export interface GetContentLibraryResult { * ``` */ export function getContentLibraryOutput(args: GetContentLibraryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getContentLibrary(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getContentLibrary:getContentLibrary", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getContentLibraryItem.ts b/sdk/nodejs/getContentLibraryItem.ts index 5e8cf10f..9d0c46bc 100644 --- a/sdk/nodejs/getContentLibraryItem.ts +++ b/sdk/nodejs/getContentLibraryItem.ts @@ -12,7 +12,6 @@ import * as utilities from "./utilities"; * host connections. */ export function getContentLibraryItem(args: GetContentLibraryItemArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getContentLibraryItem:getContentLibraryItem", { "libraryId": args.libraryId, @@ -61,7 +60,12 @@ export interface GetContentLibraryItemResult { * host connections. */ export function getContentLibraryItemOutput(args: GetContentLibraryItemOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getContentLibraryItem(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getContentLibraryItem:getContentLibraryItem", { + "libraryId": args.libraryId, + "name": args.name, + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getCustomAttribute.ts b/sdk/nodejs/getCustomAttribute.ts index abea3b10..37a090e4 100644 --- a/sdk/nodejs/getCustomAttribute.ts +++ b/sdk/nodejs/getCustomAttribute.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; * ``` */ export function getCustomAttribute(args: GetCustomAttributeArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getCustomAttribute:getCustomAttribute", { "name": args.name, @@ -76,7 +75,10 @@ export interface GetCustomAttributeResult { * ``` */ export function getCustomAttributeOutput(args: GetCustomAttributeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getCustomAttribute(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getCustomAttribute:getCustomAttribute", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getDatacenter.ts b/sdk/nodejs/getDatacenter.ts index 68523667..3759eb49 100644 --- a/sdk/nodejs/getDatacenter.ts +++ b/sdk/nodejs/getDatacenter.ts @@ -23,7 +23,6 @@ import * as utilities from "./utilities"; */ export function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getDatacenter:getDatacenter", { "name": args.name, @@ -74,7 +73,11 @@ export interface GetDatacenterResult { * ``` */ export function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDatacenter(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getDatacenter:getDatacenter", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getDatastore.ts b/sdk/nodejs/getDatastore.ts index 56d78ce4..f1c1eb51 100644 --- a/sdk/nodejs/getDatastore.ts +++ b/sdk/nodejs/getDatastore.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; * ``` */ export function getDatastore(args: GetDatastoreArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getDatastore:getDatastore", { "datacenterId": args.datacenterId, @@ -97,7 +96,12 @@ export interface GetDatastoreResult { * ``` */ export function getDatastoreOutput(args: GetDatastoreOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDatastore(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getDatastore:getDatastore", { + "datacenterId": args.datacenterId, + "name": args.name, + "stats": args.stats, + }, opts); } /** diff --git a/sdk/nodejs/getDatastoreCluster.ts b/sdk/nodejs/getDatastoreCluster.ts index e09b484d..91c496ed 100644 --- a/sdk/nodejs/getDatastoreCluster.ts +++ b/sdk/nodejs/getDatastoreCluster.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; * ``` */ export function getDatastoreCluster(args: GetDatastoreClusterArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getDatastoreCluster:getDatastoreCluster", { "datacenterId": args.datacenterId, @@ -85,7 +84,11 @@ export interface GetDatastoreClusterResult { * ``` */ export function getDatastoreClusterOutput(args: GetDatastoreClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDatastoreCluster(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getDatastoreCluster:getDatastoreCluster", { + "datacenterId": args.datacenterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getDatastoreStats.ts b/sdk/nodejs/getDatastoreStats.ts index 0818f8c0..e3496b9b 100644 --- a/sdk/nodejs/getDatastoreStats.ts +++ b/sdk/nodejs/getDatastoreStats.ts @@ -39,7 +39,6 @@ import * as utilities from "./utilities"; * and a `locals.tf` like that: */ export function getDatastoreStats(args: GetDatastoreStatsArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getDatastoreStats:getDatastoreStats", { "capacity": args.capacity, @@ -134,7 +133,12 @@ export interface GetDatastoreStatsResult { * and a `locals.tf` like that: */ export function getDatastoreStatsOutput(args: GetDatastoreStatsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDatastoreStats(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getDatastoreStats:getDatastoreStats", { + "capacity": args.capacity, + "datacenterId": args.datacenterId, + "freeSpace": args.freeSpace, + }, opts); } /** diff --git a/sdk/nodejs/getDistributedVirtualSwitch.ts b/sdk/nodejs/getDistributedVirtualSwitch.ts index 687a776c..383af38e 100644 --- a/sdk/nodejs/getDistributedVirtualSwitch.ts +++ b/sdk/nodejs/getDistributedVirtualSwitch.ts @@ -41,7 +41,6 @@ import * as utilities from "./utilities"; * ``` */ export function getDistributedVirtualSwitch(args: GetDistributedVirtualSwitchArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getDistributedVirtualSwitch:getDistributedVirtualSwitch", { "datacenterId": args.datacenterId, @@ -121,7 +120,11 @@ export interface GetDistributedVirtualSwitchResult { * ``` */ export function getDistributedVirtualSwitchOutput(args: GetDistributedVirtualSwitchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDistributedVirtualSwitch(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getDistributedVirtualSwitch:getDistributedVirtualSwitch", { + "datacenterId": args.datacenterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getDynamic.ts b/sdk/nodejs/getDynamic.ts index 52321f4c..0a8ded30 100644 --- a/sdk/nodejs/getDynamic.ts +++ b/sdk/nodejs/getDynamic.ts @@ -40,7 +40,6 @@ import * as utilities from "./utilities"; * ``` */ export function getDynamic(args: GetDynamicArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getDynamic:getDynamic", { "filters": args.filters, @@ -119,7 +118,12 @@ export interface GetDynamicResult { * ``` */ export function getDynamicOutput(args: GetDynamicOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getDynamic(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getDynamic:getDynamic", { + "filters": args.filters, + "nameRegex": args.nameRegex, + "type": args.type, + }, opts); } /** diff --git a/sdk/nodejs/getFolder.ts b/sdk/nodejs/getFolder.ts index 1463678c..b7a8650a 100644 --- a/sdk/nodejs/getFolder.ts +++ b/sdk/nodejs/getFolder.ts @@ -24,7 +24,6 @@ import * as utilities from "./utilities"; * ``` */ export function getFolder(args: GetFolderArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getFolder:getFolder", { "path": args.path, @@ -75,7 +74,10 @@ export interface GetFolderResult { * ``` */ export function getFolderOutput(args: GetFolderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getFolder(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getFolder:getFolder", { + "path": args.path, + }, opts); } /** diff --git a/sdk/nodejs/getGuestOsCustomization.ts b/sdk/nodejs/getGuestOsCustomization.ts index f259128f..46635991 100644 --- a/sdk/nodejs/getGuestOsCustomization.ts +++ b/sdk/nodejs/getGuestOsCustomization.ts @@ -11,7 +11,6 @@ import * as utilities from "./utilities"; * details about a customization specification for a guest operating system. */ export function getGuestOsCustomization(args: GetGuestOsCustomizationArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getGuestOsCustomization:getGuestOsCustomization", { "name": args.name, @@ -49,7 +48,10 @@ export interface GetGuestOsCustomizationResult { * details about a customization specification for a guest operating system. */ export function getGuestOsCustomizationOutput(args: GetGuestOsCustomizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getGuestOsCustomization(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getGuestOsCustomization:getGuestOsCustomization", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getHost.ts b/sdk/nodejs/getHost.ts index 297677d4..d1c7f898 100644 --- a/sdk/nodejs/getHost.ts +++ b/sdk/nodejs/getHost.ts @@ -25,7 +25,6 @@ import * as utilities from "./utilities"; * ``` */ export function getHost(args: GetHostArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getHost:getHost", { "datacenterId": args.datacenterId, @@ -89,7 +88,11 @@ export interface GetHostResult { * ``` */ export function getHostOutput(args: GetHostOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getHost(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getHost:getHost", { + "datacenterId": args.datacenterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getHostBaseImages.ts b/sdk/nodejs/getHostBaseImages.ts index 6b7cf9e6..7179cd6b 100644 --- a/sdk/nodejs/getHostBaseImages.ts +++ b/sdk/nodejs/getHostBaseImages.ts @@ -18,7 +18,6 @@ import * as utilities from "./utilities"; * ``` */ export function getHostBaseImages(opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getHostBaseImages:getHostBaseImages", { }, opts); @@ -51,5 +50,7 @@ export interface GetHostBaseImagesResult { * ``` */ export function getHostBaseImagesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(getHostBaseImages(opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getHostBaseImages:getHostBaseImages", { + }, opts); } diff --git a/sdk/nodejs/getHostPciDevice.ts b/sdk/nodejs/getHostPciDevice.ts index 474ace77..3bebe77d 100644 --- a/sdk/nodejs/getHostPciDevice.ts +++ b/sdk/nodejs/getHostPciDevice.ts @@ -51,7 +51,6 @@ import * as utilities from "./utilities"; * ``` */ export function getHostPciDevice(args: GetHostPciDeviceArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getHostPciDevice:getHostPciDevice", { "classId": args.classId, @@ -153,7 +152,13 @@ export interface GetHostPciDeviceResult { * ``` */ export function getHostPciDeviceOutput(args: GetHostPciDeviceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getHostPciDevice(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getHostPciDevice:getHostPciDevice", { + "classId": args.classId, + "hostId": args.hostId, + "nameRegex": args.nameRegex, + "vendorId": args.vendorId, + }, opts); } /** diff --git a/sdk/nodejs/getHostThumbprint.ts b/sdk/nodejs/getHostThumbprint.ts index 100d10ee..a9ea263d 100644 --- a/sdk/nodejs/getHostThumbprint.ts +++ b/sdk/nodejs/getHostThumbprint.ts @@ -22,7 +22,6 @@ import * as utilities from "./utilities"; * ``` */ export function getHostThumbprint(args: GetHostThumbprintArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getHostThumbprint:getHostThumbprint", { "address": args.address, @@ -81,7 +80,12 @@ export interface GetHostThumbprintResult { * ``` */ export function getHostThumbprintOutput(args: GetHostThumbprintOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getHostThumbprint(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getHostThumbprint:getHostThumbprint", { + "address": args.address, + "insecure": args.insecure, + "port": args.port, + }, opts); } /** diff --git a/sdk/nodejs/getHostVgpuProfile.ts b/sdk/nodejs/getHostVgpuProfile.ts index bce1d3a8..7b3bb876 100644 --- a/sdk/nodejs/getHostVgpuProfile.ts +++ b/sdk/nodejs/getHostVgpuProfile.ts @@ -50,7 +50,6 @@ import * as utilities from "./utilities"; * ``` */ export function getHostVgpuProfile(args: GetHostVgpuProfileArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getHostVgpuProfile:getHostVgpuProfile", { "hostId": args.hostId, @@ -143,7 +142,11 @@ export interface GetHostVgpuProfileResult { * ``` */ export function getHostVgpuProfileOutput(args: GetHostVgpuProfileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getHostVgpuProfile(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getHostVgpuProfile:getHostVgpuProfile", { + "hostId": args.hostId, + "nameRegex": args.nameRegex, + }, opts); } /** diff --git a/sdk/nodejs/getLicense.ts b/sdk/nodejs/getLicense.ts index 835b6c9f..b795136b 100644 --- a/sdk/nodejs/getLicense.ts +++ b/sdk/nodejs/getLicense.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getLicense(args: GetLicenseArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getLicense:getLicense", { "licenseKey": args.licenseKey, @@ -81,7 +80,10 @@ export interface GetLicenseResult { * ``` */ export function getLicenseOutput(args: GetLicenseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getLicense(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getLicense:getLicense", { + "licenseKey": args.licenseKey, + }, opts); } /** diff --git a/sdk/nodejs/getNetwork.ts b/sdk/nodejs/getNetwork.ts index 9f2f20ad..fb8ea2b5 100644 --- a/sdk/nodejs/getNetwork.ts +++ b/sdk/nodejs/getNetwork.ts @@ -27,7 +27,6 @@ import * as utilities from "./utilities"; * ``` */ export function getNetwork(args: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getNetwork:getNetwork", { "datacenterId": args.datacenterId, @@ -102,7 +101,12 @@ export interface GetNetworkResult { * ``` */ export function getNetworkOutput(args: GetNetworkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getNetwork(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getNetwork:getNetwork", { + "datacenterId": args.datacenterId, + "distributedVirtualSwitchUuid": args.distributedVirtualSwitchUuid, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getOvfVmTemplate.ts b/sdk/nodejs/getOvfVmTemplate.ts index 1c1238d0..4158f182 100644 --- a/sdk/nodejs/getOvfVmTemplate.ts +++ b/sdk/nodejs/getOvfVmTemplate.ts @@ -10,7 +10,6 @@ import * as utilities from "./utilities"; * inputs for a `vsphere.VirtualMachine` resource. */ export function getOvfVmTemplate(args: GetOvfVmTemplateArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getOvfVmTemplate:getOvfVmTemplate", { "allowUnverifiedSslCert": args.allowUnverifiedSslCert, @@ -196,7 +195,23 @@ export interface GetOvfVmTemplateResult { * inputs for a `vsphere.VirtualMachine` resource. */ export function getOvfVmTemplateOutput(args: GetOvfVmTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getOvfVmTemplate(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getOvfVmTemplate:getOvfVmTemplate", { + "allowUnverifiedSslCert": args.allowUnverifiedSslCert, + "datastoreId": args.datastoreId, + "deploymentOption": args.deploymentOption, + "diskProvisioning": args.diskProvisioning, + "enableHiddenProperties": args.enableHiddenProperties, + "folder": args.folder, + "hostSystemId": args.hostSystemId, + "ipAllocationPolicy": args.ipAllocationPolicy, + "ipProtocol": args.ipProtocol, + "localOvfPath": args.localOvfPath, + "name": args.name, + "ovfNetworkMap": args.ovfNetworkMap, + "remoteOvfUrl": args.remoteOvfUrl, + "resourcePoolId": args.resourcePoolId, + }, opts); } /** diff --git a/sdk/nodejs/getPolicy.ts b/sdk/nodejs/getPolicy.ts index 80c3330b..c9e617c0 100644 --- a/sdk/nodejs/getPolicy.ts +++ b/sdk/nodejs/getPolicy.ts @@ -27,7 +27,6 @@ import * as utilities from "./utilities"; * ``` */ export function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getPolicy:getPolicy", { "name": args.name, @@ -77,7 +76,10 @@ export interface GetPolicyResult { * ``` */ export function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getPolicy(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getPolicy:getPolicy", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getResourcePool.ts b/sdk/nodejs/getResourcePool.ts index 2ca95daa..9e71c969 100644 --- a/sdk/nodejs/getResourcePool.ts +++ b/sdk/nodejs/getResourcePool.ts @@ -53,7 +53,6 @@ import * as utilities from "./utilities"; */ export function getResourcePool(args?: GetResourcePoolArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getResourcePool:getResourcePool", { "datacenterId": args.datacenterId, @@ -143,7 +142,12 @@ export interface GetResourcePoolResult { * [vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html */ export function getResourcePoolOutput(args?: GetResourcePoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getResourcePool(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getResourcePool:getResourcePool", { + "datacenterId": args.datacenterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getRole.ts b/sdk/nodejs/getRole.ts index 3c38cc5a..6cab3378 100644 --- a/sdk/nodejs/getRole.ts +++ b/sdk/nodejs/getRole.ts @@ -20,7 +20,6 @@ import * as utilities from "./utilities"; * ``` */ export function getRole(args: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getRole:getRole", { "description": args.description, @@ -87,7 +86,13 @@ export interface GetRoleResult { * ``` */ export function getRoleOutput(args: GetRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getRole(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getRole:getRole", { + "description": args.description, + "label": args.label, + "name": args.name, + "rolePrivileges": args.rolePrivileges, + }, opts); } /** diff --git a/sdk/nodejs/getTag.ts b/sdk/nodejs/getTag.ts index 0a054df7..4d564436 100644 --- a/sdk/nodejs/getTag.ts +++ b/sdk/nodejs/getTag.ts @@ -30,7 +30,6 @@ import * as utilities from "./utilities"; * ``` */ export function getTag(args: GetTagArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getTag:getTag", { "categoryId": args.categoryId, @@ -91,7 +90,11 @@ export interface GetTagResult { * ``` */ export function getTagOutput(args: GetTagOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getTag(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getTag:getTag", { + "categoryId": args.categoryId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getTagCategory.ts b/sdk/nodejs/getTagCategory.ts index 47fbc3a8..b878591a 100644 --- a/sdk/nodejs/getTagCategory.ts +++ b/sdk/nodejs/getTagCategory.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; * ``` */ export function getTagCategory(args: GetTagCategoryArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getTagCategory:getTagCategory", { "name": args.name, @@ -78,7 +77,10 @@ export interface GetTagCategoryResult { * ``` */ export function getTagCategoryOutput(args: GetTagCategoryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getTagCategory(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getTagCategory:getTagCategory", { + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getVappContainer.ts b/sdk/nodejs/getVappContainer.ts index 6a3f6309..e317eb9c 100644 --- a/sdk/nodejs/getVappContainer.ts +++ b/sdk/nodejs/getVappContainer.ts @@ -26,7 +26,6 @@ import * as utilities from "./utilities"; * ``` */ export function getVappContainer(args: GetVappContainerArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getVappContainer:getVappContainer", { "datacenterId": args.datacenterId, @@ -83,7 +82,11 @@ export interface GetVappContainerResult { * ``` */ export function getVappContainerOutput(args: GetVappContainerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getVappContainer(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getVappContainer:getVappContainer", { + "datacenterId": args.datacenterId, + "name": args.name, + }, opts); } /** diff --git a/sdk/nodejs/getVirtualMachine.ts b/sdk/nodejs/getVirtualMachine.ts index 94088e55..cb8c5ace 100644 --- a/sdk/nodejs/getVirtualMachine.ts +++ b/sdk/nodejs/getVirtualMachine.ts @@ -53,7 +53,6 @@ import * as utilities from "./utilities"; */ export function getVirtualMachine(args?: GetVirtualMachineArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getVirtualMachine:getVirtualMachine", { "alternateGuestName": args.alternateGuestName, @@ -432,7 +431,65 @@ export interface GetVirtualMachineResult { * ``` */ export function getVirtualMachineOutput(args?: GetVirtualMachineOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getVirtualMachine(a, opts)) + args = args || {}; + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getVirtualMachine:getVirtualMachine", { + "alternateGuestName": args.alternateGuestName, + "annotation": args.annotation, + "bootDelay": args.bootDelay, + "bootRetryDelay": args.bootRetryDelay, + "bootRetryEnabled": args.bootRetryEnabled, + "cpuHotAddEnabled": args.cpuHotAddEnabled, + "cpuHotRemoveEnabled": args.cpuHotRemoveEnabled, + "cpuLimit": args.cpuLimit, + "cpuPerformanceCountersEnabled": args.cpuPerformanceCountersEnabled, + "cpuReservation": args.cpuReservation, + "cpuShareCount": args.cpuShareCount, + "cpuShareLevel": args.cpuShareLevel, + "datacenterId": args.datacenterId, + "efiSecureBootEnabled": args.efiSecureBootEnabled, + "enableDiskUuid": args.enableDiskUuid, + "enableLogging": args.enableLogging, + "eptRviMode": args.eptRviMode, + "extraConfig": args.extraConfig, + "extraConfigRebootRequired": args.extraConfigRebootRequired, + "firmware": args.firmware, + "folder": args.folder, + "guestId": args.guestId, + "hardwareVersion": args.hardwareVersion, + "hvMode": args.hvMode, + "ideControllerScanCount": args.ideControllerScanCount, + "latencySensitivity": args.latencySensitivity, + "memory": args.memory, + "memoryHotAddEnabled": args.memoryHotAddEnabled, + "memoryLimit": args.memoryLimit, + "memoryReservation": args.memoryReservation, + "memoryReservationLockedToMax": args.memoryReservationLockedToMax, + "memoryShareCount": args.memoryShareCount, + "memoryShareLevel": args.memoryShareLevel, + "moid": args.moid, + "name": args.name, + "nestedHvEnabled": args.nestedHvEnabled, + "numCoresPerSocket": args.numCoresPerSocket, + "numCpus": args.numCpus, + "replaceTrigger": args.replaceTrigger, + "runToolsScriptsAfterPowerOn": args.runToolsScriptsAfterPowerOn, + "runToolsScriptsAfterResume": args.runToolsScriptsAfterResume, + "runToolsScriptsBeforeGuestReboot": args.runToolsScriptsBeforeGuestReboot, + "runToolsScriptsBeforeGuestShutdown": args.runToolsScriptsBeforeGuestShutdown, + "runToolsScriptsBeforeGuestStandby": args.runToolsScriptsBeforeGuestStandby, + "sataControllerScanCount": args.sataControllerScanCount, + "scsiControllerScanCount": args.scsiControllerScanCount, + "storagePolicyId": args.storagePolicyId, + "swapPlacementPolicy": args.swapPlacementPolicy, + "syncTimeWithHost": args.syncTimeWithHost, + "syncTimeWithHostPeriodically": args.syncTimeWithHostPeriodically, + "toolsUpgradePolicy": args.toolsUpgradePolicy, + "uuid": args.uuid, + "vapp": args.vapp, + "vbsEnabled": args.vbsEnabled, + "vvtdEnabled": args.vvtdEnabled, + }, opts); } /** diff --git a/sdk/nodejs/getVmfsDisks.ts b/sdk/nodejs/getVmfsDisks.ts index 9a3e53c5..555ca627 100644 --- a/sdk/nodejs/getVmfsDisks.ts +++ b/sdk/nodejs/getVmfsDisks.ts @@ -31,7 +31,6 @@ import * as utilities from "./utilities"; * ``` */ export function getVmfsDisks(args: GetVmfsDisksArgs, opts?: pulumi.InvokeOptions): Promise { - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vsphere:index/getVmfsDisks:getVmfsDisks", { "filter": args.filter, @@ -110,7 +109,12 @@ export interface GetVmfsDisksResult { * ``` */ export function getVmfsDisksOutput(args: GetVmfsDisksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { - return pulumi.output(args).apply((a: any) => getVmfsDisks(a, opts)) + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("vsphere:index/getVmfsDisks:getVmfsDisks", { + "filter": args.filter, + "hostSystemId": args.hostSystemId, + "rescan": args.rescan, + }, opts); } /**