diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 47d04a5288..a881cf79f2 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.18.0 \ No newline at end of file +0.20.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 0ca7205dfd..a5b64ebafc 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -5,8 +5,8 @@ go 1.21 require ( github.com/pulumi/pulumi-gcp/sdk/v6 v6.67.0 github.com/pulumi/pulumi-gcp/sdk/v8 v8.0.0-00010101000000-000000000000 - github.com/pulumi/pulumi/pkg/v3 v3.142.0 - github.com/pulumi/pulumi/sdk/v3 v3.142.0 + github.com/pulumi/pulumi/pkg/v3 v3.143.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 github.com/stretchr/testify v1.9.0 ) @@ -161,15 +161,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/examples/go.sum b/examples/go.sum index d1c2df11e4..bb3a4e9c8f 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -346,10 +346,10 @@ 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-gcp/sdk/v6 v6.67.0 h1:toKDTQrGp11iU3FQsxqFN+1fgxx4GQFvsmLbUe9++B8= github.com/pulumi/pulumi-gcp/sdk/v6 v6.67.0/go.mod h1:0H6CtMuOB754n2Yzu6XqHqeU99fmH/fsBUKLsMic2OY= -github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= -github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -443,8 +443,8 @@ golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= @@ -494,8 +494,8 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -523,8 +523,8 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -534,8 +534,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -546,8 +546,8 @@ golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/provider/go.mod b/provider/go.mod index cda0fe9409..5852cf661e 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -10,9 +10,9 @@ require ( github.com/hashicorp/terraform-provider-google-beta v0.0.0 github.com/hexops/autogold/v2 v2.2.1 github.com/pulumi/providertest v0.1.3 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1 - github.com/pulumi/pulumi/pkg/v3 v3.142.0 - github.com/pulumi/pulumi/sdk/v3 v3.142.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0 + github.com/pulumi/pulumi/pkg/v3 v3.143.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 github.com/stretchr/testify v1.9.0 google.golang.org/api v0.203.0 sourcegraph.com/sourcegraph/appdash v0.0.0-20211028080628-e2786a622600 @@ -210,7 +210,7 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.19.0 // indirect github.com/pulumi/pulumi-yaml v1.12.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect @@ -256,15 +256,15 @@ require ( go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.28.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.30.0 // indirect golang.org/x/oauth2 v0.23.0 // indirect - golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.26.0 // indirect - golang.org/x/term v0.25.0 // indirect - golang.org/x/text v0.19.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/time v0.7.0 // indirect golang.org/x/tools v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/provider/go.sum b/provider/go.sum index dbb806dbf0..b4e64ba157 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1985,16 +1985,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= -github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1 h1:+KTtmSk6jqcqKvgNgtGVUWEimkpEZdLZs0xEYwFw288= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.97.1/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-java/pkg v0.19.0 h1:T9kkGUQJV7UTxenw08m3txsgQkNVnZZxvn1zCcNjaE8= +github.com/pulumi/pulumi-java/pkg v0.19.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0 h1:FpoJNeqICq0p0IlSs1vOvHarp7uVPMMeTXF321T075k= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.98.0/go.mod h1:q0QIquTDad7QvzdLmT31bzISahN1XrnGF/w/vIsxlX0= github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= -github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= -github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.143.0 h1:diAlaNVZSRc59ePqbMuvuf/AwecpZyjhh1pGvmLEUwg= +github.com/pulumi/pulumi/pkg/v3 v3.143.0/go.mod h1:XzjN1uQI2HWXYolT2L4RIXzvLEnWTSOzFgFFIUfFEa8= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -2218,8 +2218,8 @@ golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2425,8 +2425,8 @@ golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -2538,8 +2538,8 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= -golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2560,8 +2560,8 @@ golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= -golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2583,8 +2583,8 @@ golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= -golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/provider/provider_yaml_test.go b/provider/provider_yaml_test.go index 2ecf864ba3..6c8a4d7e96 100644 --- a/provider/provider_yaml_test.go +++ b/provider/provider_yaml_test.go @@ -342,7 +342,8 @@ func TestBucketBooleanLabel(t *testing.T) { "sendsOldInputsToDelete": true }, "response": { - "supportsPreview": true + "supportsPreview": true, + "supportsAutonamingConfiguration": true } }, { @@ -448,54 +449,55 @@ func TestNodePoolGpuAcceleratorPanic(t *testing.T) { "sendsOldInputsToDelete": true }, "response": { - "supportsPreview": true + "supportsPreview": true, + "supportsAutonamingConfiguration": true } }, { - "method": "/pulumirpc.ResourceProvider/Create", - "request": { - "urn": "urn:pulumi:dev::gcp_node_pool::gcp:container/nodePool:NodePool::gpu-node-pool", - "properties": { - "__defaults": [ - "name" - ], - "cluster": "04da6b54-80e4-46f7-96ec-b56ff0331ba9", - "initialNodeCount": 1, - "name": "gpu-node-pool-c90bfc0", - "nodeConfig": { + "method": "/pulumirpc.ResourceProvider/Create", + "request": { + "urn": "urn:pulumi:dev::gcp_node_pool::gcp:container/nodePool:NodePool::gpu-node-pool", + "properties": { "__defaults": [ - "preemptible", - "spot" - ], - "diskSizeGb": 50, - "guestAccelerators": [ - { - "__defaults": [], - "count": 1, - "type": "nvidia-tesla-t4" - } + "name" ], - "machineType": "n1-highmem-8", - "oauthScopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ], - "preemptible": false, - "resourceManagerTags": {}, - "spot": false - } + "cluster": "04da6b54-80e4-46f7-96ec-b56ff0331ba9", + "initialNodeCount": 1, + "name": "gpu-node-pool-c90bfc0", + "nodeConfig": { + "__defaults": [ + "preemptible", + "spot" + ], + "diskSizeGb": 50, + "guestAccelerators": [ + { + "__defaults": [], + "count": 1, + "type": "nvidia-tesla-t4" + } + ], + "machineType": "n1-highmem-8", + "oauthScopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ], + "preemptible": false, + "resourceManagerTags": {}, + "spot": false + } + }, + "preview": true }, - "preview": true - }, - "response": { - "properties": "*" - }, - "metadata": { - "kind": "resource", - "mode": "client", - "name": "gcp" + "response": { + "properties": "*" + }, + "metadata": { + "kind": "resource", + "mode": "client", + "name": "gcp" + } } - }]`, - ) + ]`) } func TestOrganizationsProjectAutoNaming(t *testing.T) { @@ -589,7 +591,8 @@ func TestRegress1488(t *testing.T) { "sendsOldInputsToDelete": true }, "response": { - "supportsPreview": true + "supportsPreview": true, + "supportsAutonamingConfiguration": true } }, { @@ -699,7 +702,8 @@ func TestCloudrunServiceDiffNoErrorLabelsDuplicate(t *testing.T) { "sendsOldInputsToDelete": true }, "response": { - "supportsPreview": true + "supportsPreview": true, + "supportsAutonamingConfiguration": true } }, { diff --git a/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs b/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs index b3131f46ea..e6d90e56bb 100644 --- a/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs +++ b/sdk/dotnet/AccessApproval/GetFolderServiceAccount.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetFolderServiceAc /// public static Output Invoke(GetFolderServiceAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args ?? new GetFolderServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a folder's Access Approval service account. + /// + /// Each Google Cloud folder has a unique service account used by Access Approval. + /// When using Access Approval with a + /// [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + /// this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + /// Cloud KMS key used to sign approvals. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serviceAccount = Gcp.AccessApproval.GetFolderServiceAccount.Invoke(new() + /// { + /// FolderId = "my-folder", + /// }); + /// + /// var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// Role = "roles/cloudkms.signerVerifier", + /// Member = $"serviceAccount:{serviceAccount.Apply(getFolderServiceAccountResult => getFolderServiceAccountResult.AccountEmail)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFolderServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args ?? new GetFolderServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs b/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs index 860c1bf2c9..7ef10a6589 100644 --- a/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs +++ b/sdk/dotnet/AccessApproval/GetOrganizationServiceAccount.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetOrganizat /// public static Output Invoke(GetOrganizationServiceAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args ?? new GetOrganizationServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of an organization's Access Approval service account. + /// + /// Each Google Cloud organization has a unique service account used by Access Approval. + /// When using Access Approval with a + /// [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + /// this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + /// Cloud KMS key used to sign approvals. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serviceAccount = Gcp.AccessApproval.GetOrganizationServiceAccount.Invoke(new() + /// { + /// OrganizationId = "my-organization", + /// }); + /// + /// var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// Role = "roles/cloudkms.signerVerifier", + /// Member = $"serviceAccount:{serviceAccount.Apply(getOrganizationServiceAccountResult => getOrganizationServiceAccountResult.AccountEmail)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args ?? new GetOrganizationServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs b/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs index 0da799c056..ee3460a025 100644 --- a/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs +++ b/sdk/dotnet/AccessApproval/GetProjectServiceAccount.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetProjectService /// public static Output Invoke(GetProjectServiceAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a project's Access Approval service account. + /// + /// Each Google Cloud project has a unique service account used by Access Approval. + /// When using Access Approval with a + /// [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + /// this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + /// Cloud KMS key used to sign approvals. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serviceAccount = Gcp.AccessApproval.GetProjectServiceAccount.Invoke(new() + /// { + /// ProjectId = "my-project", + /// }); + /// + /// var iam = new Gcp.Kms.CryptoKeyIAMMember("iam", new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// Role = "roles/cloudkms.signerVerifier", + /// Member = $"serviceAccount:{serviceAccount.Apply(getProjectServiceAccountResult => getProjectServiceAccountResult.AccountEmail)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs b/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs index e36508ad70..cfc13e5dd0 100644 --- a/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs +++ b/sdk/dotnet/AccessContextManager/GetAccessPolicy.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetAccessPolicyArgs args, /// public static Output Invoke(GetAccessPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args ?? new GetAccessPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about an Access Context Manager AccessPolicy. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy_org = Gcp.AccessContextManager.GetAccessPolicy.Invoke(new() + /// { + /// Parent = "organizations/1234567", + /// }); + /// + /// var policy_scoped = Gcp.AccessContextManager.GetAccessPolicy.Invoke(new() + /// { + /// Parent = "organizations/1234567", + /// Scopes = new[] + /// { + /// "projects/1234567", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccessPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args ?? new GetAccessPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs b/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs index c0e77807ba..477a5eb503 100644 --- a/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs +++ b/sdk/dotnet/AccessContextManager/GetAccessPolicyIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetAccessPolicyIa /// public static Output Invoke(GetAccessPolicyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args ?? new GetAccessPolicyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for accesspolicy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.AccessContextManager.GetAccessPolicyIamPolicy.Invoke(new() + /// { + /// Name = access_policy.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccessPolicyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args ?? new GetAccessPolicyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alloydb/GetLocations.cs b/sdk/dotnet/Alloydb/GetLocations.cs index 36b6222969..6c5f79eed0 100644 --- a/sdk/dotnet/Alloydb/GetLocations.cs +++ b/sdk/dotnet/Alloydb/GetLocations.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(GetLocationsArgs? args = null /// public static Output Invoke(GetLocationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about the available locations. For more details refer the [API docs](https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Alloydb.GetLocations.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLocationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs b/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs index 19ae57af6c..dc2dc03ac1 100644 --- a/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs +++ b/sdk/dotnet/Alloydb/GetSupportedDatabaseFlags.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSupportedData /// public static Output Invoke(GetSupportedDatabaseFlagsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args ?? new GetSupportedDatabaseFlagsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about the supported alloydb database flags in a location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Alloydb.GetSupportedDatabaseFlags.Invoke(new() + /// { + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSupportedDatabaseFlagsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args ?? new GetSupportedDatabaseFlagsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs b/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs index 378154e804..3509d43493 100644 --- a/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs +++ b/sdk/dotnet/ApiGateway/GetApiConfigIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetApiConfigIamPolic public static Output Invoke(GetApiConfigIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args ?? new GetApiConfigIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetApiConfigIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args ?? new GetApiConfigIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs b/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs index c04139e99d..e4878ed8ef 100644 --- a/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs +++ b/sdk/dotnet/ApiGateway/GetApiIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetApiIamPolicyArgs args, public static Output Invoke(GetApiIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args ?? new GetApiIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetApiIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args ?? new GetApiIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs b/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs index 9f90d1c21a..e28412664c 100644 --- a/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs +++ b/sdk/dotnet/ApiGateway/GetGatewayIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetGatewayIamPolicyArg public static Output Invoke(GetGatewayIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args ?? new GetGatewayIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetGatewayIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args ?? new GetGatewayIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs b/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs index f15fee30d3..171111e6e1 100644 --- a/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs +++ b/sdk/dotnet/Apigee/GetEnvironmentIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetEnvironmentIamP /// public static Output Invoke(GetEnvironmentIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args ?? new GetEnvironmentIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for environment + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Apigee.GetEnvironmentIamPolicy.Invoke(new() + /// { + /// OrgId = apigeeEnvironment.OrgId, + /// EnvId = apigeeEnvironment.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEnvironmentIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args ?? new GetEnvironmentIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs b/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs index fc27050507..5f251082cc 100644 --- a/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs +++ b/sdk/dotnet/AppEngine/GetDefaultServiceAccount.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDefaultService /// public static Output Invoke(GetDefaultServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve the default App Engine service account for the specified project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.AppEngine.GetDefaultServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getDefaultServiceAccountResult => getDefaultServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDefaultServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apphub/GetApplication.cs b/sdk/dotnet/Apphub/GetApplication.cs index 27a7ff34e7..913db8ea3d 100644 --- a/sdk/dotnet/Apphub/GetApplication.cs +++ b/sdk/dotnet/Apphub/GetApplication.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetApplicationArgs args, In /// public static Output Invoke(GetApplicationInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getApplication:getApplication", args ?? new GetApplicationInvokeArgs(), options.WithDefaults()); + + /// + /// Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application. + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var application = Gcp.Apphub.GetApplication.Invoke(new() + /// { + /// Project = "project-id", + /// ApplicationId = "application", + /// Location = "location", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetApplicationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getApplication:getApplication", args ?? new GetApplicationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apphub/GetDiscoveredService.cs b/sdk/dotnet/Apphub/GetDiscoveredService.cs index 3abf3def0b..1ab307d095 100644 --- a/sdk/dotnet/Apphub/GetDiscoveredService.cs +++ b/sdk/dotnet/Apphub/GetDiscoveredService.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetDiscoveredServiceA /// public static Output Invoke(GetDiscoveredServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredService:getDiscoveredService", args ?? new GetDiscoveredServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a discovered service from its uri. + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_service = Gcp.Apphub.GetDiscoveredService.Invoke(new() + /// { + /// Location = "my-location", + /// ServiceUri = "my-service-uri", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiscoveredServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredService:getDiscoveredService", args ?? new GetDiscoveredServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs b/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs index e56f77db5f..eac5e7010f 100644 --- a/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs +++ b/sdk/dotnet/Apphub/GetDiscoveredWorkload.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetDiscoveredWorkloa /// public static Output Invoke(GetDiscoveredWorkloadInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args ?? new GetDiscoveredWorkloadInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a discovered workload from its uri. + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_workload = Gcp.Apphub.GetDiscoveredWorkload.Invoke(new() + /// { + /// Location = "us-central1", + /// WorkloadUri = "my-workload-uri", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiscoveredWorkloadInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args ?? new GetDiscoveredWorkloadInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs b/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs index b1a134f344..e87ceb003d 100644 --- a/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs +++ b/sdk/dotnet/ArtifactRegistry/GetDockerImage.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetDockerImageArgs args, In /// public static Output Invoke(GetDockerImageInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getDockerImage:getDockerImage", args ?? new GetDockerImageInvokeArgs(), options.WithDefaults()); + + /// + /// This data source fetches information from a provided Artifact Registry repository, including the fully qualified name and URI for an image, based on a the latest version of image name and optional digest or tag. + /// + /// > **Note** + /// Requires one of the following OAuth scopes: `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/cloud-platform.read-only`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myRepo = new Gcp.ArtifactRegistry.Repository("my_repo", new() + /// { + /// Location = "us-west1", + /// RepositoryId = "my-repository", + /// Format = "DOCKER", + /// }); + /// + /// var myImage = Gcp.ArtifactRegistry.GetDockerImage.Invoke(new() + /// { + /// Location = myRepo.Location, + /// RepositoryId = myRepo.RepositoryId, + /// ImageName = "my-image:my-tag", + /// }); + /// + /// var @default = new Gcp.CloudRunV2.Service("default", new() + /// { + /// Template = new Gcp.CloudRunV2.Inputs.ServiceTemplateArgs + /// { + /// Containers = new[] + /// { + /// new Gcp.CloudRunV2.Inputs.ServiceTemplateContainerArgs + /// { + /// Image = myImage.Apply(getDockerImageResult => getDockerImageResult.SelfLink), + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDockerImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getDockerImage:getDockerImage", args ?? new GetDockerImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetLocations.cs b/sdk/dotnet/ArtifactRegistry/GetLocations.cs index a74e1f03c8..7e0dd607c8 100644 --- a/sdk/dotnet/ArtifactRegistry/GetLocations.cs +++ b/sdk/dotnet/ArtifactRegistry/GetLocations.cs @@ -124,6 +124,63 @@ public static Task InvokeAsync(GetLocationsArgs? args = null /// public static Output Invoke(GetLocationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); + + /// + /// Get Artifact Registry locations available for a project. + /// + /// To get more information about Artifact Registry, see: + /// + /// * [API documentation](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations/list) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/artifact-registry/docs/overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.ArtifactRegistry.GetLocations.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Multi-Regional Artifact Registry Deployment + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.ArtifactRegistry.GetLocations.Invoke(); + /// + /// var repoOne = new Gcp.ArtifactRegistry.Repository("repo_one", new() + /// { + /// Location = available.Apply(getLocationsResult => getLocationsResult.Locations[0]), + /// RepositoryId = "repo-one", + /// Format = "apt", + /// }); + /// + /// var repoTwo = new Gcp.ArtifactRegistry.Repository("repo_two", new() + /// { + /// Location = available.Apply(getLocationsResult => getLocationsResult.Locations[1]), + /// RepositoryId = "repo-two", + /// Format = "apt", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLocationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetRepository.cs b/sdk/dotnet/ArtifactRegistry/GetRepository.cs index c6a64c39ad..18604268c7 100644 --- a/sdk/dotnet/ArtifactRegistry/GetRepository.cs +++ b/sdk/dotnet/ArtifactRegistry/GetRepository.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRepositoryArgs args, Invo /// public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Artifact Registry Repository. For more information see + /// the [official documentation](https://cloud.google.com/artifact-registry/docs/) + /// and [API](https://cloud.google.com/artifact-registry/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_repo = Gcp.ArtifactRegistry.GetRepository.Invoke(new() + /// { + /// Location = "us-central1", + /// RepositoryId = "my-repository", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs b/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs index 8110d7540c..cf665460ea 100644 --- a/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/ArtifactRegistry/GetRepositoryIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRepositoryIamPol /// public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for repository + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.ArtifactRegistry.GetRepositoryIamPolicy.Invoke(new() + /// { + /// Project = my_repo.Project, + /// Location = my_repo.Location, + /// Repository = my_repo.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs index 9b069da18f..8057bc92d0 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlan.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBackupPlanArgs args, Invo public static Output Invoke(GetBackupPlanInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args ?? new GetBackupPlanInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBackupPlanInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args ?? new GetBackupPlanInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs index 63b98206ee..a0eec53332 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetBackupPlanAssociation.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetBackupPlanAsso /// public static Output Invoke(GetBackupPlanAssociationInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args ?? new GetBackupPlanAssociationInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backupplan_association = Gcp.BackupDisasterRecovery.GetBackupPlanAssociation.Invoke(new() + /// { + /// Location = "us-central1", + /// BackupPlanAssociationId = "bpa-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPlanAssociationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args ?? new GetBackupPlanAssociationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs b/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs index 67c6b5e7fc..8b0cfe7dbd 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetDataSource.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetDataSourceArgs args, Invo public static Output Invoke(GetDataSourceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetDataSourceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getDataSource:getDataSource", args ?? new GetDataSourceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs b/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs index 0922ad0cb1..144ce7d855 100644 --- a/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs +++ b/sdk/dotnet/BackupDisasterRecovery/GetManagementServer.cs @@ -54,6 +54,28 @@ public static Task InvokeAsync(GetManagementServerArg /// public static Output Invoke(GetManagementServerInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args ?? new GetManagementServerInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backup_dr_management_server = Gcp.BackupDisasterRecovery.GetManagementServer.Invoke(new() + /// { + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagementServerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args ?? new GetManagementServerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Beyondcorp/GetAppConnection.cs b/sdk/dotnet/Beyondcorp/GetAppConnection.cs index 7e773b0cf3..1c8a22d1d0 100644 --- a/sdk/dotnet/Beyondcorp/GetAppConnection.cs +++ b/sdk/dotnet/Beyondcorp/GetAppConnection.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAppConnectionArgs args /// public static Output Invoke(GetAppConnectionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnection:getAppConnection", args ?? new GetAppConnectionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google BeyondCorp App Connection. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_beyondcorp_app_connection = Gcp.Beyondcorp.GetAppConnection.Invoke(new() + /// { + /// Name = "my-beyondcorp-app-connection", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppConnectionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnection:getAppConnection", args ?? new GetAppConnectionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Beyondcorp/GetAppConnector.cs b/sdk/dotnet/Beyondcorp/GetAppConnector.cs index c8ee63a6ab..1401d79638 100644 --- a/sdk/dotnet/Beyondcorp/GetAppConnector.cs +++ b/sdk/dotnet/Beyondcorp/GetAppConnector.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAppConnectorArgs args, /// public static Output Invoke(GetAppConnectorInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnector:getAppConnector", args ?? new GetAppConnectorInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google BeyondCorp App Connector. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_beyondcorp_app_connector = Gcp.Beyondcorp.GetAppConnector.Invoke(new() + /// { + /// Name = "my-beyondcorp-app-connector", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppConnectorInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppConnector:getAppConnector", args ?? new GetAppConnectorInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Beyondcorp/GetAppGateway.cs b/sdk/dotnet/Beyondcorp/GetAppGateway.cs index a4385b2a48..27fcb0dd2d 100644 --- a/sdk/dotnet/Beyondcorp/GetAppGateway.cs +++ b/sdk/dotnet/Beyondcorp/GetAppGateway.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAppGatewayArgs args, Invo /// public static Output Invoke(GetAppGatewayInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppGateway:getAppGateway", args ?? new GetAppGatewayInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google BeyondCorp App Gateway. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_beyondcorp_app_gateway = Gcp.Beyondcorp.GetAppGateway.Invoke(new() + /// { + /// Name = "my-beyondcorp-app-gateway", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppGatewayInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:beyondcorp/getAppGateway:getAppGateway", args ?? new GetAppGatewayInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs b/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs index 7ad7a4d235..07eef381ea 100644 --- a/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs +++ b/sdk/dotnet/BigQuery/GetConnectionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetConnectionIamPol /// public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for connection + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQuery.GetConnectionIamPolicy.Invoke(new() + /// { + /// Project = connection.Project, + /// Location = connection.Location, + /// ConnectionId = connection.ConnectionId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetDataset.cs b/sdk/dotnet/BigQuery/GetDataset.cs index 84f6af6008..206b1a3f26 100644 --- a/sdk/dotnet/BigQuery/GetDataset.cs +++ b/sdk/dotnet/BigQuery/GetDataset.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDatasetArgs args, InvokeOpti /// public static Output Invoke(GetDatasetInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDataset:getDataset", args ?? new GetDatasetInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a BigQuery dataset. For more information see + /// the [official documentation](https://cloud.google.com/bigquery/docs) + /// and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var dataset = Gcp.BigQuery.GetDataset.Invoke(new() + /// { + /// DatasetId = "my-bq-dataset", + /// Project = "my-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatasetInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDataset:getDataset", args ?? new GetDatasetInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs b/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs index c320c4fdc7..8b37e637eb 100644 --- a/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs +++ b/sdk/dotnet/BigQuery/GetDatasetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatasetIamPolicyArg /// public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a BigQuery dataset. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQuery.GetDatasetIamPolicy.Invoke(new() + /// { + /// DatasetId = dataset.DatasetId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs b/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs index 03c9e0217b..33c3f00406 100644 --- a/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs +++ b/sdk/dotnet/BigQuery/GetDefaultServiceAccount.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetDefaultService /// public static Output Invoke(GetDefaultServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a project's unique BigQuery service account. + /// + /// Each Google Cloud project has a unique service account used by BigQuery. When using + /// BigQuery with [customer-managed encryption keys](https://cloud.google.com/bigquery/docs/customer-managed-encryption), + /// this account needs to be granted the + /// `cloudkms.cryptoKeyEncrypterDecrypter` IAM role on the customer-managed Cloud KMS key used to protect the data. + /// + /// For more information see + /// [the API reference](https://cloud.google.com/bigquery/docs/reference/rest/v2/projects/getServiceAccount). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var bqSa = Gcp.BigQuery.GetDefaultServiceAccount.Invoke(); + /// + /// var keySaUser = new Gcp.Kms.CryptoKeyIAMMember("key_sa_user", new() + /// { + /// CryptoKeyId = key.Id, + /// Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter", + /// Member = $"serviceAccount:{bqSa.Apply(getDefaultServiceAccountResult => getDefaultServiceAccountResult.Email)}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDefaultServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetTableIamPolicy.cs b/sdk/dotnet/BigQuery/GetTableIamPolicy.cs index cab69477b7..57064c8f20 100644 --- a/sdk/dotnet/BigQuery/GetTableIamPolicy.cs +++ b/sdk/dotnet/BigQuery/GetTableIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTableIamPolicyArgs ar /// public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for table + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQuery.GetTableIamPolicy.Invoke(new() + /// { + /// Project = test.Project, + /// DatasetId = test.DatasetId, + /// TableId = test.TableId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQuery/GetTables.cs b/sdk/dotnet/BigQuery/GetTables.cs index ce93e3a911..0524c3be46 100644 --- a/sdk/dotnet/BigQuery/GetTables.cs +++ b/sdk/dotnet/BigQuery/GetTables.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTablesArgs args, InvokeOption /// public static Output Invoke(GetTablesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); + + /// + /// Get a list of tables in a BigQuery dataset. For more information see + /// the [official documentation](https://cloud.google.com/bigquery/docs) + /// and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tables = Gcp.BigQuery.GetTables.Invoke(new() + /// { + /// DatasetId = "my-bq-dataset", + /// Project = "my-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTablesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquery/getTables:getTables", args ?? new GetTablesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs b/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs index b5a560c111..dda2eb4052 100644 --- a/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs +++ b/sdk/dotnet/BigQueryAnalyticsHub/GetDataExchangeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDataExchangeIa /// public static Output Invoke(GetDataExchangeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args ?? new GetDataExchangeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for dataexchange + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQueryAnalyticsHub.GetDataExchangeIamPolicy.Invoke(new() + /// { + /// Project = dataExchange.Project, + /// Location = dataExchange.Location, + /// DataExchangeId = dataExchange.DataExchangeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDataExchangeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args ?? new GetDataExchangeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs b/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs index 24bdd574e2..d86f49ffee 100644 --- a/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs +++ b/sdk/dotnet/BigQueryAnalyticsHub/GetListingIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetListingIamPolicyArg /// public static Output Invoke(GetListingIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args ?? new GetListingIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for listing + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQueryAnalyticsHub.GetListingIamPolicy.Invoke(new() + /// { + /// Project = listing.Project, + /// Location = listing.Location, + /// DataExchangeId = listing.DataExchangeId, + /// ListingId = listing.ListingId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetListingIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args ?? new GetListingIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs b/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs index d60fae3697..9740c03c61 100644 --- a/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs +++ b/sdk/dotnet/BigQueryDataPolicy/GetIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for datapolicy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigQueryDataPolicy.GetIamPolicy.Invoke(new() + /// { + /// Project = dataPolicy.Project, + /// Location = dataPolicy.Location, + /// DataPolicyId = dataPolicy.DataPolicyId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs b/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs index 34a6533176..04a2f9fa8b 100644 --- a/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/BigTable/GetInstanceIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Bigtable instance. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigTable.GetInstanceIamPolicy.Invoke(new() + /// { + /// Instance = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BigTable/GetTableIamPolicy.cs b/sdk/dotnet/BigTable/GetTableIamPolicy.cs index 5f503af85d..c71b84d3c0 100644 --- a/sdk/dotnet/BigTable/GetTableIamPolicy.cs +++ b/sdk/dotnet/BigTable/GetTableIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTableIamPolicyArgs ar /// public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Bigtable Table. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BigTable.GetTableIamPolicy.Invoke(new() + /// { + /// Instance = instance.Name, + /// Table = table.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTableIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args ?? new GetTableIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Billing/GetAccountIamPolicy.cs b/sdk/dotnet/Billing/GetAccountIamPolicy.cs index bbfe04cf3c..96e23c4298 100644 --- a/sdk/dotnet/Billing/GetAccountIamPolicy.cs +++ b/sdk/dotnet/Billing/GetAccountIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetAccountIamPolicyArg /// public static Output Invoke(GetAccountIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args ?? new GetAccountIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Billing Account. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Billing.GetAccountIamPolicy.Invoke(new() + /// { + /// BillingAccountId = "MEEP-MEEP-MEEP-MEEP-MEEP", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccountIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args ?? new GetAccountIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs b/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs index 467fd3302c..32adfa1d3f 100644 --- a/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs +++ b/sdk/dotnet/BinaryAuthorization/GetAttestorIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetAttestorIamPolicyA /// public static Output Invoke(GetAttestorIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args ?? new GetAttestorIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for attestor + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.BinaryAuthorization.GetAttestorIamPolicy.Invoke(new() + /// { + /// Project = attestor.Project, + /// Attestor = attestor.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAttestorIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args ?? new GetAttestorIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateAuthority/GetAuthority.cs b/sdk/dotnet/CertificateAuthority/GetAuthority.cs index c54dbb15c7..b59bd796ae 100644 --- a/sdk/dotnet/CertificateAuthority/GetAuthority.cs +++ b/sdk/dotnet/CertificateAuthority/GetAuthority.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetAuthorityArgs? args = null /// public static Output Invoke(GetAuthorityInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getAuthority:getAuthority", args ?? new GetAuthorityInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google CAS Certificate Authority. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateAuthority.GetAuthority.Invoke(new() + /// { + /// Location = "us-west1", + /// Pool = "pool-name", + /// CertificateAuthorityId = "ca-id", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["csr"] = @default.Apply(@default => @default.Apply(getAuthorityResult => getAuthorityResult.PemCsr)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAuthorityInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getAuthority:getAuthority", args ?? new GetAuthorityInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs b/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs index 754befee33..8c0c44c338 100644 --- a/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs +++ b/sdk/dotnet/CertificateAuthority/GetCaPoolIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetCaPoolIamPolicyArgs /// public static Output Invoke(GetCaPoolIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args ?? new GetCaPoolIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for capool + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CertificateAuthority.GetCaPoolIamPolicy.Invoke(new() + /// { + /// CaPool = @default.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCaPoolIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args ?? new GetCaPoolIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs b/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs index f3e879283d..0082876a4a 100644 --- a/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs +++ b/sdk/dotnet/CertificateAuthority/GetCertificateTemplateIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetCertifi /// public static Output Invoke(GetCertificateTemplateIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args ?? new GetCertificateTemplateIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for certificatetemplate + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CertificateAuthority.GetCertificateTemplateIamPolicy.Invoke(new() + /// { + /// CertificateTemplate = @default.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCertificateTemplateIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args ?? new GetCertificateTemplateIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateManager/GetCertificateMap.cs b/sdk/dotnet/CertificateManager/GetCertificateMap.cs index 75c1b0612a..e899b5272f 100644 --- a/sdk/dotnet/CertificateManager/GetCertificateMap.cs +++ b/sdk/dotnet/CertificateManager/GetCertificateMap.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetCertificateMapArgs ar /// public static Output Invoke(GetCertificateMapInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificateMap:getCertificateMap", args ?? new GetCertificateMapInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Certificate Manager Certificate Map resource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificateMap.Invoke(new() + /// { + /// Name = "cert-map", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCertificateMapInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificateMap:getCertificateMap", args ?? new GetCertificateMapInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CertificateManager/GetCertificates.cs b/sdk/dotnet/CertificateManager/GetCertificates.cs index 0eea79a5a7..a2ffce7bfe 100644 --- a/sdk/dotnet/CertificateManager/GetCertificates.cs +++ b/sdk/dotnet/CertificateManager/GetCertificates.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetCertificatesArgs? args /// public static Output Invoke(GetCertificatesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); + + /// + /// List all certificates within Google Certificate Manager for a given project, region or filter. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificates.Invoke(); + /// + /// }); + /// ``` + /// + /// ### With A Filter + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificates.Invoke(new() + /// { + /// Filter = "name:projects/PROJECT_ID/locations/REGION/certificates/certificate-name-*", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCertificatesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:certificatemanager/getCertificates:getCertificates", args ?? new GetCertificatesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs b/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs index 84c3df38c8..80c90002e3 100644 --- a/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs +++ b/sdk/dotnet/CloudAsset/GetResourcesSearchAll.cs @@ -156,6 +156,79 @@ public static Task InvokeAsync(GetResourcesSearchAl /// public static Output Invoke(GetResourcesSearchAllInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args ?? new GetResourcesSearchAllInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ### Searching For All Projects In An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projects = Gcp.CloudAsset.GetResourcesSearchAll.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "cloudresourcemanager.googleapis.com/Project", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Projects With CloudBuild API Enabled + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cloudBuildProjects = Gcp.CloudAsset.GetResourcesSearchAll.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "serviceusage.googleapis.com/Service", + /// }, + /// Query = "displayName:cloudbuild.googleapis.com AND state:ENABLED", + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Service Accounts In A Project + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projectServiceAccounts = Gcp.CloudAsset.GetResourcesSearchAll.Invoke(new() + /// { + /// Scope = "projects/my-project-id", + /// AssetTypes = new[] + /// { + /// "iam.googleapis.com/ServiceAccount", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetResourcesSearchAllInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args ?? new GetResourcesSearchAllInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudAsset/GetSearchAllResources.cs b/sdk/dotnet/CloudAsset/GetSearchAllResources.cs index 958111c09c..d7b2e3e153 100644 --- a/sdk/dotnet/CloudAsset/GetSearchAllResources.cs +++ b/sdk/dotnet/CloudAsset/GetSearchAllResources.cs @@ -164,6 +164,83 @@ public static Task InvokeAsync(GetSearchAllResource /// public static Output Invoke(GetSearchAllResourcesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args ?? new GetSearchAllResourcesInvokeArgs(), options.WithDefaults()); + + /// + /// Searches all Google Cloud resources within the specified scope, such as a project, folder, or organization. See the + /// [REST API](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources) + /// for more details. + /// + /// ## Example Usage + /// + /// ### Searching For All Projects In An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projects = Gcp.CloudAsset.GetSearchAllResources.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "cloudresourcemanager.googleapis.com/Project", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Projects With CloudBuild API Enabled + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cloudBuildProjects = Gcp.CloudAsset.GetSearchAllResources.Invoke(new() + /// { + /// Scope = "organizations/0123456789", + /// AssetTypes = new[] + /// { + /// "serviceusage.googleapis.com/Service", + /// }, + /// Query = "displayName:cloudbuild.googleapis.com AND state:ENABLED", + /// }); + /// + /// }); + /// ``` + /// + /// ### Searching For All Service Accounts In A Project + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var projectServiceAccounts = Gcp.CloudAsset.GetSearchAllResources.Invoke(new() + /// { + /// Scope = "projects/my-project-id", + /// AssetTypes = new[] + /// { + /// "iam.googleapis.com/ServiceAccount", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSearchAllResourcesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args ?? new GetSearchAllResourcesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudBuild/GetTrigger.cs b/sdk/dotnet/CloudBuild/GetTrigger.cs index 05e3a96a8f..8a31014740 100644 --- a/sdk/dotnet/CloudBuild/GetTrigger.cs +++ b/sdk/dotnet/CloudBuild/GetTrigger.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetTriggerArgs args, InvokeOpti /// public static Output Invoke(GetTriggerInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuild/getTrigger:getTrigger", args ?? new GetTriggerInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Cloudbuild Trigger, see: + /// + /// * [API documentation](https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggers) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/build/docs/automating-builds/create-manage-triggers) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var name = Gcp.CloudBuild.GetTrigger.Invoke(new() + /// { + /// Project = "your-project-id", + /// TriggerId = filename_trigger.TriggerId, + /// Location = "location of trigger build", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTriggerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuild/getTrigger:getTrigger", args ?? new GetTriggerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs b/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs index 1927d30978..3c10b9ffdd 100644 --- a/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs +++ b/sdk/dotnet/CloudBuildV2/GetConnectionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetConnectionIamPol /// public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for connection + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudBuildV2.GetConnectionIamPolicy.Invoke(new() + /// { + /// Project = my_connection.Project, + /// Location = my_connection.Location, + /// Name = my_connection.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConnectionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args ?? new GetConnectionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs b/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs index 4e67f390e2..7cc826209d 100644 --- a/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs +++ b/sdk/dotnet/CloudDeploy/GetCustomTargetTypeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetCustomTarg /// public static Output Invoke(GetCustomTargetTypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args ?? new GetCustomTargetTypeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for customtargettype + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudDeploy.GetCustomTargetTypeIamPolicy.Invoke(new() + /// { + /// Project = custom_target_type.Project, + /// Location = custom_target_type.Location, + /// Name = custom_target_type.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCustomTargetTypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args ?? new GetCustomTargetTypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs b/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs index 4a3fd96de8..672aa26e85 100644 --- a/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs +++ b/sdk/dotnet/CloudDeploy/GetDeliveryPipelineIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDeliveryPi /// public static Output Invoke(GetDeliveryPipelineIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args ?? new GetDeliveryPipelineIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for deliverypipeline + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudDeploy.GetDeliveryPipelineIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDeliveryPipelineIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args ?? new GetDeliveryPipelineIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs b/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs index 140468b38b..71df0b0372 100644 --- a/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs +++ b/sdk/dotnet/CloudDeploy/GetTargetIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTargetIamPolicyArgs /// public static Output Invoke(GetTargetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args ?? new GetTargetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for target + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudDeploy.GetTargetIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTargetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args ?? new GetTargetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctions/GetFunction.cs b/sdk/dotnet/CloudFunctions/GetFunction.cs index d7d5b11262..1d4992d385 100644 --- a/sdk/dotnet/CloudFunctions/GetFunction.cs +++ b/sdk/dotnet/CloudFunctions/GetFunction.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetFunctionArgs args, InvokeOp /// public static Output Invoke(GetFunctionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Function. For more information see + /// the [official documentation](https://cloud.google.com/functions/docs/) + /// and [API](https://cloud.google.com/functions/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_function = Gcp.CloudFunctions.GetFunction.Invoke(new() + /// { + /// Name = "function", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs b/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs index bba63b3a42..3ba690674b 100644 --- a/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs +++ b/sdk/dotnet/CloudFunctions/GetFunctionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFunctionIamPolicyA /// public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for cloudfunction + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudFunctions.GetFunctionIamPolicy.Invoke(new() + /// { + /// Project = function.Project, + /// Region = function.Region, + /// CloudFunction = function.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctionsV2/GetFunction.cs b/sdk/dotnet/CloudFunctionsV2/GetFunction.cs index 2f97e03d37..e362688c8b 100644 --- a/sdk/dotnet/CloudFunctionsV2/GetFunction.cs +++ b/sdk/dotnet/CloudFunctionsV2/GetFunction.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFunctionArgs args, InvokeOp /// public static Output Invoke(GetFunctionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Function (2nd gen). For more information see: + /// + /// * [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_function = Gcp.CloudFunctionsV2.GetFunction.Invoke(new() + /// { + /// Name = "function", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunction:getFunction", args ?? new GetFunctionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs b/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs index e40e672853..1dfee6cf39 100644 --- a/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs +++ b/sdk/dotnet/CloudFunctionsV2/GetFunctionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFunctionIamPolicyA /// public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for function + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudFunctionsV2.GetFunctionIamPolicy.Invoke(new() + /// { + /// Project = function.Project, + /// Location = function.Location, + /// CloudFunction = function.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFunctionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args ?? new GetFunctionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroupLookup.cs b/sdk/dotnet/CloudIdentity/GetGroupLookup.cs index bacdaca554..fe29f08e90 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupLookup.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupLookup.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetGroupLookupArgs args, In /// public static Output Invoke(GetGroupLookupInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", args ?? new GetGroupLookupInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email. + /// + /// https://cloud.google.com/identity/docs/concepts/overview#groups + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @group = Gcp.CloudIdentity.GetGroupLookup.Invoke(new() + /// { + /// GroupKey = new Gcp.CloudIdentity.Inputs.GetGroupLookupGroupKeyInputArgs + /// { + /// Id = "my-group@example.com", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGroupLookupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", args ?? new GetGroupLookupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs b/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs index 03810d564d..5723c495d4 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetGroupMembershipsArg /// public static Output Invoke(GetGroupMembershipsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args ?? new GetGroupMembershipsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get list of the Cloud Identity Group Memberships within a given Group. + /// + /// https://cloud.google.com/identity/docs/concepts/overview#memberships + /// + /// To get more information about GroupMembership, see: + /// + /// * [API documentation](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups) + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var members = Gcp.CloudIdentity.GetGroupMemberships.Invoke(new() + /// { + /// Group = "groups/123eab45c6defghi", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGroupMembershipsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args ?? new GetGroupMembershipsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs b/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs index 212b05a17c..09bb942686 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupTransitiveMemberships.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetGroupTran public static Output Invoke(GetGroupTransitiveMembershipsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args ?? new GetGroupTransitiveMembershipsInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetGroupTransitiveMembershipsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args ?? new GetGroupTransitiveMembershipsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudIdentity/GetGroups.cs b/sdk/dotnet/CloudIdentity/GetGroups.cs index 02d3dc6558..1de665bf53 100644 --- a/sdk/dotnet/CloudIdentity/GetGroups.cs +++ b/sdk/dotnet/CloudIdentity/GetGroups.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetGroupsArgs args, InvokeOption /// public static Output Invoke(GetGroupsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get list of the Cloud Identity Groups under a customer or namespace. + /// + /// https://cloud.google.com/identity/docs/concepts/overview#groups + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var groups = Gcp.CloudIdentity.GetGroups.Invoke(new() + /// { + /// Parent = "customers/A01b123xz", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGroupsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudidentity/getGroups:getGroups", args ?? new GetGroupsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs b/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs index cfcde2a8f8..ea11524833 100644 --- a/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs +++ b/sdk/dotnet/CloudQuota/GetSQuotaInfo.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSQuotaInfoArgs args, Invo /// public static Output Invoke(GetSQuotaInfoInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args ?? new GetSQuotaInfoInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information about a particular quota for a given project, folder or organization. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myQuotaInfo = Gcp.CloudQuota.GetSQuotaInfo.Invoke(new() + /// { + /// Parent = "projects/my-project", + /// Service = "compute.googleapis.com", + /// QuotaId = "CPUS-per-project-region", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSQuotaInfoInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args ?? new GetSQuotaInfoInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs b/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs index 7f14b3fdfc..e533eef75a 100644 --- a/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs +++ b/sdk/dotnet/CloudQuota/GetSQuotaInfos.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSQuotaInfosArgs args, In /// public static Output Invoke(GetSQuotaInfosInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args ?? new GetSQuotaInfosInvokeArgs(), options.WithDefaults()); + + /// + /// Provides information about all quotas for a given project, folder or organization. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myQuotaInfos = Gcp.CloudQuota.GetSQuotaInfos.Invoke(new() + /// { + /// Parent = "projects/my-project", + /// Service = "compute.googleapis.com", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSQuotaInfosInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args ?? new GetSQuotaInfosInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRun/GetLocations.cs b/sdk/dotnet/CloudRun/GetLocations.cs index f47cbc0560..9b8f73728c 100644 --- a/sdk/dotnet/CloudRun/GetLocations.cs +++ b/sdk/dotnet/CloudRun/GetLocations.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetLocationsArgs? args = null /// public static Output Invoke(GetLocationsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); + + /// + /// Get Cloud Run locations available for a project. + /// + /// To get more information about Cloud Run, see: + /// + /// * [API documentation](https://cloud.google.com/run/docs/reference/rest/v1/projects.locations) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/run/docs/) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.CloudRun.GetLocations.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLocationsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getLocations:getLocations", args ?? new GetLocationsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRun/GetService.cs b/sdk/dotnet/CloudRun/GetService.cs index 3390d9c63f..40bcda5820 100644 --- a/sdk/dotnet/CloudRun/GetService.cs +++ b/sdk/dotnet/CloudRun/GetService.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceArgs args, InvokeOpti /// public static Output Invoke(GetServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Run Service. For more information see + /// the [official documentation](https://cloud.google.com/run/docs/) + /// and [API](https://cloud.google.com/run/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var run_service = Gcp.CloudRun.GetService.Invoke(new() + /// { + /// Name = "my-service", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs b/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs index d74186f492..413ba0f6e0 100644 --- a/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs +++ b/sdk/dotnet/CloudRun/GetServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceIamPolicyArg /// public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudRun.GetServiceIamPolicy.Invoke(new() + /// { + /// Location = @default.Location, + /// Project = @default.Project, + /// Service = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetJob.cs b/sdk/dotnet/CloudRunV2/GetJob.cs index 6e3ad4db31..c6af0f7a84 100644 --- a/sdk/dotnet/CloudRunV2/GetJob.cs +++ b/sdk/dotnet/CloudRunV2/GetJob.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetJobArgs args, InvokeOptions? opt /// public static Output Invoke(GetJobInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJob:getJob", args ?? new GetJobInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Run v2 Job. For more information see + /// the [official documentation](https://cloud.google.com/run/docs/) + /// and [API](https://cloud.google.com/run/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myJob = Gcp.CloudRunV2.GetJob.Invoke(new() + /// { + /// Name = "my-job", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetJobInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJob:getJob", args ?? new GetJobInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs b/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs index ccedaf3b35..cb858974f8 100644 --- a/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs +++ b/sdk/dotnet/CloudRunV2/GetJobIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetJobIamPolicyArgs args, /// public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for job + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudRunV2.GetJobIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetService.cs b/sdk/dotnet/CloudRunV2/GetService.cs index 833ea96cdf..15076d1cbb 100644 --- a/sdk/dotnet/CloudRunV2/GetService.cs +++ b/sdk/dotnet/CloudRunV2/GetService.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceArgs args, InvokeOpti /// public static Output Invoke(GetServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Run v2 Service. For more information see + /// the [official documentation](https://cloud.google.com/run/docs/) + /// and [API](https://cloud.google.com/run/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myService = Gcp.CloudRunV2.GetService.Invoke(new() + /// { + /// Name = "my-service", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getService:getService", args ?? new GetServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs b/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs index d7eb5aa393..765a6f45ee 100644 --- a/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs +++ b/sdk/dotnet/CloudRunV2/GetServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetServiceIamPolicyArg /// public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudRunV2.GetServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs b/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs index 37a5a3dfef..9cdf533921 100644 --- a/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs +++ b/sdk/dotnet/CloudTasks/GetQueueIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetQueueIamPolicyArgs ar /// public static Output Invoke(GetQueueIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args ?? new GetQueueIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for queue + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.CloudTasks.GetQueueIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetQueueIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args ?? new GetQueueIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetEnvironment.cs b/sdk/dotnet/Composer/GetEnvironment.cs index 8d23a9db80..cae3ce8406 100644 --- a/sdk/dotnet/Composer/GetEnvironment.cs +++ b/sdk/dotnet/Composer/GetEnvironment.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetEnvironmentArgs args, In /// public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Cloud Composer environment configuration in a region for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var composerEnvEnvironment = new Gcp.Composer.Environment("composer_env", new() + /// { + /// Name = "composer-environment", + /// }); + /// + /// var composerEnv = Gcp.Composer.GetEnvironment.Invoke(new() + /// { + /// Name = test.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["debug"] = composerEnv.Apply(getEnvironmentResult => getEnvironmentResult.Configs), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetImageVersions.cs b/sdk/dotnet/Composer/GetImageVersions.cs index 577f212793..cf2d87b7d2 100644 --- a/sdk/dotnet/Composer/GetImageVersions.cs +++ b/sdk/dotnet/Composer/GetImageVersions.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetImageVersionsArgs? arg /// public static Output Invoke(GetImageVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getImageVersions:getImageVersions", args ?? new GetImageVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Cloud Composer versions in a region for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = Gcp.Composer.GetImageVersions.Invoke(); + /// + /// var test = new Gcp.Composer.Environment("test", new() + /// { + /// Name = "test-env", + /// Region = "us-central1", + /// Config = new Gcp.Composer.Inputs.EnvironmentConfigArgs + /// { + /// SoftwareConfig = new Gcp.Composer.Inputs.EnvironmentConfigSoftwareConfigArgs + /// { + /// ImageVersion = all.Apply(getImageVersionsResult => getImageVersionsResult.ImageVersions[0]?.ImageVersionId), + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImageVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getImageVersions:getImageVersions", args ?? new GetImageVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs b/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs index 4645d7e2b2..759cccea97 100644 --- a/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs +++ b/sdk/dotnet/Composer/GetUserWorkloadsConfigMap.cs @@ -110,6 +110,56 @@ public static Task InvokeAsync(GetUserWorkloads /// public static Output Invoke(GetUserWorkloadsConfigMapInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args ?? new GetUserWorkloadsConfigMapInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleEnvironment = new Gcp.Composer.Environment("example", new() + /// { + /// Name = "example-environment", + /// Config = new Gcp.Composer.Inputs.EnvironmentConfigArgs + /// { + /// SoftwareConfig = new Gcp.Composer.Inputs.EnvironmentConfigSoftwareConfigArgs + /// { + /// ImageVersion = "composer-3-airflow-2", + /// }, + /// }, + /// }); + /// + /// var exampleUserWorkloadsConfigMap = new Gcp.Composer.UserWorkloadsConfigMap("example", new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = "example-config-map", + /// Data = + /// { + /// { "db_host", "dbhost:5432" }, + /// { "api_host", "apihost:443" }, + /// }, + /// }); + /// + /// var example = Gcp.Composer.GetUserWorkloadsConfigMap.Invoke(new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = googleComposerUserWorkloadsConfigMap.Example.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["debug"] = example, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUserWorkloadsConfigMapInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args ?? new GetUserWorkloadsConfigMapInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs b/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs index dd44e8e9f4..2761ef38f3 100644 --- a/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs +++ b/sdk/dotnet/Composer/GetUserWorkloadsSecret.cs @@ -124,6 +124,63 @@ public static Task InvokeAsync(GetUserWorkloadsSec /// public static Output Invoke(GetUserWorkloadsSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args ?? new GetUserWorkloadsSecretInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var exampleEnvironment = new Gcp.Composer.Environment("example", new() + /// { + /// Name = "example-environment", + /// Config = new Gcp.Composer.Inputs.EnvironmentConfigArgs + /// { + /// SoftwareConfig = new Gcp.Composer.Inputs.EnvironmentConfigSoftwareConfigArgs + /// { + /// ImageVersion = "composer-3-airflow-2", + /// }, + /// }, + /// }); + /// + /// var exampleUserWorkloadsSecret = new Gcp.Composer.UserWorkloadsSecret("example", new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = "example-secret", + /// Data = + /// { + /// { "username", Std.Base64encode.Invoke(new() + /// { + /// Input = "username", + /// }).Apply(invoke => invoke.Result) }, + /// { "password", Std.Base64encode.Invoke(new() + /// { + /// Input = "password", + /// }).Apply(invoke => invoke.Result) }, + /// }, + /// }); + /// + /// var example = Gcp.Composer.GetUserWorkloadsSecret.Invoke(new() + /// { + /// Environment = exampleEnvironment.Name, + /// Name = googleComposerUserWorkloadsSecret.Example.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["debug"] = example, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetUserWorkloadsSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args ?? new GetUserWorkloadsSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetAddress.cs b/sdk/dotnet/Compute/GetAddress.cs index 68c130c1d6..a7b6c83834 100644 --- a/sdk/dotnet/Compute/GetAddress.cs +++ b/sdk/dotnet/Compute/GetAddress.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetAddressArgs args, InvokeOpti /// public static Output Invoke(GetAddressInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddress:getAddress", args ?? new GetAddressInvokeArgs(), options.WithDefaults()); + + /// + /// Get the IP address from a static address. For more information see + /// the official [API](https://cloud.google.com/compute/docs/reference/latest/addresses/get) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myAddress = Gcp.Compute.GetAddress.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var prod = new Gcp.Dns.ManagedZone("prod", new() + /// { + /// Name = "prod-zone", + /// DnsName = "prod.mydomain.com.", + /// }); + /// + /// var frontend = new Gcp.Dns.RecordSet("frontend", new() + /// { + /// Name = prod.DnsName.Apply(dnsName => $"frontend.{dnsName}"), + /// Type = "A", + /// Ttl = 300, + /// ManagedZone = prod.Name, + /// Rrdatas = new[] + /// { + /// myAddress.Apply(getAddressResult => getAddressResult.Address), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAddressInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddress:getAddress", args ?? new GetAddressInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetAddresses.cs b/sdk/dotnet/Compute/GetAddresses.cs index 1b20a858b9..f04da762e3 100644 --- a/sdk/dotnet/Compute/GetAddresses.cs +++ b/sdk/dotnet/Compute/GetAddresses.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetAddressesArgs? args = null /// public static Output Invoke(GetAddressesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddresses:getAddresses", args ?? new GetAddressesInvokeArgs(), options.WithDefaults()); + + /// + /// List IP addresses in a project. For more information see + /// the official API [list](https://cloud.google.com/compute/docs/reference/latest/addresses/list) and + /// [aggregated list](https://cloud.google.com/compute/docs/reference/rest/v1/addresses/aggregatedList) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Gcp.Compute.GetAddresses.Invoke(new() + /// { + /// Filter = "name:test-*", + /// }); + /// + /// var prod = new Gcp.Dns.ManagedZone("prod", new() + /// { + /// Name = "prod-zone", + /// DnsName = "prod.mydomain.com.", + /// }); + /// + /// var frontend = new Gcp.Dns.RecordSet("frontend", new() + /// { + /// Name = prod.DnsName.Apply(dnsName => $"frontend.{dnsName}"), + /// Type = "A", + /// Ttl = 300, + /// ManagedZone = prod.Name, + /// Rrdatas = test.Apply(getAddressesResult => getAddressesResult.Addresses).Select(__item => __item.Address).ToList(), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAddressesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getAddresses:getAddresses", args ?? new GetAddressesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendBucket.cs b/sdk/dotnet/Compute/GetBackendBucket.cs index fa3e4e5a04..f59e68e7fd 100644 --- a/sdk/dotnet/Compute/GetBackendBucket.cs +++ b/sdk/dotnet/Compute/GetBackendBucket.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetBackendBucketArgs args /// public static Output Invoke(GetBackendBucketInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucket:getBackendBucket", args ?? new GetBackendBucketInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a BackendBucket. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backend_bucket = Gcp.Compute.GetBackendBucket.Invoke(new() + /// { + /// Name = "my-backend", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackendBucketInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucket:getBackendBucket", args ?? new GetBackendBucketInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs b/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs index 04170367e9..2ac99eaeae 100644 --- a/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs +++ b/sdk/dotnet/Compute/GetBackendBucketIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBackendBucket public static Output Invoke(GetBackendBucketIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args ?? new GetBackendBucketIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBackendBucketIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args ?? new GetBackendBucketIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendService.cs b/sdk/dotnet/Compute/GetBackendService.cs index 729f4fc00e..24a4b60d52 100644 --- a/sdk/dotnet/Compute/GetBackendService.cs +++ b/sdk/dotnet/Compute/GetBackendService.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetBackendServiceArgs ar /// public static Output Invoke(GetBackendServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendService:getBackendService", args ?? new GetBackendServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Provide access to a Backend Service's attribute. For more information + /// see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) + /// and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var baz = Gcp.Compute.GetBackendService.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var @default = new Gcp.Compute.BackendService("default", new() + /// { + /// Name = "backend-service", + /// HealthChecks = baz.Apply(getBackendServiceResult => getBackendServiceResult.HealthChecks[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackendServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendService:getBackendService", args ?? new GetBackendServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs b/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs index 9461a7e2b0..5c46b805b5 100644 --- a/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Compute/GetBackendServiceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetBackendServi public static Output Invoke(GetBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args ?? new GetBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args ?? new GetBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetCertificate.cs b/sdk/dotnet/Compute/GetCertificate.cs index b14d72f947..61ad997203 100644 --- a/sdk/dotnet/Compute/GetCertificate.cs +++ b/sdk/dotnet/Compute/GetCertificate.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetCertificateArgs args, In /// public static Output Invoke(GetCertificateInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getCertificate:getCertificate", args ?? new GetCertificateInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Compute SSL Certificate from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getCertificateResult => getCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getCertificateResult => getCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getCertificateResult => getCertificateResult.SelfLink), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetCertificateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getCertificate:getCertificate", args ?? new GetCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetDefaultServiceAccount.cs b/sdk/dotnet/Compute/GetDefaultServiceAccount.cs index 428a64680a..9b6e4337ba 100644 --- a/sdk/dotnet/Compute/GetDefaultServiceAccount.cs +++ b/sdk/dotnet/Compute/GetDefaultServiceAccount.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDefaultService /// public static Output Invoke(GetDefaultServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve default service account for this project + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Compute.GetDefaultServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getDefaultServiceAccountResult => getDefaultServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDefaultServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args ?? new GetDefaultServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetDisk.cs b/sdk/dotnet/Compute/GetDisk.cs index 0fe9500d47..7b9e6a35cb 100644 --- a/sdk/dotnet/Compute/GetDisk.cs +++ b/sdk/dotnet/Compute/GetDisk.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetDiskArgs args, InvokeOptions? o /// public static Output Invoke(GetDiskInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDisk:getDisk", args ?? new GetDiskInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Compute Persistent disks. + /// + /// [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var persistent_boot_disk = Gcp.Compute.GetDisk.Invoke(new() + /// { + /// Name = "persistent-boot-disk", + /// Project = "example", + /// }); + /// + /// var @default = new Gcp.Compute.Instance("default", new() + /// { + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// Source = persistent_boot_disk.Apply(persistent_boot_disk => persistent_boot_disk.Apply(getDiskResult => getDiskResult.SelfLink)), + /// AutoDelete = false, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiskInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDisk:getDisk", args ?? new GetDiskInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetDiskIamPolicy.cs b/sdk/dotnet/Compute/GetDiskIamPolicy.cs index 708142a9f2..ac9b805b23 100644 --- a/sdk/dotnet/Compute/GetDiskIamPolicy.cs +++ b/sdk/dotnet/Compute/GetDiskIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDiskIamPolicyArgs args /// public static Output Invoke(GetDiskIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args ?? new GetDiskIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for disk + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetDiskIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Zone = @default.Zone, + /// Name = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDiskIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args ?? new GetDiskIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetForwardingRule.cs b/sdk/dotnet/Compute/GetForwardingRule.cs index 5446fb0241..453fed4626 100644 --- a/sdk/dotnet/Compute/GetForwardingRule.cs +++ b/sdk/dotnet/Compute/GetForwardingRule.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetForwardingRuleArgs ar /// public static Output Invoke(GetForwardingRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRule:getForwardingRule", args ?? new GetForwardingRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Get a forwarding rule within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetForwardingRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRule:getForwardingRule", args ?? new GetForwardingRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetForwardingRules.cs b/sdk/dotnet/Compute/GetForwardingRules.cs index b5a62ddb0b..2e1f122df7 100644 --- a/sdk/dotnet/Compute/GetForwardingRules.cs +++ b/sdk/dotnet/Compute/GetForwardingRules.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetForwardingRulesArgs? /// public static Output Invoke(GetForwardingRulesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRules:getForwardingRules", args ?? new GetForwardingRulesInvokeArgs(), options.WithDefaults()); + + /// + /// List all networks in a specified Google Cloud project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rules = Gcp.Compute.GetForwardingRules.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetForwardingRulesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getForwardingRules:getForwardingRules", args ?? new GetForwardingRulesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetGlobalAddress.cs b/sdk/dotnet/Compute/GetGlobalAddress.cs index 36a3cb5221..1d55ee6369 100644 --- a/sdk/dotnet/Compute/GetGlobalAddress.cs +++ b/sdk/dotnet/Compute/GetGlobalAddress.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetGlobalAddressArgs args /// public static Output Invoke(GetGlobalAddressInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalAddress:getGlobalAddress", args ?? new GetGlobalAddressInvokeArgs(), options.WithDefaults()); + + /// + /// Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see + /// the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myAddress = Gcp.Compute.GetGlobalAddress.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var prod = new Gcp.Dns.ManagedZone("prod", new() + /// { + /// Name = "prod-zone", + /// DnsName = "prod.mydomain.com.", + /// }); + /// + /// var frontend = new Gcp.Dns.RecordSet("frontend", new() + /// { + /// Name = prod.DnsName.Apply(dnsName => $"lb.{dnsName}"), + /// Type = "A", + /// Ttl = 300, + /// ManagedZone = prod.Name, + /// Rrdatas = new[] + /// { + /// myAddress.Apply(getGlobalAddressResult => getGlobalAddressResult.Address), + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGlobalAddressInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalAddress:getGlobalAddress", args ?? new GetGlobalAddressInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetGlobalForwardingRule.cs b/sdk/dotnet/Compute/GetGlobalForwardingRule.cs index 89818ea677..d39662bc8a 100644 --- a/sdk/dotnet/Compute/GetGlobalForwardingRule.cs +++ b/sdk/dotnet/Compute/GetGlobalForwardingRule.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetGlobalForwardin /// public static Output Invoke(GetGlobalForwardingRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args ?? new GetGlobalForwardingRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Get a global forwarding rule within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetGlobalForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-global", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetGlobalForwardingRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args ?? new GetGlobalForwardingRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetHcVpnGateway.cs b/sdk/dotnet/Compute/GetHcVpnGateway.cs index 464443080f..92f790c8bf 100644 --- a/sdk/dotnet/Compute/GetHcVpnGateway.cs +++ b/sdk/dotnet/Compute/GetHcVpnGateway.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetHcVpnGatewayArgs args, /// public static Output Invoke(GetHcVpnGatewayInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", args ?? new GetHcVpnGatewayInvokeArgs(), options.WithDefaults()); + + /// + /// Get a HA VPN Gateway within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gateway = Gcp.Compute.GetHcVpnGateway.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetHcVpnGatewayInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", args ?? new GetHcVpnGatewayInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetHealthCheck.cs b/sdk/dotnet/Compute/GetHealthCheck.cs index 63531e43a3..495031d903 100644 --- a/sdk/dotnet/Compute/GetHealthCheck.cs +++ b/sdk/dotnet/Compute/GetHealthCheck.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetHealthCheckArgs args, In /// public static Output Invoke(GetHealthCheckInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHealthCheck:getHealthCheck", args ?? new GetHealthCheckInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a HealthCheck. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var healthCheck = Gcp.Compute.GetHealthCheck.Invoke(new() + /// { + /// Name = "my-hc", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetHealthCheckInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getHealthCheck:getHealthCheck", args ?? new GetHealthCheckInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetImage.cs b/sdk/dotnet/Compute/GetImage.cs index 62cac5c13a..5ff575f4d7 100644 --- a/sdk/dotnet/Compute/GetImage.cs +++ b/sdk/dotnet/Compute/GetImage.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetImageArgs? args = null, Invoke /// public static Output Invoke(GetImageInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myImage = Gcp.Compute.GetImage.Invoke(new() + /// { + /// Family = "debian-11", + /// Project = "debian-cloud", + /// }); + /// + /// var @default = new Gcp.Compute.Instance("default", new() + /// { + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs + /// { + /// Image = myImage.Apply(getImageResult => getImageResult.SelfLink), + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetImageIamPolicy.cs b/sdk/dotnet/Compute/GetImageIamPolicy.cs index 6d1225ddc6..e0616836dc 100644 --- a/sdk/dotnet/Compute/GetImageIamPolicy.cs +++ b/sdk/dotnet/Compute/GetImageIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetImageIamPolicyArgs ar /// public static Output Invoke(GetImageIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", args ?? new GetImageIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for image + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetImageIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Image = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetImageIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", args ?? new GetImageIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstance.cs b/sdk/dotnet/Compute/GetInstance.cs index de2e833e15..c967508348 100644 --- a/sdk/dotnet/Compute/GetInstance.cs +++ b/sdk/dotnet/Compute/GetInstance.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetInstanceArgs? args = null, /// public static Output Invoke(GetInstanceInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a VM instance resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instances) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/latest/instances). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var appserver = Gcp.Compute.GetInstance.Invoke(new() + /// { + /// Name = "primary-application-server", + /// Zone = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceGroup.cs b/sdk/dotnet/Compute/GetInstanceGroup.cs index 2e828c2d87..2e09abe255 100644 --- a/sdk/dotnet/Compute/GetInstanceGroup.cs +++ b/sdk/dotnet/Compute/GetInstanceGroup.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetInstanceGroupArgs? arg /// public static Output Invoke(GetInstanceGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroup:getInstanceGroup", args ?? new GetInstanceGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Instance Group within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + /// and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var all = Gcp.Compute.GetInstanceGroup.Invoke(new() + /// { + /// Name = "instance-group-name", + /// Zone = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroup:getInstanceGroup", args ?? new GetInstanceGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceGroupManager.cs b/sdk/dotnet/Compute/GetInstanceGroupManager.cs index 908250e6d2..ce9aba5cc6 100644 --- a/sdk/dotnet/Compute/GetInstanceGroupManager.cs +++ b/sdk/dotnet/Compute/GetInstanceGroupManager.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetInstanceGroupMa /// public static Output Invoke(GetInstanceGroupManagerInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args ?? new GetInstanceGroupManagerInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Instance Group Manager within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + /// and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var igm1 = Gcp.Compute.GetInstanceGroupManager.Invoke(new() + /// { + /// Name = "my-igm", + /// Zone = "us-central1-a", + /// }); + /// + /// var igm2 = Gcp.Compute.GetInstanceGroupManager.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceGroupManagerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args ?? new GetInstanceGroupManagerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs b/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs index 2b794b4031..f11465c75a 100644 --- a/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs +++ b/sdk/dotnet/Compute/GetInstanceGuestAttributes.cs @@ -120,6 +120,61 @@ public static Task InvokeAsync(GetInstanceGues /// public static Output Invoke(GetInstanceGuestAttributesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args ?? new GetInstanceGuestAttributesInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a VM instance resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instances) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/latest/instances). + /// + /// Get information about VM's guest attrubutes. For more information see [the official documentation](https://cloud.google.com/compute/docs/metadata/manage-guest-attributes) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/instances/getGuestAttributes). + /// + /// ## Example Usage + /// + /// ### Get All Attributes From A Single Namespace + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var appserverGa = Gcp.Compute.GetInstanceGuestAttributes.Invoke(new() + /// { + /// Name = "primary-application-server", + /// Zone = "us-central1-a", + /// QueryPath = "variables/", + /// }); + /// + /// }); + /// ``` + /// + /// ### Get A Specific Variable + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var appserverGa = Gcp.Compute.GetInstanceGuestAttributes.Invoke(new() + /// { + /// Name = "primary-application-server", + /// Zone = "us-central1-a", + /// VariableKey = "variables/key1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceGuestAttributesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args ?? new GetInstanceGuestAttributesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceIamPolicy.cs b/sdk/dotnet/Compute/GetInstanceIamPolicy.cs index 6d9821fa76..b8a880f968 100644 --- a/sdk/dotnet/Compute/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Compute/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Zone = @default.Zone, + /// InstanceName = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceSerialPort.cs b/sdk/dotnet/Compute/GetInstanceSerialPort.cs index b7126c1dcc..2e29cedf00 100644 --- a/sdk/dotnet/Compute/GetInstanceSerialPort.cs +++ b/sdk/dotnet/Compute/GetInstanceSerialPort.cs @@ -214,6 +214,108 @@ public static Task InvokeAsync(GetInstanceSerialPor /// public static Output Invoke(GetInstanceSerialPortInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args ?? new GetInstanceSerialPortInvokeArgs(), options.WithDefaults()); + + /// + /// Get the serial port output from a Compute Instance. For more information see + /// the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var serial = Gcp.Compute.GetInstanceSerialPort.Invoke(new() + /// { + /// Instance = "my-instance", + /// Zone = "us-central1-a", + /// Port = 1, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serialOut"] = serial.Apply(getInstanceSerialPortResult => getInstanceSerialPortResult.Contents), + /// }; + /// }); + /// ``` + /// + /// Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Text.Json; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var windows = new Gcp.Compute.Instance("windows", new() + /// { + /// NetworkInterfaces = new[] + /// { + /// new Gcp.Compute.Inputs.InstanceNetworkInterfaceArgs + /// { + /// AccessConfigs = new[] + /// { + /// null, + /// }, + /// Network = "default", + /// }, + /// }, + /// Name = "windows-instance", + /// MachineType = "e2-medium", + /// Zone = "us-central1-a", + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs + /// { + /// Image = "windows-cloud/windows-2019", + /// }, + /// }, + /// Metadata = + /// { + /// { "serial-port-logging-enable", "TRUE" }, + /// { "windows-keys", JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["email"] = "example.user@example.com", + /// ["expireOn"] = "2020-04-14T01:37:19Z", + /// ["exponent"] = "AQAB", + /// ["modulus"] = "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q==", + /// ["userName"] = "example-user", + /// }) }, + /// }, + /// ServiceAccount = new Gcp.Compute.Inputs.InstanceServiceAccountArgs + /// { + /// Scopes = new[] + /// { + /// "userinfo-email", + /// "compute-ro", + /// "storage-ro", + /// }, + /// }, + /// }); + /// + /// var serial = Gcp.Compute.GetInstanceSerialPort.Invoke(new() + /// { + /// Instance = windows.Name, + /// Zone = windows.Zone, + /// Port = 4, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["serialOut"] = serial.Apply(getInstanceSerialPortResult => getInstanceSerialPortResult.Contents), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceSerialPortInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args ?? new GetInstanceSerialPortInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetInstanceTemplate.cs b/sdk/dotnet/Compute/GetInstanceTemplate.cs index c83df65e27..b97a82e00a 100644 --- a/sdk/dotnet/Compute/GetInstanceTemplate.cs +++ b/sdk/dotnet/Compute/GetInstanceTemplate.cs @@ -32,6 +32,17 @@ public static Task InvokeAsync(GetInstanceTemplateArg /// public static Output Invoke(GetInstanceTemplateInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", args ?? new GetInstanceTemplateInvokeArgs(), options.WithDefaults()); + + /// + /// > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + /// + /// Get information about a VM instance template resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + /// + public static Output Invoke(GetInstanceTemplateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", args ?? new GetInstanceTemplateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetLBIPRanges.cs b/sdk/dotnet/Compute/GetLBIPRanges.cs index 12cf62fae2..352bd38fd1 100644 --- a/sdk/dotnet/Compute/GetLBIPRanges.cs +++ b/sdk/dotnet/Compute/GetLBIPRanges.cs @@ -100,6 +100,51 @@ public static Task InvokeAsync(InvokeOptions? options = nul /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getLBIPRanges:getLBIPRanges", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Use this data source to access IP ranges in your firewall rules. + /// + /// https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ranges = Gcp.Compute.GetLBIPRanges.Invoke(); + /// + /// var lb = new Gcp.Compute.Firewall("lb", new() + /// { + /// Name = "lb-firewall", + /// Network = main.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = ranges.Apply(getLBIPRangesResult => getLBIPRangesResult.Networks), + /// TargetTags = new[] + /// { + /// "InstanceBehindLoadBalancer", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getLBIPRanges:getLBIPRanges", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs b/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs index e814590aa1..fc66b9d25d 100644 --- a/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs +++ b/sdk/dotnet/Compute/GetMachineImageIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetMachineImageIa public static Output Invoke(GetMachineImageIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args ?? new GetMachineImageIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetMachineImageIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args ?? new GetMachineImageIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetMachineTypes.cs b/sdk/dotnet/Compute/GetMachineTypes.cs index cdab24c528..da8b0a8abf 100644 --- a/sdk/dotnet/Compute/GetMachineTypes.cs +++ b/sdk/dotnet/Compute/GetMachineTypes.cs @@ -38,6 +38,20 @@ public static Task InvokeAsync(GetMachineTypesArgs? args /// public static Output Invoke(GetMachineTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineTypes:getMachineTypes", args ?? new GetMachineTypesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute machine types in a zone for a given project. + /// See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + /// + /// To get more information about machine types, see: + /// + /// * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + /// * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + /// + /// ## Example Usage + /// + public static Output Invoke(GetMachineTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getMachineTypes:getMachineTypes", args ?? new GetMachineTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetblockIPRanges.cs b/sdk/dotnet/Compute/GetNetblockIPRanges.cs index d8896d07fe..082b644c02 100644 --- a/sdk/dotnet/Compute/GetNetblockIPRanges.cs +++ b/sdk/dotnet/Compute/GetNetblockIPRanges.cs @@ -150,6 +150,76 @@ public static Task InvokeAsync(GetNetblockIPRangesArg /// public static Output Invoke(GetNetblockIPRangesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args ?? new GetNetblockIPRangesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + /// + /// ## Example Usage + /// + /// ### Cloud Ranges + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var netblock = Gcp.Compute.GetNetblockIPRanges.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cidrBlocks"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocks), + /// ["cidrBlocksIpv4"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s), + /// ["cidrBlocksIpv6"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv6s), + /// }; + /// }); + /// ``` + /// + /// ### Allow Health Checks + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var legacy_hcs = Gcp.Compute.GetNetblockIPRanges.Invoke(new() + /// { + /// RangeType = "legacy-health-checkers", + /// }); + /// + /// var @default = new Gcp.Compute.Network("default", new() + /// { + /// Name = "test-network", + /// }); + /// + /// var allow_hcs = new Gcp.Compute.Firewall("allow-hcs", new() + /// { + /// Name = "allow-hcs", + /// Network = @default.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = legacy_hcs.Apply(legacy_hcs => legacy_hcs.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s)), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetblockIPRangesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args ?? new GetNetblockIPRangesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetwork.cs b/sdk/dotnet/Compute/GetNetwork.cs index 88007cbc69..5787ff74d8 100644 --- a/sdk/dotnet/Compute/GetNetwork.cs +++ b/sdk/dotnet/Compute/GetNetwork.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetNetworkArgs args, InvokeOpti /// public static Output Invoke(GetNetworkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); + + /// + /// Get a network within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_network = Gcp.Compute.GetNetwork.Invoke(new() + /// { + /// Name = "default-us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs b/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs index 1d32a4f7e8..05817d370d 100644 --- a/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs +++ b/sdk/dotnet/Compute/GetNetworkEndpointGroup.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetNetworkEndpoint /// public static Output Invoke(GetNetworkEndpointGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args ?? new GetNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to access a Network Endpoint Group's attributes. + /// + /// The NEG may be found by providing either a `self_link`, or a `name` and a `zone`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var neg1 = Gcp.Compute.GetNetworkEndpointGroup.Invoke(new() + /// { + /// Name = "k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// Zone = "us-central1-a", + /// }); + /// + /// var neg2 = Gcp.Compute.GetNetworkEndpointGroup.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkEndpointGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args ?? new GetNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetworkPeering.cs b/sdk/dotnet/Compute/GetNetworkPeering.cs index 895172115b..51633b51a3 100644 --- a/sdk/dotnet/Compute/GetNetworkPeering.cs +++ b/sdk/dotnet/Compute/GetNetworkPeering.cs @@ -118,6 +118,60 @@ public static Task InvokeAsync(GetNetworkPeeringArgs ar /// public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); + + /// + /// Get information of a specified compute network peering. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/latest/networks). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = new Gcp.Compute.Network("default", new() + /// { + /// Name = "foobar", + /// AutoCreateSubnetworks = false, + /// }); + /// + /// var other = new Gcp.Compute.Network("other", new() + /// { + /// Name = "other", + /// AutoCreateSubnetworks = false, + /// }); + /// + /// var peering1 = new Gcp.Compute.NetworkPeering("peering1", new() + /// { + /// Name = "peering1", + /// Network = @default.SelfLink, + /// PeerNetwork = other.SelfLink, + /// }); + /// + /// var peering2 = new Gcp.Compute.NetworkPeering("peering2", new() + /// { + /// Name = "peering2", + /// Network = other.SelfLink, + /// PeerNetwork = @default.SelfLink, + /// }); + /// + /// var peering1Ds = Gcp.Compute.GetNetworkPeering.Invoke(new() + /// { + /// Name = peering1.Name, + /// Network = peering1.Network, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNetworks.cs b/sdk/dotnet/Compute/GetNetworks.cs index 36989403ea..fbf4dd03a1 100644 --- a/sdk/dotnet/Compute/GetNetworks.cs +++ b/sdk/dotnet/Compute/GetNetworks.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetNetworksArgs? args = null, /// public static Output Invoke(GetNetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); + + /// + /// List all networks in a specified Google Cloud project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_networks = Gcp.Compute.GetNetworks.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNetworks:getNetworks", args ?? new GetNetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetNodeTypes.cs b/sdk/dotnet/Compute/GetNodeTypes.cs index fa6c0f4a5a..f962ff7b2c 100644 --- a/sdk/dotnet/Compute/GetNodeTypes.cs +++ b/sdk/dotnet/Compute/GetNodeTypes.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetNodeTypesArgs? args = null /// public static Output Invoke(GetNodeTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNodeTypes:getNodeTypes", args ?? new GetNodeTypesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides available node types for Compute Engine sole-tenant nodes in a zone + /// for a given project. For more information, see [the official documentation](https://cloud.google.com/compute/docs/nodes/#types) and [API](https://cloud.google.com/compute/docs/reference/rest/v1/nodeTypes). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Compute.GetNodeTypes.Invoke(new() + /// { + /// Zone = "us-central1-b", + /// }); + /// + /// var tmpl = new Gcp.Compute.NodeTemplate("tmpl", new() + /// { + /// Name = "test-tmpl", + /// Region = "us-central1", + /// NodeType = types.Names[0], + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNodeTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getNodeTypes:getNodeTypes", args ?? new GetNodeTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs b/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs index 453082bc4e..afb1a3fdfa 100644 --- a/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Compute/GetRegionBackendServiceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetRegion public static Output Invoke(GetRegionBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args ?? new GetRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetRegionBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args ?? new GetRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionDisk.cs b/sdk/dotnet/Compute/GetRegionDisk.cs index 2a6378ed88..ae99c82d79 100644 --- a/sdk/dotnet/Compute/GetRegionDisk.cs +++ b/sdk/dotnet/Compute/GetRegionDisk.cs @@ -26,6 +26,14 @@ public static Task InvokeAsync(GetRegionDiskArgs args, Invo /// public static Output Invoke(GetRegionDiskInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDisk:getRegionDisk", args ?? new GetRegionDiskInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Compute Regional Persistent disks. + /// + /// [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionDisks). + /// + public static Output Invoke(GetRegionDiskInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDisk:getRegionDisk", args ?? new GetRegionDiskInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs b/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs index 01edc7f6c8..d114547d58 100644 --- a/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs +++ b/sdk/dotnet/Compute/GetRegionDiskIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegionDiskIamPol /// public static Output Invoke(GetRegionDiskIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args ?? new GetRegionDiskIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for regiondisk + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetRegionDiskIamPolicy.Invoke(new() + /// { + /// Project = regiondisk.Project, + /// Region = regiondisk.Region, + /// Name = regiondisk.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionDiskIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args ?? new GetRegionDiskIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionInstanceGroup.cs b/sdk/dotnet/Compute/GetRegionInstanceGroup.cs index d4f9158042..f174b4d8e3 100644 --- a/sdk/dotnet/Compute/GetRegionInstanceGroup.cs +++ b/sdk/dotnet/Compute/GetRegionInstanceGroup.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegionInstanceGr /// public static Output Invoke(GetRegionInstanceGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args ?? new GetRegionInstanceGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Region Instance Group within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/latest/regionInstanceGroups). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @group = Gcp.Compute.GetRegionInstanceGroup.Invoke(new() + /// { + /// Name = "instance-group-name", + /// }); + /// + /// }); + /// ``` + /// + /// The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: + /// + public static Output Invoke(GetRegionInstanceGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args ?? new GetRegionInstanceGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs b/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs index 4d4b6cd83b..b88e4ef83c 100644 --- a/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs +++ b/sdk/dotnet/Compute/GetRegionInstanceGroupManager.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegionIns /// public static Output Invoke(GetRegionInstanceGroupManagerInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args ?? new GetRegionInstanceGroupManagerInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Compute Region Instance Group Manager within GCE. + /// For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) + /// and [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionInstanceGroupManagers) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var rigm = Gcp.Compute.GetRegionInstanceGroupManager.Invoke(new() + /// { + /// Name = "my-igm", + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionInstanceGroupManagerInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args ?? new GetRegionInstanceGroupManagerInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs b/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs index effb527cfa..ce30afbee1 100644 --- a/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs +++ b/sdk/dotnet/Compute/GetRegionInstanceTemplate.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetRegionInstanc /// public static Output Invoke(GetRegionInstanceTemplateInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args ?? new GetRegionInstanceTemplateInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a VM instance template resource within GCE. For more information see + /// [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionInstanceTemplates). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // by name + /// var generic = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new() + /// { + /// Name = "generic-tpl-20200107", + /// }); + /// + /// // using a filter + /// var generic_regex = Gcp.Compute.GetRegionInstanceTemplate.Invoke(new() + /// { + /// Filter = "name != generic-tpl-20200107", + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionInstanceTemplateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args ?? new GetRegionInstanceTemplateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs b/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs index 55d70eb9dd..b38a79bc1a 100644 --- a/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs +++ b/sdk/dotnet/Compute/GetRegionNetworkEndpointGroup.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetRegionNet /// public static Output Invoke(GetRegionNetworkEndpointGroupInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args ?? new GetRegionNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to access a Region Network Endpoint Group's attributes. + /// + /// The RNEG may be found by providing either a `self_link`, or a `name` and a `region`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var rneg1 = Gcp.Compute.GetRegionNetworkEndpointGroup.Invoke(new() + /// { + /// Name = "k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// Region = "us-central1", + /// }); + /// + /// var rneg2 = Gcp.Compute.GetRegionNetworkEndpointGroup.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionNetworkEndpointGroupInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args ?? new GetRegionNetworkEndpointGroupInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegionSslCertificate.cs b/sdk/dotnet/Compute/GetRegionSslCertificate.cs index 2a224466bc..1a60069d1a 100644 --- a/sdk/dotnet/Compute/GetRegionSslCertificate.cs +++ b/sdk/dotnet/Compute/GetRegionSslCertificate.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetRegionSslCertif /// public static Output Invoke(GetRegionSslCertificateInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args ?? new GetRegionSslCertificateInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Region Google Compute SSL Certificate from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetRegionSslCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.SelfLink), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegionSslCertificateInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args ?? new GetRegionSslCertificateInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRegions.cs b/sdk/dotnet/Compute/GetRegions.cs index 2656c26691..37a0799062 100644 --- a/sdk/dotnet/Compute/GetRegions.cs +++ b/sdk/dotnet/Compute/GetRegions.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetRegionsArgs? args = null, In /// public static Output Invoke(GetRegionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute regions for a given project. + /// See more about [regions and zones](https://cloud.google.com/compute/docs/regions-zones/) in the upstream docs. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Threading.Tasks; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(async() => + /// { + /// var available = await Gcp.Compute.GetRegions.InvokeAsync(); + /// + /// var cluster = new List<Gcp.Compute.Subnetwork>(); + /// for (var rangeIndex = 0; rangeIndex < available.Names.Length; rangeIndex++) + /// { + /// var range = new { Value = rangeIndex }; + /// cluster.Add(new Gcp.Compute.Subnetwork($"cluster-{range.Value}", new() + /// { + /// Name = "my-network", + /// IpCidrRange = $"10.36.{range.Value}.0/24", + /// Network = "my-network", + /// Region = available.Names[range.Value], + /// })); + /// } + /// }); + /// ``` + /// + public static Output Invoke(GetRegionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRegions:getRegions", args ?? new GetRegionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetReservation.cs b/sdk/dotnet/Compute/GetReservation.cs index 6d2d877bb0..f52cc51ba1 100644 --- a/sdk/dotnet/Compute/GetReservation.cs +++ b/sdk/dotnet/Compute/GetReservation.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetReservationArgs args, In /// public static Output Invoke(GetReservationInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getReservation:getReservation", args ?? new GetReservationInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute Reservation Resources for a given project. + /// See more about [Reservations of Compute Engine resources](https://cloud.google.com/compute/docs/instances/reservations-overview) in the upstream docs. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var reservation = Gcp.Compute.GetReservation.Invoke(new() + /// { + /// Name = "gce-reservation", + /// Zone = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetReservationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getReservation:getReservation", args ?? new GetReservationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetResourcePolicy.cs b/sdk/dotnet/Compute/GetResourcePolicy.cs index 2bbcc100c3..288f30d0ba 100644 --- a/sdk/dotnet/Compute/GetResourcePolicy.cs +++ b/sdk/dotnet/Compute/GetResourcePolicy.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetResourcePolicyArgs ar /// public static Output Invoke(GetResourcePolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getResourcePolicy:getResourcePolicy", args ?? new GetResourcePolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Provide access to a Resource Policy's attributes. For more information see [the official documentation](https://cloud.google.com/compute/docs/disks/scheduled-snapshots) or the [API](https://cloud.google.com/compute/docs/reference/rest/beta/resourcePolicies). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var daily = Gcp.Compute.GetResourcePolicy.Invoke(new() + /// { + /// Name = "daily", + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetResourcePolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getResourcePolicy:getResourcePolicy", args ?? new GetResourcePolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRouter.cs b/sdk/dotnet/Compute/GetRouter.cs index 371b064fcf..36763746e1 100644 --- a/sdk/dotnet/Compute/GetRouter.cs +++ b/sdk/dotnet/Compute/GetRouter.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRouterArgs args, InvokeOption /// public static Output Invoke(GetRouterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouter:getRouter", args ?? new GetRouterInvokeArgs(), options.WithDefaults()); + + /// + /// Get a router within GCE from its name and VPC. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_router = Gcp.Compute.GetRouter.Invoke(new() + /// { + /// Name = "myrouter-us-east1", + /// Network = "my-network", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRouterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouter:getRouter", args ?? new GetRouterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRouterNat.cs b/sdk/dotnet/Compute/GetRouterNat.cs index 32166e0e67..7bd60bb6d2 100644 --- a/sdk/dotnet/Compute/GetRouterNat.cs +++ b/sdk/dotnet/Compute/GetRouterNat.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRouterNatArgs args, Invoke /// public static Output Invoke(GetRouterNatInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterNat:getRouterNat", args ?? new GetRouterNatInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Snapshot, see: + /// + /// * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/routers) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/router/docs/) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Compute.GetRouterNat.Invoke(new() + /// { + /// Name = "my-nat", + /// Router = "my-router", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRouterNatInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterNat:getRouterNat", args ?? new GetRouterNatInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetRouterStatus.cs b/sdk/dotnet/Compute/GetRouterStatus.cs index ab93d68e8b..9f46422230 100644 --- a/sdk/dotnet/Compute/GetRouterStatus.cs +++ b/sdk/dotnet/Compute/GetRouterStatus.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetRouterStatusArgs args, /// public static Output Invoke(GetRouterStatusInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterStatus:getRouterStatus", args ?? new GetRouterStatusInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Cloud Router's status within GCE from its name and region. This data source exposes the + /// routes learned by a Cloud Router via BGP peers. + /// + /// For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_router = Gcp.Compute.GetRouterStatus.Invoke(new() + /// { + /// Name = "myrouter", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRouterStatusInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getRouterStatus:getRouterStatus", args ?? new GetRouterStatusInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSSLPolicy.cs b/sdk/dotnet/Compute/GetSSLPolicy.cs index 8e366ebe95..0d199054b1 100644 --- a/sdk/dotnet/Compute/GetSSLPolicy.cs +++ b/sdk/dotnet/Compute/GetSSLPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSSLPolicyArgs args, Invoke /// public static Output Invoke(GetSSLPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSSLPolicy:getSSLPolicy", args ?? new GetSSLPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an SSL Policy within GCE from its name, for use with Target HTTPS and Target SSL Proxies. + /// For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_ssl_policy = Gcp.Compute.GetSSLPolicy.Invoke(new() + /// { + /// Name = "production-ssl-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSSLPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSSLPolicy:getSSLPolicy", args ?? new GetSSLPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSecurityPolicy.cs b/sdk/dotnet/Compute/GetSecurityPolicy.cs index 2fcfac191c..2102999c4a 100644 --- a/sdk/dotnet/Compute/GetSecurityPolicy.cs +++ b/sdk/dotnet/Compute/GetSecurityPolicy.cs @@ -78,6 +78,40 @@ public static Task InvokeAsync(GetSecurityPolicyArgs? a /// public static Output Invoke(GetSecurityPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSecurityPolicy:getSecurityPolicy", args ?? new GetSecurityPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Google Compute Security Policy, see: + /// + /// * [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/securityPolicies) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/armor/docs/configure-security-policies) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sp1 = Gcp.Compute.GetSecurityPolicy.Invoke(new() + /// { + /// Name = "my-policy", + /// Project = "my-project", + /// }); + /// + /// var sp2 = Gcp.Compute.GetSecurityPolicy.Invoke(new() + /// { + /// SelfLink = "https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecurityPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSecurityPolicy:getSecurityPolicy", args ?? new GetSecurityPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSnapshot.cs b/sdk/dotnet/Compute/GetSnapshot.cs index 66d51f7ce0..e63a5e8ed6 100644 --- a/sdk/dotnet/Compute/GetSnapshot.cs +++ b/sdk/dotnet/Compute/GetSnapshot.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetSnapshotArgs? args = null, /// public static Output Invoke(GetSnapshotInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshot:getSnapshot", args ?? new GetSnapshotInvokeArgs(), options.WithDefaults()); + + /// + /// To get more information about Snapshot, see: + /// + /// * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/snapshots) + /// * How-to Guides + /// * [Official Documentation](https://cloud.google.com/compute/docs/disks/create-snapshots) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// //by name + /// var snapshot = Gcp.Compute.GetSnapshot.Invoke(new() + /// { + /// Name = "my-snapshot", + /// }); + /// + /// // using a filter + /// var latest_snapshot = Gcp.Compute.GetSnapshot.Invoke(new() + /// { + /// Filter = "name != my-snapshot", + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshot:getSnapshot", args ?? new GetSnapshotInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs b/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs index 39c86034d4..cfd8bb506c 100644 --- a/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs +++ b/sdk/dotnet/Compute/GetSnapshotIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSnapshotIamPolicyA /// public static Output Invoke(GetSnapshotIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args ?? new GetSnapshotIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for snapshot + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetSnapshotIamPolicy.Invoke(new() + /// { + /// Project = snapshot.Project, + /// Name = snapshot.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSnapshotIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args ?? new GetSnapshotIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSubnetwork.cs b/sdk/dotnet/Compute/GetSubnetwork.cs index 75c8b0f47d..c3796936de 100644 --- a/sdk/dotnet/Compute/GetSubnetwork.cs +++ b/sdk/dotnet/Compute/GetSubnetwork.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSubnetworkArgs? args = nu /// public static Output Invoke(GetSubnetworkInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetwork:getSubnetwork", args ?? new GetSubnetworkInvokeArgs(), options.WithDefaults()); + + /// + /// Get a subnetwork within GCE from its name and region. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_subnetwork = Gcp.Compute.GetSubnetwork.Invoke(new() + /// { + /// Name = "default-us-east1", + /// Region = "us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetworkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetwork:getSubnetwork", args ?? new GetSubnetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs b/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs index 793f06d884..6f2c3f059d 100644 --- a/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs +++ b/sdk/dotnet/Compute/GetSubnetworkIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetSubnetworkIamPol /// public static Output Invoke(GetSubnetworkIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args ?? new GetSubnetworkIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for subnetwork + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Compute.GetSubnetworkIamPolicy.Invoke(new() + /// { + /// Project = network_with_private_secondary_ip_ranges.Project, + /// Region = network_with_private_secondary_ip_ranges.Region, + /// Subnetwork = network_with_private_secondary_ip_ranges.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetworkIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args ?? new GetSubnetworkIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetSubnetworks.cs b/sdk/dotnet/Compute/GetSubnetworks.cs index 3c37da2b13..3f669ebaa9 100644 --- a/sdk/dotnet/Compute/GetSubnetworks.cs +++ b/sdk/dotnet/Compute/GetSubnetworks.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetSubnetworksArgs? args = /// public static Output Invoke(GetSubnetworksInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworks:getSubnetworks", args ?? new GetSubnetworksInvokeArgs(), options.WithDefaults()); + + /// + /// Get subnetworks within GCE. + /// See [the official documentation](https://cloud.google.com/vpc/docs/subnets) + /// and [API](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks/list). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_subnetworks = Gcp.Compute.GetSubnetworks.Invoke(new() + /// { + /// Filter = "ipCidrRange eq 192.168.178.0/24", + /// Project = "my-project", + /// Region = "us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetworksInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getSubnetworks:getSubnetworks", args ?? new GetSubnetworksInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetVPNGateway.cs b/sdk/dotnet/Compute/GetVPNGateway.cs index 7d490df219..0fdba8937a 100644 --- a/sdk/dotnet/Compute/GetVPNGateway.cs +++ b/sdk/dotnet/Compute/GetVPNGateway.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetVPNGatewayArgs args, Invo /// public static Output Invoke(GetVPNGatewayInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getVPNGateway:getVPNGateway", args ?? new GetVPNGatewayInvokeArgs(), options.WithDefaults()); + + /// + /// Get a VPN gateway within GCE from its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_vpn_gateway = Gcp.Compute.GetVPNGateway.Invoke(new() + /// { + /// Name = "vpn-gateway-us-east1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVPNGatewayInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getVPNGateway:getVPNGateway", args ?? new GetVPNGatewayInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/GetZones.cs b/sdk/dotnet/Compute/GetZones.cs index d568bb2e55..0abaa0d285 100644 --- a/sdk/dotnet/Compute/GetZones.cs +++ b/sdk/dotnet/Compute/GetZones.cs @@ -24,6 +24,13 @@ public static Task InvokeAsync(GetZonesArgs? args = null, Invoke /// public static Output Invoke(GetZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Compute zones in a region for a given project. + /// See more about [regions and zones](https://cloud.google.com/compute/docs/regions-zones/regions-zones) in the upstream docs. + /// + public static Output Invoke(GetZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/getZones:getZones", args ?? new GetZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Compute/RouterStatus.cs b/sdk/dotnet/Compute/RouterStatus.cs index 537a4e5bdc..1ae1cce8c7 100644 --- a/sdk/dotnet/Compute/RouterStatus.cs +++ b/sdk/dotnet/Compute/RouterStatus.cs @@ -69,6 +69,35 @@ public static Task InvokeAsync(RouterStatusArgs args, Invoke /// public static Output Invoke(RouterStatusInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/routerStatus:RouterStatus", args ?? new RouterStatusInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Cloud Router's status within GCE from its name and region. This data source exposes the + /// routes learned by a Cloud Router via BGP peers. + /// + /// For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details) + /// and + /// [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_router = Gcp.Compute.GetRouterStatus.Invoke(new() + /// { + /// Name = "myrouter", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(RouterStatusInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:compute/routerStatus:RouterStatus", args ?? new RouterStatusInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAttachedInstallManifest.cs b/sdk/dotnet/Container/GetAttachedInstallManifest.cs index 0233298b1a..52b4ba2684 100644 --- a/sdk/dotnet/Container/GetAttachedInstallManifest.cs +++ b/sdk/dotnet/Container/GetAttachedInstallManifest.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetAttachedInst /// public static Output Invoke(GetAttachedInstallManifestInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args ?? new GetAttachedInstallManifestInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available platform versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var manifest = Gcp.Container.GetAttachedInstallManifest.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// ClusterId = "test-cluster-1", + /// PlatformVersion = "1.25.0-gke.1", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["installManifest"] = manifest, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAttachedInstallManifestInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args ?? new GetAttachedInstallManifestInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAttachedVersions.cs b/sdk/dotnet/Container/GetAttachedVersions.cs index dccb02e9a6..e7db61f27d 100644 --- a/sdk/dotnet/Container/GetAttachedVersions.cs +++ b/sdk/dotnet/Container/GetAttachedVersions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAttachedVersionsArg /// public static Output Invoke(GetAttachedVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedVersions:getAttachedVersions", args ?? new GetAttachedVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available platform versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var uswest = Gcp.Container.GetAttachedVersions.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAvailableVersion"] = versions.ValidVersions[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAttachedVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAttachedVersions:getAttachedVersions", args ?? new GetAttachedVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAwsVersions.cs b/sdk/dotnet/Container/GetAwsVersions.cs index a1844c3fb9..04cebc1baa 100644 --- a/sdk/dotnet/Container/GetAwsVersions.cs +++ b/sdk/dotnet/Container/GetAwsVersions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAwsVersionsArgs? args = /// public static Output Invoke(GetAwsVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAwsVersions:getAwsVersions", args ?? new GetAwsVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Kubernetes versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Container.GetAwsVersions.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAvailableVersion"] = versions.ValidVersions[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAwsVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAwsVersions:getAwsVersions", args ?? new GetAwsVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetAzureVersions.cs b/sdk/dotnet/Container/GetAzureVersions.cs index d0ab4e8897..21439f466c 100644 --- a/sdk/dotnet/Container/GetAzureVersions.cs +++ b/sdk/dotnet/Container/GetAzureVersions.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAzureVersionsArgs? arg /// public static Output Invoke(GetAzureVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAzureVersions:getAzureVersions", args ?? new GetAzureVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Kubernetes versions in a location for a given project. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Container.GetAzureVersions.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["firstAvailableVersion"] = versions.ValidVersions[0], + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAzureVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getAzureVersions:getAzureVersions", args ?? new GetAzureVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetCluster.cs b/sdk/dotnet/Container/GetCluster.cs index 3a2eb4396d..6189ff5c29 100644 --- a/sdk/dotnet/Container/GetCluster.cs +++ b/sdk/dotnet/Container/GetCluster.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetClusterArgs args, InvokeOpti /// public static Output Invoke(GetClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a GKE cluster from its name and location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCluster = Gcp.Container.GetCluster.Invoke(new() + /// { + /// Name = "my-cluster", + /// Location = "us-east1-a", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["endpoint"] = myCluster.Apply(getClusterResult => getClusterResult.Endpoint), + /// ["instanceGroupUrls"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools[0]?.InstanceGroupUrls), + /// ["nodeConfig"] = myCluster.Apply(getClusterResult => getClusterResult.NodeConfigs), + /// ["nodePools"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetEngineVersions.cs b/sdk/dotnet/Container/GetEngineVersions.cs index 8018841368..813d1e4ae1 100644 --- a/sdk/dotnet/Container/GetEngineVersions.cs +++ b/sdk/dotnet/Container/GetEngineVersions.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetEngineVersionsArgs? a /// public static Output Invoke(GetEngineVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getEngineVersions:getEngineVersions", args ?? new GetEngineVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to available Google Kubernetes Engine versions in a zone or region for a given project. + /// + /// To get more information about GKE versions, see: + /// * [The API reference](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations/getServerConfig) + /// + /// > If you are using the `gcp.container.getEngineVersions` datasource with a + /// regional cluster, ensure that you have provided a region as the `location` to + /// the datasource. A region can have a different set of supported versions than + /// its component zones, and not all zones in a region are guaranteed to + /// support the same version. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var central1b = Gcp.Container.GetEngineVersions.Invoke(new() + /// { + /// Location = "us-central1-b", + /// VersionPrefix = "1.12.", + /// }); + /// + /// var foo = new Gcp.Container.Cluster("foo", new() + /// { + /// Name = "test-cluster", + /// Location = "us-central1-b", + /// NodeVersion = central1b.Apply(getEngineVersionsResult => getEngineVersionsResult.LatestNodeVersion), + /// InitialNodeCount = 1, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["stableChannelDefaultVersion"] = central1b.Apply(getEngineVersionsResult => getEngineVersionsResult.ReleaseChannelDefaultVersion?.STABLE), + /// ["stableChannelLatestVersion"] = central1b.Apply(getEngineVersionsResult => getEngineVersionsResult.ReleaseChannelLatestVersion?.STABLE), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetEngineVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getEngineVersions:getEngineVersions", args ?? new GetEngineVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetRegistryImage.cs b/sdk/dotnet/Container/GetRegistryImage.cs index a1b2d38d48..bd8164c98e 100644 --- a/sdk/dotnet/Container/GetRegistryImage.cs +++ b/sdk/dotnet/Container/GetRegistryImage.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetRegistryImageArgs args /// public static Output Invoke(GetRegistryImageInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryImage:getRegistryImage", args ?? new GetRegistryImageInvokeArgs(), options.WithDefaults()); + + /// + /// This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. + /// + /// The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var debian = Gcp.Container.GetRegistryImage.Invoke(new() + /// { + /// Name = "debian", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gcrLocation"] = debian.Apply(getRegistryImageResult => getRegistryImageResult.ImageUrl), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryImageInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryImage:getRegistryImage", args ?? new GetRegistryImageInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Container/GetRegistryRepository.cs b/sdk/dotnet/Container/GetRegistryRepository.cs index f14573002d..06b3201dd9 100644 --- a/sdk/dotnet/Container/GetRegistryRepository.cs +++ b/sdk/dotnet/Container/GetRegistryRepository.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegistryRepositor /// public static Output Invoke(GetRegistryRepositoryInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryRepository:getRegistryRepository", args ?? new GetRegistryRepositoryInvokeArgs(), options.WithDefaults()); + + /// + /// This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. + /// + /// The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Container.GetRegistryRepository.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["gcrLocation"] = foo.Apply(getRegistryRepositoryResult => getRegistryRepositoryResult.RepositoryUrl), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRegistryRepositoryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:container/getRegistryRepository:getRegistryRepository", args ?? new GetRegistryRepositoryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs b/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs index cbf01c6f0b..90c0976d30 100644 --- a/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs +++ b/sdk/dotnet/ContainerAnalysis/GetNoteIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetNoteIamPolicyArgs args /// public static Output Invoke(GetNoteIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args ?? new GetNoteIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for note + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.ContainerAnalysis.GetNoteIamPolicy.Invoke(new() + /// { + /// Project = note.Project, + /// Note = note.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNoteIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args ?? new GetNoteIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs b/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs index 7ec3ca47ce..fecd6040bb 100644 --- a/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetEntryGroupIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetEntryGroupIamPol /// public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for entrygroup + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetEntryGroupIamPolicy.Invoke(new() + /// { + /// EntryGroup = basicEntryGroup.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs b/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs index f925fa6b97..a67d1fff63 100644 --- a/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetPolicyTagIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetPolicyTagIamPolic /// public static Output Invoke(GetPolicyTagIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args ?? new GetPolicyTagIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for policytag + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetPolicyTagIamPolicy.Invoke(new() + /// { + /// PolicyTag = basicPolicyTag.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPolicyTagIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args ?? new GetPolicyTagIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs b/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs index 9d9d7985a1..e76b2f5ed7 100644 --- a/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetTagTemplateIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagTemplateIamP /// public static Output Invoke(GetTagTemplateIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args ?? new GetTagTemplateIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tagtemplate + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetTagTemplateIamPolicy.Invoke(new() + /// { + /// TagTemplate = basicTagTemplate.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagTemplateIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args ?? new GetTagTemplateIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs b/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs index 16fee7b2f4..dd7167a56d 100644 --- a/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs +++ b/sdk/dotnet/DataCatalog/GetTaxonomyIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTaxonomyIamPolicyA /// public static Output Invoke(GetTaxonomyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args ?? new GetTaxonomyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for taxonomy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataCatalog.GetTaxonomyIamPolicy.Invoke(new() + /// { + /// Taxonomy = basicTaxonomy.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTaxonomyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args ?? new GetTaxonomyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs b/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs index dc0549fc18..3f521e5b50 100644 --- a/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/DataFusion/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataFusion.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = basicInstance.Project, + /// Region = basicInstance.Region, + /// Name = basicInstance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs b/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs index ae739501d3..891ed08afc 100644 --- a/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetAspectTypeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAspectTypeIamPol /// public static Output Invoke(GetAspectTypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args ?? new GetAspectTypeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for aspecttype + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetAspectTypeIamPolicy.Invoke(new() + /// { + /// Project = testAspectTypeBasic.Project, + /// Location = testAspectTypeBasic.Location, + /// AspectTypeId = testAspectTypeBasic.AspectTypeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAspectTypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args ?? new GetAspectTypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs b/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs index b14dced733..dbde8a19d4 100644 --- a/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetAssetIamPolicy.cs @@ -68,6 +68,35 @@ public static Task InvokeAsync(GetAssetIamPolicyArgs ar /// public static Output Invoke(GetAssetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args ?? new GetAssetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for asset + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetAssetIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Lake, + /// DataplexZone = example.DataplexZone, + /// Asset = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAssetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args ?? new GetAssetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs b/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs index c79df50999..9bba44c6dd 100644 --- a/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetDatascanIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetDatascanIamPolicyA /// public static Output Invoke(GetDatascanIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args ?? new GetDatascanIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for datascan + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetDatascanIamPolicy.Invoke(new() + /// { + /// Project = basicProfile.Project, + /// Location = basicProfile.Location, + /// DataScanId = basicProfile.DataScanId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatascanIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args ?? new GetDatascanIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs b/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs index 69f56e3fd0..7f6bacf395 100644 --- a/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetEntryGroupIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetEntryGroupIamPol /// public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for entrygroup + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetEntryGroupIamPolicy.Invoke(new() + /// { + /// Project = testEntryGroupBasic.Project, + /// Location = testEntryGroupBasic.Location, + /// EntryGroupId = testEntryGroupBasic.EntryGroupId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntryGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args ?? new GetEntryGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs b/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs index 6c319bc4a0..c557966cc2 100644 --- a/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetEntryTypeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetEntryTypeIamPolic /// public static Output Invoke(GetEntryTypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args ?? new GetEntryTypeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for entrytype + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetEntryTypeIamPolicy.Invoke(new() + /// { + /// Project = testEntryTypeBasic.Project, + /// Location = testEntryTypeBasic.Location, + /// EntryTypeId = testEntryTypeBasic.EntryTypeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntryTypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args ?? new GetEntryTypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs b/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs index db0c8cc97c..9b5ae5c47a 100644 --- a/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetLakeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetLakeIamPolicyArgs args /// public static Output Invoke(GetLakeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args ?? new GetLakeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for lake + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetLakeIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLakeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args ?? new GetLakeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs b/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs index 83fd7117c3..a8ba5a9b83 100644 --- a/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetTaskIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetTaskIamPolicyArgs args /// public static Output Invoke(GetTaskIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args ?? new GetTaskIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for task + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetTaskIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Lake, + /// TaskId = example.TaskId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTaskIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args ?? new GetTaskIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs b/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs index 6471842877..a98fc9d7cd 100644 --- a/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs +++ b/sdk/dotnet/DataPlex/GetZoneIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetZoneIamPolicyArgs args /// public static Output Invoke(GetZoneIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args ?? new GetZoneIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for zone + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.DataPlex.GetZoneIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Location = example.Location, + /// Lake = example.Lake, + /// DataplexZone = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetZoneIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args ?? new GetZoneIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs b/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs index 6e35ef91c2..ac54690451 100644 --- a/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/Dataform/GetRepositoryIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetRepositoryIamPol public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs b/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs index aee790da7b..d0cd703e89 100644 --- a/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetAutoscalingPolicyIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAutoscali /// public static Output Invoke(GetAutoscalingPolicyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args ?? new GetAutoscalingPolicyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for autoscalingpolicy + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetAutoscalingPolicyIamPolicy.Invoke(new() + /// { + /// Project = basic.Project, + /// Location = basic.Location, + /// PolicyId = basic.PolicyId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAutoscalingPolicyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args ?? new GetAutoscalingPolicyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs b/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs index a51a2c02f9..10130239a8 100644 --- a/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetClusterIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetClusterIamPolicyArg /// public static Output Invoke(GetClusterIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args ?? new GetClusterIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Dataproc cluster. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetClusterIamPolicy.Invoke(new() + /// { + /// Cluster = cluster.Name, + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClusterIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args ?? new GetClusterIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetJobIamPolicy.cs b/sdk/dotnet/Dataproc/GetJobIamPolicy.cs index 77bfdedcb7..e803e627d9 100644 --- a/sdk/dotnet/Dataproc/GetJobIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetJobIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetJobIamPolicyArgs args, /// public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Dataproc job. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetJobIamPolicy.Invoke(new() + /// { + /// JobId = pyspark.Reference[0].JobId, + /// Region = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetJobIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args ?? new GetJobIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs b/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs index 57580fe481..3224ccff8b 100644 --- a/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetMetastoreFederationIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetMetasto /// public static Output Invoke(GetMetastoreFederationIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args ?? new GetMetastoreFederationIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for federation + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetMetastoreFederationIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// FederationId = @default.FederationId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMetastoreFederationIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args ?? new GetMetastoreFederationIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetMetastoreService.cs b/sdk/dotnet/Dataproc/GetMetastoreService.cs index 992d72c03b..377527210d 100644 --- a/sdk/dotnet/Dataproc/GetMetastoreService.cs +++ b/sdk/dotnet/Dataproc/GetMetastoreService.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetMetastoreServiceArg /// public static Output Invoke(GetMetastoreServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreService:getMetastoreService", args ?? new GetMetastoreServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Dataproc Metastore service from Google Cloud by its id and location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Dataproc.GetMetastoreService.Invoke(new() + /// { + /// ServiceId = "foo-bar", + /// Location = "global", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMetastoreServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreService:getMetastoreService", args ?? new GetMetastoreServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs b/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs index 54588a5ab0..562fd56ca2 100644 --- a/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs +++ b/sdk/dotnet/Dataproc/GetMetastoreServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetMetastoreS /// public static Output Invoke(GetMetastoreServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args ?? new GetMetastoreServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dataproc.GetMetastoreServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// ServiceId = @default.ServiceId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMetastoreServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args ?? new GetMetastoreServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Datastream/GetStaticIps.cs b/sdk/dotnet/Datastream/GetStaticIps.cs index eb36d49aa5..029a94b5e5 100644 --- a/sdk/dotnet/Datastream/GetStaticIps.cs +++ b/sdk/dotnet/Datastream/GetStaticIps.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetStaticIpsArgs args, Invoke /// public static Output Invoke(GetStaticIpsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:datastream/getStaticIps:getStaticIps", args ?? new GetStaticIpsInvokeArgs(), options.WithDefaults()); + + /// + /// Returns the list of IP addresses that Datastream connects from. For more information see + /// the [official documentation](https://cloud.google.com/datastream/docs/ip-allowlists-and-regions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var datastreamIps = Gcp.Datastream.GetStaticIps.Invoke(new() + /// { + /// Location = "us-west1", + /// Project = "my-project", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ipList"] = datastreamIps.Apply(getStaticIpsResult => getStaticIpsResult.StaticIps), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetStaticIpsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:datastream/getStaticIps:getStaticIps", args ?? new GetStaticIpsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetKeys.cs b/sdk/dotnet/Dns/GetKeys.cs index 879467865e..d0e5d840dd 100644 --- a/sdk/dotnet/Dns/GetKeys.cs +++ b/sdk/dotnet/Dns/GetKeys.cs @@ -106,6 +106,54 @@ public static Task InvokeAsync(GetKeysArgs args, InvokeOptions? o /// public static Output Invoke(GetKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getKeys:getKeys", args ?? new GetKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Get the DNSKEY and DS records of DNSSEC-signed managed zones. + /// + /// For more information see the + /// [official documentation](https://cloud.google.com/dns/docs/dnskeys/) + /// and [API](https://cloud.google.com/dns/docs/reference/v1/dnsKeys). + /// + /// > A gcp.dns.ManagedZone resource must have DNSSEC enabled in order + /// to contain any DNSKEYs. Queries to managed zones without this setting + /// enabled will result in a 404 error as the collection of DNSKEYs does + /// not exist in the DNS API. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = new Gcp.Dns.ManagedZone("foo", new() + /// { + /// Name = "foobar", + /// DnsName = "foo.bar.", + /// DnssecConfig = new Gcp.Dns.Inputs.ManagedZoneDnssecConfigArgs + /// { + /// State = "on", + /// NonExistence = "nsec3", + /// }, + /// }); + /// + /// var fooDnsKeys = Gcp.Dns.GetKeys.Invoke(new() + /// { + /// ManagedZone = foo.Id, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["fooDnsDsRecord"] = fooDnsKeys.Apply(getKeysResult => getKeysResult.KeySigningKeys[0]?.DsRecord), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getKeys:getKeys", args ?? new GetKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetManagedZone.cs b/sdk/dotnet/Dns/GetManagedZone.cs index 0bc1783661..531b6d825d 100644 --- a/sdk/dotnet/Dns/GetManagedZone.cs +++ b/sdk/dotnet/Dns/GetManagedZone.cs @@ -86,6 +86,44 @@ public static Task InvokeAsync(GetManagedZoneArgs args, In /// public static Output Invoke(GetManagedZoneInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZone:getManagedZone", args ?? new GetManagedZoneInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a zone's attributes within Google Cloud DNS. + /// For more information see + /// [the official documentation](https://cloud.google.com/dns/zones/) + /// and + /// [API](https://cloud.google.com/dns/api/v1/managedZones). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var envDnsZone = Gcp.Dns.GetManagedZone.Invoke(new() + /// { + /// Name = "qa-zone", + /// }); + /// + /// var dns = new Gcp.Dns.RecordSet("dns", new() + /// { + /// Name = $"my-address.{envDnsZone.Apply(getManagedZoneResult => getManagedZoneResult.DnsName)}", + /// Type = "TXT", + /// Ttl = 300, + /// ManagedZone = envDnsZone.Apply(getManagedZoneResult => getManagedZoneResult.Name), + /// Rrdatas = new[] + /// { + /// "test", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagedZoneInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZone:getManagedZone", args ?? new GetManagedZoneInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs b/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs index 9fe95924bb..bdfb9e2859 100644 --- a/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs +++ b/sdk/dotnet/Dns/GetManagedZoneIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetManagedZoneIamP /// public static Output Invoke(GetManagedZoneIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args ?? new GetManagedZoneIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for managedzone + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Dns.GetManagedZoneIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// ManagedZone = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagedZoneIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args ?? new GetManagedZoneIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetManagedZones.cs b/sdk/dotnet/Dns/GetManagedZones.cs index d5df1cce9e..b196ec1ad4 100644 --- a/sdk/dotnet/Dns/GetManagedZones.cs +++ b/sdk/dotnet/Dns/GetManagedZones.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetManagedZonesArgs? args /// public static Output Invoke(GetManagedZonesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZones:getManagedZones", args ?? new GetManagedZonesInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a list of zones within Google Cloud DNS. + /// For more information see + /// [the official documentation](https://cloud.google.com/dns/zones/) + /// and + /// [API](https://cloud.google.com/dns/api/v1/managedZones). + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var zones = Gcp.Dns.GetManagedZones.Invoke(new() + /// { + /// Project = "my-project-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetManagedZonesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getManagedZones:getManagedZones", args ?? new GetManagedZonesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Dns/GetRecordSet.cs b/sdk/dotnet/Dns/GetRecordSet.cs index f9794d86b0..d80d8ef47b 100644 --- a/sdk/dotnet/Dns/GetRecordSet.cs +++ b/sdk/dotnet/Dns/GetRecordSet.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetRecordSetArgs args, Invoke /// public static Output Invoke(GetRecordSetInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getRecordSet:getRecordSet", args ?? new GetRecordSetInvokeArgs(), options.WithDefaults()); + + /// + /// Get a DNS record set within Google Cloud DNS + /// For more information see + /// [the official documentation](https://cloud.google.com/dns/docs/records) + /// and + /// [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sample = Gcp.Dns.GetManagedZone.Invoke(new() + /// { + /// Name = "sample-zone", + /// }); + /// + /// var rs = Gcp.Dns.GetRecordSet.Invoke(new() + /// { + /// ManagedZone = sample.Apply(getManagedZoneResult => getManagedZoneResult.Name), + /// Name = $"my-record.{sample.Apply(getManagedZoneResult => getManagedZoneResult.DnsName)}", + /// Type = "A", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRecordSetInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:dns/getRecordSet:getRecordSet", args ?? new GetRecordSetInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs b/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs index 1723292406..9422c6b63d 100644 --- a/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs +++ b/sdk/dotnet/Endpoints/GetServiceConsumersIamPolicy.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetServiceCon /// public static Output Invoke(GetServiceConsumersIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args ?? new GetServiceConsumersIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for serviceconsumers + /// + public static Output Invoke(GetServiceConsumersIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args ?? new GetServiceConsumersIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs b/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs index 4249bea0ef..cb5137dd4d 100644 --- a/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs +++ b/sdk/dotnet/Endpoints/GetServiceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetServiceIamPolicyArg /// public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for service + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Endpoints.GetServiceIamPolicy.Invoke(new() + /// { + /// ServiceName = endpointsService.ServiceName, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Filestore/GetInstance.cs b/sdk/dotnet/Filestore/GetInstance.cs index cc435fab45..f9c45c5f04 100644 --- a/sdk/dotnet/Filestore/GetInstance.cs +++ b/sdk/dotnet/Filestore/GetInstance.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:filestore/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Cloud Filestore instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Filestore.GetInstance.Invoke(new() + /// { + /// Name = "my-filestore-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instanceIpAddresses"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.IpAddresses), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.ConnectMode), + /// ["instanceFileShareName"] = myInstance.Apply(getInstanceResult => getInstanceResult.FileShares?.Name), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:filestore/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAndroidApp.cs b/sdk/dotnet/Firebase/GetAndroidApp.cs index 48136312b1..7cbb4d10f3 100644 --- a/sdk/dotnet/Firebase/GetAndroidApp.cs +++ b/sdk/dotnet/Firebase/GetAndroidApp.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAndroidAppArgs args, Invo public static Output Invoke(GetAndroidAppInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidApp:getAndroidApp", args ?? new GetAndroidAppInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAndroidAppInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidApp:getAndroidApp", args ?? new GetAndroidAppInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAndroidAppConfig.cs b/sdk/dotnet/Firebase/GetAndroidAppConfig.cs index 804fd4d0f7..bc8abe26d1 100644 --- a/sdk/dotnet/Firebase/GetAndroidAppConfig.cs +++ b/sdk/dotnet/Firebase/GetAndroidAppConfig.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAndroidAppConfigArg public static Output Invoke(GetAndroidAppConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args ?? new GetAndroidAppConfigInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAndroidAppConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args ?? new GetAndroidAppConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAppleApp.cs b/sdk/dotnet/Firebase/GetAppleApp.cs index 614a4492d4..cb322d742c 100644 --- a/sdk/dotnet/Firebase/GetAppleApp.cs +++ b/sdk/dotnet/Firebase/GetAppleApp.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAppleAppArgs args, InvokeOp public static Output Invoke(GetAppleAppInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleApp:getAppleApp", args ?? new GetAppleAppInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAppleAppInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleApp:getAppleApp", args ?? new GetAppleAppInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetAppleAppConfig.cs b/sdk/dotnet/Firebase/GetAppleAppConfig.cs index e8eaed2e7c..8c6994eccd 100644 --- a/sdk/dotnet/Firebase/GetAppleAppConfig.cs +++ b/sdk/dotnet/Firebase/GetAppleAppConfig.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAppleAppConfigArgs ar public static Output Invoke(GetAppleAppConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args ?? new GetAppleAppConfigInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAppleAppConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args ?? new GetAppleAppConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetHostingChannel.cs b/sdk/dotnet/Firebase/GetHostingChannel.cs index f9bf103bf0..957874c4fc 100644 --- a/sdk/dotnet/Firebase/GetHostingChannel.cs +++ b/sdk/dotnet/Firebase/GetHostingChannel.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetHostingChannelArgs ar public static Output Invoke(GetHostingChannelInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getHostingChannel:getHostingChannel", args ?? new GetHostingChannelInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetHostingChannelInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getHostingChannel:getHostingChannel", args ?? new GetHostingChannelInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetWebApp.cs b/sdk/dotnet/Firebase/GetWebApp.cs index 2dbf3b64c3..eb11756dfb 100644 --- a/sdk/dotnet/Firebase/GetWebApp.cs +++ b/sdk/dotnet/Firebase/GetWebApp.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetWebAppArgs args, InvokeOption /// public static Output Invoke(GetWebAppInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebApp:getWebApp", args ?? new GetWebAppInvokeArgs(), options.WithDefaults()); + + /// + /// A Google Cloud Firebase web application instance + /// + public static Output Invoke(GetWebAppInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebApp:getWebApp", args ?? new GetWebAppInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Firebase/GetWebAppConfig.cs b/sdk/dotnet/Firebase/GetWebAppConfig.cs index 0974eaf96e..63081112e8 100644 --- a/sdk/dotnet/Firebase/GetWebAppConfig.cs +++ b/sdk/dotnet/Firebase/GetWebAppConfig.cs @@ -34,6 +34,18 @@ public static Task InvokeAsync(GetWebAppConfigArgs args, /// public static Output Invoke(GetWebAppConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebAppConfig:getWebAppConfig", args ?? new GetWebAppConfigInvokeArgs(), options.WithDefaults()); + + /// + /// A Google Cloud Firebase web application configuration + /// + /// To get more information about WebApp, see: + /// + /// * [API documentation](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.webApps) + /// * How-to Guides + /// * [Official Documentation](https://firebase.google.com/) + /// + public static Output Invoke(GetWebAppConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:firebase/getWebAppConfig:getWebAppConfig", args ?? new GetWebAppConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Folder/GetIamPolicy.cs b/sdk/dotnet/Folder/GetIamPolicy.cs index 27a9f340cf..f3671de9b1 100644 --- a/sdk/dotnet/Folder/GetIamPolicy.cs +++ b/sdk/dotnet/Folder/GetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a folder. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = Gcp.Folder.GetIamPolicy.Invoke(new() + /// { + /// Folder = permissiontest.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Folder/GetOrganizationPolicy.cs b/sdk/dotnet/Folder/GetOrganizationPolicy.cs index 1eba39923a..7e6868d476 100644 --- a/sdk/dotnet/Folder/GetOrganizationPolicy.cs +++ b/sdk/dotnet/Folder/GetOrganizationPolicy.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetOrganizationPolic /// public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Allows management of Organization policies for a Google Folder. For more information see + /// [the official + /// documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Folder.GetOrganizationPolicy.Invoke(new() + /// { + /// Folder = "folders/folderid", + /// Constraint = "constraints/compute.trustedImageProjects", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["version"] = policy.Apply(getOrganizationPolicyResult => getOrganizationPolicyResult.Version), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs b/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs index eb902f56e2..df647e693a 100644 --- a/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs +++ b/sdk/dotnet/GkeBackup/GetBackupPlanIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetBackupPlanIamPol /// public static Output Invoke(GetBackupPlanIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args ?? new GetBackupPlanIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for backupplan + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeBackup.GetBackupPlanIamPolicy.Invoke(new() + /// { + /// Project = basic.Project, + /// Location = basic.Location, + /// Name = basic.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPlanIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args ?? new GetBackupPlanIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs b/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs index 950c956385..5ff141fb4b 100644 --- a/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs +++ b/sdk/dotnet/GkeBackup/GetRestorePlanIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRestorePlanIamP /// public static Output Invoke(GetRestorePlanIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args ?? new GetRestorePlanIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for restoreplan + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeBackup.GetRestorePlanIamPolicy.Invoke(new() + /// { + /// Project = allNs.Project, + /// Location = allNs.Location, + /// Name = allNs.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRestorePlanIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args ?? new GetRestorePlanIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs b/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs index 7d8873727f..f68dc3718a 100644 --- a/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs +++ b/sdk/dotnet/GkeHub/GetFeatureIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetFeatureIamPolicyArg /// public static Output Invoke(GetFeatureIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args ?? new GetFeatureIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for feature + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeHub.GetFeatureIamPolicy.Invoke(new() + /// { + /// Project = feature.Project, + /// Location = feature.Location, + /// Name = feature.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFeatureIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args ?? new GetFeatureIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetMembershipBinding.cs b/sdk/dotnet/GkeHub/GetMembershipBinding.cs index e7a8f75ceb..b46045d24c 100644 --- a/sdk/dotnet/GkeHub/GetMembershipBinding.cs +++ b/sdk/dotnet/GkeHub/GetMembershipBinding.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetMembershipBindingA public static Output Invoke(GetMembershipBindingInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipBinding:getMembershipBinding", args ?? new GetMembershipBindingInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetMembershipBindingInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipBinding:getMembershipBinding", args ?? new GetMembershipBindingInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs b/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs index a788197f8c..86b3aad2da 100644 --- a/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs +++ b/sdk/dotnet/GkeHub/GetMembershipIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetMembershipIamPol /// public static Output Invoke(GetMembershipIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args ?? new GetMembershipIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for membership + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeHub.GetMembershipIamPolicy.Invoke(new() + /// { + /// Project = membership.Project, + /// Location = membership.Location, + /// MembershipId = membership.MembershipId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMembershipIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args ?? new GetMembershipIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs b/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs index 9bd9293ced..3e98d8d0ed 100644 --- a/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs +++ b/sdk/dotnet/GkeHub/GetScopeIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetScopeIamPolicyArgs ar /// public static Output Invoke(GetScopeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args ?? new GetScopeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for scope + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.GkeHub.GetScopeIamPolicy.Invoke(new() + /// { + /// Project = scope.Project, + /// ScopeId = scope.ScopeId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetScopeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args ?? new GetScopeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs index eee25e6f24..88b35e709d 100644 --- a/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetConsentStoreIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetConsentStoreIa /// public static Output Invoke(GetConsentStoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args ?? new GetConsentStoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for consentstore + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Healthcare.GetConsentStoreIamPolicy.Invoke(new() + /// { + /// Dataset = my_consent.Dataset, + /// ConsentStoreId = my_consent.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConsentStoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args ?? new GetConsentStoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs b/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs index e528985a4a..07b8bf4a42 100644 --- a/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetDatasetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatasetIamPolicyArg /// public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare dataset. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetDatasetIamPolicy.Invoke(new() + /// { + /// DatasetId = dataset.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatasetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args ?? new GetDatasetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs index 29b0207b52..a0c167103b 100644 --- a/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetDicomStoreIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDicomStoreIamPol /// public static Output Invoke(GetDicomStoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args ?? new GetDicomStoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare DICOM store. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetDicomStoreIamPolicy.Invoke(new() + /// { + /// DicomStoreId = dicomStore.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDicomStoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args ?? new GetDicomStoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs index 7e4691e807..56fcf679e1 100644 --- a/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetFhirStoreIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetFhirStoreIamPolic /// public static Output Invoke(GetFhirStoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args ?? new GetFhirStoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare FHIR store. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetFhirStoreIamPolicy.Invoke(new() + /// { + /// FhirStoreId = fhirStore.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFhirStoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args ?? new GetFhirStoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs b/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs index ff7b103947..f73bbafed5 100644 --- a/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs +++ b/sdk/dotnet/Healthcare/GetHl7V2StoreIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetHl7V2StoreIamPol /// public static Output Invoke(GetHl7V2StoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args ?? new GetHl7V2StoreIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud Healthcare HL7v2 store. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Healthcare.GetHl7V2StoreIamPolicy.Invoke(new() + /// { + /// Hl7V2StoreId = hl7V2Store.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetHl7V2StoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args ?? new GetHl7V2StoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetRule.cs b/sdk/dotnet/Iam/GetRule.cs index 0856177b31..ad841983af 100644 --- a/sdk/dotnet/Iam/GetRule.cs +++ b/sdk/dotnet/Iam/GetRule.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetRuleArgs args, InvokeOptions? o /// public static Output Invoke(GetRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getRule:getRule", args ?? new GetRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google IAM Role. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var roleinfo = Gcp.Iam.GetRule.Invoke(new() + /// { + /// Name = "roles/compute.viewer", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["theRolePermissions"] = roleinfo.Apply(getRuleResult => getRuleResult.IncludedPermissions), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getRule:getRule", args ?? new GetRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetTestablePermissions.cs b/sdk/dotnet/Iam/GetTestablePermissions.cs index 037b44f94b..c88423de82 100644 --- a/sdk/dotnet/Iam/GetTestablePermissions.cs +++ b/sdk/dotnet/Iam/GetTestablePermissions.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetTestablePermissi /// public static Output Invoke(GetTestablePermissionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getTestablePermissions:getTestablePermissions", args ?? new GetTestablePermissionsInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve a list of testable permissions for a resource. Testable permissions mean the permissions that user can add or remove in a role at a given resource. The resource can be referenced either via the full resource name or via a URI. + /// + /// ## Example Usage + /// + /// Retrieve all the supported permissions able to be set on `my-project` that are in either GA or BETA. This is useful for dynamically constructing custom roles. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var perms = Gcp.Iam.GetTestablePermissions.Invoke(new() + /// { + /// FullResourceName = "//cloudresourcemanager.googleapis.com/projects/my-project", + /// Stages = new[] + /// { + /// "GA", + /// "BETA", + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTestablePermissionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getTestablePermissions:getTestablePermissions", args ?? new GetTestablePermissionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs b/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs index 9d2631dd1e..186644c0bc 100644 --- a/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs +++ b/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetWorkloadIdentit /// public static Output Invoke(GetWorkloadIdentityPoolInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args ?? new GetWorkloadIdentityPoolInvokeArgs(), options.WithDefaults()); + + /// + /// Get a IAM workload identity pool from Google Cloud by its id. + /// > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPool.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWorkloadIdentityPoolInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args ?? new GetWorkloadIdentityPoolInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs b/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs index 990d8e3900..6061711170 100644 --- a/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs +++ b/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetWorkloa /// public static Output Invoke(GetWorkloadIdentityPoolProviderInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args ?? new GetWorkloadIdentityPoolProviderInvokeArgs(), options.WithDefaults()); + + /// + /// Get a IAM workload identity provider from Google Cloud by its id. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPoolProvider.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// WorkloadIdentityPoolProviderId = "bar-provider", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWorkloadIdentityPoolProviderInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args ?? new GetWorkloadIdentityPoolProviderInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs b/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs index bd9f2e35c5..f80f2a9292 100644 --- a/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetAppEngineServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAppEngineS /// public static Output Invoke(GetAppEngineServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args ?? new GetAppEngineServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for appengineservice + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetAppEngineServiceIamPolicy.Invoke(new() + /// { + /// Project = version.Project, + /// AppId = version.Project, + /// Service = version.Service, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppEngineServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args ?? new GetAppEngineServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs b/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs index 168583cddd..ca6768d4be 100644 --- a/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs +++ b/sdk/dotnet/Iap/GetAppEngineVersionIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetAppEngineV /// public static Output Invoke(GetAppEngineVersionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args ?? new GetAppEngineVersionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for appengineversion + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetAppEngineVersionIamPolicy.Invoke(new() + /// { + /// Project = version.Project, + /// AppId = version.Project, + /// Service = version.Service, + /// VersionId = version.VersionId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppEngineVersionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args ?? new GetAppEngineVersionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetClient.cs b/sdk/dotnet/Iap/GetClient.cs index f5edb83571..b2cce3ef62 100644 --- a/sdk/dotnet/Iap/GetClient.cs +++ b/sdk/dotnet/Iap/GetClient.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetClientArgs args, InvokeOption /// public static Output Invoke(GetClientInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getClient:getClient", args ?? new GetClientInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Cloud IAP Client. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var project = Gcp.Organizations.GetProject.Invoke(new() + /// { + /// ProjectId = "foobar", + /// }); + /// + /// var projectClient = Gcp.Iap.GetClient.Invoke(new() + /// { + /// Brand = $"projects/{project.Apply(getProjectResult => getProjectResult.Number)}/brands/[BRAND_NUMBER]", + /// ClientId = apps.Googleusercontent.Com, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClientInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getClient:getClient", args ?? new GetClientInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs b/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs index 592db401f2..89711b5530 100644 --- a/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs +++ b/sdk/dotnet/Iap/GetTunnelDestGroupIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTunnelDestG /// public static Output Invoke(GetTunnelDestGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args ?? new GetTunnelDestGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tunneldestgroup + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetTunnelDestGroupIamPolicy.Invoke(new() + /// { + /// Project = destGroup.Project, + /// Region = destGroup.Region, + /// DestGroup = destGroup.GroupName, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTunnelDestGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args ?? new GetTunnelDestGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetTunnelIamPolicy.cs b/sdk/dotnet/Iap/GetTunnelIamPolicy.cs index 7a69a9c4c1..f40b71c64e 100644 --- a/sdk/dotnet/Iap/GetTunnelIamPolicy.cs +++ b/sdk/dotnet/Iap/GetTunnelIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTunnelIamPolicyArgs? /// public static Output Invoke(GetTunnelIamPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args ?? new GetTunnelIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tunnel + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetTunnelIamPolicy.Invoke(new() + /// { + /// Project = projectService.Project, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTunnelIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args ?? new GetTunnelIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs b/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs index 705b92f41e..895a039775 100644 --- a/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetTunnelInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetTunnelInstan /// public static Output Invoke(GetTunnelInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args ?? new GetTunnelInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tunnelinstance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetTunnelInstanceIamPolicy.Invoke(new() + /// { + /// Project = tunnelvm.Project, + /// Zone = tunnelvm.Zone, + /// Instance = tunnelvm.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTunnelInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args ?? new GetTunnelInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs b/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs index a2828bbb38..cf0804cd6c 100644 --- a/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebBackendServiceIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetWebBacken /// public static Output Invoke(GetWebBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args ?? new GetWebBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webbackendservice + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebBackendServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// WebBackendService = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args ?? new GetWebBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebIamPolicy.cs b/sdk/dotnet/Iap/GetWebIamPolicy.cs index ef1a230143..e5f1be215e 100644 --- a/sdk/dotnet/Iap/GetWebIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetWebIamPolicyArgs? args /// public static Output Invoke(GetWebIamPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebIamPolicy:getWebIamPolicy", args ?? new GetWebIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for web + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebIamPolicy.Invoke(new() + /// { + /// Project = projectService.Project, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebIamPolicy:getWebIamPolicy", args ?? new GetWebIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs b/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs index ef91f406a4..25de58375e 100644 --- a/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebRegionBackendServiceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetWeb /// public static Output Invoke(GetWebRegionBackendServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args ?? new GetWebRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webregionbackendservice + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebRegionBackendServiceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Region = @default.Region, + /// WebRegionBackendService = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebRegionBackendServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args ?? new GetWebRegionBackendServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs b/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs index 812c84339f..98bdc482b3 100644 --- a/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebTypeAppEngineIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetWebTypeApp /// public static Output Invoke(GetWebTypeAppEngineIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args ?? new GetWebTypeAppEngineIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webtypeappengine + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebTypeAppEngineIamPolicy.Invoke(new() + /// { + /// Project = app.Project, + /// AppId = app.AppId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebTypeAppEngineIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args ?? new GetWebTypeAppEngineIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs b/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs index 0b09dccb9b..e99211cbcf 100644 --- a/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs +++ b/sdk/dotnet/Iap/GetWebTypeComputeIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetWebTypeCompu /// public static Output Invoke(GetWebTypeComputeIamPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args ?? new GetWebTypeComputeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for webtypecompute + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Iap.GetWebTypeComputeIamPolicy.Invoke(new() + /// { + /// Project = projectService.Project, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetWebTypeComputeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args ?? new GetWebTypeComputeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs b/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs index 0986129d95..4045d1960b 100644 --- a/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs +++ b/sdk/dotnet/Kms/GetCryptoKeyIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetCryptoKeyIamPolic /// public static Output Invoke(GetCryptoKeyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args ?? new GetCryptoKeyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud KMS crypto key. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Kms.GetCryptoKeyIamPolicy.Invoke(new() + /// { + /// CryptoKeyId = cryptoKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCryptoKeyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args ?? new GetCryptoKeyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs b/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs index 0699a9e51b..c3a44239d4 100644 --- a/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs +++ b/sdk/dotnet/Kms/GetCryptoKeyLatestVersion.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetCryptoKeyLate /// public static Output Invoke(GetCryptoKeyLatestVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args ?? new GetCryptoKeyLatestVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to the latest Google Cloud Platform KMS CryptoKeyVersion in a CryptoKey. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// var myCryptoKeyLatestVersion = Gcp.Kms.GetCryptoKeyLatestVersion.Invoke(new() + /// { + /// CryptoKey = myKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCryptoKeyLatestVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args ?? new GetCryptoKeyLatestVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeyVersions.cs b/sdk/dotnet/Kms/GetCryptoKeyVersions.cs index b01c60249c..a9b222eb39 100644 --- a/sdk/dotnet/Kms/GetCryptoKeyVersions.cs +++ b/sdk/dotnet/Kms/GetCryptoKeyVersions.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetCryptoKeyVersionsA /// public static Output Invoke(GetCryptoKeyVersionsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args ?? new GetCryptoKeyVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Google Cloud Platform KMS CryptoKeyVersions. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// var myCryptoKeyVersions = Gcp.Kms.GetCryptoKeyVersions.Invoke(new() + /// { + /// CryptoKey = myKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCryptoKeyVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args ?? new GetCryptoKeyVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetCryptoKeys.cs b/sdk/dotnet/Kms/GetCryptoKeys.cs index 39739d89ce..085f20f912 100644 --- a/sdk/dotnet/Kms/GetCryptoKeys.cs +++ b/sdk/dotnet/Kms/GetCryptoKeys.cs @@ -34,6 +34,18 @@ public static Task InvokeAsync(GetCryptoKeysArgs args, Invo /// public static Output Invoke(GetCryptoKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeys:getCryptoKeys", args ?? new GetCryptoKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to all Google Cloud Platform KMS CryptoKeys in a given KeyRing. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys). + /// + /// A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a + /// Google Cloud KMS KeyRing. + /// + public static Output Invoke(GetCryptoKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getCryptoKeys:getCryptoKeys", args ?? new GetCryptoKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs b/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs index 60a23afe1f..5ebab35a63 100644 --- a/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs +++ b/sdk/dotnet/Kms/GetEkmConnectionIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetEkmConnection /// public static Output Invoke(GetEkmConnectionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args ?? new GetEkmConnectionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for ekmconnection + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Kms.GetEkmConnectionIamPolicy.Invoke(new() + /// { + /// Project = example_ekmconnection.Project, + /// Location = example_ekmconnection.Location, + /// Name = example_ekmconnection.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEkmConnectionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args ?? new GetEkmConnectionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSCryptoKey.cs b/sdk/dotnet/Kms/GetKMSCryptoKey.cs index dc7fcb8ac3..114f4158f3 100644 --- a/sdk/dotnet/Kms/GetKMSCryptoKey.cs +++ b/sdk/dotnet/Kms/GetKMSCryptoKey.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetKMSCryptoKeyArgs args, /// public static Output Invoke(GetKMSCryptoKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args ?? new GetKMSCryptoKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a Google Cloud Platform KMS CryptoKey. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys). + /// + /// A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a + /// Google Cloud KMS KeyRing. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKMSCryptoKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args ?? new GetKMSCryptoKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs b/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs index d8689d024a..4daeea8882 100644 --- a/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs +++ b/sdk/dotnet/Kms/GetKMSCryptoKeyVersion.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetKMSCryptoKeyVers /// public static Output Invoke(GetKMSCryptoKeyVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args ?? new GetKMSCryptoKeyVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + /// + /// A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKey.Invoke(new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Apply(getKMSKeyRingResult => getKMSKeyRingResult.Id), + /// }); + /// + /// var myCryptoKeyVersion = Gcp.Kms.GetKMSCryptoKeyVersion.Invoke(new() + /// { + /// CryptoKey = myKey.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKMSCryptoKeyVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args ?? new GetKMSCryptoKeyVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSKeyRing.cs b/sdk/dotnet/Kms/GetKMSKeyRing.cs index 26dee88175..d70de3f273 100644 --- a/sdk/dotnet/Kms/GetKMSKeyRing.cs +++ b/sdk/dotnet/Kms/GetKMSKeyRing.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetKMSKeyRingArgs args, Invo /// public static Output Invoke(GetKMSKeyRingInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSKeyRing:getKMSKeyRing", args ?? new GetKMSKeyRingInvokeArgs(), options.WithDefaults()); + + /// + /// Provides access to Google Cloud Platform KMS KeyRing. For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_ring) + /// and + /// [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings). + /// + /// A KeyRing is a grouping of CryptoKeys for organizational purposes. A KeyRing belongs to a Google Cloud Platform Project + /// and resides in a specific location. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = Gcp.Kms.GetKMSKeyRing.Invoke(new() + /// { + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKMSKeyRingInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSKeyRing:getKMSKeyRing", args ?? new GetKMSKeyRingInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSSecret.cs b/sdk/dotnet/Kms/GetKMSSecret.cs index 53e93552ea..0edc506878 100644 --- a/sdk/dotnet/Kms/GetKMSSecret.cs +++ b/sdk/dotnet/Kms/GetKMSSecret.cs @@ -216,6 +216,109 @@ public static Task InvokeAsync(GetKMSSecretArgs args, Invoke /// public static Output Invoke(GetKMSSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecret:getKMSSecret", args ?? new GetKMSSecretInvokeArgs(), options.WithDefaults()); + + /// + /// This data source allows you to use data encrypted with Google Cloud KMS + /// within your resource definitions. + /// + /// For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). + /// + /// > **NOTE:** Using this data provider will allow you to conceal secret data within your + /// resource definitions, but it does not take care of protecting that data in the + /// logging output, plan output, or state output. Please take care to secure your secret + /// data outside of resource definitions. + /// + /// ## Example Usage + /// + /// First, create a KMS KeyRing and CryptoKey using the resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = new Gcp.Kms.KeyRing("my_key_ring", new() + /// { + /// Project = "my-project", + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = new Gcp.Kms.CryptoKey("my_crypto_key", new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Id, + /// }); + /// + /// }); + /// ``` + /// + /// Next, use the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/encrypt) to encrypt some + /// sensitive information: + /// + /// ```bash + /// $ echo -n my-secret-password | gcloud kms encrypt \ + /// > --project my-project \ + /// > --location us-central1 \ + /// > --keyring my-key-ring \ + /// > --key my-crypto-key \ + /// > --plaintext-file - \ + /// > --ciphertext-file - \ + /// > | base64 + /// CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU= + /// ``` + /// + /// Finally, reference the encrypted ciphertext in your resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sqlUserPassword = Gcp.Kms.GetKMSSecret.Invoke(new() + /// { + /// CryptoKey = myCryptoKey.Id, + /// Ciphertext = "CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU=", + /// }); + /// + /// var dbNameSuffix = new Random.RandomId("db_name_suffix", new() + /// { + /// ByteLength = 4, + /// }); + /// + /// var main = new Gcp.Sql.DatabaseInstance("main", new() + /// { + /// Name = dbNameSuffix.Hex.Apply(hex => $"main-instance-{hex}"), + /// DatabaseVersion = "MYSQL_5_7", + /// Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs + /// { + /// Tier = "db-f1-micro", + /// }, + /// }); + /// + /// var users = new Gcp.Sql.User("users", new() + /// { + /// Name = "me", + /// Instance = main.Name, + /// Host = "me.com", + /// Password = sqlUserPassword.Apply(getKMSSecretResult => getKMSSecretResult.Plaintext), + /// }); + /// + /// }); + /// ``` + /// + /// This will result in a Cloud SQL user being created with password `my-secret-password`. + /// + public static Output Invoke(GetKMSSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecret:getKMSSecret", args ?? new GetKMSSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs b/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs index 0b55cff213..c4dfa3853b 100644 --- a/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs +++ b/sdk/dotnet/Kms/GetKMSSecretAsymmetric.cs @@ -294,6 +294,148 @@ public static Task InvokeAsync(GetKMSSecretAsymmet /// public static Output Invoke(GetKMSSecretAsymmetricInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args ?? new GetKMSSecretAsymmetricInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// First, create a KMS KeyRing and CryptoKey using the resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = new Gcp.Kms.KeyRing("my_key_ring", new() + /// { + /// Project = "my-project", + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKeyCryptoKey = new Gcp.Kms.CryptoKey("my_crypto_key", new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Id, + /// Purpose = "ASYMMETRIC_DECRYPT", + /// VersionTemplate = new Gcp.Kms.Inputs.CryptoKeyVersionTemplateArgs + /// { + /// Algorithm = "RSA_DECRYPT_OAEP_4096_SHA256", + /// }, + /// }); + /// + /// var myCryptoKey = Gcp.Kms.GetKMSCryptoKeyVersion.Invoke(new() + /// { + /// CryptoKey = myCryptoKeyCryptoKey.Id, + /// }); + /// + /// }); + /// ``` + /// + /// Next, use the [Cloud SDK](https://cloud.google.com/kms/docs/encrypt-decrypt-rsa#kms-encrypt-asymmetric-cli) to encrypt + /// some sensitive information: + /// + /// ```bash + /// ## get the public key to encrypt the secret with + /// $ gcloud kms keys versions get-public-key 1 \ + /// --project my-project \ + /// --location us-central1 \ + /// --keyring my-key-ring \ + /// --key my-crypto-key \ + /// --output-file public-key.pem + /// + /// ## encrypt secret with the public key + /// $ echo -n my-secret-password | \ + /// openssl pkeyutl -in - \ + /// -encrypt \ + /// -pubin \ + /// -inkey public-key.pem \ + /// -pkeyopt rsa_padding_mode:oaep \ + /// -pkeyopt rsa_oaep_md:sha256 \ + /// -pkeyopt rsa_mgf1_md:sha256 > \ + /// my-secret-password.enc + /// + /// ## base64 encode the ciphertext + /// $ openssl base64 -in my-secret-password.enc + /// M7nUoba9EGVTu2LjNjBKGdGVBYjyS/i/AY+4yQMQF0Qf/RfUfX31Jw6+VO9OuThq + /// ylu/7ihX9XD4bM7yYdXnMv9p1OHQUlorSBSbb/J6n1W9UJhcp6um8Tw8/Isx4f75 + /// 4PskYS6f8Y2ItliGt1/A9iR5BTgGtJBwOxMlgoX2Ggq+Nh4E5SbdoaE5o6CO1nBx + /// eIPsPEebQ6qC4JehQM3IGuV/lrm58+hZhaXAqNzX1cEYyAt5GYqJIVCiI585SUYs + /// wRToGyTgaN+zthF0HP9IWlR4Am4LmJ/1OcePTnYw11CkU8wNRbDzVAzogwNH+rXr + /// LTmf7hxVjBm6bBSVSNFcBKAXFlllubSfIeZ5hgzGqn54OmSf6odO12L5JxllddHc + /// yAd54vWKs2kJtnsKV2V4ZdkI0w6y1TeI67baFZDNGo6qsCpFMPnvv7d46Pg2VOp1 + /// J6Ivner0NnNHE4MzNmpZRk8WXMwqq4P/gTiT7F/aCX6oFCUQ4AWPQhJYh2dkcOmL + /// IP+47Veb10aFn61F1CJwpmOOiGNXKdDT1vK8CMnnwhm825K0q/q9Zqpzc1+1ae1z + /// mSqol1zCoa88CuSN6nTLQlVnN/dzfrGbc0boJPaM0iGhHtSzHk4SWg84LhiJB1q9 + /// A9XFJmOVdkvRY9nnz/iVLAdd0Q3vFtLqCdUYsNN2yh4= + /// + /// ## optionally calculate the CRC32 of the ciphertext + /// $ go get github.com/binxio/crc32 + /// $ $GOPATH/bin/crc32 -polynomial castagnoli < my-secret-password.enc + /// 12c59e54 + /// ``` + /// + /// Finally, reference the encrypted ciphertext in your resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Random = Pulumi.Random; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sqlUserPassword = Gcp.Kms.GetKMSSecretAsymmetric.Invoke(new() + /// { + /// CryptoKeyVersion = myCryptoKey.Id, + /// Crc32 = "12c59e54", + /// Ciphertext = @" M7nUoba9EGVTu2LjNjBKGdGVBYjyS/i/AY+4yQMQF0Qf/RfUfX31Jw6+VO9OuThq + /// ylu/7ihX9XD4bM7yYdXnMv9p1OHQUlorSBSbb/J6n1W9UJhcp6um8Tw8/Isx4f75 + /// 4PskYS6f8Y2ItliGt1/A9iR5BTgGtJBwOxMlgoX2Ggq+Nh4E5SbdoaE5o6CO1nBx + /// eIPsPEebQ6qC4JehQM3IGuV/lrm58+hZhaXAqNzX1cEYyAt5GYqJIVCiI585SUYs + /// wRToGyTgaN+zthF0HP9IWlR4Am4LmJ/1OcePTnYw11CkU8wNRbDzVAzogwNH+rXr + /// LTmf7hxVjBm6bBSVSNFcBKAXFlllubSfIeZ5hgzGqn54OmSf6odO12L5JxllddHc + /// yAd54vWKs2kJtnsKV2V4ZdkI0w6y1TeI67baFZDNGo6qsCpFMPnvv7d46Pg2VOp1 + /// J6Ivner0NnNHE4MzNmpZRk8WXMwqq4P/gTiT7F/aCX6oFCUQ4AWPQhJYh2dkcOmL + /// IP+47Veb10aFn61F1CJwpmOOiGNXKdDT1vK8CMnnwhm825K0q/q9Zqpzc1+1ae1z + /// mSqol1zCoa88CuSN6nTLQlVnN/dzfrGbc0boJPaM0iGhHtSzHk4SWg84LhiJB1q9 + /// A9XFJmOVdkvRY9nnz/iVLAdd0Q3vFtLqCdUYsNN2yh4= + /// ", + /// }); + /// + /// var dbNameSuffix = new Random.RandomId("db_name_suffix", new() + /// { + /// ByteLength = 4, + /// }); + /// + /// var main = new Gcp.Sql.DatabaseInstance("main", new() + /// { + /// Name = dbNameSuffix.Hex.Apply(hex => $"main-instance-{hex}"), + /// DatabaseVersion = "MYSQL_5_7", + /// Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs + /// { + /// Tier = "db-f1-micro", + /// }, + /// }); + /// + /// var users = new Gcp.Sql.User("users", new() + /// { + /// Name = "me", + /// Instance = main.Name, + /// Host = "me.com", + /// Password = sqlUserPasswordGoogleKmsSecret.Plaintext, + /// }); + /// + /// }); + /// ``` + /// + /// This will result in a Cloud SQL user being created with password `my-secret-password`. + /// + public static Output Invoke(GetKMSSecretAsymmetricInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args ?? new GetKMSSecretAsymmetricInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs b/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs index 269d60bcff..db731a3c89 100644 --- a/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs +++ b/sdk/dotnet/Kms/GetKMSSecretCiphertext.cs @@ -226,6 +226,114 @@ public static Task InvokeAsync(GetKMSSecretCiphert /// public static Output Invoke(GetKMSSecretCiphertextInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args ?? new GetKMSSecretCiphertextInvokeArgs(), options.WithDefaults()); + + /// + /// !> **Warning:** This data source is deprecated. Use the `gcp.kms.SecretCiphertext` **resource** instead. + /// + /// This data source allows you to encrypt data with Google Cloud KMS and use the + /// ciphertext within your resource definitions. + /// + /// For more information see + /// [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). + /// + /// > **NOTE:** Using this data source will allow you to conceal secret data within your + /// resource definitions, but it does not take care of protecting that data in the + /// logging output, plan output, or state output. Please take care to secure your secret + /// data outside of resource definitions. + /// + /// ## Example Usage + /// + /// First, create a KMS KeyRing and CryptoKey using the resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myKeyRing = new Gcp.Kms.KeyRing("my_key_ring", new() + /// { + /// Project = "my-project", + /// Name = "my-key-ring", + /// Location = "us-central1", + /// }); + /// + /// var myCryptoKey = new Gcp.Kms.CryptoKey("my_crypto_key", new() + /// { + /// Name = "my-crypto-key", + /// KeyRing = myKeyRing.Id, + /// }); + /// + /// }); + /// ``` + /// + /// Next, encrypt some sensitive information and use the encrypted data in your resource definitions: + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myPassword = Gcp.Kms.GetKMSSecretCiphertext.Invoke(new() + /// { + /// CryptoKey = myCryptoKey.Id, + /// Plaintext = "my-secret-password", + /// }); + /// + /// var instance = new Gcp.Compute.Instance("instance", new() + /// { + /// NetworkInterfaces = new[] + /// { + /// new Gcp.Compute.Inputs.InstanceNetworkInterfaceArgs + /// { + /// AccessConfigs = new[] + /// { + /// null, + /// }, + /// Network = "default", + /// }, + /// }, + /// Name = "test", + /// MachineType = "e2-medium", + /// Zone = "us-central1-a", + /// BootDisk = new Gcp.Compute.Inputs.InstanceBootDiskArgs + /// { + /// InitializeParams = new Gcp.Compute.Inputs.InstanceBootDiskInitializeParamsArgs + /// { + /// Image = "debian-cloud/debian-11", + /// }, + /// }, + /// Metadata = + /// { + /// { "password", myPassword.Apply(getKMSSecretCiphertextResult => getKMSSecretCiphertextResult.Ciphertext) }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// The resulting instance can then access the encrypted password from its metadata + /// and decrypt it, e.g. using the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/decrypt)): + /// + /// ```bash + /// $ curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/password \ + /// > | base64 -d | gcloud kms decrypt \ + /// > --project my-project \ + /// > --location us-central1 \ + /// > --keyring my-key-ring \ + /// > --key my-crypto-key \ + /// > --plaintext-file - \ + /// > --ciphertext-file - \ + /// my-secret-password + /// ``` + /// + public static Output Invoke(GetKMSSecretCiphertextInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args ?? new GetKMSSecretCiphertextInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs b/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs index 7565faf73c..9b9e713c44 100644 --- a/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs +++ b/sdk/dotnet/Kms/GetKeyRingIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetKeyRingIamPolicyArg /// public static Output Invoke(GetKeyRingIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args ?? new GetKeyRingIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Google Cloud KMS key ring. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var testKeyRingIamPolicy = Gcp.Kms.GetKeyRingIamPolicy.Invoke(new() + /// { + /// KeyRingId = "{project_id}/{location_name}/{key_ring_name}", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetKeyRingIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args ?? new GetKeyRingIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Kms/GetKeyRings.cs b/sdk/dotnet/Kms/GetKeyRings.cs index f82a8d0fac..d60b79a518 100644 --- a/sdk/dotnet/Kms/GetKeyRings.cs +++ b/sdk/dotnet/Kms/GetKeyRings.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetKeyRingsArgs args, InvokeOp public static Output Invoke(GetKeyRingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRings:getKeyRings", args ?? new GetKeyRingsInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetKeyRingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:kms/getKeyRings:getKeyRings", args ?? new GetKeyRingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetFolderSettings.cs b/sdk/dotnet/Logging/GetFolderSettings.cs index 8c742a951d..605e121af6 100644 --- a/sdk/dotnet/Logging/GetFolderSettings.cs +++ b/sdk/dotnet/Logging/GetFolderSettings.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetFolderSettingsArgs ar /// public static Output Invoke(GetFolderSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getFolderSettings:getFolderSettings", args ?? new GetFolderSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the settings associated with a folder. + /// + /// To get more information about LoggingFolderSettings, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/folders/getSettings) + /// * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + /// + /// ## Example Usage + /// + /// ### Logging Folder Settings Basic + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var settings = Gcp.Logging.GetFolderSettings.Invoke(new() + /// { + /// Folder = "my-folder-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFolderSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getFolderSettings:getFolderSettings", args ?? new GetFolderSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetLogViewIamPolicy.cs b/sdk/dotnet/Logging/GetLogViewIamPolicy.cs index eac4f8d9e2..cfe9dfcd13 100644 --- a/sdk/dotnet/Logging/GetLogViewIamPolicy.cs +++ b/sdk/dotnet/Logging/GetLogViewIamPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetLogViewIamPolicyArg /// public static Output Invoke(GetLogViewIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args ?? new GetLogViewIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for logview + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Logging.GetLogViewIamPolicy.Invoke(new() + /// { + /// Parent = loggingLogView.Parent, + /// Location = loggingLogView.Location, + /// Bucket = loggingLogView.Bucket, + /// Name = loggingLogView.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetLogViewIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args ?? new GetLogViewIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetOrganizationSettings.cs b/sdk/dotnet/Logging/GetOrganizationSettings.cs index 0c275c90b7..808903339e 100644 --- a/sdk/dotnet/Logging/GetOrganizationSettings.cs +++ b/sdk/dotnet/Logging/GetOrganizationSettings.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetOrganizationSet /// public static Output Invoke(GetOrganizationSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getOrganizationSettings:getOrganizationSettings", args ?? new GetOrganizationSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the settings associated with a organization. + /// + /// To get more information about LoggingOrganizationSettings, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/organizations/getSettings) + /// * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + /// + /// ## Example Usage + /// + /// ### Logging Organization Settings Basic + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var settings = Gcp.Logging.GetOrganizationSettings.Invoke(new() + /// { + /// Organization = "my-organization-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getOrganizationSettings:getOrganizationSettings", args ?? new GetOrganizationSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetProjectCmekSettings.cs b/sdk/dotnet/Logging/GetProjectCmekSettings.cs index 07d924a636..a22a77270c 100644 --- a/sdk/dotnet/Logging/GetProjectCmekSettings.cs +++ b/sdk/dotnet/Logging/GetProjectCmekSettings.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetProjectCmekSetti /// public static Output Invoke(GetProjectCmekSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args ?? new GetProjectCmekSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the customer-managed encryption key (CMEK) settings associated with a project. + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getCmekSettings) + /// * [Enable CMEK](https://cloud.google.com/logging/docs/routing/managed-encryption-storage#enable). + /// + /// ## Example Usage + /// + /// ### Logging Project Cmek Settings Basic + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var cmekSettings = Gcp.Logging.GetProjectCmekSettings.Invoke(new() + /// { + /// Project = "my-project-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectCmekSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args ?? new GetProjectCmekSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetProjectSettings.cs b/sdk/dotnet/Logging/GetProjectSettings.cs index f5853c607a..251ae522aa 100644 --- a/sdk/dotnet/Logging/GetProjectSettings.cs +++ b/sdk/dotnet/Logging/GetProjectSettings.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetProjectSettingsArgs /// public static Output Invoke(GetProjectSettingsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectSettings:getProjectSettings", args ?? new GetProjectSettingsInvokeArgs(), options.WithDefaults()); + + /// + /// Describes the settings associated with a project. + /// + /// To get more information about LoggingProjectSettings, see: + /// + /// * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getSettings) + /// * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + /// + /// ## Example Usage + /// + /// ### Logging Project Settings Basic + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var settings = Gcp.Logging.GetProjectSettings.Invoke(new() + /// { + /// Project = "my-project-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectSettingsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getProjectSettings:getProjectSettings", args ?? new GetProjectSettingsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Logging/GetSink.cs b/sdk/dotnet/Logging/GetSink.cs index 23eb696abb..fac7990c89 100644 --- a/sdk/dotnet/Logging/GetSink.cs +++ b/sdk/dotnet/Logging/GetSink.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetSinkArgs args, InvokeOptions? o /// public static Output Invoke(GetSinkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getSink:getSink", args ?? new GetSinkInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get a project, folder, organization or billing account logging sink details. + /// To get more information about Service, see: + /// + /// [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks) + /// + /// ## Example Usage + /// + /// ### Retrieve Project Logging Sink Basic + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var project_sink = Gcp.Logging.GetSink.Invoke(new() + /// { + /// Id = "projects/0123456789/sinks/my-sink-name", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSinkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:logging/getSink:getSink", args ?? new GetSinkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetAppEngineService.cs b/sdk/dotnet/Monitoring/GetAppEngineService.cs index 2f1c09ca45..9e4c97a998 100644 --- a/sdk/dotnet/Monitoring/GetAppEngineService.cs +++ b/sdk/dotnet/Monitoring/GetAppEngineService.cs @@ -174,6 +174,88 @@ public static Task InvokeAsync(GetAppEngineServiceArg /// public static Output Invoke(GetAppEngineServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getAppEngineService:getAppEngineService", args ?? new GetAppEngineServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// An App Engine monitoring service is automatically created by GCP to monitor + /// App Engine services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring App Engine Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var bucket = new Gcp.Storage.Bucket("bucket", new() + /// { + /// Name = "appengine-static-content", + /// Location = "US", + /// }); + /// + /// var @object = new Gcp.Storage.BucketObject("object", new() + /// { + /// Name = "hello-world.zip", + /// Bucket = bucket.Name, + /// Source = new FileAsset("./test-fixtures/hello-world.zip"), + /// }); + /// + /// var myapp = new Gcp.AppEngine.StandardAppVersion("myapp", new() + /// { + /// VersionId = "v1", + /// Service = "myapp", + /// Runtime = "nodejs20", + /// Entrypoint = new Gcp.AppEngine.Inputs.StandardAppVersionEntrypointArgs + /// { + /// Shell = "node ./app.js", + /// }, + /// Deployment = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentArgs + /// { + /// Zip = new Gcp.AppEngine.Inputs.StandardAppVersionDeploymentZipArgs + /// { + /// SourceUrl = Output.Tuple(bucket.Name, @object.Name).Apply(values => + /// { + /// var bucketName = values.Item1; + /// var objectName = values.Item2; + /// return $"https://storage.googleapis.com/{bucketName}/{objectName}"; + /// }), + /// }, + /// }, + /// EnvVariables = + /// { + /// { "port", "8080" }, + /// }, + /// DeleteServiceOnDestroy = false, + /// }); + /// + /// // Monitors the default AppEngine service + /// var srv = Gcp.Monitoring.GetAppEngineService.Invoke(new() + /// { + /// ModuleId = myapp.Service, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAppEngineServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getAppEngineService:getAppEngineService", args ?? new GetAppEngineServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetClusterIstioService.cs b/sdk/dotnet/Monitoring/GetClusterIstioService.cs index eeaf09f153..a7a6467faa 100644 --- a/sdk/dotnet/Monitoring/GetClusterIstioService.cs +++ b/sdk/dotnet/Monitoring/GetClusterIstioService.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetClusterIstioServ /// public static Output Invoke(GetClusterIstioServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getClusterIstioService:getClusterIstioService", args ?? new GetClusterIstioServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// An Cluster Istio monitoring service is automatically created by GCP to monitor + /// Cluster Istio services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring Cluster Istio Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Monitors the default ClusterIstio service + /// var @default = Gcp.Monitoring.GetClusterIstioService.Invoke(new() + /// { + /// Location = "us-west2-a", + /// ClusterName = "west", + /// ServiceNamespace = "istio-system", + /// ServiceName = "istio-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClusterIstioServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getClusterIstioService:getClusterIstioService", args ?? new GetClusterIstioServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs b/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs index fa809bad21..6daeb79e2e 100644 --- a/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs +++ b/sdk/dotnet/Monitoring/GetIstioCanonicalService.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetIstioCanonical /// public static Output Invoke(GetIstioCanonicalServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args ?? new GetIstioCanonicalServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// A monitoring Istio Canonical Service is automatically created by GCP to monitor + /// Istio Canonical Services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring Istio Canonical Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Monitors the default MeshIstio service + /// var @default = Gcp.Monitoring.GetIstioCanonicalService.Invoke(new() + /// { + /// MeshUid = "proj-573164786102", + /// CanonicalServiceNamespace = "istio-system", + /// CanonicalService = "prometheus", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIstioCanonicalServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args ?? new GetIstioCanonicalServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetMeshIstioService.cs b/sdk/dotnet/Monitoring/GetMeshIstioService.cs index 364e7a7284..f48c9d4dcb 100644 --- a/sdk/dotnet/Monitoring/GetMeshIstioService.cs +++ b/sdk/dotnet/Monitoring/GetMeshIstioService.cs @@ -96,6 +96,49 @@ public static Task InvokeAsync(GetMeshIstioServiceArg /// public static Output Invoke(GetMeshIstioServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getMeshIstioService:getMeshIstioService", args ?? new GetMeshIstioServiceInvokeArgs(), options.WithDefaults()); + + /// + /// A Monitoring Service is the root resource under which operational aspects of a + /// generic service are accessible. A service is some discrete, autonomous, and + /// network-accessible unit, designed to solve an individual concern + /// + /// An Mesh Istio monitoring service is automatically created by GCP to monitor + /// Mesh Istio services. + /// + /// + /// To get more information about Service, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + /// * How-to Guides + /// * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// ## Example Usage + /// + /// ### Monitoring Mesh Istio Service + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// // Monitors the default MeshIstio service + /// var @default = Gcp.Monitoring.GetMeshIstioService.Invoke(new() + /// { + /// MeshUid = "proj-573164786102", + /// ServiceNamespace = "istio-system", + /// ServiceName = "prometheus", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetMeshIstioServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getMeshIstioService:getMeshIstioService", args ?? new GetMeshIstioServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetNotificationChannel.cs b/sdk/dotnet/Monitoring/GetNotificationChannel.cs index a556fcc2c2..899aee07ea 100644 --- a/sdk/dotnet/Monitoring/GetNotificationChannel.cs +++ b/sdk/dotnet/Monitoring/GetNotificationChannel.cs @@ -150,6 +150,76 @@ public static Task InvokeAsync(GetNotificationChan /// public static Output Invoke(GetNotificationChannelInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getNotificationChannel:getNotificationChannel", args ?? new GetNotificationChannelInvokeArgs(), options.WithDefaults()); + + /// + /// A NotificationChannel is a medium through which an alert is delivered + /// when a policy violation is detected. Examples of channels include email, SMS, + /// and third-party messaging applications. Fields containing sensitive information + /// like authentication tokens or contact info are only partially populated on retrieval. + /// + /// + /// To get more information about NotificationChannel, see: + /// + /// * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels) + /// * How-to Guides + /// * [Notification Options](https://cloud.google.com/monitoring/support/notification-options) + /// * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + /// + /// + /// ## Example Usage + /// + /// ### Notification Channel Basic + /// + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.Monitoring.GetNotificationChannel.Invoke(new() + /// { + /// DisplayName = "Test Notification Channel", + /// }); + /// + /// var alertPolicy = new Gcp.Monitoring.AlertPolicy("alert_policy", new() + /// { + /// DisplayName = "My Alert Policy", + /// NotificationChannels = new[] + /// { + /// basic.Apply(getNotificationChannelResult => getNotificationChannelResult.Name), + /// }, + /// Combiner = "OR", + /// Conditions = new[] + /// { + /// new Gcp.Monitoring.Inputs.AlertPolicyConditionArgs + /// { + /// DisplayName = "test condition", + /// ConditionThreshold = new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdArgs + /// { + /// Filter = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"", + /// Duration = "60s", + /// Comparison = "COMPARISON_GT", + /// Aggregations = new[] + /// { + /// new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdAggregationArgs + /// { + /// AlignmentPeriod = "60s", + /// PerSeriesAligner = "ALIGN_RATE", + /// }, + /// }, + /// }, + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNotificationChannelInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getNotificationChannel:getNotificationChannel", args ?? new GetNotificationChannelInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetSecretVersion.cs b/sdk/dotnet/Monitoring/GetSecretVersion.cs index 730c5a4f20..3c695a9d6a 100644 --- a/sdk/dotnet/Monitoring/GetSecretVersion.cs +++ b/sdk/dotnet/Monitoring/GetSecretVersion.cs @@ -59,6 +59,30 @@ public static Task InvokeAsync(GetSecretVersionArgs args /// public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new() + /// { + /// Secret = "my-secret", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs b/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs index 6e423e42c7..5675b0125a 100644 --- a/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs +++ b/sdk/dotnet/Monitoring/GetUptimeCheckIPs.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(InvokeOptions? options = /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Returns the list of IP addresses that checkers run from. For more information see + /// the [official documentation](https://cloud.google.com/monitoring/uptime-checks#get-ips). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ips = Gcp.Monitoring.GetUptimeCheckIPs.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["ipList"] = ips.Apply(getUptimeCheckIPsResult => getUptimeCheckIPsResult.UptimeCheckIps), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs b/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs index e4e1d8dfc8..c7da97798a 100644 --- a/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs +++ b/sdk/dotnet/NetworkSecurity/GetAddressGroupIamPolicy.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetAddressGroupIa /// public static Output Invoke(GetAddressGroupIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args ?? new GetAddressGroupIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for projectaddressgroup + /// + public static Output Invoke(GetAddressGroupIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args ?? new GetAddressGroupIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs b/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs index e227b44cd9..19a637d935 100644 --- a/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Notebooks/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Notebooks.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = instance.Project, + /// Location = instance.Location, + /// InstanceName = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs b/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs index 2c57468dd3..a1970a1a05 100644 --- a/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs +++ b/sdk/dotnet/Notebooks/GetRuntimeIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRuntimeIamPolicyArg /// public static Output Invoke(GetRuntimeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args ?? new GetRuntimeIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for runtime + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Notebooks.GetRuntimeIamPolicy.Invoke(new() + /// { + /// Project = runtime.Project, + /// Location = runtime.Location, + /// RuntimeName = runtime.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRuntimeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args ?? new GetRuntimeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs b/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs index ac416ff0c4..1507662b8b 100644 --- a/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs +++ b/sdk/dotnet/OracleDatabase/GetAutonomousDatabase.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetAutonomousDatabas /// public static Output Invoke(GetAutonomousDatabaseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args ?? new GetAutonomousDatabaseInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about an AutonomousDatabase. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_instance = Gcp.OracleDatabase.GetAutonomousDatabase.Invoke(new() + /// { + /// Location = "us-east4", + /// AutonomousDatabaseId = "autonomous_database_id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAutonomousDatabaseInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args ?? new GetAutonomousDatabaseInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs b/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs index 94ebef13d6..012e1fb34f 100644 --- a/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs +++ b/sdk/dotnet/OracleDatabase/GetAutonomousDatabases.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetAutonomousDataba /// public static Output Invoke(GetAutonomousDatabasesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args ?? new GetAutonomousDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// List all AutonomousDatabases. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_adbs = Gcp.OracleDatabase.GetAutonomousDatabases.Invoke(new() + /// { + /// Location = "us-east4", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAutonomousDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args ?? new GetAutonomousDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs index 2d70c6f151..4234cc6b28 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructure.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetCloudExad /// public static Output Invoke(GetCloudExadataInfrastructureInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args ?? new GetCloudExadataInfrastructureInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about an ExadataInfrastructure. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_instance = Gcp.OracleDatabase.GetCloudExadataInfrastructure.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudExadataInfrastructureId = "exadata-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudExadataInfrastructureInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args ?? new GetCloudExadataInfrastructureInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs index b67ad7ff81..0a84e4c7c2 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudExadataInfrastructures.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetCloudExa /// public static Output Invoke(GetCloudExadataInfrastructuresInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args ?? new GetCloudExadataInfrastructuresInvokeArgs(), options.WithDefaults()); + + /// + /// List all ExadataInfrastructures. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myExadatas = Gcp.OracleDatabase.GetCloudExadataInfrastructures.Invoke(new() + /// { + /// Location = "us-east4", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudExadataInfrastructuresInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args ?? new GetCloudExadataInfrastructuresInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs b/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs index 9222e6a73b..4cc6d8a12f 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudVmCluster.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetCloudVmClusterArgs ar /// public static Output Invoke(GetCloudVmClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args ?? new GetCloudVmClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a CloudVmCluster. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_vmcluster = Gcp.OracleDatabase.GetCloudVmCluster.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudVmClusterId = "vmcluster-id", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudVmClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args ?? new GetCloudVmClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs b/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs index 5031242d01..503beaac57 100644 --- a/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs +++ b/sdk/dotnet/OracleDatabase/GetCloudVmClusters.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetCloudVmClustersArgs /// public static Output Invoke(GetCloudVmClustersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args ?? new GetCloudVmClustersInvokeArgs(), options.WithDefaults()); + + /// + /// List all CloudVmClusters. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myVmclusters = Gcp.OracleDatabase.GetCloudVmClusters.Invoke(new() + /// { + /// Location = "us-east4", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetCloudVmClustersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args ?? new GetCloudVmClustersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetDbNodes.cs b/sdk/dotnet/OracleDatabase/GetDbNodes.cs index 54df9a0935..80b9bc2995 100644 --- a/sdk/dotnet/OracleDatabase/GetDbNodes.cs +++ b/sdk/dotnet/OracleDatabase/GetDbNodes.cs @@ -146,6 +146,74 @@ public static Task InvokeAsync(GetDbNodesArgs args, InvokeOpti /// public static Output Invoke(GetDbNodesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbNodes:getDbNodes", args ?? new GetDbNodesInvokeArgs(), options.WithDefaults()); + + /// + /// List all DbNodes of a Cloud VmCluster. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters.dbNodes). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDbNodes = Gcp.OracleDatabase.GetDbNodes.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudVmCluster = "vmcluster-id", + /// }); + /// + /// }); + /// ``` + /// + /// ## Attributes reference + /// + /// The following attributes are exported: + /// + /// * `db_nodes` - List of dbNodes. Structure is documented below. + /// + /// <a name="nested_dbnodes"></a> The `db_nodes` block supports: + /// + /// * `name` - The name of the database node resource in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}/dbNodes/{db_node} + /// + /// * `properties` - Various properties of the database node. Structure is documented below. + /// + /// <a name="nested_properties"></a> The `properties` block supports: + /// + /// * `ocid`- OCID of database node. + /// + /// * `ocpu_count` - OCPU count per database node. + /// + /// * `memory_size_gb` - The allocated memory in GBs on the database node. + /// + /// * `db_node_storage_size_gb` - The allocated local node storage in GBs on the database node. + /// + /// * `db_server_ocid` - The OCID of the Database server associated with the database node. + /// + /// * `hostname` - The host name for the database node. + /// + /// * `state` - State of the database node. + /// <a name="nested_states"></a>Possible values for `state` are:<br> + /// `PROVISIONING` - Indicates that the resource is being provisioned.<br> + /// `AVAILABLE` - Indicates that the resource is available.<br> + /// `UPDATING` - Indicates that the resource is being updated.<br> + /// `STOPPING` - Indicates that the resource is being stopped.<br> + /// `STOPPED` - Indicates that the resource is stopped.<br> + /// `STARTING` - Indicates that the resource is being started.<br> + /// `TERMINATING` - Indicates that the resource is being terminated.<br> + /// `TERMINATED` - Indicates that the resource is terminated.<br> + /// `FAILED` - Indicates that the resource has failed.<br> + /// + /// * `total_cpu_core_count` - The total number of CPU cores reserved on the database node. + /// + public static Output Invoke(GetDbNodesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbNodes:getDbNodes", args ?? new GetDbNodesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/OracleDatabase/GetDbServers.cs b/sdk/dotnet/OracleDatabase/GetDbServers.cs index 1e12d0e946..ff6cf22663 100644 --- a/sdk/dotnet/OracleDatabase/GetDbServers.cs +++ b/sdk/dotnet/OracleDatabase/GetDbServers.cs @@ -146,6 +146,74 @@ public static Task InvokeAsync(GetDbServersArgs args, Invoke /// public static Output Invoke(GetDbServersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbServers:getDbServers", args ?? new GetDbServersInvokeArgs(), options.WithDefaults()); + + /// + /// List all DbServers of a Cloud Exdata Infrastructure. + /// + /// For more information see the + /// [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures.dbServers). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myDbServers = Gcp.OracleDatabase.GetDbServers.Invoke(new() + /// { + /// Location = "us-east4", + /// CloudExadataInfrastructure = "exadata-id", + /// }); + /// + /// }); + /// ``` + /// + /// ## Attributes reference + /// + /// The following attributes are exported: + /// + /// * `db_servers` - List of dbServers. Structure is documented below. + /// + /// <a name="nested_dbservers"></a> The `db_servers` block supports: + /// + /// * `display_name` - User friendly name for the resource. + /// + /// * `properties` - Various properties of the databse server. Structure is documented below. + /// + /// <a name="nested_properties"></a> The `properties` block supports: + /// + /// * `ocid` - The OCID of database server. + /// + /// * `ocpu_count` - The OCPU count per database. + /// + /// * `max_ocpu_count` - The total number of CPU cores available. + /// + /// * `memory_size_gb` - The allocated memory in gigabytes on the database server. + /// + /// * `max_memory_size_gb` - The total memory available in gigabytes. + /// + /// * `db_node_storage_size_gb` - The local storage per VM. + /// + /// * `max_db_node_storage_size_gb` - The total local node storage available in GBs. + /// + /// * `vm_count` - The VM count per database. + /// + /// * `state` - The current state of the database server. + /// <a name="nested_states"></a>Allowed values for `state` are:<br> + /// `CREATING` - Indicates that the resource is being created.<br> + /// `AVAILABLE` - Indicates that the resource is available.<br> + /// `UNAVAILABLE` - Indicates that the resource is unavailable.<br> + /// `DELETING` - Indicates that the resource is being deleted.<br> + /// `DELETED` - Indicates that the resource has been deleted.<br> + /// + /// * `db_node_ids` - The OCID of database nodes associated with the database server. + /// + public static Output Invoke(GetDbServersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:oracledatabase/getDbServers:getDbServers", args ?? new GetDbServersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetActiveFolder.cs b/sdk/dotnet/Organizations/GetActiveFolder.cs index fd669f418b..571b014194 100644 --- a/sdk/dotnet/Organizations/GetActiveFolder.cs +++ b/sdk/dotnet/Organizations/GetActiveFolder.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetActiveFolderArgs args, /// public static Output Invoke(GetActiveFolderInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getActiveFolder:getActiveFolder", args ?? new GetActiveFolderInvokeArgs(), options.WithDefaults()); + + /// + /// Get an active folder within GCP by `display_name` and `parent`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var department1 = Gcp.Organizations.GetActiveFolder.Invoke(new() + /// { + /// DisplayName = "Department 1", + /// Parent = "organizations/1234567", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetActiveFolderInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getActiveFolder:getActiveFolder", args ?? new GetActiveFolderInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetBillingAccount.cs b/sdk/dotnet/Organizations/GetBillingAccount.cs index 70b98032e4..21015a31ca 100644 --- a/sdk/dotnet/Organizations/GetBillingAccount.cs +++ b/sdk/dotnet/Organizations/GetBillingAccount.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetBillingAccountArgs? a /// public static Output Invoke(GetBillingAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getBillingAccount:getBillingAccount", args ?? new GetBillingAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google Billing Account. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var acct = Gcp.Organizations.GetBillingAccount.Invoke(new() + /// { + /// DisplayName = "My Billing Account", + /// Open = true, + /// }); + /// + /// var myProject = new Gcp.Organizations.Project("my_project", new() + /// { + /// Name = "My Project", + /// ProjectId = "your-project-id", + /// OrgId = "1234567", + /// BillingAccount = acct.Apply(getBillingAccountResult => getBillingAccountResult.Id), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBillingAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getBillingAccount:getBillingAccount", args ?? new GetBillingAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetClientConfig.cs b/sdk/dotnet/Organizations/GetClientConfig.cs index 8c51727286..1c2b5b2ca5 100644 --- a/sdk/dotnet/Organizations/GetClientConfig.cs +++ b/sdk/dotnet/Organizations/GetClientConfig.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(InvokeOptions? options = n /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientConfig:getClientConfig", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var current = Gcp.Organizations.GetClientConfig.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["project"] = current.Apply(getClientConfigResult => getClientConfigResult.Project), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientConfig:getClientConfig", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs b/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs index cbeb165ced..74ab818594 100644 --- a/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs +++ b/sdk/dotnet/Organizations/GetClientOpenIdUserInfo.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(InvokeOptions? opt /// public static Output Invoke(InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", InvokeArgs.Empty, options.WithDefaults()); + + /// + /// Get OpenID userinfo about the credentials used with the Google provider, + /// specifically the email. + /// + /// This datasource enables you to export the email of the account you've + /// authenticated the provider with; this can be used alongside + /// `data.google_client_config`'s `access_token` to perform OpenID Connect + /// authentication with GKE and configure an RBAC role for the email used. + /// + /// > This resource will only work as expected if the provider is configured to + /// use the `https://www.googleapis.com/auth/userinfo.email` scope! You will + /// receive an error otherwise. The provider uses this scope by default. + /// + /// ## Example Usage + /// + /// ### Exporting An Email + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var me = Gcp.Organizations.GetClientOpenIdUserInfo.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["my-email"] = me.Apply(getClientOpenIdUserInfoResult => getClientOpenIdUserInfoResult.Email), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", InvokeArgs.Empty, options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetFolder.cs b/sdk/dotnet/Organizations/GetFolder.cs index ebbdefbbb6..e18a5baff3 100644 --- a/sdk/dotnet/Organizations/GetFolder.cs +++ b/sdk/dotnet/Organizations/GetFolder.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetFolderArgs args, InvokeOption /// public static Output Invoke(GetFolderInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolder:getFolder", args ?? new GetFolderInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google Cloud Folder. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myFolder1 = Gcp.Organizations.GetFolder.Invoke(new() + /// { + /// Folder = "folders/12345", + /// LookupOrganization = true, + /// }); + /// + /// var myFolder2 = Gcp.Organizations.GetFolder.Invoke(new() + /// { + /// Folder = "folders/23456", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["myFolder1Organization"] = myFolder1.Apply(getFolderResult => getFolderResult.Organization), + /// ["myFolder2Parent"] = myFolder2.Apply(getFolderResult => getFolderResult.Parent), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetFolderInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolder:getFolder", args ?? new GetFolderInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetFolders.cs b/sdk/dotnet/Organizations/GetFolders.cs index c490091546..a854ec4922 100644 --- a/sdk/dotnet/Organizations/GetFolders.cs +++ b/sdk/dotnet/Organizations/GetFolders.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetFoldersArgs args, InvokeOpti /// public static Output Invoke(GetFoldersInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about a set of folders based on a parent ID. See the + /// [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list) + /// for more details. + /// + /// ## Example Usage + /// + /// ### Searching For Folders At The Root Of An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_org_folders = Gcp.Organizations.GetFolders.Invoke(new() + /// { + /// ParentId = $"organizations/{organizationId}", + /// }); + /// + /// var first_folder = Gcp.Organizations.GetFolder.Invoke(new() + /// { + /// Folder = my_org_folders.Apply(getFoldersResult => getFoldersResult.Folders[0]?.Name), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetFoldersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getFolders:getFolders", args ?? new GetFoldersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetIAMPolicy.cs b/sdk/dotnet/Organizations/GetIAMPolicy.cs index 95d94d9769..46e41ea503 100644 --- a/sdk/dotnet/Organizations/GetIAMPolicy.cs +++ b/sdk/dotnet/Organizations/GetIAMPolicy.cs @@ -28,6 +28,15 @@ public static Task InvokeAsync(GetIAMPolicyArgs? args = null /// public static Output Invoke(GetIAMPolicyInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getIAMPolicy:getIAMPolicy", args ?? new GetIAMPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Generates an IAM policy document that may be referenced by and applied to + /// other Google Cloud Platform IAM resources, such as the `gcp.projects.IAMPolicy` resource. + /// + /// **Note:** Please review the documentation of the resource that you will be using the datasource with. Some resources such as `gcp.projects.IAMPolicy` and others have limitations in their API methods which are noted on their respective page. + /// + public static Output Invoke(GetIAMPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getIAMPolicy:getIAMPolicy", args ?? new GetIAMPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetOrganization.cs b/sdk/dotnet/Organizations/GetOrganization.cs index 467b30ba8e..5f5f0b1dcd 100644 --- a/sdk/dotnet/Organizations/GetOrganization.cs +++ b/sdk/dotnet/Organizations/GetOrganization.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetOrganizationArgs? args /// public static Output Invoke(GetOrganizationInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getOrganization:getOrganization", args ?? new GetOrganizationInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Organization. Note that you must have the `roles/resourcemanager.organizationViewer` role (or equivalent permissions) at the organization level to use this datasource. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var org = Gcp.Organizations.GetOrganization.Invoke(new() + /// { + /// Domain = "example.com", + /// }); + /// + /// var sales = new Gcp.Organizations.Folder("sales", new() + /// { + /// DisplayName = "Sales", + /// Parent = org.Apply(getOrganizationResult => getOrganizationResult.Name), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getOrganization:getOrganization", args ?? new GetOrganizationInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Organizations/GetProject.cs b/sdk/dotnet/Organizations/GetProject.cs index 78687aa5cb..6f87f8bc2b 100644 --- a/sdk/dotnet/Organizations/GetProject.cs +++ b/sdk/dotnet/Organizations/GetProject.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetProjectArgs? args = null, In /// public static Output Invoke(GetProjectInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get project details. + /// For more information see + /// [API](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var project = Gcp.Organizations.GetProject.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["projectNumber"] = project.Apply(getProjectResult => getProjectResult.Number), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetProjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:organizations/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs b/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs index 2dae6215b3..aa7c03e00b 100644 --- a/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs +++ b/sdk/dotnet/PrivilegedAccessManager/GetEntitlement.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetEntitlementArgs? args = /// public static Output Invoke(GetEntitlementInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args ?? new GetEntitlementInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Google Cloud Privileged Access Manager Entitlement. + /// + /// To get more information about Privileged Access Manager, see: + /// + /// * [API Documentation](https://cloud.google.com/iam/docs/reference/pam/rest) + /// * How-to guides + /// * [Official documentation](https://cloud.google.com/iam/docs/pam-overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_entitlement = Gcp.PrivilegedAccessManager.GetEntitlement.Invoke(new() + /// { + /// Parent = "projects/my-project", + /// Location = "global", + /// EntitlementId = "my-entitlement", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetEntitlementInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args ?? new GetEntitlementInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetIamPolicy.cs b/sdk/dotnet/Projects/GetIamPolicy.cs index 8ec4533bec..885050674c 100644 --- a/sdk/dotnet/Projects/GetIamPolicy.cs +++ b/sdk/dotnet/Projects/GetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a project. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Projects.GetIamPolicy.Invoke(new() + /// { + /// Project = "myproject", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetOrganizationPolicy.cs b/sdk/dotnet/Projects/GetOrganizationPolicy.cs index dc80a9f6f5..07341b8a5f 100644 --- a/sdk/dotnet/Projects/GetOrganizationPolicy.cs +++ b/sdk/dotnet/Projects/GetOrganizationPolicy.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetOrganizationPolic /// public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Allows management of Organization policies for a Google Project. For more information see + /// [the official + /// documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Projects.GetOrganizationPolicy.Invoke(new() + /// { + /// Project = "project-id", + /// Constraint = "constraints/serviceuser.services", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["version"] = policy.Apply(getOrganizationPolicyResult => getOrganizationPolicyResult.Version), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetOrganizationPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args ?? new GetOrganizationPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetProject.cs b/sdk/dotnet/Projects/GetProject.cs index 4d01fb2e10..437c3f337a 100644 --- a/sdk/dotnet/Projects/GetProject.cs +++ b/sdk/dotnet/Projects/GetProject.cs @@ -76,6 +76,39 @@ public static Task InvokeAsync(GetProjectArgs args, InvokeOpti /// public static Output Invoke(GetProjectInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieve information about a set of projects based on a filter. See the + /// [REST API](https://cloud.google.com/resource-manager/reference/rest/v1/projects/list) + /// for more details. + /// + /// ## Example Usage + /// + /// ### Searching For Projects About To Be Deleted In An Org + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_org_projects = Gcp.Projects.GetProject.Invoke(new() + /// { + /// Filter = "parent.id:012345678910 lifecycleState:DELETE_REQUESTED", + /// }); + /// + /// var deletion_candidate = Gcp.Organizations.GetProject.Invoke(new() + /// { + /// ProjectId = my_org_projects.Apply(getProjectResult => getProjectResult.Projects[0]?.ProjectId), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProject:getProject", args ?? new GetProjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Projects/GetProjectService.cs b/sdk/dotnet/Projects/GetProjectService.cs index be1acaf53e..c91199c4f9 100644 --- a/sdk/dotnet/Projects/GetProjectService.cs +++ b/sdk/dotnet/Projects/GetProjectService.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetProjectServiceArgs ar /// public static Output Invoke(GetProjectServiceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProjectService:getProjectService", args ?? new GetProjectServiceInvokeArgs(), options.WithDefaults()); + + /// + /// Verify the API service for the Google Cloud Platform project to see if it is enabled or not. + /// + /// For a list of services available, visit the [API library page](https://console.cloud.google.com/apis/library) + /// or run `gcloud services list --available`. + /// + /// This datasource requires the [Service Usage API](https://console.cloud.google.com/apis/library/serviceusage.googleapis.com) + /// to use. + /// + /// + /// To get more information about `gcp.projects.Service`, see: + /// + /// * [API documentation](https://cloud.google.com/service-usage/docs/reference/rest/v1/services) + /// * How-to Guides + /// * [Enabling and Disabling Services](https://cloud.google.com/service-usage/docs/enable-disable) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_project_service = Gcp.Projects.GetProjectService.Invoke(new() + /// { + /// Service = "my-project-service", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectServiceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:projects/getProjectService:getProjectService", args ?? new GetProjectServiceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs b/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs index d6c2eb4ebd..fa0969fa83 100644 --- a/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs +++ b/sdk/dotnet/PubSub/GetSchemaIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSchemaIamPolicyArgs /// public static Output Invoke(GetSchemaIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args ?? new GetSchemaIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for schema + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.PubSub.GetSchemaIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Schema = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSchemaIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args ?? new GetSchemaIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetSubscription.cs b/sdk/dotnet/PubSub/GetSubscription.cs index d82ac1e6cf..3fb6a63145 100644 --- a/sdk/dotnet/PubSub/GetSubscription.cs +++ b/sdk/dotnet/PubSub/GetSubscription.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSubscriptionArgs args, /// public static Output Invoke(GetSubscriptionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscription:getSubscription", args ?? new GetSubscriptionInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Pub/Sub Subscription. For more information see + /// the [official documentation](https://cloud.google.com/pubsub/docs/) + /// and [API](https://cloud.google.com/pubsub/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_pubsub_subscription = Gcp.PubSub.GetSubscription.Invoke(new() + /// { + /// Name = "my-pubsub-subscription", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubscriptionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscription:getSubscription", args ?? new GetSubscriptionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs b/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs index 3834edb81a..c9d4e61313 100644 --- a/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs +++ b/sdk/dotnet/PubSub/GetSubscriptionIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSubscriptionIa /// public static Output Invoke(GetSubscriptionIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args ?? new GetSubscriptionIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Pubsub subscription. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.PubSub.GetSubscriptionIamPolicy.Invoke(new() + /// { + /// Subscription = subscription.Id, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubscriptionIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args ?? new GetSubscriptionIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetTopic.cs b/sdk/dotnet/PubSub/GetTopic.cs index 13b75f5675..9b1504afa0 100644 --- a/sdk/dotnet/PubSub/GetTopic.cs +++ b/sdk/dotnet/PubSub/GetTopic.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetTopicArgs args, InvokeOptions? /// public static Output Invoke(GetTopicInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopic:getTopic", args ?? new GetTopicInvokeArgs(), options.WithDefaults()); + + /// + /// Get information about a Google Cloud Pub/Sub Topic. For more information see + /// the [official documentation](https://cloud.google.com/pubsub/docs/) + /// and [API](https://cloud.google.com/pubsub/docs/apis). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_pubsub_topic = Gcp.PubSub.GetTopic.Invoke(new() + /// { + /// Name = "my-pubsub-topic", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTopicInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopic:getTopic", args ?? new GetTopicInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/PubSub/GetTopicIamPolicy.cs b/sdk/dotnet/PubSub/GetTopicIamPolicy.cs index fe0c0f3dcc..ccbdcafa67 100644 --- a/sdk/dotnet/PubSub/GetTopicIamPolicy.cs +++ b/sdk/dotnet/PubSub/GetTopicIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetTopicIamPolicyArgs ar /// public static Output Invoke(GetTopicIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args ?? new GetTopicIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for topic + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.PubSub.GetTopicIamPolicy.Invoke(new() + /// { + /// Project = example.Project, + /// Topic = example.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTopicIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args ?? new GetTopicIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Redis/GetInstance.cs b/sdk/dotnet/Redis/GetInstance.cs index a141987215..1e9122c118 100644 --- a/sdk/dotnet/Redis/GetInstance.cs +++ b/sdk/dotnet/Redis/GetInstance.cs @@ -70,6 +70,36 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:redis/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get info about a Google Cloud Redis instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Redis.GetInstance.Invoke(new() + /// { + /// Name = "my-redis-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["instanceMemorySizeGb"] = myInstance.Apply(getInstanceResult => getInstanceResult.MemorySizeGb), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.ConnectMode), + /// ["instanceAuthorizedNetwork"] = myInstance.Apply(getInstanceResult => getInstanceResult.AuthorizedNetwork), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:redis/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RuntimeConfig/GetConfig.cs b/sdk/dotnet/RuntimeConfig/GetConfig.cs index 69ae95b535..5ff0e57c4a 100644 --- a/sdk/dotnet/RuntimeConfig/GetConfig.cs +++ b/sdk/dotnet/RuntimeConfig/GetConfig.cs @@ -54,6 +54,28 @@ public static Task InvokeAsync(GetConfigArgs args, InvokeOption /// public static Output Invoke(GetConfigInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfig:getConfig", args ?? new GetConfigInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var run_service = Gcp.RuntimeConfig.GetConfig.Invoke(new() + /// { + /// Name = "my-service", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConfigInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfig:getConfig", args ?? new GetConfigInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs b/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs index e97bb7ba3e..6eaa0faef7 100644 --- a/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs +++ b/sdk/dotnet/RuntimeConfig/GetConfigIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetConfigIamPolicyArgs public static Output Invoke(GetConfigIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args ?? new GetConfigIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetConfigIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args ?? new GetConfigIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/RuntimeConfig/GetVariable.cs b/sdk/dotnet/RuntimeConfig/GetVariable.cs index 5bd67a1dcd..1a10783a02 100644 --- a/sdk/dotnet/RuntimeConfig/GetVariable.cs +++ b/sdk/dotnet/RuntimeConfig/GetVariable.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetVariableArgs args, InvokeOp /// public static Output Invoke(GetVariableInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getVariable:getVariable", args ?? new GetVariableInvokeArgs(), options.WithDefaults()); + + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var run_service = Gcp.RuntimeConfig.GetVariable.Invoke(new() + /// { + /// Parent = "my-service", + /// Name = "prod-variables/hostname", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVariableInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:runtimeconfig/getVariable:getVariable", args ?? new GetVariableInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecret.cs b/sdk/dotnet/SecretManager/GetRegionalSecret.cs index c064c4a6bd..30bd452633 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecret.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecret.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegionalSecretArgs ar /// public static Output Invoke(GetRegionalSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args ?? new GetRegionalSecretInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Secret Manager Regional Secret + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var secretDatasource = Gcp.SecretManager.GetRegionalSecret.Invoke(new() + /// { + /// SecretId = "secretname", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args ?? new GetRegionalSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs b/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs index 7615937589..8d8d59191d 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecretIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRegionalSecr /// public static Output Invoke(GetRegionalSecretIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args ?? new GetRegionalSecretIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for regionalsecret + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecretManager.GetRegionalSecretIamPolicy.Invoke(new() + /// { + /// Project = regional_secret_basic.Project, + /// Location = regional_secret_basic.Location, + /// SecretId = regional_secret_basic.SecretId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args ?? new GetRegionalSecretIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs b/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs index 3f1bc73fc0..7b055b5b12 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecretVersion.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegionalSecret /// public static Output Invoke(GetRegionalSecretVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args ?? new GetRegionalSecretVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value and metadata from a Secret Manager regional secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the regional secret version only), see also the gcp.secretmanager.getRegionalSecretVersionAccess datasource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetRegionalSecretVersion.Invoke(new() + /// { + /// Secret = "my-secret", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args ?? new GetRegionalSecretVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs b/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs index beacd5d0e2..9e65f26c9e 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecretVersionAccess.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetRegional /// public static Output Invoke(GetRegionalSecretVersionAccessInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args ?? new GetRegionalSecretVersionAccessInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value from a Secret Manager regional secret version. This is similar to the gcp.secretmanager.RegionalSecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions/access). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var latest = Gcp.SecretManager.GetRegionalSecretVersionAccess.Invoke(new() + /// { + /// Secret = "my-secret", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretVersionAccessInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args ?? new GetRegionalSecretVersionAccessInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetRegionalSecrets.cs b/sdk/dotnet/SecretManager/GetRegionalSecrets.cs index 462b04fb6d..158538745f 100644 --- a/sdk/dotnet/SecretManager/GetRegionalSecrets.cs +++ b/sdk/dotnet/SecretManager/GetRegionalSecrets.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetRegionalSecretsArgs /// public static Output Invoke(GetRegionalSecretsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args ?? new GetRegionalSecretsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to list the Secret Manager Regional Secrets. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var secrets = Gcp.SecretManager.GetRegionalSecrets.Invoke(new() + /// { + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRegionalSecretsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args ?? new GetRegionalSecretsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecret.cs b/sdk/dotnet/SecretManager/GetSecret.cs index 1c86cce2b4..e4def2250c 100644 --- a/sdk/dotnet/SecretManager/GetSecret.cs +++ b/sdk/dotnet/SecretManager/GetSecret.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSecretArgs args, InvokeOption /// public static Output Invoke(GetSecretInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecret:getSecret", args ?? new GetSecretInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Secret Manager Secret + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.SecretManager.GetSecret.Invoke(new() + /// { + /// SecretId = "foobar", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecret:getSecret", args ?? new GetSecretInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs b/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs index 03f679d085..5f024f20fa 100644 --- a/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs +++ b/sdk/dotnet/SecretManager/GetSecretIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetSecretIamPolicyArgs /// public static Output Invoke(GetSecretIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args ?? new GetSecretIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for secret + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecretManager.GetSecretIamPolicy.Invoke(new() + /// { + /// Project = secret_basic.Project, + /// SecretId = secret_basic.SecretId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args ?? new GetSecretIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecretVersion.cs b/sdk/dotnet/SecretManager/GetSecretVersion.cs index 7f259f7afa..d004ed537d 100644 --- a/sdk/dotnet/SecretManager/GetSecretVersion.cs +++ b/sdk/dotnet/SecretManager/GetSecretVersion.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSecretVersionArgs args /// public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new() + /// { + /// Secret = "my-secret", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretVersionInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs b/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs index edfd9f9f8b..e222310f9f 100644 --- a/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs +++ b/sdk/dotnet/SecretManager/GetSecretVersionAccess.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetSecretVersionAcc /// public static Output Invoke(GetSecretVersionAccessInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args ?? new GetSecretVersionAccessInvokeArgs(), options.WithDefaults()); + + /// + /// Get the value from a Secret Manager secret version. This is similar to the gcp.secretmanager.SecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions/access). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var basic = Gcp.SecretManager.GetSecretVersionAccess.Invoke(new() + /// { + /// Secret = "my-secret", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretVersionAccessInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args ?? new GetSecretVersionAccessInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecretManager/GetSecrets.cs b/sdk/dotnet/SecretManager/GetSecrets.cs index 1281577e19..317e2d6e07 100644 --- a/sdk/dotnet/SecretManager/GetSecrets.cs +++ b/sdk/dotnet/SecretManager/GetSecrets.cs @@ -52,6 +52,27 @@ public static Task InvokeAsync(GetSecretsArgs? args = null, In /// public static Output Invoke(GetSecretsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to list the Secret Manager Secrets + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var secrets = Gcp.SecretManager.GetSecrets.Invoke(); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSecretsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:secretmanager/getSecrets:getSecrets", args ?? new GetSecretsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs b/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs index a56595a91f..5724f07e94 100644 --- a/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/SecureSourceManager/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecureSourceManager.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// InstanceId = @default.InstanceId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs b/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs index 4919eac131..aa3e9ff2e1 100644 --- a/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/SecureSourceManager/GetRepositoryIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetRepositoryIamPol /// public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for repository + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecureSourceManager.GetRepositoryIamPolicy.Invoke(new() + /// { + /// Project = @default.Project, + /// Location = @default.Location, + /// RepositoryId = @default.RepositoryId, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs b/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs index a24acd5484..7e41beeea2 100644 --- a/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs +++ b/sdk/dotnet/SecurityCenter/GetSourceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetSourceIamPolicyArgs /// public static Output Invoke(GetSourceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args ?? new GetSourceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for source + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecurityCenter.GetSourceIamPolicy.Invoke(new() + /// { + /// Source = customSource.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSourceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args ?? new GetSourceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs b/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs index e8e2a664c0..a1ef17c905 100644 --- a/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs +++ b/sdk/dotnet/SecurityCenter/GetV2OrganizationSourceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetV2Orga /// public static Output Invoke(GetV2OrganizationSourceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args ?? new GetV2OrganizationSourceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for organizationsource + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SecurityCenter.GetV2OrganizationSourceIamPolicy.Invoke(new() + /// { + /// Source = customSource.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetV2OrganizationSourceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args ?? new GetV2OrganizationSourceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccount.cs b/sdk/dotnet/ServiceAccount/GetAccount.cs index 350310e3f5..54133f4aaa 100644 --- a/sdk/dotnet/ServiceAccount/GetAccount.cs +++ b/sdk/dotnet/ServiceAccount/GetAccount.cs @@ -140,6 +140,71 @@ public static Task InvokeAsync(GetAccountArgs args, InvokeOpti /// public static Output Invoke(GetAccountInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccount:getAccount", args ?? new GetAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the service account from a project. For more information see + /// the official [API](https://cloud.google.com/compute/docs/access/service-accounts) documentation. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var objectViewer = Gcp.ServiceAccount.GetAccount.Invoke(new() + /// { + /// AccountId = "object-viewer", + /// }); + /// + /// }); + /// ``` + /// + /// + /// ### Save Key In Kubernetes Secret + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Kubernetes = Pulumi.Kubernetes; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myaccount = Gcp.ServiceAccount.GetAccount.Invoke(new() + /// { + /// AccountId = "myaccount-id", + /// }); + /// + /// var mykey = new Gcp.ServiceAccount.Key("mykey", new() + /// { + /// ServiceAccountId = myaccount.Apply(getAccountResult => getAccountResult.Name), + /// }); + /// + /// var google_application_credentials = new Kubernetes.Core.V1.Secret("google-application-credentials", new() + /// { + /// Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs + /// { + /// Name = "google-application-credentials", + /// }, + /// Data = + /// { + /// { "json", Std.Base64decode.Invoke(new() + /// { + /// Input = mykey.PrivateKey, + /// }).Apply(invoke => invoke.Result) }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccount:getAccount", args ?? new GetAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs b/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs index 7d772519fd..5d859ee58a 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountAccessToken.cs @@ -154,6 +154,78 @@ public static Task InvokeAsync(GetAccountAccessToke /// public static Output Invoke(GetAccountAccessTokenInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args ?? new GetAccountAccessTokenInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a google `oauth2` `access_token` for a different service account than the one initially running the script. + /// + /// For more information see + /// [the official documentation](https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials) as well as [iamcredentials.generateAccessToken()](https://cloud.google.com/iam/credentials/reference/rest/v1/projects.serviceAccounts/generateAccessToken) + /// + /// ## Example Usage + /// + /// To allow `service_A` to impersonate `service_B`, grant the [Service Account Token Creator](https://cloud.google.com/iam/docs/service-accounts#the_service_account_token_creator_role) on B to A. + /// + /// In the IAM policy below, `service_A` is given the Token Creator role impersonate `service_B` + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var token_creator_iam = new Gcp.ServiceAccount.IAMBinding("token-creator-iam", new() + /// { + /// ServiceAccountId = "projects/-/serviceAccounts/service_B@projectB.iam.gserviceaccount.com", + /// Role = "roles/iam.serviceAccountTokenCreator", + /// Members = new[] + /// { + /// "serviceAccount:service_A@projectA.iam.gserviceaccount.com", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// Once the IAM permissions are set, you can apply the new token to a provider bootstrapped with it. Any resources that references the aliased provider will run as the new identity. + /// + /// In the example below, `gcp.organizations.Project` will run as `service_B`. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Organizations.GetClientConfig.Invoke(); + /// + /// var defaultGetAccountAccessToken = Gcp.ServiceAccount.GetAccountAccessToken.Invoke(new() + /// { + /// TargetServiceAccount = "service_B@projectB.iam.gserviceaccount.com", + /// Scopes = new[] + /// { + /// "userinfo-email", + /// "cloud-platform", + /// }, + /// Lifetime = "300s", + /// }); + /// + /// var me = Gcp.Organizations.GetClientOpenIdUserInfo.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["target-email"] = me.Apply(getClientOpenIdUserInfoResult => getClientOpenIdUserInfoResult.Email), + /// }; + /// }); + /// ``` + /// + /// > *Note*: the generated token is non-refreshable and can have a maximum `lifetime` of `3600` seconds. + /// + public static Output Invoke(GetAccountAccessTokenInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args ?? new GetAccountAccessTokenInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs b/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs index 5aefaad5c6..b36e9beb4a 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountIdToken.cs @@ -228,6 +228,115 @@ public static Task InvokeAsync(GetAccountIdTokenArgs ar /// public static Output Invoke(GetAccountIdTokenInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args ?? new GetAccountIdTokenInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a Google OpenID Connect (`oidc`) `id_token`. Tokens issued from this data source are typically used to call external services that accept OIDC tokens for authentication (e.g. [Google Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service)). + /// + /// For more information see + /// [OpenID Connect](https://openid.net/specs/openid-connect-core-1_0.html#IDToken). + /// + /// ## Example Usage + /// + /// ### ServiceAccount JSON Credential File. + /// `gcp.serviceaccount.getAccountIdToken` will use the configured provider credentials + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var oidc = Gcp.ServiceAccount.GetAccountIdToken.Invoke(new() + /// { + /// TargetAudience = "https://foo.bar/", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oidcToken"] = oidc.Apply(getAccountIdTokenResult => getAccountIdTokenResult.IdToken), + /// }; + /// }); + /// ``` + /// + /// ### Service Account Impersonation. + /// `gcp.serviceaccount.getAccountAccessToken` will use background impersonated credentials provided by `gcp.serviceaccount.getAccountAccessToken`. + /// + /// Note: to use the following, you must grant `target_service_account` the + /// `roles/iam.serviceAccountTokenCreator` role on itself. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var impersonated = Gcp.ServiceAccount.GetAccountAccessToken.Invoke(new() + /// { + /// TargetServiceAccount = "impersonated-account@project.iam.gserviceaccount.com", + /// Delegates = new() { }, + /// Scopes = new[] + /// { + /// "userinfo-email", + /// "cloud-platform", + /// }, + /// Lifetime = "300s", + /// }); + /// + /// var oidc = Gcp.ServiceAccount.GetAccountIdToken.Invoke(new() + /// { + /// TargetServiceAccount = "impersonated-account@project.iam.gserviceaccount.com", + /// Delegates = new() { }, + /// IncludeEmail = true, + /// TargetAudience = "https://foo.bar/", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["oidcToken"] = oidc.Apply(getAccountIdTokenResult => getAccountIdTokenResult.IdToken), + /// }; + /// }); + /// ``` + /// + /// ### Invoking Cloud Run Endpoint + /// + /// The following configuration will invoke [Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service) endpoint where the service account for the provider has been granted `roles/run.invoker` role previously. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Http = Pulumi.Http; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var oidc = Gcp.ServiceAccount.GetAccountIdToken.Invoke(new() + /// { + /// TargetAudience = "https://your.cloud.run.app/", + /// }); + /// + /// var cloudrun = Http.GetHttp.Invoke(new() + /// { + /// Url = "https://your.cloud.run.app/", + /// RequestHeaders = + /// { + /// { "Authorization", $"Bearer {oidc.Apply(getAccountIdTokenResult => getAccountIdTokenResult.IdToken)}" }, + /// }, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cloudRunResponse"] = cloudrun.Apply(getHttpResult => getHttpResult.Body), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountIdTokenInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args ?? new GetAccountIdTokenInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountJwt.cs b/sdk/dotnet/ServiceAccount/GetAccountJwt.cs index f5d3e3513e..836251227c 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountJwt.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountJwt.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetAccountJwtArgs args, Invo /// public static Output Invoke(GetAccountJwtInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountJwt:getAccountJwt", args ?? new GetAccountJwtInvokeArgs(), options.WithDefaults()); + + /// + /// This data source provides a [self-signed JWT](https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-jwt). Tokens issued from this data source are typically used to call external services that accept JWTs for authentication. + /// + /// ## Example Usage + /// + /// Note: in order to use the following, the caller must have _at least_ `roles/iam.serviceAccountTokenCreator` on the `target_service_account`. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using System.Text.Json; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.ServiceAccount.GetAccountJwt.Invoke(new() + /// { + /// TargetServiceAccount = "impersonated-account@project.iam.gserviceaccount.com", + /// Payload = JsonSerializer.Serialize(new Dictionary<string, object?> + /// { + /// ["foo"] = "bar", + /// ["sub"] = "subject", + /// }), + /// ExpiresIn = 60, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["jwt"] = foo.Apply(getAccountJwtResult => getAccountJwtResult.Jwt), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetAccountJwtInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountJwt:getAccountJwt", args ?? new GetAccountJwtInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetAccountKey.cs b/sdk/dotnet/ServiceAccount/GetAccountKey.cs index ed4648152d..7ca578ded2 100644 --- a/sdk/dotnet/ServiceAccount/GetAccountKey.cs +++ b/sdk/dotnet/ServiceAccount/GetAccountKey.cs @@ -80,6 +80,41 @@ public static Task InvokeAsync(GetAccountKeyArgs args, Invo /// public static Output Invoke(GetAccountKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountKey:getAccountKey", args ?? new GetAccountKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Get service account public key. For more information, see [the official documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and [API](https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys/get). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myaccount = new Gcp.ServiceAccount.Account("myaccount", new() + /// { + /// AccountId = "dev-foo-account", + /// }); + /// + /// var mykeyKey = new Gcp.ServiceAccount.Key("mykey", new() + /// { + /// ServiceAccountId = myaccount.Name, + /// }); + /// + /// var mykey = Gcp.ServiceAccount.GetAccountKey.Invoke(new() + /// { + /// Name = mykeyKey.Name, + /// PublicKeyType = "TYPE_X509_PEM_FILE", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetAccountKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getAccountKey:getAccountKey", args ?? new GetAccountKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetIamPolicy.cs b/sdk/dotnet/ServiceAccount/GetIamPolicy.cs index 48c9b824fb..b6eecd60df 100644 --- a/sdk/dotnet/ServiceAccount/GetIamPolicy.cs +++ b/sdk/dotnet/ServiceAccount/GetIamPolicy.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetIamPolicyArgs args, Invoke /// public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a service account. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.ServiceAccount.GetIamPolicy.Invoke(new() + /// { + /// ServiceAccountId = testAccount.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getIamPolicy:getIamPolicy", args ?? new GetIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceAccount/GetS.cs b/sdk/dotnet/ServiceAccount/GetS.cs index 414229336f..44f0b9d366 100644 --- a/sdk/dotnet/ServiceAccount/GetS.cs +++ b/sdk/dotnet/ServiceAccount/GetS.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetSArgs? args = null, InvokeOptions? /// public static Output Invoke(GetSInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getS:getS", args ?? new GetSInvokeArgs(), options.WithDefaults()); + + /// + /// Gets a list of all service accounts from a project. + /// See [the official documentation](https://cloud.google.com/iam/docs/service-account-overview) + /// and [API](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts). + /// + /// ## Example Usage + /// + /// Example service accounts. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.ServiceAccount.GetS.Invoke(new() + /// { + /// Project = "example-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:serviceaccount/getS:getS", args ?? new GetSInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs b/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs index 66f28a4612..00b82eb879 100644 --- a/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs +++ b/sdk/dotnet/ServiceDirectory/GetNamespaceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetNamespaceIamPolic public static Output Invoke(GetNamespaceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args ?? new GetNamespaceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetNamespaceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args ?? new GetNamespaceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs b/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs index 3620d57571..4bbe660f72 100644 --- a/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs +++ b/sdk/dotnet/ServiceDirectory/GetServiceIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetServiceIamPolicyArg public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetServiceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args ?? new GetServiceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs b/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs index 9a8b0219dc..0fe57b4d0b 100644 --- a/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs +++ b/sdk/dotnet/ServiceNetworking/GetPeeredDnsDomain.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetPeeredDnsDomainArgs public static Output Invoke(GetPeeredDnsDomainInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args ?? new GetPeeredDnsDomainInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetPeeredDnsDomainInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args ?? new GetPeeredDnsDomainInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SiteVerification/GetToken.cs b/sdk/dotnet/SiteVerification/GetToken.cs index f31d30d299..0518d9dcbc 100644 --- a/sdk/dotnet/SiteVerification/GetToken.cs +++ b/sdk/dotnet/SiteVerification/GetToken.cs @@ -122,6 +122,62 @@ public static Task InvokeAsync(GetTokenArgs args, InvokeOptions? /// public static Output Invoke(GetTokenInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:siteverification/getToken:getToken", args ?? new GetTokenInvokeArgs(), options.WithDefaults()); + + /// + /// A verification token is used to demonstrate ownership of a website or domain. + /// + /// + /// To get more information about Token, see: + /// + /// * [API documentation](https://developers.google.com/site-verification/v1) + /// * How-to Guides + /// * [Getting Started](https://developers.google.com/site-verification/v1/getting_started) + /// + /// + /// ## Example Usage + /// + /// ### Site Verification Via Site META Tag + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.SiteVerification.GetToken.Invoke(new() + /// { + /// Type = "SITE", + /// Identifier = "https://www.example.com", + /// VerificationMethod = "META", + /// }); + /// + /// }); + /// ``` + /// + /// ### Site Verification Via DNS TXT Record + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.SiteVerification.GetToken.Invoke(new() + /// { + /// Type = "INET_DOMAIN", + /// Identifier = "www.example.com", + /// VerificationMethod = "DNS_TXT", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTokenInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:siteverification/getToken:getToken", args ?? new GetTokenInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SourceRepo/GetRepository.cs b/sdk/dotnet/SourceRepo/GetRepository.cs index 410992df09..24ffde3f8b 100644 --- a/sdk/dotnet/SourceRepo/GetRepository.cs +++ b/sdk/dotnet/SourceRepo/GetRepository.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetRepositoryArgs args, Invo /// public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); + + /// + /// Get infomation about an existing Google Cloud Source Repository. + /// For more information see [the official documentation](https://cloud.google.com/source-repositories) + /// and + /// [API](https://cloud.google.com/source-repositories/docs/reference/rest/v1/projects.repos). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_repo = Gcp.SourceRepo.GetRepository.Invoke(new() + /// { + /// Name = "my-repository", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepository:getRepository", args ?? new GetRepositoryInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs b/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs index 125f6fe3ce..47cea0ac9a 100644 --- a/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs +++ b/sdk/dotnet/SourceRepo/GetRepositoryIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetRepositoryIamPol /// public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for repository + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.SourceRepo.GetRepositoryIamPolicy.Invoke(new() + /// { + /// Project = my_repo.Project, + /// Repository = my_repo.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetRepositoryIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args ?? new GetRepositoryIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetDatabase.cs b/sdk/dotnet/Spanner/GetDatabase.cs index 40398101d8..a5f1ac71b0 100644 --- a/sdk/dotnet/Spanner/GetDatabase.cs +++ b/sdk/dotnet/Spanner/GetDatabase.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDatabaseArgs args, InvokeOp /// public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); + + /// + /// Get a spanner database from Google Cloud by its name and instance name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetDatabase.Invoke(new() + /// { + /// Name = "foo", + /// Instance = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs b/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs index 9e07d44255..3adcbf10b9 100644 --- a/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs +++ b/sdk/dotnet/Spanner/GetDatabaseIamPolicy.cs @@ -62,6 +62,32 @@ public static Task InvokeAsync(GetDatabaseIamPolicyA /// public static Output Invoke(GetDatabaseIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args ?? new GetDatabaseIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Spanner database. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetDatabaseIamPolicy.Invoke(new() + /// { + /// Project = database.Project, + /// Database = database.Name, + /// Instance = database.Instance, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args ?? new GetDatabaseIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetInstance.cs b/sdk/dotnet/Spanner/GetInstance.cs index 603e24495b..75b8a29400 100644 --- a/sdk/dotnet/Spanner/GetInstance.cs +++ b/sdk/dotnet/Spanner/GetInstance.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Get a spanner instance from Google Cloud by its name. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetInstance.Invoke(new() + /// { + /// Name = "bar", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstance:getInstance", args ?? new GetInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs b/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs index d9161e9baa..de56dc5e8b 100644 --- a/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Spanner/GetInstanceIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for a Spanner instance. + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = instance.Project, + /// Instance = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetBackupRun.cs b/sdk/dotnet/Sql/GetBackupRun.cs index 49c0d9dbca..1fdc2aab83 100644 --- a/sdk/dotnet/Sql/GetBackupRun.cs +++ b/sdk/dotnet/Sql/GetBackupRun.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetBackupRunArgs args, Invoke /// public static Output Invoke(GetBackupRunInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getBackupRun:getBackupRun", args ?? new GetBackupRunInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Cloud SQL instance backup run. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var backup = Gcp.Sql.GetBackupRun.Invoke(new() + /// { + /// Instance = main.Name, + /// MostRecent = true, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBackupRunInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getBackupRun:getBackupRun", args ?? new GetBackupRunInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetCaCerts.cs b/sdk/dotnet/Sql/GetCaCerts.cs index 86bbb9cca0..db8f11be3b 100644 --- a/sdk/dotnet/Sql/GetCaCerts.cs +++ b/sdk/dotnet/Sql/GetCaCerts.cs @@ -28,6 +28,15 @@ public static Task InvokeAsync(GetCaCertsArgs args, InvokeOpti /// public static Output Invoke(GetCaCertsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getCaCerts:getCaCerts", args ?? new GetCaCertsInvokeArgs(), options.WithDefaults()); + + /// + /// Get all of the trusted Certificate Authorities (CAs) for the specified SQL database instance. For more information see the + /// [official documentation](https://cloud.google.com/sql/) + /// and + /// [API](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances/listServerCas). + /// + public static Output Invoke(GetCaCertsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getCaCerts:getCaCerts", args ?? new GetCaCertsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabase.cs b/sdk/dotnet/Sql/GetDatabase.cs index fa1cb608b0..2f77d302b4 100644 --- a/sdk/dotnet/Sql/GetDatabase.cs +++ b/sdk/dotnet/Sql/GetDatabase.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetDatabaseArgs args, InvokeOp /// public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a database in a Cloud SQL instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabase.Invoke(new() + /// { + /// Name = "test-sql-database", + /// Instance = main.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabase:getDatabase", args ?? new GetDatabaseInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabaseInstance.cs b/sdk/dotnet/Sql/GetDatabaseInstance.cs index 1f4407802a..8c746bad49 100644 --- a/sdk/dotnet/Sql/GetDatabaseInstance.cs +++ b/sdk/dotnet/Sql/GetDatabaseInstance.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatabaseInstanceArg /// public static Output Invoke(GetDatabaseInstanceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstance:getDatabaseInstance", args ?? new GetDatabaseInstanceInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a Cloud SQL instance. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabaseInstance.Invoke(new() + /// { + /// Name = "test-sql-instance", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInstanceInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstance:getDatabaseInstance", args ?? new GetDatabaseInstanceInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs b/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs index 5c559ff2c6..7e2c138042 100644 --- a/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs +++ b/sdk/dotnet/Sql/GetDatabaseInstanceLatestRecoveryTime.cs @@ -74,6 +74,38 @@ public static Task InvokeAsync(GetD /// public static Output Invoke(GetDatabaseInstanceLatestRecoveryTimeInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args ?? new GetDatabaseInstanceLatestRecoveryTimeInvokeArgs(), options.WithDefaults()); + + /// + /// Get Latest Recovery Time for a given instance. For more information see the + /// [official documentation](https://cloud.google.com/sql/) + /// and + /// [API](https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr#get-the-latest-recovery-time). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Sql.GetDatabaseInstanceLatestRecoveryTime.Invoke(new() + /// { + /// Instance = "sample-instance", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["latestRecoveryTime"] = @default, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInstanceLatestRecoveryTimeInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args ?? new GetDatabaseInstanceLatestRecoveryTimeInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabaseInstances.cs b/sdk/dotnet/Sql/GetDatabaseInstances.cs index 0e1a64d2b6..a472cc0792 100644 --- a/sdk/dotnet/Sql/GetDatabaseInstances.cs +++ b/sdk/dotnet/Sql/GetDatabaseInstances.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetDatabaseInstancesA /// public static Output Invoke(GetDatabaseInstancesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstances:getDatabaseInstances", args ?? new GetDatabaseInstancesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a list of Cloud SQL instances in a project. You can also apply some filters over this list to get a more filtered list of Cloud SQL instances. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabaseInstances.Invoke(new() + /// { + /// Project = "test-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabaseInstancesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabaseInstances:getDatabaseInstances", args ?? new GetDatabaseInstancesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetDatabases.cs b/sdk/dotnet/Sql/GetDatabases.cs index 365f756c41..13f4e15242 100644 --- a/sdk/dotnet/Sql/GetDatabases.cs +++ b/sdk/dotnet/Sql/GetDatabases.cs @@ -56,6 +56,29 @@ public static Task InvokeAsync(GetDatabasesArgs args, Invoke /// public static Output Invoke(GetDatabasesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabases:getDatabases", args ?? new GetDatabasesInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get information about a list of databases in a Cloud SQL instance. + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var qa = Gcp.Sql.GetDatabases.Invoke(new() + /// { + /// Instance = main.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetDatabasesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getDatabases:getDatabases", args ?? new GetDatabasesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Sql/GetTiers.cs b/sdk/dotnet/Sql/GetTiers.cs index 4365f98f29..f4be50cbf9 100644 --- a/sdk/dotnet/Sql/GetTiers.cs +++ b/sdk/dotnet/Sql/GetTiers.cs @@ -84,6 +84,43 @@ public static Task InvokeAsync(GetTiersArgs? args = null, Invoke /// public static Output Invoke(GetTiersInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getTiers:getTiers", args ?? new GetTiersInvokeArgs(), options.WithDefaults()); + + /// + /// Get all available machine types (tiers) for a project, for example, db-custom-1-3840. For more information see the + /// [official documentation](https://cloud.google.com/sql/) + /// and + /// [API](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/tiers/list). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var tiers = Gcp.Sql.GetTiers.Invoke(new() + /// { + /// Project = "sample-project", + /// }); + /// + /// var allAvailableTiers = .Select(v => + /// { + /// return v.Tier; + /// }).ToList(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["avaialbleTiers"] = allAvailableTiers, + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTiersInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:sql/getTiers:getTiers", args ?? new GetTiersInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucket.cs b/sdk/dotnet/Storage/GetBucket.cs index 1b2fc5fe5a..0ed65b79e5 100644 --- a/sdk/dotnet/Storage/GetBucket.cs +++ b/sdk/dotnet/Storage/GetBucket.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBucketArgs args, InvokeOption /// public static Output Invoke(GetBucketInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucket:getBucket", args ?? new GetBucketInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#buckets) + /// and + /// [API](https://cloud.google.com/storage/docs/json_api/v1/buckets). + /// + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_bucket = Gcp.Storage.GetBucket.Invoke(new() + /// { + /// Name = "my-bucket", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucket:getBucket", args ?? new GetBucketInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketIamPolicy.cs b/sdk/dotnet/Storage/GetBucketIamPolicy.cs index be51141c68..5fe67d666b 100644 --- a/sdk/dotnet/Storage/GetBucketIamPolicy.cs +++ b/sdk/dotnet/Storage/GetBucketIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetBucketIamPolicyArgs /// public static Output Invoke(GetBucketIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args ?? new GetBucketIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for bucket + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Storage.GetBucketIamPolicy.Invoke(new() + /// { + /// Bucket = @default.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args ?? new GetBucketIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketObject.cs b/sdk/dotnet/Storage/GetBucketObject.cs index 20e141440b..b7474db807 100644 --- a/sdk/dotnet/Storage/GetBucketObject.cs +++ b/sdk/dotnet/Storage/GetBucketObject.cs @@ -72,6 +72,37 @@ public static Task InvokeAsync(GetBucketObjectArgs? args /// public static Output Invoke(GetBucketObjectInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObject:getBucketObject", args ?? new GetBucketObjectInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an existing object inside an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + /// and + /// [API](https://cloud.google.com/storage/docs/json_api/v1/objects). + /// + /// + /// ## Example Usage + /// + /// Example picture stored within a folder. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var picture = Gcp.Storage.GetBucketObject.Invoke(new() + /// { + /// Name = "folder/butterfly01.jpg", + /// Bucket = "image-store", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketObjectInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObject:getBucketObject", args ?? new GetBucketObjectInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketObjectContent.cs b/sdk/dotnet/Storage/GetBucketObjectContent.cs index 86644fe278..b0b2ebc186 100644 --- a/sdk/dotnet/Storage/GetBucketObjectContent.cs +++ b/sdk/dotnet/Storage/GetBucketObjectContent.cs @@ -82,6 +82,42 @@ public static Task InvokeAsync(GetBucketObjectCont /// public static Output Invoke(GetBucketObjectContentInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjectContent:getBucketObjectContent", args ?? new GetBucketObjectContentInvokeArgs(), options.WithDefaults()); + + /// + /// Gets an existing object content inside an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + /// and + /// [API](https://cloud.google.com/storage/docs/json_api/v1/objects). + /// + /// > **Warning:** The object content will be saved in the state, and visiable to everyone who has access to the state file. + /// + /// ## Example Usage + /// + /// Example file object stored within a folder. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var key = Gcp.Storage.GetBucketObjectContent.Invoke(new() + /// { + /// Name = "encryptedkey", + /// Bucket = "keystore", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["encrypted"] = key.Apply(getBucketObjectContentResult => getBucketObjectContentResult.Content), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBucketObjectContentInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjectContent:getBucketObjectContent", args ?? new GetBucketObjectContentInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBucketObjects.cs b/sdk/dotnet/Storage/GetBucketObjects.cs index 43d4b14fd0..697ca2589e 100644 --- a/sdk/dotnet/Storage/GetBucketObjects.cs +++ b/sdk/dotnet/Storage/GetBucketObjects.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBucketObjectsArgs args /// public static Output Invoke(GetBucketObjectsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjects:getBucketObjects", args ?? new GetBucketObjectsInvokeArgs(), options.WithDefaults()); + + /// + /// Gets existing objects inside an existing bucket in Google Cloud Storage service (GCS). + /// See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + /// and [API](https://cloud.google.com/storage/docs/json_api/v1/objects/list). + /// + /// ## Example Usage + /// + /// Example files stored within a bucket. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var files = Gcp.Storage.GetBucketObjects.Invoke(new() + /// { + /// Bucket = "file-store", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketObjectsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBucketObjects:getBucketObjects", args ?? new GetBucketObjectsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetBuckets.cs b/sdk/dotnet/Storage/GetBuckets.cs index 0db1db0cea..f286693472 100644 --- a/sdk/dotnet/Storage/GetBuckets.cs +++ b/sdk/dotnet/Storage/GetBuckets.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetBucketsArgs? args = null, In /// public static Output Invoke(GetBucketsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBuckets:getBuckets", args ?? new GetBucketsInvokeArgs(), options.WithDefaults()); + + /// + /// Gets a list of existing GCS buckets. + /// See [the official documentation](https://cloud.google.com/storage/docs/introduction) + /// and [API](https://cloud.google.com/storage/docs/json_api/v1/buckets/list). + /// + /// ## Example Usage + /// + /// Example GCS buckets. + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Gcp.Storage.GetBuckets.Invoke(new() + /// { + /// Project = "example-project", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetBucketsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getBuckets:getBuckets", args ?? new GetBucketsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs b/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs index 273880de90..046302508f 100644 --- a/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs +++ b/sdk/dotnet/Storage/GetManagedFolderIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetManagedFolder public static Output Invoke(GetManagedFolderIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args ?? new GetManagedFolderIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetManagedFolderIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args ?? new GetManagedFolderIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetObjectSignedUrl.cs b/sdk/dotnet/Storage/GetObjectSignedUrl.cs index 2b035de1fd..2b8650d14e 100644 --- a/sdk/dotnet/Storage/GetObjectSignedUrl.cs +++ b/sdk/dotnet/Storage/GetObjectSignedUrl.cs @@ -136,6 +136,69 @@ public static Task InvokeAsync(GetObjectSignedUrlArgs /// public static Output Invoke(GetObjectSignedUrlInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args ?? new GetObjectSignedUrlInvokeArgs(), options.WithDefaults()); + + /// + /// The Google Cloud storage signed URL data source generates a signed URL for a given storage object. Signed URLs provide a way to give time-limited read or write access to anyone in possession of the URL, regardless of whether they have a Google account. + /// + /// For more info about signed URL's is available [here](https://cloud.google.com/storage/docs/access-control/signed-urls). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var artifact = Gcp.Storage.GetObjectSignedUrl.Invoke(new() + /// { + /// Bucket = "install_binaries", + /// Path = "path/to/install_file.bin", + /// }); + /// + /// var vm = new Gcp.Compute.Instance("vm", new() + /// { + /// Name = "vm", + /// }); + /// + /// }); + /// ``` + /// + /// ## Full Example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// using Std = Pulumi.Std; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var getUrl = Gcp.Storage.GetObjectSignedUrl.Invoke(new() + /// { + /// Bucket = "fried_chicken", + /// Path = "path/to/file", + /// ContentMd5 = "pRviqwS4c4OTJRTe03FD1w==", + /// ContentType = "text/plain", + /// Duration = "2d", + /// Credentials = Std.File.Invoke(new() + /// { + /// Input = "path/to/credentials.json", + /// }).Result, + /// ExtensionHeaders = + /// { + /// { "x-goog-if-generation-match", "1" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetObjectSignedUrlInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args ?? new GetObjectSignedUrlInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetProjectServiceAccount.cs b/sdk/dotnet/Storage/GetProjectServiceAccount.cs index 8fab5755e8..a7fac2dc3c 100644 --- a/sdk/dotnet/Storage/GetProjectServiceAccount.cs +++ b/sdk/dotnet/Storage/GetProjectServiceAccount.cs @@ -222,6 +222,112 @@ public static Task InvokeAsync(GetProjectService /// public static Output Invoke(GetProjectServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Get the email address of a project's unique [automatic Google Cloud Storage service account](https://cloud.google.com/storage/docs/projects#service-accounts). + /// + /// For each Google Cloud project, Google maintains a unique service account which + /// is used as the identity for various Google Cloud Storage operations, including + /// operations involving + /// [customer-managed encryption keys](https://cloud.google.com/storage/docs/encryption/customer-managed-keys) + /// and those involving + /// [storage notifications to pub/sub](https://cloud.google.com/storage/docs/gsutil/commands/notification). + /// This automatic Google service account requires access to the relevant Cloud KMS keys or pub/sub topics, respectively, in order for Cloud Storage to use + /// these customer-managed resources. + /// + /// The service account has a well-known, documented naming format which is parameterised on the numeric Google project ID. + /// However, as noted in [the docs](https://cloud.google.com/storage/docs/projects#service-accounts), it is only created when certain relevant actions occur which + /// presuppose its existence. + /// These actions include calling a [Cloud Storage API endpoint](https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount/get) to yield the + /// service account's identity, or performing some operations in the UI which must use the service account's identity, such as attempting to list Cloud KMS keys + /// on the bucket creation page. + /// + /// Use of this data source calls the relevant API endpoint to obtain the service account's identity and thus ensures it exists prior to any API operations + /// which demand its existence, such as specifying it in Cloud IAM policy. + /// Always prefer to use this data source over interpolating the project ID into the well-known format for this service account, as the latter approach may cause + /// provider update errors in cases where the service account does not yet exist. + /// + /// > When you write provider code which uses features depending on this service account *and* your provider code adds the service account in IAM policy on other resources, + /// you must take care for race conditions between the establishment of the IAM policy and creation of the relevant Cloud Storage resource. + /// Cloud Storage APIs will require permissions on resources such as pub/sub topics or Cloud KMS keys to exist *before* the attempt to utilise them in a + /// bucket configuration, otherwise the API calls will fail. + /// You may need to use `depends_on` to create an explicit dependency between the IAM policy resource and the Cloud Storage resource which depends on it. + /// See the examples here and in the `gcp.storage.Notification` resource. + /// + /// For more information see + /// [the API reference](https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount). + /// + /// ## Example Usage + /// + /// ### Pub/Sub Notifications + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gcsAccount = Gcp.Storage.GetProjectServiceAccount.Invoke(); + /// + /// var binding = new Gcp.PubSub.TopicIAMBinding("binding", new() + /// { + /// Topic = topic.Name, + /// Role = "roles/pubsub.publisher", + /// Members = new[] + /// { + /// $"serviceAccount:{gcsAccount.Apply(getProjectServiceAccountResult => getProjectServiceAccountResult.EmailAddress)}", + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// + /// ### Cloud KMS Keys + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gcsAccount = Gcp.Storage.GetProjectServiceAccount.Invoke(); + /// + /// var binding = new Gcp.Kms.CryptoKeyIAMBinding("binding", new() + /// { + /// CryptoKeyId = "your-crypto-key-id", + /// Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter", + /// Members = new[] + /// { + /// $"serviceAccount:{gcsAccount.Apply(getProjectServiceAccountResult => getProjectServiceAccountResult.EmailAddress)}", + /// }, + /// }); + /// + /// var bucket = new Gcp.Storage.Bucket("bucket", new() + /// { + /// Name = "kms-protected-bucket", + /// Location = "US", + /// Encryption = new Gcp.Storage.Inputs.BucketEncryptionArgs + /// { + /// DefaultKmsKeyName = "your-crypto-key-id", + /// }, + /// }, new CustomResourceOptions + /// { + /// DependsOn = + /// { + /// binding, + /// }, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetProjectServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args ?? new GetProjectServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs b/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs index f5aaf2fc56..084847ac9a 100644 --- a/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs +++ b/sdk/dotnet/Storage/GetTransferProjectServiceAccount.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTransf /// public static Output Invoke(GetTransferProjectServiceAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args ?? new GetTransferProjectServiceAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve Storage Transfer service account for this project + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Storage.GetTransferProjectServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getTransferProjectServiceAccountResult => getTransferProjectServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransferProjectServiceAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args ?? new GetTransferProjectServiceAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs b/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs index 043641bc3b..b060412e11 100644 --- a/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs +++ b/sdk/dotnet/Storage/GetTransferProjectServieAccount.cs @@ -61,6 +61,31 @@ public static Task InvokeAsync(GetTransfe /// public static Output Invoke(GetTransferProjectServieAccountInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args ?? new GetTransferProjectServieAccountInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to retrieve Storage Transfer service account for this project + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.Storage.GetTransferProjectServiceAccount.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["defaultAccount"] = @default.Apply(@default => @default.Apply(getTransferProjectServiceAccountResult => getTransferProjectServiceAccountResult.Email)), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetTransferProjectServieAccountInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args ?? new GetTransferProjectServieAccountInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagKey.cs b/sdk/dotnet/Tags/GetTagKey.cs index 312758fe33..628e72bab7 100644 --- a/sdk/dotnet/Tags/GetTagKey.cs +++ b/sdk/dotnet/Tags/GetTagKey.cs @@ -92,6 +92,47 @@ public static Task InvokeAsync(GetTagKeyArgs args, InvokeOption /// public static Output Invoke(GetTagKeyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKey:getTagKey", args ?? new GetTagKeyInvokeArgs(), options.WithDefaults()); + + /// + /// Get a tag key by org or project `parent` and `short_name`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// ShortName = "environment", + /// }); + /// + /// }); + /// ``` + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "projects/abc", + /// ShortName = "environment", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagKeyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKey:getTagKey", args ?? new GetTagKeyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs b/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs index 2c3443ca3d..d6646e13a7 100644 --- a/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs +++ b/sdk/dotnet/Tags/GetTagKeyIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagKeyIamPolicyArgs /// public static Output Invoke(GetTagKeyIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args ?? new GetTagKeyIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tagkey + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Tags.GetTagKeyIamPolicy.Invoke(new() + /// { + /// TagKey = key.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagKeyIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args ?? new GetTagKeyIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagKeys.cs b/sdk/dotnet/Tags/GetTagKeys.cs index fe4338747a..26fa10b732 100644 --- a/sdk/dotnet/Tags/GetTagKeys.cs +++ b/sdk/dotnet/Tags/GetTagKeys.cs @@ -88,6 +88,45 @@ public static Task InvokeAsync(GetTagKeysArgs args, InvokeOpti /// public static Output Invoke(GetTagKeysInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeys:getTagKeys", args ?? new GetTagKeysInvokeArgs(), options.WithDefaults()); + + /// + /// Get tag keys by org or project `parent`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// }); + /// + /// }); + /// ``` + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "projects/abc", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagKeysInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagKeys:getTagKeys", args ?? new GetTagKeysInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagValue.cs b/sdk/dotnet/Tags/GetTagValue.cs index 7a2909dfff..29c389362b 100644 --- a/sdk/dotnet/Tags/GetTagValue.cs +++ b/sdk/dotnet/Tags/GetTagValue.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagValueArgs args, InvokeOp /// public static Output Invoke(GetTagValueInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValue:getTagValue", args ?? new GetTagValueInvokeArgs(), options.WithDefaults()); + + /// + /// Get a tag value by `parent` key and `short_name`. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentProdTagValue = Gcp.Tags.GetTagValue.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// ShortName = "production", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagValueInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValue:getTagValue", args ?? new GetTagValueInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagValueIamPolicy.cs b/sdk/dotnet/Tags/GetTagValueIamPolicy.cs index 37040c4f09..8c27ec6b7d 100644 --- a/sdk/dotnet/Tags/GetTagValueIamPolicy.cs +++ b/sdk/dotnet/Tags/GetTagValueIamPolicy.cs @@ -60,6 +60,31 @@ public static Task InvokeAsync(GetTagValueIamPolicyA /// public static Output Invoke(GetTagValueIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args ?? new GetTagValueIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for tagvalue + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Tags.GetTagValueIamPolicy.Invoke(new() + /// { + /// TagValue = @value.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagValueIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args ?? new GetTagValueIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tags/GetTagValues.cs b/sdk/dotnet/Tags/GetTagValues.cs index f8daf3d271..8c2af4b23b 100644 --- a/sdk/dotnet/Tags/GetTagValues.cs +++ b/sdk/dotnet/Tags/GetTagValues.cs @@ -58,6 +58,30 @@ public static Task InvokeAsync(GetTagValuesArgs args, Invoke /// public static Output Invoke(GetTagValuesInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValues:getTagValues", args ?? new GetTagValuesInvokeArgs(), options.WithDefaults()); + + /// + /// Get tag values from a `parent` key. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagValues = Gcp.Tags.GetTagValues.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTagValuesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tags/getTagValues:getTagValues", args ?? new GetTagValuesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tpu/GetTensorflowVersions.cs b/sdk/dotnet/Tpu/GetTensorflowVersions.cs index e16c6fc304..754f102b87 100644 --- a/sdk/dotnet/Tpu/GetTensorflowVersions.cs +++ b/sdk/dotnet/Tpu/GetTensorflowVersions.cs @@ -102,6 +102,52 @@ public static Task InvokeAsync(GetTensorflowVersion /// public static Output Invoke(GetTensorflowVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args ?? new GetTensorflowVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetTensorflowVersions.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Configure Basic TPU Node With Available Version + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetTensorflowVersions.Invoke(); + /// + /// var tpu = new Gcp.Tpu.Node("tpu", new() + /// { + /// Name = "test-tpu", + /// Zone = "us-central1-b", + /// AcceleratorType = "v3-8", + /// TensorflowVersion = available.Apply(getTensorflowVersionsResult => getTensorflowVersionsResult.Versions[0]), + /// CidrBlock = "10.2.0.0/29", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetTensorflowVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args ?? new GetTensorflowVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs b/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs index f0e9876172..ba3a14072b 100644 --- a/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs +++ b/sdk/dotnet/Tpu/GetV2AcceleratorTypes.cs @@ -104,6 +104,53 @@ public static Task InvokeAsync(GetV2AcceleratorType /// public static Output Invoke(GetV2AcceleratorTypesInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args ?? new GetV2AcceleratorTypesInvokeArgs(), options.WithDefaults()); + + /// + /// Get accelerator types available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.acceleratorTypes). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2AcceleratorTypes.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Configure Basic TPU VM With Available Type + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2AcceleratorTypes.Invoke(); + /// + /// var availableGetV2RuntimeVersions = Gcp.Tpu.GetV2RuntimeVersions.Invoke(); + /// + /// var tpu = new Gcp.Tpu.V2Vm("tpu", new() + /// { + /// Name = "test-tpu", + /// Zone = "us-central1-b", + /// RuntimeVersion = availableGetV2RuntimeVersions.Apply(getV2RuntimeVersionsResult => getV2RuntimeVersionsResult.Versions[0]), + /// AcceleratorType = available.Apply(getV2AcceleratorTypesResult => getV2AcceleratorTypesResult.Types[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetV2AcceleratorTypesInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args ?? new GetV2AcceleratorTypesInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs b/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs index a2280e4661..9842d6fb32 100644 --- a/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs +++ b/sdk/dotnet/Tpu/GetV2RuntimeVersions.cs @@ -98,6 +98,50 @@ public static Task InvokeAsync(GetV2RuntimeVersionsA /// public static Output Invoke(GetV2RuntimeVersionsInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args ?? new GetV2RuntimeVersionsInvokeArgs(), options.WithDefaults()); + + /// + /// Get runtime versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.runtimeVersions). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2RuntimeVersions.Invoke(); + /// + /// }); + /// ``` + /// + /// + /// ### Configure Basic TPU VM With Available Version + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var available = Gcp.Tpu.GetV2RuntimeVersions.Invoke(); + /// + /// var tpu = new Gcp.Tpu.V2Vm("tpu", new() + /// { + /// Name = "test-tpu", + /// Zone = "us-central1-b", + /// RuntimeVersion = available.Apply(getV2RuntimeVersionsResult => getV2RuntimeVersionsResult.Versions[0]), + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetV2RuntimeVersionsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args ?? new GetV2RuntimeVersionsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index 8d0fe5675b..f6f694f429 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -56,6 +56,13 @@ static class Utilities return dst; } + public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src) + { + var dst = src ?? new global::Pulumi.InvokeOutputOptions{}; + dst.Version = src?.Version ?? Version; + return dst; + } + private readonly static string version; public static string Version => version; diff --git a/sdk/dotnet/VMwareEngine/GetCluster.cs b/sdk/dotnet/VMwareEngine/GetCluster.cs index 35a2e9940c..9de2634cda 100644 --- a/sdk/dotnet/VMwareEngine/GetCluster.cs +++ b/sdk/dotnet/VMwareEngine/GetCluster.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetClusterArgs args, InvokeOpti /// public static Output Invoke(GetClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a cluster resource. + /// + /// To get more information about private cloud cluster, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.clusters) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myCluster = Gcp.VMwareEngine.GetCluster.Invoke(new() + /// { + /// Name = "my-cluster", + /// Parent = "project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetClusterInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getCluster:getCluster", args ?? new GetClusterInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs b/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs index c84f7825e4..d6b9c3c39a 100644 --- a/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs +++ b/sdk/dotnet/VMwareEngine/GetExternalAccessRule.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetExternalAccessRul /// public static Output Invoke(GetExternalAccessRuleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args ?? new GetExternalAccessRuleInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a external access rule resource. + /// + /// To get more information about external address, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies.externalAccessRules) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myExternalAccessRule = Gcp.VMwareEngine.GetExternalAccessRule.Invoke(new() + /// { + /// Name = "my-external-access-rule", + /// Parent = "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetExternalAccessRuleInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args ?? new GetExternalAccessRuleInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetExternalAddress.cs b/sdk/dotnet/VMwareEngine/GetExternalAddress.cs index 0f2f808469..07838fac62 100644 --- a/sdk/dotnet/VMwareEngine/GetExternalAddress.cs +++ b/sdk/dotnet/VMwareEngine/GetExternalAddress.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetExternalAddressArgs /// public static Output Invoke(GetExternalAddressInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAddress:getExternalAddress", args ?? new GetExternalAddressInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a external address resource. + /// + /// To get more information about external address, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.externalAddresses) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myExternalAddress = Gcp.VMwareEngine.GetExternalAddress.Invoke(new() + /// { + /// Name = "my-external-address", + /// Parent = "project/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetExternalAddressInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getExternalAddress:getExternalAddress", args ?? new GetExternalAddressInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNetwork.cs b/sdk/dotnet/VMwareEngine/GetNetwork.cs index 37abee7328..ae731f47f8 100644 --- a/sdk/dotnet/VMwareEngine/GetNetwork.cs +++ b/sdk/dotnet/VMwareEngine/GetNetwork.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetNetworkArgs args, InvokeOpti /// public static Output Invoke(GetNetworkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a VMwareEngine network resource. + /// + /// To get more information about VMwareEngine Network, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.vmwareEngineNetworks) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNw = Gcp.VMwareEngine.GetNetwork.Invoke(new() + /// { + /// Name = "us-central1-default", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs b/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs index 444fb70722..195b313e0f 100644 --- a/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs +++ b/sdk/dotnet/VMwareEngine/GetNetworkPeering.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetNetworkPeeringArgs ar /// public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a network peering resource. + /// + /// To get more information about network peering, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPeerings) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNetworkPeering = Gcp.VMwareEngine.GetNetworkPeering.Invoke(new() + /// { + /// Name = "my-network-peering", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkPeeringInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args ?? new GetNetworkPeeringInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs b/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs index 0de1dcad5a..6af8cf23d6 100644 --- a/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs +++ b/sdk/dotnet/VMwareEngine/GetNetworkPolicy.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetNetworkPolicyArgs args /// public static Output Invoke(GetNetworkPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args ?? new GetNetworkPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a network policy resource. + /// + /// To get more information about network policy, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myNetworkPolicy = Gcp.VMwareEngine.GetNetworkPolicy.Invoke(new() + /// { + /// Name = "my-network-policy", + /// Location = "us-central1", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNetworkPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args ?? new GetNetworkPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs b/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs index f4872db224..c63f715535 100644 --- a/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs +++ b/sdk/dotnet/VMwareEngine/GetNsxCredentials.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetNsxCredentialsArgs ar /// public static Output Invoke(GetNsxCredentialsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args ?? new GetNsxCredentialsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get NSX credentials for a Private Cloud. + /// + /// To get more information about private cloud NSX credentials, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showNsxCredentials) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ds = Gcp.VMwareEngine.GetNsxCredentials.Invoke(new() + /// { + /// Parent = "projects/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetNsxCredentialsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args ?? new GetNsxCredentialsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs b/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs index 23d58acbf0..7f0186edab 100644 --- a/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs +++ b/sdk/dotnet/VMwareEngine/GetPrivateCloud.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetPrivateCloudArgs args, /// public static Output Invoke(GetPrivateCloudInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args ?? new GetPrivateCloudInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a private cloud resource. + /// + /// To get more information about private cloud, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myPc = Gcp.VMwareEngine.GetPrivateCloud.Invoke(new() + /// { + /// Name = "my-pc", + /// Location = "us-central1-a", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetPrivateCloudInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args ?? new GetPrivateCloudInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetSubnet.cs b/sdk/dotnet/VMwareEngine/GetSubnet.cs index 187b5f2dc4..42171dd543 100644 --- a/sdk/dotnet/VMwareEngine/GetSubnet.cs +++ b/sdk/dotnet/VMwareEngine/GetSubnet.cs @@ -66,6 +66,34 @@ public static Task InvokeAsync(GetSubnetArgs args, InvokeOption /// public static Output Invoke(GetSubnetInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getSubnet:getSubnet", args ?? new GetSubnetInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource. + /// + /// To get more information about private cloud subnet, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var mySubnet = Gcp.VMwareEngine.GetSubnet.Invoke(new() + /// { + /// Name = "service-1", + /// Parent = "project/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetSubnetInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getSubnet:getSubnet", args ?? new GetSubnetInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs b/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs index ba6408f27d..59da435cbd 100644 --- a/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs +++ b/sdk/dotnet/VMwareEngine/GetVcenterCredentials.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetVcenterCredential /// public static Output Invoke(GetVcenterCredentialsInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args ?? new GetVcenterCredentialsInvokeArgs(), options.WithDefaults()); + + /// + /// Use this data source to get Vcenter credentials for a Private Cloud. + /// + /// To get more information about private cloud Vcenter credentials, see: + /// * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showVcenterCredentials) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var ds = Gcp.VMwareEngine.GetVcenterCredentials.Invoke(new() + /// { + /// Parent = "projects/my-project/locations/us-west1-a/privateClouds/my-cloud", + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetVcenterCredentialsInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args ?? new GetVcenterCredentialsInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs b/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs index aa719fb3d9..9b9a3f989d 100644 --- a/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs +++ b/sdk/dotnet/Vertex/GetAiEndpointIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAiEndpointIamPol public static Output Invoke(GetAiEndpointIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args ?? new GetAiEndpointIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAiEndpointIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args ?? new GetAiEndpointIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs b/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs index 6a66e99023..fd58d93949 100644 --- a/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs +++ b/sdk/dotnet/Vertex/GetAiFeaturestoreEntitytypeIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAi public static Output Invoke(GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args ?? new GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args ?? new GetAiFeaturestoreEntitytypeIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs b/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs index 53f0b592fe..db0b468960 100644 --- a/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs +++ b/sdk/dotnet/Vertex/GetAiFeaturestoreIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetAiFeaturesto public static Output Invoke(GetAiFeaturestoreIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args ?? new GetAiFeaturestoreIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetAiFeaturestoreIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args ?? new GetAiFeaturestoreIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Vertex/GetAiIndex.cs b/sdk/dotnet/Vertex/GetAiIndex.cs index 388c03d4aa..7ae6dc8b25 100644 --- a/sdk/dotnet/Vertex/GetAiIndex.cs +++ b/sdk/dotnet/Vertex/GetAiIndex.cs @@ -22,6 +22,12 @@ public static Task InvokeAsync(GetAiIndexArgs args, InvokeOpti /// public static Output Invoke(GetAiIndexInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiIndex:getAiIndex", args ?? new GetAiIndexInvokeArgs(), options.WithDefaults()); + + /// + /// A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search. + /// + public static Output Invoke(GetAiIndexInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vertex/getAiIndex:getAiIndex", args ?? new GetAiIndexInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/VpcAccess/GetConnector.cs b/sdk/dotnet/VpcAccess/GetConnector.cs index 443e2290e4..28716a3eec 100644 --- a/sdk/dotnet/VpcAccess/GetConnector.cs +++ b/sdk/dotnet/VpcAccess/GetConnector.cs @@ -90,6 +90,46 @@ public static Task InvokeAsync(GetConnectorArgs args, Invoke /// public static Output Invoke(GetConnectorInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:vpcaccess/getConnector:getConnector", args ?? new GetConnectorInvokeArgs(), options.WithDefaults()); + + /// + /// Get a Serverless VPC Access connector. + /// + /// To get more information about Connector, see: + /// + /// * [API documentation](https://cloud.google.com/vpc/docs/reference/vpcaccess/rest/v1/projects.locations.connectors) + /// * How-to Guides + /// * [Configuring Serverless VPC Access](https://cloud.google.com/vpc/docs/configure-serverless-vpc-access) + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sample = Gcp.VpcAccess.GetConnector.Invoke(new() + /// { + /// Name = "vpc-con", + /// }); + /// + /// var connector = new Gcp.VpcAccess.Connector("connector", new() + /// { + /// Name = "vpc-con", + /// IpCidrRange = "10.8.0.0/28", + /// Network = "default", + /// Region = "us-central1", + /// MinInstances = 2, + /// MaxInstances = 3, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetConnectorInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:vpcaccess/getConnector:getConnector", args ?? new GetConnectorInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs b/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs index d714cd9107..788bc5d548 100644 --- a/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs +++ b/sdk/dotnet/Workbench/GetInstanceIamPolicy.cs @@ -64,6 +64,33 @@ public static Task InvokeAsync(GetInstanceIamPolicyA /// public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); + + /// + /// Retrieves the current IAM policy data for instance + /// + /// + /// ## example + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var policy = Gcp.Workbench.GetInstanceIamPolicy.Invoke(new() + /// { + /// Project = instance.Project, + /// Location = instance.Location, + /// Name = instance.Name, + /// }); + /// + /// }); + /// ``` + /// + public static Output Invoke(GetInstanceIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args ?? new GetInstanceIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs b/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs index b8178aa6a0..ebefb9a7a3 100644 --- a/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs +++ b/sdk/dotnet/Workstations/GetWorkstationConfigIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetWorkstati public static Output Invoke(GetWorkstationConfigIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args ?? new GetWorkstationConfigIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetWorkstationConfigIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args ?? new GetWorkstationConfigIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs b/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs index 7395243103..d213a60b82 100644 --- a/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs +++ b/sdk/dotnet/Workstations/GetWorkstationIamPolicy.cs @@ -16,6 +16,9 @@ public static Task InvokeAsync(GetWorkstationIamP public static Output Invoke(GetWorkstationIamPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args ?? new GetWorkstationIamPolicyInvokeArgs(), options.WithDefaults()); + + public static Output Invoke(GetWorkstationIamPolicyInvokeArgs args, InvokeOutputOptions options) + => global::Pulumi.Deployment.Instance.Invoke("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args ?? new GetWorkstationIamPolicyInvokeArgs(), options.WithDefaults()); } diff --git a/sdk/go.mod b/sdk/go.mod index 5a4d463120..5992cf02f0 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.142.0 + github.com/pulumi/pulumi/sdk/v3 v3.143.0 ) require ( @@ -73,14 +73,14 @@ require ( github.com/xanzy/ssh-agent v0.3.3 // indirect github.com/zclconf/go-cty v1.13.2 // indirect go.uber.org/atomic v1.9.0 // indirect - golang.org/x/crypto v0.24.0 // indirect + golang.org/x/crypto v0.31.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect golang.org/x/mod v0.18.0 // indirect golang.org/x/net v0.26.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/sync v0.10.0 // indirect + golang.org/x/sys v0.28.0 // indirect + golang.org/x/term v0.27.0 // indirect + golang.org/x/text v0.21.0 // indirect golang.org/x/tools v0.22.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 16a7bbf58f..e8db5babb7 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= -github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.143.0 h1:z1m8Fc6l723eU2J/bP7UHE5t6WbBu4iIDAl1WaalQk4= +github.com/pulumi/pulumi/sdk/v3 v3.143.0/go.mod h1:OFpZabILGxrFqzcABFpMCksrHGVp4ymRM2BkKjlazDY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= @@ -205,8 +205,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 h1:LoYXNGAShUG3m/ehNk4iFctuhGX/+R1ZpfJ4/ia80JM= golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= @@ -235,8 +235,8 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= +golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -257,15 +257,15 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= +golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -273,8 +273,8 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= diff --git a/sdk/go/gcp/accessapproval/getFolderServiceAccount.go b/sdk/go/gcp/accessapproval/getFolderServiceAccount.go index e8b7ab897b..1d3e3b74dd 100644 --- a/sdk/go/gcp/accessapproval/getFolderServiceAccount.go +++ b/sdk/go/gcp/accessapproval/getFolderServiceAccount.go @@ -84,21 +84,11 @@ type GetFolderServiceAccountResult struct { } func GetFolderServiceAccountOutput(ctx *pulumi.Context, args GetFolderServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetFolderServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFolderServiceAccountResultOutput, error) { args := v.(GetFolderServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFolderServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetFolderServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFolderServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFolderServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", args, GetFolderServiceAccountResultOutput{}, options).(GetFolderServiceAccountResultOutput), nil }).(GetFolderServiceAccountResultOutput) } diff --git a/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go b/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go index 4f518f9282..41ccb6c9a0 100644 --- a/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go +++ b/sdk/go/gcp/accessapproval/getOrganizationServiceAccount.go @@ -84,21 +84,11 @@ type GetOrganizationServiceAccountResult struct { } func GetOrganizationServiceAccountOutput(ctx *pulumi.Context, args GetOrganizationServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetOrganizationServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOrganizationServiceAccountResultOutput, error) { args := v.(GetOrganizationServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOrganizationServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetOrganizationServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOrganizationServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOrganizationServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", args, GetOrganizationServiceAccountResultOutput{}, options).(GetOrganizationServiceAccountResultOutput), nil }).(GetOrganizationServiceAccountResultOutput) } diff --git a/sdk/go/gcp/accessapproval/getProjectServiceAccount.go b/sdk/go/gcp/accessapproval/getProjectServiceAccount.go index 484e51c3b9..f21d038a5f 100644 --- a/sdk/go/gcp/accessapproval/getProjectServiceAccount.go +++ b/sdk/go/gcp/accessapproval/getProjectServiceAccount.go @@ -84,21 +84,11 @@ type GetProjectServiceAccountResult struct { } func GetProjectServiceAccountOutput(ctx *pulumi.Context, args GetProjectServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetProjectServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectServiceAccountResultOutput, error) { args := v.(GetProjectServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetProjectServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", args, GetProjectServiceAccountResultOutput{}, options).(GetProjectServiceAccountResultOutput), nil }).(GetProjectServiceAccountResultOutput) } diff --git a/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go b/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go index 469cbe787e..8fc8bb2fd3 100644 --- a/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go +++ b/sdk/go/gcp/accesscontextmanager/getAccessPolicy.go @@ -78,21 +78,11 @@ type LookupAccessPolicyResult struct { } func LookupAccessPolicyOutput(ctx *pulumi.Context, args LookupAccessPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAccessPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccessPolicyResultOutput, error) { args := v.(LookupAccessPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccessPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAccessPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccessPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccessPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", args, LookupAccessPolicyResultOutput{}, options).(LookupAccessPolicyResultOutput), nil }).(LookupAccessPolicyResultOutput) } diff --git a/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go b/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go index e3340f9156..fa5badcf92 100644 --- a/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go +++ b/sdk/go/gcp/accesscontextmanager/getAccessPolicyIamPolicy.go @@ -67,21 +67,11 @@ type LookupAccessPolicyIamPolicyResult struct { } func LookupAccessPolicyIamPolicyOutput(ctx *pulumi.Context, args LookupAccessPolicyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAccessPolicyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccessPolicyIamPolicyResultOutput, error) { args := v.(LookupAccessPolicyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccessPolicyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAccessPolicyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccessPolicyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccessPolicyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", args, LookupAccessPolicyIamPolicyResultOutput{}, options).(LookupAccessPolicyIamPolicyResultOutput), nil }).(LookupAccessPolicyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/alloydb/getLocations.go b/sdk/go/gcp/alloydb/getLocations.go index 855ac41926..7132669d2b 100644 --- a/sdk/go/gcp/alloydb/getLocations.go +++ b/sdk/go/gcp/alloydb/getLocations.go @@ -62,21 +62,11 @@ type GetLocationsResult struct { } func GetLocationsOutput(ctx *pulumi.Context, args GetLocationsOutputArgs, opts ...pulumi.InvokeOption) GetLocationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLocationsResultOutput, error) { args := v.(GetLocationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLocationsResult - secret, err := ctx.InvokePackageRaw("gcp:alloydb/getLocations:getLocations", args, &rv, "", opts...) - if err != nil { - return GetLocationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:alloydb/getLocations:getLocations", args, GetLocationsResultOutput{}, options).(GetLocationsResultOutput), nil }).(GetLocationsResultOutput) } diff --git a/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go b/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go index cd35965b9e..74c2c80fbf 100644 --- a/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go +++ b/sdk/go/gcp/alloydb/getSupportedDatabaseFlags.go @@ -67,21 +67,11 @@ type GetSupportedDatabaseFlagsResult struct { } func GetSupportedDatabaseFlagsOutput(ctx *pulumi.Context, args GetSupportedDatabaseFlagsOutputArgs, opts ...pulumi.InvokeOption) GetSupportedDatabaseFlagsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSupportedDatabaseFlagsResultOutput, error) { args := v.(GetSupportedDatabaseFlagsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSupportedDatabaseFlagsResult - secret, err := ctx.InvokePackageRaw("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args, &rv, "", opts...) - if err != nil { - return GetSupportedDatabaseFlagsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSupportedDatabaseFlagsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSupportedDatabaseFlagsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", args, GetSupportedDatabaseFlagsResultOutput{}, options).(GetSupportedDatabaseFlagsResultOutput), nil }).(GetSupportedDatabaseFlagsResultOutput) } diff --git a/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go b/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go index dad04f449d..5c7fe25c2b 100644 --- a/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go +++ b/sdk/go/gcp/apigateway/getApiConfigIamPolicy.go @@ -47,21 +47,11 @@ type LookupApiConfigIamPolicyResult struct { } func LookupApiConfigIamPolicyOutput(ctx *pulumi.Context, args LookupApiConfigIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupApiConfigIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApiConfigIamPolicyResultOutput, error) { args := v.(LookupApiConfigIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApiConfigIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupApiConfigIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApiConfigIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApiConfigIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", args, LookupApiConfigIamPolicyResultOutput{}, options).(LookupApiConfigIamPolicyResultOutput), nil }).(LookupApiConfigIamPolicyResultOutput) } diff --git a/sdk/go/gcp/apigateway/getApiIamPolicy.go b/sdk/go/gcp/apigateway/getApiIamPolicy.go index 2c72667698..eadfa42b16 100644 --- a/sdk/go/gcp/apigateway/getApiIamPolicy.go +++ b/sdk/go/gcp/apigateway/getApiIamPolicy.go @@ -43,21 +43,11 @@ type LookupApiIamPolicyResult struct { } func LookupApiIamPolicyOutput(ctx *pulumi.Context, args LookupApiIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupApiIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApiIamPolicyResultOutput, error) { args := v.(LookupApiIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApiIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupApiIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApiIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApiIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", args, LookupApiIamPolicyResultOutput{}, options).(LookupApiIamPolicyResultOutput), nil }).(LookupApiIamPolicyResultOutput) } diff --git a/sdk/go/gcp/apigateway/getGatewayIamPolicy.go b/sdk/go/gcp/apigateway/getGatewayIamPolicy.go index 324f29646a..bf68327891 100644 --- a/sdk/go/gcp/apigateway/getGatewayIamPolicy.go +++ b/sdk/go/gcp/apigateway/getGatewayIamPolicy.go @@ -49,21 +49,11 @@ type LookupGatewayIamPolicyResult struct { } func LookupGatewayIamPolicyOutput(ctx *pulumi.Context, args LookupGatewayIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupGatewayIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupGatewayIamPolicyResultOutput, error) { args := v.(LookupGatewayIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupGatewayIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupGatewayIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupGatewayIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupGatewayIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", args, LookupGatewayIamPolicyResultOutput{}, options).(LookupGatewayIamPolicyResultOutput), nil }).(LookupGatewayIamPolicyResultOutput) } diff --git a/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go b/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go index 98216a402b..9f2d3b20c1 100644 --- a/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go +++ b/sdk/go/gcp/apigee/getEnvironmentIamPolicy.go @@ -70,21 +70,11 @@ type LookupEnvironmentIamPolicyResult struct { } func LookupEnvironmentIamPolicyOutput(ctx *pulumi.Context, args LookupEnvironmentIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEnvironmentIamPolicyResultOutput, error) { args := v.(LookupEnvironmentIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEnvironmentIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEnvironmentIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEnvironmentIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEnvironmentIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", args, LookupEnvironmentIamPolicyResultOutput{}, options).(LookupEnvironmentIamPolicyResultOutput), nil }).(LookupEnvironmentIamPolicyResultOutput) } diff --git a/sdk/go/gcp/appengine/getDefaultServiceAccount.go b/sdk/go/gcp/appengine/getDefaultServiceAccount.go index f78fdcfc7d..31de61e82e 100644 --- a/sdk/go/gcp/appengine/getDefaultServiceAccount.go +++ b/sdk/go/gcp/appengine/getDefaultServiceAccount.go @@ -71,21 +71,11 @@ type GetDefaultServiceAccountResult struct { } func GetDefaultServiceAccountOutput(ctx *pulumi.Context, args GetDefaultServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetDefaultServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDefaultServiceAccountResultOutput, error) { args := v.(GetDefaultServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDefaultServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetDefaultServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDefaultServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDefaultServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", args, GetDefaultServiceAccountResultOutput{}, options).(GetDefaultServiceAccountResultOutput), nil }).(GetDefaultServiceAccountResultOutput) } diff --git a/sdk/go/gcp/apphub/getApplication.go b/sdk/go/gcp/apphub/getApplication.go index bd3e0be075..772b948863 100644 --- a/sdk/go/gcp/apphub/getApplication.go +++ b/sdk/go/gcp/apphub/getApplication.go @@ -76,21 +76,11 @@ type LookupApplicationResult struct { } func LookupApplicationOutput(ctx *pulumi.Context, args LookupApplicationOutputArgs, opts ...pulumi.InvokeOption) LookupApplicationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupApplicationResultOutput, error) { args := v.(LookupApplicationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupApplicationResult - secret, err := ctx.InvokePackageRaw("gcp:apphub/getApplication:getApplication", args, &rv, "", opts...) - if err != nil { - return LookupApplicationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupApplicationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupApplicationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apphub/getApplication:getApplication", args, LookupApplicationResultOutput{}, options).(LookupApplicationResultOutput), nil }).(LookupApplicationResultOutput) } diff --git a/sdk/go/gcp/apphub/getDiscoveredService.go b/sdk/go/gcp/apphub/getDiscoveredService.go index bb4a81d0f5..dcd08ffdad 100644 --- a/sdk/go/gcp/apphub/getDiscoveredService.go +++ b/sdk/go/gcp/apphub/getDiscoveredService.go @@ -76,21 +76,11 @@ type GetDiscoveredServiceResult struct { } func GetDiscoveredServiceOutput(ctx *pulumi.Context, args GetDiscoveredServiceOutputArgs, opts ...pulumi.InvokeOption) GetDiscoveredServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDiscoveredServiceResultOutput, error) { args := v.(GetDiscoveredServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDiscoveredServiceResult - secret, err := ctx.InvokePackageRaw("gcp:apphub/getDiscoveredService:getDiscoveredService", args, &rv, "", opts...) - if err != nil { - return GetDiscoveredServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDiscoveredServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDiscoveredServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apphub/getDiscoveredService:getDiscoveredService", args, GetDiscoveredServiceResultOutput{}, options).(GetDiscoveredServiceResultOutput), nil }).(GetDiscoveredServiceResultOutput) } diff --git a/sdk/go/gcp/apphub/getDiscoveredWorkload.go b/sdk/go/gcp/apphub/getDiscoveredWorkload.go index b0160d291a..ec6fb3b23e 100644 --- a/sdk/go/gcp/apphub/getDiscoveredWorkload.go +++ b/sdk/go/gcp/apphub/getDiscoveredWorkload.go @@ -76,21 +76,11 @@ type GetDiscoveredWorkloadResult struct { } func GetDiscoveredWorkloadOutput(ctx *pulumi.Context, args GetDiscoveredWorkloadOutputArgs, opts ...pulumi.InvokeOption) GetDiscoveredWorkloadResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDiscoveredWorkloadResultOutput, error) { args := v.(GetDiscoveredWorkloadArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDiscoveredWorkloadResult - secret, err := ctx.InvokePackageRaw("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args, &rv, "", opts...) - if err != nil { - return GetDiscoveredWorkloadResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDiscoveredWorkloadResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDiscoveredWorkloadResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", args, GetDiscoveredWorkloadResultOutput{}, options).(GetDiscoveredWorkloadResultOutput), nil }).(GetDiscoveredWorkloadResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getDockerImage.go b/sdk/go/gcp/artifactregistry/getDockerImage.go index 89af66789d..4ff8e49951 100644 --- a/sdk/go/gcp/artifactregistry/getDockerImage.go +++ b/sdk/go/gcp/artifactregistry/getDockerImage.go @@ -112,21 +112,11 @@ type GetDockerImageResult struct { } func GetDockerImageOutput(ctx *pulumi.Context, args GetDockerImageOutputArgs, opts ...pulumi.InvokeOption) GetDockerImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDockerImageResultOutput, error) { args := v.(GetDockerImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDockerImageResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getDockerImage:getDockerImage", args, &rv, "", opts...) - if err != nil { - return GetDockerImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDockerImageResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDockerImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getDockerImage:getDockerImage", args, GetDockerImageResultOutput{}, options).(GetDockerImageResultOutput), nil }).(GetDockerImageResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getLocations.go b/sdk/go/gcp/artifactregistry/getLocations.go index 8e861d422e..a98da62089 100644 --- a/sdk/go/gcp/artifactregistry/getLocations.go +++ b/sdk/go/gcp/artifactregistry/getLocations.go @@ -109,21 +109,11 @@ type GetLocationsResult struct { } func GetLocationsOutput(ctx *pulumi.Context, args GetLocationsOutputArgs, opts ...pulumi.InvokeOption) GetLocationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLocationsResultOutput, error) { args := v.(GetLocationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLocationsResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getLocations:getLocations", args, &rv, "", opts...) - if err != nil { - return GetLocationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getLocations:getLocations", args, GetLocationsResultOutput{}, options).(GetLocationsResultOutput), nil }).(GetLocationsResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getRepository.go b/sdk/go/gcp/artifactregistry/getRepository.go index ac9ac93e34..935e342b80 100644 --- a/sdk/go/gcp/artifactregistry/getRepository.go +++ b/sdk/go/gcp/artifactregistry/getRepository.go @@ -90,21 +90,11 @@ type LookupRepositoryResult struct { } func LookupRepositoryOutput(ctx *pulumi.Context, args LookupRepositoryOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryResultOutput, error) { args := v.(LookupRepositoryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getRepository:getRepository", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getRepository:getRepository", args, LookupRepositoryResultOutput{}, options).(LookupRepositoryResultOutput), nil }).(LookupRepositoryResultOutput) } diff --git a/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go b/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go index 86b7ae9f8c..ae109ae635 100644 --- a/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/artifactregistry/getRepositoryIamPolicy.go @@ -79,21 +79,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go b/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go index 716c697d7f..fa165d4e51 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go +++ b/sdk/go/gcp/backupdisasterrecovery/getBackupPlan.go @@ -46,21 +46,11 @@ type LookupBackupPlanResult struct { } func LookupBackupPlanOutput(ctx *pulumi.Context, args LookupBackupPlanOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPlanResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupPlanResultOutput, error) { args := v.(LookupBackupPlanArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackupPlanResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args, &rv, "", opts...) - if err != nil { - return LookupBackupPlanResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackupPlanResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackupPlanResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", args, LookupBackupPlanResultOutput{}, options).(LookupBackupPlanResultOutput), nil }).(LookupBackupPlanResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go b/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go index 6c243e8d4e..452be20ffd 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go +++ b/sdk/go/gcp/backupdisasterrecovery/getBackupPlanAssociation.go @@ -77,21 +77,11 @@ type LookupBackupPlanAssociationResult struct { } func LookupBackupPlanAssociationOutput(ctx *pulumi.Context, args LookupBackupPlanAssociationOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPlanAssociationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupPlanAssociationResultOutput, error) { args := v.(LookupBackupPlanAssociationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackupPlanAssociationResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args, &rv, "", opts...) - if err != nil { - return LookupBackupPlanAssociationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackupPlanAssociationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackupPlanAssociationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", args, LookupBackupPlanAssociationResultOutput{}, options).(LookupBackupPlanAssociationResultOutput), nil }).(LookupBackupPlanAssociationResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getDataSource.go b/sdk/go/gcp/backupdisasterrecovery/getDataSource.go index 1ecdee559c..9b01a7898c 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getDataSource.go +++ b/sdk/go/gcp/backupdisasterrecovery/getDataSource.go @@ -52,21 +52,11 @@ type GetDataSourceResult struct { } func GetDataSourceOutput(ctx *pulumi.Context, args GetDataSourceOutputArgs, opts ...pulumi.InvokeOption) GetDataSourceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDataSourceResultOutput, error) { args := v.(GetDataSourceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDataSourceResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getDataSource:getDataSource", args, &rv, "", opts...) - if err != nil { - return GetDataSourceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDataSourceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDataSourceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getDataSource:getDataSource", args, GetDataSourceResultOutput{}, options).(GetDataSourceResultOutput), nil }).(GetDataSourceResultOutput) } diff --git a/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go b/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go index f3c9466385..9bd2a23b1e 100644 --- a/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go +++ b/sdk/go/gcp/backupdisasterrecovery/getManagementServer.go @@ -65,21 +65,11 @@ type LookupManagementServerResult struct { } func LookupManagementServerOutput(ctx *pulumi.Context, args LookupManagementServerOutputArgs, opts ...pulumi.InvokeOption) LookupManagementServerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupManagementServerResultOutput, error) { args := v.(LookupManagementServerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupManagementServerResult - secret, err := ctx.InvokePackageRaw("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args, &rv, "", opts...) - if err != nil { - return LookupManagementServerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupManagementServerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupManagementServerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", args, LookupManagementServerResultOutput{}, options).(LookupManagementServerResultOutput), nil }).(LookupManagementServerResultOutput) } diff --git a/sdk/go/gcp/beyondcorp/getAppConnection.go b/sdk/go/gcp/beyondcorp/getAppConnection.go index 88cd241a6d..b7c69f97ae 100644 --- a/sdk/go/gcp/beyondcorp/getAppConnection.go +++ b/sdk/go/gcp/beyondcorp/getAppConnection.go @@ -80,21 +80,11 @@ type LookupAppConnectionResult struct { } func LookupAppConnectionOutput(ctx *pulumi.Context, args LookupAppConnectionOutputArgs, opts ...pulumi.InvokeOption) LookupAppConnectionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppConnectionResultOutput, error) { args := v.(LookupAppConnectionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppConnectionResult - secret, err := ctx.InvokePackageRaw("gcp:beyondcorp/getAppConnection:getAppConnection", args, &rv, "", opts...) - if err != nil { - return LookupAppConnectionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppConnectionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppConnectionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:beyondcorp/getAppConnection:getAppConnection", args, LookupAppConnectionResultOutput{}, options).(LookupAppConnectionResultOutput), nil }).(LookupAppConnectionResultOutput) } diff --git a/sdk/go/gcp/beyondcorp/getAppConnector.go b/sdk/go/gcp/beyondcorp/getAppConnector.go index 0b7e56023e..c8858389e6 100644 --- a/sdk/go/gcp/beyondcorp/getAppConnector.go +++ b/sdk/go/gcp/beyondcorp/getAppConnector.go @@ -78,21 +78,11 @@ type LookupAppConnectorResult struct { } func LookupAppConnectorOutput(ctx *pulumi.Context, args LookupAppConnectorOutputArgs, opts ...pulumi.InvokeOption) LookupAppConnectorResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppConnectorResultOutput, error) { args := v.(LookupAppConnectorArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppConnectorResult - secret, err := ctx.InvokePackageRaw("gcp:beyondcorp/getAppConnector:getAppConnector", args, &rv, "", opts...) - if err != nil { - return LookupAppConnectorResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppConnectorResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppConnectorResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:beyondcorp/getAppConnector:getAppConnector", args, LookupAppConnectorResultOutput{}, options).(LookupAppConnectorResultOutput), nil }).(LookupAppConnectorResultOutput) } diff --git a/sdk/go/gcp/beyondcorp/getAppGateway.go b/sdk/go/gcp/beyondcorp/getAppGateway.go index 11582c3eaa..a544a835d0 100644 --- a/sdk/go/gcp/beyondcorp/getAppGateway.go +++ b/sdk/go/gcp/beyondcorp/getAppGateway.go @@ -81,21 +81,11 @@ type LookupAppGatewayResult struct { } func LookupAppGatewayOutput(ctx *pulumi.Context, args LookupAppGatewayOutputArgs, opts ...pulumi.InvokeOption) LookupAppGatewayResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppGatewayResultOutput, error) { args := v.(LookupAppGatewayArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppGatewayResult - secret, err := ctx.InvokePackageRaw("gcp:beyondcorp/getAppGateway:getAppGateway", args, &rv, "", opts...) - if err != nil { - return LookupAppGatewayResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppGatewayResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppGatewayResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:beyondcorp/getAppGateway:getAppGateway", args, LookupAppGatewayResultOutput{}, options).(LookupAppGatewayResultOutput), nil }).(LookupAppGatewayResultOutput) } diff --git a/sdk/go/gcp/bigquery/getConnectionIamPolicy.go b/sdk/go/gcp/bigquery/getConnectionIamPolicy.go index 958eb18f82..c8ff79dae4 100644 --- a/sdk/go/gcp/bigquery/getConnectionIamPolicy.go +++ b/sdk/go/gcp/bigquery/getConnectionIamPolicy.go @@ -85,21 +85,11 @@ type LookupConnectionIamPolicyResult struct { } func LookupConnectionIamPolicyOutput(ctx *pulumi.Context, args LookupConnectionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupConnectionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConnectionIamPolicyResultOutput, error) { args := v.(LookupConnectionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConnectionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupConnectionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConnectionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConnectionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", args, LookupConnectionIamPolicyResultOutput{}, options).(LookupConnectionIamPolicyResultOutput), nil }).(LookupConnectionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquery/getDataset.go b/sdk/go/gcp/bigquery/getDataset.go index 657ea9278a..aa009996a7 100644 --- a/sdk/go/gcp/bigquery/getDataset.go +++ b/sdk/go/gcp/bigquery/getDataset.go @@ -91,21 +91,11 @@ type LookupDatasetResult struct { } func LookupDatasetOutput(ctx *pulumi.Context, args LookupDatasetOutputArgs, opts ...pulumi.InvokeOption) LookupDatasetResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatasetResultOutput, error) { args := v.(LookupDatasetArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatasetResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getDataset:getDataset", args, &rv, "", opts...) - if err != nil { - return LookupDatasetResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatasetResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatasetResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getDataset:getDataset", args, LookupDatasetResultOutput{}, options).(LookupDatasetResultOutput), nil }).(LookupDatasetResultOutput) } diff --git a/sdk/go/gcp/bigquery/getDatasetIamPolicy.go b/sdk/go/gcp/bigquery/getDatasetIamPolicy.go index f3284289d1..b068358cf4 100644 --- a/sdk/go/gcp/bigquery/getDatasetIamPolicy.go +++ b/sdk/go/gcp/bigquery/getDatasetIamPolicy.go @@ -70,21 +70,11 @@ type LookupDatasetIamPolicyResult struct { } func LookupDatasetIamPolicyOutput(ctx *pulumi.Context, args LookupDatasetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDatasetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatasetIamPolicyResultOutput, error) { args := v.(LookupDatasetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatasetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDatasetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatasetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatasetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", args, LookupDatasetIamPolicyResultOutput{}, options).(LookupDatasetIamPolicyResultOutput), nil }).(LookupDatasetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquery/getDefaultServiceAccount.go b/sdk/go/gcp/bigquery/getDefaultServiceAccount.go index 86538e1104..7fc37bbbb0 100644 --- a/sdk/go/gcp/bigquery/getDefaultServiceAccount.go +++ b/sdk/go/gcp/bigquery/getDefaultServiceAccount.go @@ -84,21 +84,11 @@ type GetDefaultServiceAccountResult struct { } func GetDefaultServiceAccountOutput(ctx *pulumi.Context, args GetDefaultServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetDefaultServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDefaultServiceAccountResultOutput, error) { args := v.(GetDefaultServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDefaultServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetDefaultServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDefaultServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDefaultServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", args, GetDefaultServiceAccountResultOutput{}, options).(GetDefaultServiceAccountResultOutput), nil }).(GetDefaultServiceAccountResultOutput) } diff --git a/sdk/go/gcp/bigquery/getTableIamPolicy.go b/sdk/go/gcp/bigquery/getTableIamPolicy.go index d75fa0f2ab..98dfaf5f37 100644 --- a/sdk/go/gcp/bigquery/getTableIamPolicy.go +++ b/sdk/go/gcp/bigquery/getTableIamPolicy.go @@ -74,21 +74,11 @@ type GetTableIamPolicyResult struct { } func GetTableIamPolicyOutput(ctx *pulumi.Context, args GetTableIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetTableIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTableIamPolicyResultOutput, error) { args := v.(GetTableIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTableIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetTableIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTableIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTableIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", args, GetTableIamPolicyResultOutput{}, options).(GetTableIamPolicyResultOutput), nil }).(GetTableIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquery/getTables.go b/sdk/go/gcp/bigquery/getTables.go index 63d4b3013e..f0539e8b0d 100644 --- a/sdk/go/gcp/bigquery/getTables.go +++ b/sdk/go/gcp/bigquery/getTables.go @@ -71,21 +71,11 @@ type GetTablesResult struct { } func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTablesResultOutput, error) { args := v.(GetTablesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTablesResult - secret, err := ctx.InvokePackageRaw("gcp:bigquery/getTables:getTables", args, &rv, "", opts...) - if err != nil { - return GetTablesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTablesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTablesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquery/getTables:getTables", args, GetTablesResultOutput{}, options).(GetTablesResultOutput), nil }).(GetTablesResultOutput) } diff --git a/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go b/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go index 0b992f2459..df32daed92 100644 --- a/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go +++ b/sdk/go/gcp/bigqueryanalyticshub/getDataExchangeIamPolicy.go @@ -79,21 +79,11 @@ type LookupDataExchangeIamPolicyResult struct { } func LookupDataExchangeIamPolicyOutput(ctx *pulumi.Context, args LookupDataExchangeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDataExchangeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDataExchangeIamPolicyResultOutput, error) { args := v.(LookupDataExchangeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDataExchangeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDataExchangeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDataExchangeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDataExchangeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", args, LookupDataExchangeIamPolicyResultOutput{}, options).(LookupDataExchangeIamPolicyResultOutput), nil }).(LookupDataExchangeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go b/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go index 97e2b967a4..120b484301 100644 --- a/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go +++ b/sdk/go/gcp/bigqueryanalyticshub/getListingIamPolicy.go @@ -83,21 +83,11 @@ type LookupListingIamPolicyResult struct { } func LookupListingIamPolicyOutput(ctx *pulumi.Context, args LookupListingIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupListingIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupListingIamPolicyResultOutput, error) { args := v.(LookupListingIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupListingIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupListingIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupListingIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupListingIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", args, LookupListingIamPolicyResultOutput{}, options).(LookupListingIamPolicyResultOutput), nil }).(LookupListingIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go b/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go index 09f7b7296a..4f29bf66e9 100644 --- a/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go +++ b/sdk/go/gcp/bigquerydatapolicy/getIamPolicy.go @@ -78,21 +78,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigtable/getInstanceIamPolicy.go b/sdk/go/gcp/bigtable/getInstanceIamPolicy.go index 0e0d45740c..bd173673ad 100644 --- a/sdk/go/gcp/bigtable/getInstanceIamPolicy.go +++ b/sdk/go/gcp/bigtable/getInstanceIamPolicy.go @@ -68,21 +68,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/bigtable/getTableIamPolicy.go b/sdk/go/gcp/bigtable/getTableIamPolicy.go index 069eae28c6..8eebaa3513 100644 --- a/sdk/go/gcp/bigtable/getTableIamPolicy.go +++ b/sdk/go/gcp/bigtable/getTableIamPolicy.go @@ -72,21 +72,11 @@ type LookupTableIamPolicyResult struct { } func LookupTableIamPolicyOutput(ctx *pulumi.Context, args LookupTableIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTableIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTableIamPolicyResultOutput, error) { args := v.(LookupTableIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTableIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTableIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTableIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTableIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", args, LookupTableIamPolicyResultOutput{}, options).(LookupTableIamPolicyResultOutput), nil }).(LookupTableIamPolicyResultOutput) } diff --git a/sdk/go/gcp/billing/getAccountIamPolicy.go b/sdk/go/gcp/billing/getAccountIamPolicy.go index 9901c22207..6f12555994 100644 --- a/sdk/go/gcp/billing/getAccountIamPolicy.go +++ b/sdk/go/gcp/billing/getAccountIamPolicy.go @@ -66,21 +66,11 @@ type LookupAccountIamPolicyResult struct { } func LookupAccountIamPolicyOutput(ctx *pulumi.Context, args LookupAccountIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAccountIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccountIamPolicyResultOutput, error) { args := v.(LookupAccountIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccountIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAccountIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccountIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccountIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", args, LookupAccountIamPolicyResultOutput{}, options).(LookupAccountIamPolicyResultOutput), nil }).(LookupAccountIamPolicyResultOutput) } diff --git a/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go b/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go index 5e9a2c2783..1cbff68675 100644 --- a/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go +++ b/sdk/go/gcp/binaryauthorization/getAttestorIamPolicy.go @@ -72,21 +72,11 @@ type LookupAttestorIamPolicyResult struct { } func LookupAttestorIamPolicyOutput(ctx *pulumi.Context, args LookupAttestorIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAttestorIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAttestorIamPolicyResultOutput, error) { args := v.(LookupAttestorIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAttestorIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAttestorIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAttestorIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAttestorIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", args, LookupAttestorIamPolicyResultOutput{}, options).(LookupAttestorIamPolicyResultOutput), nil }).(LookupAttestorIamPolicyResultOutput) } diff --git a/sdk/go/gcp/certificateauthority/getAuthority.go b/sdk/go/gcp/certificateauthority/getAuthority.go index 1980ee7e18..ea6c48545e 100644 --- a/sdk/go/gcp/certificateauthority/getAuthority.go +++ b/sdk/go/gcp/certificateauthority/getAuthority.go @@ -99,21 +99,11 @@ type LookupAuthorityResult struct { } func LookupAuthorityOutput(ctx *pulumi.Context, args LookupAuthorityOutputArgs, opts ...pulumi.InvokeOption) LookupAuthorityResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAuthorityResultOutput, error) { args := v.(LookupAuthorityArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAuthorityResult - secret, err := ctx.InvokePackageRaw("gcp:certificateauthority/getAuthority:getAuthority", args, &rv, "", opts...) - if err != nil { - return LookupAuthorityResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAuthorityResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAuthorityResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificateauthority/getAuthority:getAuthority", args, LookupAuthorityResultOutput{}, options).(LookupAuthorityResultOutput), nil }).(LookupAuthorityResultOutput) } diff --git a/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go b/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go index 93a872830f..17a380c189 100644 --- a/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go +++ b/sdk/go/gcp/certificateauthority/getCaPoolIamPolicy.go @@ -78,21 +78,11 @@ type LookupCaPoolIamPolicyResult struct { } func LookupCaPoolIamPolicyOutput(ctx *pulumi.Context, args LookupCaPoolIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupCaPoolIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCaPoolIamPolicyResultOutput, error) { args := v.(LookupCaPoolIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCaPoolIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupCaPoolIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCaPoolIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCaPoolIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", args, LookupCaPoolIamPolicyResultOutput{}, options).(LookupCaPoolIamPolicyResultOutput), nil }).(LookupCaPoolIamPolicyResultOutput) } diff --git a/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go b/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go index 9ee76764ed..16fc6f83b9 100644 --- a/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go +++ b/sdk/go/gcp/certificateauthority/getCertificateTemplateIamPolicy.go @@ -76,21 +76,11 @@ type LookupCertificateTemplateIamPolicyResult struct { } func LookupCertificateTemplateIamPolicyOutput(ctx *pulumi.Context, args LookupCertificateTemplateIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupCertificateTemplateIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCertificateTemplateIamPolicyResultOutput, error) { args := v.(LookupCertificateTemplateIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCertificateTemplateIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupCertificateTemplateIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCertificateTemplateIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCertificateTemplateIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", args, LookupCertificateTemplateIamPolicyResultOutput{}, options).(LookupCertificateTemplateIamPolicyResultOutput), nil }).(LookupCertificateTemplateIamPolicyResultOutput) } diff --git a/sdk/go/gcp/certificatemanager/getCertificateMap.go b/sdk/go/gcp/certificatemanager/getCertificateMap.go index 094f925305..87741a1a47 100644 --- a/sdk/go/gcp/certificatemanager/getCertificateMap.go +++ b/sdk/go/gcp/certificatemanager/getCertificateMap.go @@ -75,21 +75,11 @@ type GetCertificateMapResult struct { } func GetCertificateMapOutput(ctx *pulumi.Context, args GetCertificateMapOutputArgs, opts ...pulumi.InvokeOption) GetCertificateMapResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificateMapResultOutput, error) { args := v.(GetCertificateMapArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificateMapResult - secret, err := ctx.InvokePackageRaw("gcp:certificatemanager/getCertificateMap:getCertificateMap", args, &rv, "", opts...) - if err != nil { - return GetCertificateMapResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificateMapResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificateMapResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificatemanager/getCertificateMap:getCertificateMap", args, GetCertificateMapResultOutput{}, options).(GetCertificateMapResultOutput), nil }).(GetCertificateMapResultOutput) } diff --git a/sdk/go/gcp/certificatemanager/getCertificates.go b/sdk/go/gcp/certificatemanager/getCertificates.go index c46f8839b7..6a9b5fc4fe 100644 --- a/sdk/go/gcp/certificatemanager/getCertificates.go +++ b/sdk/go/gcp/certificatemanager/getCertificates.go @@ -90,21 +90,11 @@ type GetCertificatesResult struct { } func GetCertificatesOutput(ctx *pulumi.Context, args GetCertificatesOutputArgs, opts ...pulumi.InvokeOption) GetCertificatesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificatesResultOutput, error) { args := v.(GetCertificatesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificatesResult - secret, err := ctx.InvokePackageRaw("gcp:certificatemanager/getCertificates:getCertificates", args, &rv, "", opts...) - if err != nil { - return GetCertificatesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificatesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificatesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:certificatemanager/getCertificates:getCertificates", args, GetCertificatesResultOutput{}, options).(GetCertificatesResultOutput), nil }).(GetCertificatesResultOutput) } diff --git a/sdk/go/gcp/cloudasset/getResourcesSearchAll.go b/sdk/go/gcp/cloudasset/getResourcesSearchAll.go index 0a2c057330..f95ceb9048 100644 --- a/sdk/go/gcp/cloudasset/getResourcesSearchAll.go +++ b/sdk/go/gcp/cloudasset/getResourcesSearchAll.go @@ -132,21 +132,11 @@ type LookupResourcesSearchAllResult struct { } func LookupResourcesSearchAllOutput(ctx *pulumi.Context, args LookupResourcesSearchAllOutputArgs, opts ...pulumi.InvokeOption) LookupResourcesSearchAllResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupResourcesSearchAllResultOutput, error) { args := v.(LookupResourcesSearchAllArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupResourcesSearchAllResult - secret, err := ctx.InvokePackageRaw("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args, &rv, "", opts...) - if err != nil { - return LookupResourcesSearchAllResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupResourcesSearchAllResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupResourcesSearchAllResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", args, LookupResourcesSearchAllResultOutput{}, options).(LookupResourcesSearchAllResultOutput), nil }).(LookupResourcesSearchAllResultOutput) } diff --git a/sdk/go/gcp/cloudasset/getSearchAllResources.go b/sdk/go/gcp/cloudasset/getSearchAllResources.go index 62574440ed..1ddc4771ef 100644 --- a/sdk/go/gcp/cloudasset/getSearchAllResources.go +++ b/sdk/go/gcp/cloudasset/getSearchAllResources.go @@ -136,21 +136,11 @@ type LookupSearchAllResourcesResult struct { } func LookupSearchAllResourcesOutput(ctx *pulumi.Context, args LookupSearchAllResourcesOutputArgs, opts ...pulumi.InvokeOption) LookupSearchAllResourcesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSearchAllResourcesResultOutput, error) { args := v.(LookupSearchAllResourcesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSearchAllResourcesResult - secret, err := ctx.InvokePackageRaw("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args, &rv, "", opts...) - if err != nil { - return LookupSearchAllResourcesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSearchAllResourcesResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSearchAllResourcesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudasset/getSearchAllResources:getSearchAllResources", args, LookupSearchAllResourcesResultOutput{}, options).(LookupSearchAllResourcesResultOutput), nil }).(LookupSearchAllResourcesResultOutput) } diff --git a/sdk/go/gcp/cloudbuild/getTrigger.go b/sdk/go/gcp/cloudbuild/getTrigger.go index 5ba71fdca4..cae48068da 100644 --- a/sdk/go/gcp/cloudbuild/getTrigger.go +++ b/sdk/go/gcp/cloudbuild/getTrigger.go @@ -98,21 +98,11 @@ type LookupTriggerResult struct { } func LookupTriggerOutput(ctx *pulumi.Context, args LookupTriggerOutputArgs, opts ...pulumi.InvokeOption) LookupTriggerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTriggerResultOutput, error) { args := v.(LookupTriggerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTriggerResult - secret, err := ctx.InvokePackageRaw("gcp:cloudbuild/getTrigger:getTrigger", args, &rv, "", opts...) - if err != nil { - return LookupTriggerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTriggerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTriggerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudbuild/getTrigger:getTrigger", args, LookupTriggerResultOutput{}, options).(LookupTriggerResultOutput), nil }).(LookupTriggerResultOutput) } diff --git a/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go b/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go index 876f2e20e0..257b830bc1 100644 --- a/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go +++ b/sdk/go/gcp/cloudbuildv2/getConnectionIamPolicy.go @@ -78,21 +78,11 @@ type GetConnectionIamPolicyResult struct { } func GetConnectionIamPolicyOutput(ctx *pulumi.Context, args GetConnectionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetConnectionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetConnectionIamPolicyResultOutput, error) { args := v.(GetConnectionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetConnectionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetConnectionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetConnectionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetConnectionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", args, GetConnectionIamPolicyResultOutput{}, options).(GetConnectionIamPolicyResultOutput), nil }).(GetConnectionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go b/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go index 4d7b4da6fc..12cf409254 100644 --- a/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go +++ b/sdk/go/gcp/clouddeploy/getCustomTargetTypeIamPolicy.go @@ -78,21 +78,11 @@ type LookupCustomTargetTypeIamPolicyResult struct { } func LookupCustomTargetTypeIamPolicyOutput(ctx *pulumi.Context, args LookupCustomTargetTypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupCustomTargetTypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCustomTargetTypeIamPolicyResultOutput, error) { args := v.(LookupCustomTargetTypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCustomTargetTypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupCustomTargetTypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCustomTargetTypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCustomTargetTypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", args, LookupCustomTargetTypeIamPolicyResultOutput{}, options).(LookupCustomTargetTypeIamPolicyResultOutput), nil }).(LookupCustomTargetTypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go b/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go index 462dda9d95..4a114ece0d 100644 --- a/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go +++ b/sdk/go/gcp/clouddeploy/getDeliveryPipelineIamPolicy.go @@ -75,21 +75,11 @@ type LookupDeliveryPipelineIamPolicyResult struct { } func LookupDeliveryPipelineIamPolicyOutput(ctx *pulumi.Context, args LookupDeliveryPipelineIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDeliveryPipelineIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDeliveryPipelineIamPolicyResultOutput, error) { args := v.(LookupDeliveryPipelineIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDeliveryPipelineIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDeliveryPipelineIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDeliveryPipelineIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDeliveryPipelineIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", args, LookupDeliveryPipelineIamPolicyResultOutput{}, options).(LookupDeliveryPipelineIamPolicyResultOutput), nil }).(LookupDeliveryPipelineIamPolicyResultOutput) } diff --git a/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go b/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go index 359543f13a..dbf33ab3bc 100644 --- a/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go +++ b/sdk/go/gcp/clouddeploy/getTargetIamPolicy.go @@ -75,21 +75,11 @@ type LookupTargetIamPolicyResult struct { } func LookupTargetIamPolicyOutput(ctx *pulumi.Context, args LookupTargetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTargetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTargetIamPolicyResultOutput, error) { args := v.(LookupTargetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTargetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTargetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTargetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTargetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", args, LookupTargetIamPolicyResultOutput{}, options).(LookupTargetIamPolicyResultOutput), nil }).(LookupTargetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudfunctions/getFunction.go b/sdk/go/gcp/cloudfunctions/getFunction.go index c5195a6455..587f00ad3d 100644 --- a/sdk/go/gcp/cloudfunctions/getFunction.go +++ b/sdk/go/gcp/cloudfunctions/getFunction.go @@ -124,21 +124,11 @@ type LookupFunctionResult struct { } func LookupFunctionOutput(ctx *pulumi.Context, args LookupFunctionOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionResultOutput, error) { args := v.(LookupFunctionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctions/getFunction:getFunction", args, &rv, "", opts...) - if err != nil { - return LookupFunctionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctions/getFunction:getFunction", args, LookupFunctionResultOutput{}, options).(LookupFunctionResultOutput), nil }).(LookupFunctionResultOutput) } diff --git a/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go b/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go index aaa13acd0c..6ad568bd57 100644 --- a/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go +++ b/sdk/go/gcp/cloudfunctions/getFunctionIamPolicy.go @@ -78,21 +78,11 @@ type LookupFunctionIamPolicyResult struct { } func LookupFunctionIamPolicyOutput(ctx *pulumi.Context, args LookupFunctionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionIamPolicyResultOutput, error) { args := v.(LookupFunctionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFunctionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", args, LookupFunctionIamPolicyResultOutput{}, options).(LookupFunctionIamPolicyResultOutput), nil }).(LookupFunctionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudfunctionsv2/getFunction.go b/sdk/go/gcp/cloudfunctionsv2/getFunction.go index ad47ac27a9..f6990adc33 100644 --- a/sdk/go/gcp/cloudfunctionsv2/getFunction.go +++ b/sdk/go/gcp/cloudfunctionsv2/getFunction.go @@ -86,21 +86,11 @@ type LookupFunctionResult struct { } func LookupFunctionOutput(ctx *pulumi.Context, args LookupFunctionOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionResultOutput, error) { args := v.(LookupFunctionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctionsv2/getFunction:getFunction", args, &rv, "", opts...) - if err != nil { - return LookupFunctionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctionsv2/getFunction:getFunction", args, LookupFunctionResultOutput{}, options).(LookupFunctionResultOutput), nil }).(LookupFunctionResultOutput) } diff --git a/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go b/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go index c579c54a9b..b2a6823469 100644 --- a/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go +++ b/sdk/go/gcp/cloudfunctionsv2/getFunctionIamPolicy.go @@ -78,21 +78,11 @@ type LookupFunctionIamPolicyResult struct { } func LookupFunctionIamPolicyOutput(ctx *pulumi.Context, args LookupFunctionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFunctionIamPolicyResultOutput, error) { args := v.(LookupFunctionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFunctionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFunctionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFunctionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFunctionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", args, LookupFunctionIamPolicyResultOutput{}, options).(LookupFunctionIamPolicyResultOutput), nil }).(LookupFunctionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroupLookup.go b/sdk/go/gcp/cloudidentity/getGroupLookup.go index 0509a72a46..b282310659 100644 --- a/sdk/go/gcp/cloudidentity/getGroupLookup.go +++ b/sdk/go/gcp/cloudidentity/getGroupLookup.go @@ -70,21 +70,11 @@ type GetGroupLookupResult struct { } func GetGroupLookupOutput(ctx *pulumi.Context, args GetGroupLookupOutputArgs, opts ...pulumi.InvokeOption) GetGroupLookupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupLookupResultOutput, error) { args := v.(GetGroupLookupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupLookupResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroupLookup:getGroupLookup", args, &rv, "", opts...) - if err != nil { - return GetGroupLookupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupLookupResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupLookupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroupLookup:getGroupLookup", args, GetGroupLookupResultOutput{}, options).(GetGroupLookupResultOutput), nil }).(GetGroupLookupResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroupMemberships.go b/sdk/go/gcp/cloudidentity/getGroupMemberships.go index 6b88c6eb06..5582cae008 100644 --- a/sdk/go/gcp/cloudidentity/getGroupMemberships.go +++ b/sdk/go/gcp/cloudidentity/getGroupMemberships.go @@ -72,21 +72,11 @@ type GetGroupMembershipsResult struct { } func GetGroupMembershipsOutput(ctx *pulumi.Context, args GetGroupMembershipsOutputArgs, opts ...pulumi.InvokeOption) GetGroupMembershipsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupMembershipsResultOutput, error) { args := v.(GetGroupMembershipsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupMembershipsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args, &rv, "", opts...) - if err != nil { - return GetGroupMembershipsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupMembershipsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupMembershipsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", args, GetGroupMembershipsResultOutput{}, options).(GetGroupMembershipsResultOutput), nil }).(GetGroupMembershipsResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go b/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go index c83a169ff4..cfcddcb352 100644 --- a/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go +++ b/sdk/go/gcp/cloudidentity/getGroupTransitiveMemberships.go @@ -35,21 +35,11 @@ type GetGroupTransitiveMembershipsResult struct { } func GetGroupTransitiveMembershipsOutput(ctx *pulumi.Context, args GetGroupTransitiveMembershipsOutputArgs, opts ...pulumi.InvokeOption) GetGroupTransitiveMembershipsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupTransitiveMembershipsResultOutput, error) { args := v.(GetGroupTransitiveMembershipsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupTransitiveMembershipsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args, &rv, "", opts...) - if err != nil { - return GetGroupTransitiveMembershipsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupTransitiveMembershipsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupTransitiveMembershipsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", args, GetGroupTransitiveMembershipsResultOutput{}, options).(GetGroupTransitiveMembershipsResultOutput), nil }).(GetGroupTransitiveMembershipsResultOutput) } diff --git a/sdk/go/gcp/cloudidentity/getGroups.go b/sdk/go/gcp/cloudidentity/getGroups.go index 73c9037145..8d9852806b 100644 --- a/sdk/go/gcp/cloudidentity/getGroups.go +++ b/sdk/go/gcp/cloudidentity/getGroups.go @@ -66,21 +66,11 @@ type GetGroupsResult struct { } func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetGroupsResultOutput, error) { args := v.(GetGroupsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetGroupsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudidentity/getGroups:getGroups", args, &rv, "", opts...) - if err != nil { - return GetGroupsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetGroupsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetGroupsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudidentity/getGroups:getGroups", args, GetGroupsResultOutput{}, options).(GetGroupsResultOutput), nil }).(GetGroupsResultOutput) } diff --git a/sdk/go/gcp/cloudquota/getSQuotaInfo.go b/sdk/go/gcp/cloudquota/getSQuotaInfo.go index 34cae10edc..6346ff458f 100644 --- a/sdk/go/gcp/cloudquota/getSQuotaInfo.go +++ b/sdk/go/gcp/cloudquota/getSQuotaInfo.go @@ -98,21 +98,11 @@ type GetSQuotaInfoResult struct { } func GetSQuotaInfoOutput(ctx *pulumi.Context, args GetSQuotaInfoOutputArgs, opts ...pulumi.InvokeOption) GetSQuotaInfoResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSQuotaInfoResultOutput, error) { args := v.(GetSQuotaInfoArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSQuotaInfoResult - secret, err := ctx.InvokePackageRaw("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args, &rv, "", opts...) - if err != nil { - return GetSQuotaInfoResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSQuotaInfoResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSQuotaInfoResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", args, GetSQuotaInfoResultOutput{}, options).(GetSQuotaInfoResultOutput), nil }).(GetSQuotaInfoResultOutput) } diff --git a/sdk/go/gcp/cloudquota/getSQuotaInfos.go b/sdk/go/gcp/cloudquota/getSQuotaInfos.go index 6e750181b2..a4992c5264 100644 --- a/sdk/go/gcp/cloudquota/getSQuotaInfos.go +++ b/sdk/go/gcp/cloudquota/getSQuotaInfos.go @@ -68,21 +68,11 @@ type GetSQuotaInfosResult struct { } func GetSQuotaInfosOutput(ctx *pulumi.Context, args GetSQuotaInfosOutputArgs, opts ...pulumi.InvokeOption) GetSQuotaInfosResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSQuotaInfosResultOutput, error) { args := v.(GetSQuotaInfosArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSQuotaInfosResult - secret, err := ctx.InvokePackageRaw("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args, &rv, "", opts...) - if err != nil { - return GetSQuotaInfosResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSQuotaInfosResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSQuotaInfosResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", args, GetSQuotaInfosResultOutput{}, options).(GetSQuotaInfosResultOutput), nil }).(GetSQuotaInfosResultOutput) } diff --git a/sdk/go/gcp/cloudrun/getLocations.go b/sdk/go/gcp/cloudrun/getLocations.go index 1e0e333ad9..6d60ca34c5 100644 --- a/sdk/go/gcp/cloudrun/getLocations.go +++ b/sdk/go/gcp/cloudrun/getLocations.go @@ -69,21 +69,11 @@ type GetLocationsResult struct { } func GetLocationsOutput(ctx *pulumi.Context, args GetLocationsOutputArgs, opts ...pulumi.InvokeOption) GetLocationsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetLocationsResultOutput, error) { args := v.(GetLocationsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLocationsResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrun/getLocations:getLocations", args, &rv, "", opts...) - if err != nil { - return GetLocationsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLocationsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLocationsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrun/getLocations:getLocations", args, GetLocationsResultOutput{}, options).(GetLocationsResultOutput), nil }).(GetLocationsResultOutput) } diff --git a/sdk/go/gcp/cloudrun/getService.go b/sdk/go/gcp/cloudrun/getService.go index a1ad7d71e7..7727d12f40 100644 --- a/sdk/go/gcp/cloudrun/getService.go +++ b/sdk/go/gcp/cloudrun/getService.go @@ -79,21 +79,11 @@ type LookupServiceResult struct { } func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceResultOutput, error) { args := v.(LookupServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrun/getService:getService", args, &rv, "", opts...) - if err != nil { - return LookupServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrun/getService:getService", args, LookupServiceResultOutput{}, options).(LookupServiceResultOutput), nil }).(LookupServiceResultOutput) } diff --git a/sdk/go/gcp/cloudrun/getServiceIamPolicy.go b/sdk/go/gcp/cloudrun/getServiceIamPolicy.go index d3c6d942ab..3782a8d75d 100644 --- a/sdk/go/gcp/cloudrun/getServiceIamPolicy.go +++ b/sdk/go/gcp/cloudrun/getServiceIamPolicy.go @@ -78,21 +78,11 @@ type GetServiceIamPolicyResult struct { } func GetServiceIamPolicyOutput(ctx *pulumi.Context, args GetServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceIamPolicyResultOutput, error) { args := v.(GetServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", args, GetServiceIamPolicyResultOutput{}, options).(GetServiceIamPolicyResultOutput), nil }).(GetServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getJob.go b/sdk/go/gcp/cloudrunv2/getJob.go index 143b2fc80d..5e70358018 100644 --- a/sdk/go/gcp/cloudrunv2/getJob.go +++ b/sdk/go/gcp/cloudrunv2/getJob.go @@ -102,21 +102,11 @@ type LookupJobResult struct { } func LookupJobOutput(ctx *pulumi.Context, args LookupJobOutputArgs, opts ...pulumi.InvokeOption) LookupJobResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupJobResultOutput, error) { args := v.(LookupJobArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupJobResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getJob:getJob", args, &rv, "", opts...) - if err != nil { - return LookupJobResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupJobResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupJobResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getJob:getJob", args, LookupJobResultOutput{}, options).(LookupJobResultOutput), nil }).(LookupJobResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go b/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go index e08b13bc26..f3ec9da375 100644 --- a/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go +++ b/sdk/go/gcp/cloudrunv2/getJobIamPolicy.go @@ -78,21 +78,11 @@ type LookupJobIamPolicyResult struct { } func LookupJobIamPolicyOutput(ctx *pulumi.Context, args LookupJobIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupJobIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupJobIamPolicyResultOutput, error) { args := v.(LookupJobIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupJobIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupJobIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupJobIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupJobIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", args, LookupJobIamPolicyResultOutput{}, options).(LookupJobIamPolicyResultOutput), nil }).(LookupJobIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getService.go b/sdk/go/gcp/cloudrunv2/getService.go index 7213a15aab..0827307215 100644 --- a/sdk/go/gcp/cloudrunv2/getService.go +++ b/sdk/go/gcp/cloudrunv2/getService.go @@ -110,21 +110,11 @@ type LookupServiceResult struct { } func LookupServiceOutput(ctx *pulumi.Context, args LookupServiceOutputArgs, opts ...pulumi.InvokeOption) LookupServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceResultOutput, error) { args := v.(LookupServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getService:getService", args, &rv, "", opts...) - if err != nil { - return LookupServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getService:getService", args, LookupServiceResultOutput{}, options).(LookupServiceResultOutput), nil }).(LookupServiceResultOutput) } diff --git a/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go b/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go index f97487b15c..1ba982500b 100644 --- a/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go +++ b/sdk/go/gcp/cloudrunv2/getServiceIamPolicy.go @@ -78,21 +78,11 @@ type LookupServiceIamPolicyResult struct { } func LookupServiceIamPolicyOutput(ctx *pulumi.Context, args LookupServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceIamPolicyResultOutput, error) { args := v.(LookupServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", args, LookupServiceIamPolicyResultOutput{}, options).(LookupServiceIamPolicyResultOutput), nil }).(LookupServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go b/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go index 8a31ff2edb..92739a4a64 100644 --- a/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go +++ b/sdk/go/gcp/cloudtasks/getQueueIamPolicy.go @@ -78,21 +78,11 @@ type LookupQueueIamPolicyResult struct { } func LookupQueueIamPolicyOutput(ctx *pulumi.Context, args LookupQueueIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupQueueIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupQueueIamPolicyResultOutput, error) { args := v.(LookupQueueIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupQueueIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupQueueIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupQueueIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupQueueIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", args, LookupQueueIamPolicyResultOutput{}, options).(LookupQueueIamPolicyResultOutput), nil }).(LookupQueueIamPolicyResultOutput) } diff --git a/sdk/go/gcp/composer/getEnvironment.go b/sdk/go/gcp/composer/getEnvironment.go index d9e770a14c..899febaa95 100644 --- a/sdk/go/gcp/composer/getEnvironment.go +++ b/sdk/go/gcp/composer/getEnvironment.go @@ -82,21 +82,11 @@ type LookupEnvironmentResult struct { } func LookupEnvironmentOutput(ctx *pulumi.Context, args LookupEnvironmentOutputArgs, opts ...pulumi.InvokeOption) LookupEnvironmentResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEnvironmentResultOutput, error) { args := v.(LookupEnvironmentArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEnvironmentResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getEnvironment:getEnvironment", args, &rv, "", opts...) - if err != nil { - return LookupEnvironmentResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEnvironmentResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEnvironmentResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getEnvironment:getEnvironment", args, LookupEnvironmentResultOutput{}, options).(LookupEnvironmentResultOutput), nil }).(LookupEnvironmentResultOutput) } diff --git a/sdk/go/gcp/composer/getImageVersions.go b/sdk/go/gcp/composer/getImageVersions.go index 7d8205c9af..dbae8b70e1 100644 --- a/sdk/go/gcp/composer/getImageVersions.go +++ b/sdk/go/gcp/composer/getImageVersions.go @@ -79,21 +79,11 @@ type GetImageVersionsResult struct { } func GetImageVersionsOutput(ctx *pulumi.Context, args GetImageVersionsOutputArgs, opts ...pulumi.InvokeOption) GetImageVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetImageVersionsResultOutput, error) { args := v.(GetImageVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetImageVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getImageVersions:getImageVersions", args, &rv, "", opts...) - if err != nil { - return GetImageVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetImageVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetImageVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getImageVersions:getImageVersions", args, GetImageVersionsResultOutput{}, options).(GetImageVersionsResultOutput), nil }).(GetImageVersionsResultOutput) } diff --git a/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go b/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go index f310ecd3cc..b044c444be 100644 --- a/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go +++ b/sdk/go/gcp/composer/getUserWorkloadsConfigMap.go @@ -96,21 +96,11 @@ type LookupUserWorkloadsConfigMapResult struct { } func LookupUserWorkloadsConfigMapOutput(ctx *pulumi.Context, args LookupUserWorkloadsConfigMapOutputArgs, opts ...pulumi.InvokeOption) LookupUserWorkloadsConfigMapResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserWorkloadsConfigMapResultOutput, error) { args := v.(LookupUserWorkloadsConfigMapArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupUserWorkloadsConfigMapResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args, &rv, "", opts...) - if err != nil { - return LookupUserWorkloadsConfigMapResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupUserWorkloadsConfigMapResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupUserWorkloadsConfigMapResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", args, LookupUserWorkloadsConfigMapResultOutput{}, options).(LookupUserWorkloadsConfigMapResultOutput), nil }).(LookupUserWorkloadsConfigMapResultOutput) } diff --git a/sdk/go/gcp/composer/getUserWorkloadsSecret.go b/sdk/go/gcp/composer/getUserWorkloadsSecret.go index be8e21bc80..ed82874b05 100644 --- a/sdk/go/gcp/composer/getUserWorkloadsSecret.go +++ b/sdk/go/gcp/composer/getUserWorkloadsSecret.go @@ -107,21 +107,11 @@ type LookupUserWorkloadsSecretResult struct { } func LookupUserWorkloadsSecretOutput(ctx *pulumi.Context, args LookupUserWorkloadsSecretOutputArgs, opts ...pulumi.InvokeOption) LookupUserWorkloadsSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupUserWorkloadsSecretResultOutput, error) { args := v.(LookupUserWorkloadsSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupUserWorkloadsSecretResult - secret, err := ctx.InvokePackageRaw("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args, &rv, "", opts...) - if err != nil { - return LookupUserWorkloadsSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupUserWorkloadsSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupUserWorkloadsSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", args, LookupUserWorkloadsSecretResultOutput{}, options).(LookupUserWorkloadsSecretResultOutput), nil }).(LookupUserWorkloadsSecretResultOutput) } diff --git a/sdk/go/gcp/compute/getAddress.go b/sdk/go/gcp/compute/getAddress.go index 6a02aee1b3..5ffe394972 100644 --- a/sdk/go/gcp/compute/getAddress.go +++ b/sdk/go/gcp/compute/getAddress.go @@ -110,21 +110,11 @@ type LookupAddressResult struct { } func LookupAddressOutput(ctx *pulumi.Context, args LookupAddressOutputArgs, opts ...pulumi.InvokeOption) LookupAddressResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAddressResultOutput, error) { args := v.(LookupAddressArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAddressResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getAddress:getAddress", args, &rv, "", opts...) - if err != nil { - return LookupAddressResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAddressResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAddressResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getAddress:getAddress", args, LookupAddressResultOutput{}, options).(LookupAddressResultOutput), nil }).(LookupAddressResultOutput) } diff --git a/sdk/go/gcp/compute/getAddresses.go b/sdk/go/gcp/compute/getAddresses.go index 9c69378102..260ac8c9c0 100644 --- a/sdk/go/gcp/compute/getAddresses.go +++ b/sdk/go/gcp/compute/getAddresses.go @@ -122,21 +122,11 @@ type GetAddressesResult struct { } func GetAddressesOutput(ctx *pulumi.Context, args GetAddressesOutputArgs, opts ...pulumi.InvokeOption) GetAddressesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAddressesResultOutput, error) { args := v.(GetAddressesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAddressesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getAddresses:getAddresses", args, &rv, "", opts...) - if err != nil { - return GetAddressesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAddressesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAddressesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getAddresses:getAddresses", args, GetAddressesResultOutput{}, options).(GetAddressesResultOutput), nil }).(GetAddressesResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendBucket.go b/sdk/go/gcp/compute/getBackendBucket.go index ae6a1be285..ed0d954072 100644 --- a/sdk/go/gcp/compute/getBackendBucket.go +++ b/sdk/go/gcp/compute/getBackendBucket.go @@ -77,21 +77,11 @@ type LookupBackendBucketResult struct { } func LookupBackendBucketOutput(ctx *pulumi.Context, args LookupBackendBucketOutputArgs, opts ...pulumi.InvokeOption) LookupBackendBucketResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendBucketResultOutput, error) { args := v.(LookupBackendBucketArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendBucketResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendBucket:getBackendBucket", args, &rv, "", opts...) - if err != nil { - return LookupBackendBucketResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendBucketResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendBucketResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendBucket:getBackendBucket", args, LookupBackendBucketResultOutput{}, options).(LookupBackendBucketResultOutput), nil }).(LookupBackendBucketResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendBucketIamPolicy.go b/sdk/go/gcp/compute/getBackendBucketIamPolicy.go index ce9e1c3110..7d628a0509 100644 --- a/sdk/go/gcp/compute/getBackendBucketIamPolicy.go +++ b/sdk/go/gcp/compute/getBackendBucketIamPolicy.go @@ -44,21 +44,11 @@ type LookupBackendBucketIamPolicyResult struct { } func LookupBackendBucketIamPolicyOutput(ctx *pulumi.Context, args LookupBackendBucketIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackendBucketIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendBucketIamPolicyResultOutput, error) { args := v.(LookupBackendBucketIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendBucketIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupBackendBucketIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendBucketIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendBucketIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", args, LookupBackendBucketIamPolicyResultOutput{}, options).(LookupBackendBucketIamPolicyResultOutput), nil }).(LookupBackendBucketIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendService.go b/sdk/go/gcp/compute/getBackendService.go index cdad365704..c594195b49 100644 --- a/sdk/go/gcp/compute/getBackendService.go +++ b/sdk/go/gcp/compute/getBackendService.go @@ -120,21 +120,11 @@ type LookupBackendServiceResult struct { } func LookupBackendServiceOutput(ctx *pulumi.Context, args LookupBackendServiceOutputArgs, opts ...pulumi.InvokeOption) LookupBackendServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendServiceResultOutput, error) { args := v.(LookupBackendServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendServiceResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendService:getBackendService", args, &rv, "", opts...) - if err != nil { - return LookupBackendServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendService:getBackendService", args, LookupBackendServiceResultOutput{}, options).(LookupBackendServiceResultOutput), nil }).(LookupBackendServiceResultOutput) } diff --git a/sdk/go/gcp/compute/getBackendServiceIamPolicy.go b/sdk/go/gcp/compute/getBackendServiceIamPolicy.go index 80ccb5e25b..9b8ae3480b 100644 --- a/sdk/go/gcp/compute/getBackendServiceIamPolicy.go +++ b/sdk/go/gcp/compute/getBackendServiceIamPolicy.go @@ -44,21 +44,11 @@ type LookupBackendServiceIamPolicyResult struct { } func LookupBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackendServiceIamPolicyResultOutput, error) { args := v.(LookupBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", args, LookupBackendServiceIamPolicyResultOutput{}, options).(LookupBackendServiceIamPolicyResultOutput), nil }).(LookupBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getCertificate.go b/sdk/go/gcp/compute/getCertificate.go index 2dd16ebb16..291512c79d 100644 --- a/sdk/go/gcp/compute/getCertificate.go +++ b/sdk/go/gcp/compute/getCertificate.go @@ -79,21 +79,11 @@ type GetCertificateResult struct { } func GetCertificateOutput(ctx *pulumi.Context, args GetCertificateOutputArgs, opts ...pulumi.InvokeOption) GetCertificateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCertificateResultOutput, error) { args := v.(GetCertificateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCertificateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getCertificate:getCertificate", args, &rv, "", opts...) - if err != nil { - return GetCertificateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCertificateResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCertificateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getCertificate:getCertificate", args, GetCertificateResultOutput{}, options).(GetCertificateResultOutput), nil }).(GetCertificateResultOutput) } diff --git a/sdk/go/gcp/compute/getDefaultServiceAccount.go b/sdk/go/gcp/compute/getDefaultServiceAccount.go index fcf2e6f54c..ead9698074 100644 --- a/sdk/go/gcp/compute/getDefaultServiceAccount.go +++ b/sdk/go/gcp/compute/getDefaultServiceAccount.go @@ -71,21 +71,11 @@ type GetDefaultServiceAccountResult struct { } func GetDefaultServiceAccountOutput(ctx *pulumi.Context, args GetDefaultServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetDefaultServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDefaultServiceAccountResultOutput, error) { args := v.(GetDefaultServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDefaultServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetDefaultServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDefaultServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDefaultServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", args, GetDefaultServiceAccountResultOutput{}, options).(GetDefaultServiceAccountResultOutput), nil }).(GetDefaultServiceAccountResultOutput) } diff --git a/sdk/go/gcp/compute/getDisk.go b/sdk/go/gcp/compute/getDisk.go index 338452a778..9861d043d2 100644 --- a/sdk/go/gcp/compute/getDisk.go +++ b/sdk/go/gcp/compute/getDisk.go @@ -147,21 +147,11 @@ type LookupDiskResult struct { } func LookupDiskOutput(ctx *pulumi.Context, args LookupDiskOutputArgs, opts ...pulumi.InvokeOption) LookupDiskResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDiskResultOutput, error) { args := v.(LookupDiskArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDiskResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getDisk:getDisk", args, &rv, "", opts...) - if err != nil { - return LookupDiskResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDiskResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDiskResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getDisk:getDisk", args, LookupDiskResultOutput{}, options).(LookupDiskResultOutput), nil }).(LookupDiskResultOutput) } diff --git a/sdk/go/gcp/compute/getDiskIamPolicy.go b/sdk/go/gcp/compute/getDiskIamPolicy.go index 39e27265e8..2290f847d0 100644 --- a/sdk/go/gcp/compute/getDiskIamPolicy.go +++ b/sdk/go/gcp/compute/getDiskIamPolicy.go @@ -78,21 +78,11 @@ type LookupDiskIamPolicyResult struct { } func LookupDiskIamPolicyOutput(ctx *pulumi.Context, args LookupDiskIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDiskIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDiskIamPolicyResultOutput, error) { args := v.(LookupDiskIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDiskIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDiskIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDiskIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDiskIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", args, LookupDiskIamPolicyResultOutput{}, options).(LookupDiskIamPolicyResultOutput), nil }).(LookupDiskIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getForwardingRule.go b/sdk/go/gcp/compute/getForwardingRule.go index 67637c8e3c..1aac6e7fd4 100644 --- a/sdk/go/gcp/compute/getForwardingRule.go +++ b/sdk/go/gcp/compute/getForwardingRule.go @@ -104,21 +104,11 @@ type LookupForwardingRuleResult struct { } func LookupForwardingRuleOutput(ctx *pulumi.Context, args LookupForwardingRuleOutputArgs, opts ...pulumi.InvokeOption) LookupForwardingRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupForwardingRuleResultOutput, error) { args := v.(LookupForwardingRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupForwardingRuleResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getForwardingRule:getForwardingRule", args, &rv, "", opts...) - if err != nil { - return LookupForwardingRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupForwardingRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupForwardingRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getForwardingRule:getForwardingRule", args, LookupForwardingRuleResultOutput{}, options).(LookupForwardingRuleResultOutput), nil }).(LookupForwardingRuleResultOutput) } diff --git a/sdk/go/gcp/compute/getForwardingRules.go b/sdk/go/gcp/compute/getForwardingRules.go index 858c8b5813..e67b83ed32 100644 --- a/sdk/go/gcp/compute/getForwardingRules.go +++ b/sdk/go/gcp/compute/getForwardingRules.go @@ -72,21 +72,11 @@ type GetForwardingRulesResult struct { } func GetForwardingRulesOutput(ctx *pulumi.Context, args GetForwardingRulesOutputArgs, opts ...pulumi.InvokeOption) GetForwardingRulesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetForwardingRulesResultOutput, error) { args := v.(GetForwardingRulesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetForwardingRulesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getForwardingRules:getForwardingRules", args, &rv, "", opts...) - if err != nil { - return GetForwardingRulesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetForwardingRulesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetForwardingRulesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getForwardingRules:getForwardingRules", args, GetForwardingRulesResultOutput{}, options).(GetForwardingRulesResultOutput), nil }).(GetForwardingRulesResultOutput) } diff --git a/sdk/go/gcp/compute/getGlobalAddress.go b/sdk/go/gcp/compute/getGlobalAddress.go index 7038bf4abd..0de622e747 100644 --- a/sdk/go/gcp/compute/getGlobalAddress.go +++ b/sdk/go/gcp/compute/getGlobalAddress.go @@ -106,21 +106,11 @@ type LookupGlobalAddressResult struct { } func LookupGlobalAddressOutput(ctx *pulumi.Context, args LookupGlobalAddressOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalAddressResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupGlobalAddressResultOutput, error) { args := v.(LookupGlobalAddressArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupGlobalAddressResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getGlobalAddress:getGlobalAddress", args, &rv, "", opts...) - if err != nil { - return LookupGlobalAddressResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupGlobalAddressResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupGlobalAddressResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getGlobalAddress:getGlobalAddress", args, LookupGlobalAddressResultOutput{}, options).(LookupGlobalAddressResultOutput), nil }).(LookupGlobalAddressResultOutput) } diff --git a/sdk/go/gcp/compute/getGlobalForwardingRule.go b/sdk/go/gcp/compute/getGlobalForwardingRule.go index 02767daa27..5c02da64c2 100644 --- a/sdk/go/gcp/compute/getGlobalForwardingRule.go +++ b/sdk/go/gcp/compute/getGlobalForwardingRule.go @@ -90,21 +90,11 @@ type LookupGlobalForwardingRuleResult struct { } func LookupGlobalForwardingRuleOutput(ctx *pulumi.Context, args LookupGlobalForwardingRuleOutputArgs, opts ...pulumi.InvokeOption) LookupGlobalForwardingRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupGlobalForwardingRuleResultOutput, error) { args := v.(LookupGlobalForwardingRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupGlobalForwardingRuleResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args, &rv, "", opts...) - if err != nil { - return LookupGlobalForwardingRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupGlobalForwardingRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupGlobalForwardingRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", args, LookupGlobalForwardingRuleResultOutput{}, options).(LookupGlobalForwardingRuleResultOutput), nil }).(LookupGlobalForwardingRuleResultOutput) } diff --git a/sdk/go/gcp/compute/getHcVpnGateway.go b/sdk/go/gcp/compute/getHcVpnGateway.go index 0a4eca6f3a..0784ba3059 100644 --- a/sdk/go/gcp/compute/getHcVpnGateway.go +++ b/sdk/go/gcp/compute/getHcVpnGateway.go @@ -78,21 +78,11 @@ type GetHcVpnGatewayResult struct { } func GetHcVpnGatewayOutput(ctx *pulumi.Context, args GetHcVpnGatewayOutputArgs, opts ...pulumi.InvokeOption) GetHcVpnGatewayResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHcVpnGatewayResultOutput, error) { args := v.(GetHcVpnGatewayArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHcVpnGatewayResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getHcVpnGateway:getHcVpnGateway", args, &rv, "", opts...) - if err != nil { - return GetHcVpnGatewayResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHcVpnGatewayResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHcVpnGatewayResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getHcVpnGateway:getHcVpnGateway", args, GetHcVpnGatewayResultOutput{}, options).(GetHcVpnGatewayResultOutput), nil }).(GetHcVpnGatewayResultOutput) } diff --git a/sdk/go/gcp/compute/getHealthCheck.go b/sdk/go/gcp/compute/getHealthCheck.go index 43d631e466..0e32d67207 100644 --- a/sdk/go/gcp/compute/getHealthCheck.go +++ b/sdk/go/gcp/compute/getHealthCheck.go @@ -84,21 +84,11 @@ type LookupHealthCheckResult struct { } func LookupHealthCheckOutput(ctx *pulumi.Context, args LookupHealthCheckOutputArgs, opts ...pulumi.InvokeOption) LookupHealthCheckResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupHealthCheckResultOutput, error) { args := v.(LookupHealthCheckArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupHealthCheckResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getHealthCheck:getHealthCheck", args, &rv, "", opts...) - if err != nil { - return LookupHealthCheckResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupHealthCheckResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupHealthCheckResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getHealthCheck:getHealthCheck", args, LookupHealthCheckResultOutput{}, options).(LookupHealthCheckResultOutput), nil }).(LookupHealthCheckResultOutput) } diff --git a/sdk/go/gcp/compute/getImage.go b/sdk/go/gcp/compute/getImage.go index 82326feb0b..e514f024ee 100644 --- a/sdk/go/gcp/compute/getImage.go +++ b/sdk/go/gcp/compute/getImage.go @@ -131,21 +131,11 @@ type LookupImageResult struct { } func LookupImageOutput(ctx *pulumi.Context, args LookupImageOutputArgs, opts ...pulumi.InvokeOption) LookupImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupImageResultOutput, error) { args := v.(LookupImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupImageResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getImage:getImage", args, &rv, "", opts...) - if err != nil { - return LookupImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupImageResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getImage:getImage", args, LookupImageResultOutput{}, options).(LookupImageResultOutput), nil }).(LookupImageResultOutput) } diff --git a/sdk/go/gcp/compute/getImageIamPolicy.go b/sdk/go/gcp/compute/getImageIamPolicy.go index 6ad4c62b6f..a87f43a6ba 100644 --- a/sdk/go/gcp/compute/getImageIamPolicy.go +++ b/sdk/go/gcp/compute/getImageIamPolicy.go @@ -72,21 +72,11 @@ type LookupImageIamPolicyResult struct { } func LookupImageIamPolicyOutput(ctx *pulumi.Context, args LookupImageIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupImageIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupImageIamPolicyResultOutput, error) { args := v.(LookupImageIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupImageIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getImageIamPolicy:getImageIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupImageIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupImageIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupImageIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getImageIamPolicy:getImageIamPolicy", args, LookupImageIamPolicyResultOutput{}, options).(LookupImageIamPolicyResultOutput), nil }).(LookupImageIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getInstance.go b/sdk/go/gcp/compute/getInstance.go index 31c67f0bae..3ccc42c221 100644 --- a/sdk/go/gcp/compute/getInstance.go +++ b/sdk/go/gcp/compute/getInstance.go @@ -145,21 +145,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceGroup.go b/sdk/go/gcp/compute/getInstanceGroup.go index fa01dde0c3..f96ad15350 100644 --- a/sdk/go/gcp/compute/getInstanceGroup.go +++ b/sdk/go/gcp/compute/getInstanceGroup.go @@ -85,21 +85,11 @@ type LookupInstanceGroupResult struct { } func LookupInstanceGroupOutput(ctx *pulumi.Context, args LookupInstanceGroupOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceGroupResultOutput, error) { args := v.(LookupInstanceGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceGroup:getInstanceGroup", args, &rv, "", opts...) - if err != nil { - return LookupInstanceGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceGroup:getInstanceGroup", args, LookupInstanceGroupResultOutput{}, options).(LookupInstanceGroupResultOutput), nil }).(LookupInstanceGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceGroupManager.go b/sdk/go/gcp/compute/getInstanceGroupManager.go index 59d8748d59..ae3a8fdba7 100644 --- a/sdk/go/gcp/compute/getInstanceGroupManager.go +++ b/sdk/go/gcp/compute/getInstanceGroupManager.go @@ -105,21 +105,11 @@ type LookupInstanceGroupManagerResult struct { } func LookupInstanceGroupManagerOutput(ctx *pulumi.Context, args LookupInstanceGroupManagerOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceGroupManagerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceGroupManagerResultOutput, error) { args := v.(LookupInstanceGroupManagerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceGroupManagerResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args, &rv, "", opts...) - if err != nil { - return LookupInstanceGroupManagerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceGroupManagerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceGroupManagerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", args, LookupInstanceGroupManagerResultOutput{}, options).(LookupInstanceGroupManagerResultOutput), nil }).(LookupInstanceGroupManagerResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceGuestAttributes.go b/sdk/go/gcp/compute/getInstanceGuestAttributes.go index 6881a972d5..2355b40240 100644 --- a/sdk/go/gcp/compute/getInstanceGuestAttributes.go +++ b/sdk/go/gcp/compute/getInstanceGuestAttributes.go @@ -125,21 +125,11 @@ type GetInstanceGuestAttributesResult struct { } func GetInstanceGuestAttributesOutput(ctx *pulumi.Context, args GetInstanceGuestAttributesOutputArgs, opts ...pulumi.InvokeOption) GetInstanceGuestAttributesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceGuestAttributesResultOutput, error) { args := v.(GetInstanceGuestAttributesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceGuestAttributesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args, &rv, "", opts...) - if err != nil { - return GetInstanceGuestAttributesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceGuestAttributesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceGuestAttributesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", args, GetInstanceGuestAttributesResultOutput{}, options).(GetInstanceGuestAttributesResultOutput), nil }).(GetInstanceGuestAttributesResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceIamPolicy.go b/sdk/go/gcp/compute/getInstanceIamPolicy.go index e6e6f62b4d..e03c5ace0c 100644 --- a/sdk/go/gcp/compute/getInstanceIamPolicy.go +++ b/sdk/go/gcp/compute/getInstanceIamPolicy.go @@ -78,21 +78,11 @@ type GetInstanceIamPolicyResult struct { } func GetInstanceIamPolicyOutput(ctx *pulumi.Context, args GetInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceIamPolicyResultOutput, error) { args := v.(GetInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", args, GetInstanceIamPolicyResultOutput{}, options).(GetInstanceIamPolicyResultOutput), nil }).(GetInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceSerialPort.go b/sdk/go/gcp/compute/getInstanceSerialPort.go index 54a9c8ae70..4d94afc045 100644 --- a/sdk/go/gcp/compute/getInstanceSerialPort.go +++ b/sdk/go/gcp/compute/getInstanceSerialPort.go @@ -158,21 +158,11 @@ type GetInstanceSerialPortResult struct { } func GetInstanceSerialPortOutput(ctx *pulumi.Context, args GetInstanceSerialPortOutputArgs, opts ...pulumi.InvokeOption) GetInstanceSerialPortResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceSerialPortResultOutput, error) { args := v.(GetInstanceSerialPortArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceSerialPortResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args, &rv, "", opts...) - if err != nil { - return GetInstanceSerialPortResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceSerialPortResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceSerialPortResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", args, GetInstanceSerialPortResultOutput{}, options).(GetInstanceSerialPortResultOutput), nil }).(GetInstanceSerialPortResultOutput) } diff --git a/sdk/go/gcp/compute/getInstanceTemplate.go b/sdk/go/gcp/compute/getInstanceTemplate.go index 0f98985e36..2065f133ee 100644 --- a/sdk/go/gcp/compute/getInstanceTemplate.go +++ b/sdk/go/gcp/compute/getInstanceTemplate.go @@ -141,21 +141,11 @@ type LookupInstanceTemplateResult struct { } func LookupInstanceTemplateOutput(ctx *pulumi.Context, args LookupInstanceTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceTemplateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceTemplateResultOutput, error) { args := v.(LookupInstanceTemplateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceTemplateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getInstanceTemplate:getInstanceTemplate", args, &rv, "", opts...) - if err != nil { - return LookupInstanceTemplateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceTemplateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceTemplateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getInstanceTemplate:getInstanceTemplate", args, LookupInstanceTemplateResultOutput{}, options).(LookupInstanceTemplateResultOutput), nil }).(LookupInstanceTemplateResultOutput) } diff --git a/sdk/go/gcp/compute/getLBIPRanges.go b/sdk/go/gcp/compute/getLBIPRanges.go index d78caa636e..4efe02adf8 100644 --- a/sdk/go/gcp/compute/getLBIPRanges.go +++ b/sdk/go/gcp/compute/getLBIPRanges.go @@ -79,18 +79,8 @@ type GetLBIPRangesResult struct { func GetLBIPRangesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetLBIPRangesResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetLBIPRangesResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetLBIPRangesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getLBIPRanges:getLBIPRanges", nil, &rv, "", opts...) - if err != nil { - return GetLBIPRangesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetLBIPRangesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetLBIPRangesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getLBIPRanges:getLBIPRanges", nil, GetLBIPRangesResultOutput{}, options).(GetLBIPRangesResultOutput), nil }).(GetLBIPRangesResultOutput) } diff --git a/sdk/go/gcp/compute/getMachineImageIamPolicy.go b/sdk/go/gcp/compute/getMachineImageIamPolicy.go index d4a09cae20..4ffcbee1be 100644 --- a/sdk/go/gcp/compute/getMachineImageIamPolicy.go +++ b/sdk/go/gcp/compute/getMachineImageIamPolicy.go @@ -44,21 +44,11 @@ type LookupMachineImageIamPolicyResult struct { } func LookupMachineImageIamPolicyOutput(ctx *pulumi.Context, args LookupMachineImageIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMachineImageIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMachineImageIamPolicyResultOutput, error) { args := v.(LookupMachineImageIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMachineImageIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMachineImageIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMachineImageIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMachineImageIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", args, LookupMachineImageIamPolicyResultOutput{}, options).(LookupMachineImageIamPolicyResultOutput), nil }).(LookupMachineImageIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getMachineTypes.go b/sdk/go/gcp/compute/getMachineTypes.go index 5c92471bbb..32d6502eaf 100644 --- a/sdk/go/gcp/compute/getMachineTypes.go +++ b/sdk/go/gcp/compute/getMachineTypes.go @@ -52,21 +52,11 @@ type GetMachineTypesResult struct { } func GetMachineTypesOutput(ctx *pulumi.Context, args GetMachineTypesOutputArgs, opts ...pulumi.InvokeOption) GetMachineTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMachineTypesResultOutput, error) { args := v.(GetMachineTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMachineTypesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getMachineTypes:getMachineTypes", args, &rv, "", opts...) - if err != nil { - return GetMachineTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMachineTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMachineTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getMachineTypes:getMachineTypes", args, GetMachineTypesResultOutput{}, options).(GetMachineTypesResultOutput), nil }).(GetMachineTypesResultOutput) } diff --git a/sdk/go/gcp/compute/getNetblockIPRanges.go b/sdk/go/gcp/compute/getNetblockIPRanges.go index b9e157c3e6..42678f1585 100644 --- a/sdk/go/gcp/compute/getNetblockIPRanges.go +++ b/sdk/go/gcp/compute/getNetblockIPRanges.go @@ -137,21 +137,11 @@ type GetNetblockIPRangesResult struct { } func GetNetblockIPRangesOutput(ctx *pulumi.Context, args GetNetblockIPRangesOutputArgs, opts ...pulumi.InvokeOption) GetNetblockIPRangesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetblockIPRangesResultOutput, error) { args := v.(GetNetblockIPRangesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetblockIPRangesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args, &rv, "", opts...) - if err != nil { - return GetNetblockIPRangesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetblockIPRangesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetblockIPRangesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", args, GetNetblockIPRangesResultOutput{}, options).(GetNetblockIPRangesResultOutput), nil }).(GetNetblockIPRangesResultOutput) } diff --git a/sdk/go/gcp/compute/getNetwork.go b/sdk/go/gcp/compute/getNetwork.go index 51ce42e792..d0612c350b 100644 --- a/sdk/go/gcp/compute/getNetwork.go +++ b/sdk/go/gcp/compute/getNetwork.go @@ -78,21 +78,11 @@ type LookupNetworkResult struct { } func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkResultOutput, error) { args := v.(LookupNetworkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetwork:getNetwork", args, &rv, "", opts...) - if err != nil { - return LookupNetworkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetwork:getNetwork", args, LookupNetworkResultOutput{}, options).(LookupNetworkResultOutput), nil }).(LookupNetworkResultOutput) } diff --git a/sdk/go/gcp/compute/getNetworkEndpointGroup.go b/sdk/go/gcp/compute/getNetworkEndpointGroup.go index 7e2ba82321..2271e83b53 100644 --- a/sdk/go/gcp/compute/getNetworkEndpointGroup.go +++ b/sdk/go/gcp/compute/getNetworkEndpointGroup.go @@ -94,21 +94,11 @@ type LookupNetworkEndpointGroupResult struct { } func LookupNetworkEndpointGroupOutput(ctx *pulumi.Context, args LookupNetworkEndpointGroupOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkEndpointGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkEndpointGroupResultOutput, error) { args := v.(LookupNetworkEndpointGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkEndpointGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args, &rv, "", opts...) - if err != nil { - return LookupNetworkEndpointGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkEndpointGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkEndpointGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", args, LookupNetworkEndpointGroupResultOutput{}, options).(LookupNetworkEndpointGroupResultOutput), nil }).(LookupNetworkEndpointGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getNetworkPeering.go b/sdk/go/gcp/compute/getNetworkPeering.go index 7ca4193450..1c9eba8956 100644 --- a/sdk/go/gcp/compute/getNetworkPeering.go +++ b/sdk/go/gcp/compute/getNetworkPeering.go @@ -104,21 +104,11 @@ type LookupNetworkPeeringResult struct { } func LookupNetworkPeeringOutput(ctx *pulumi.Context, args LookupNetworkPeeringOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPeeringResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkPeeringResultOutput, error) { args := v.(LookupNetworkPeeringArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkPeeringResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetworkPeering:getNetworkPeering", args, &rv, "", opts...) - if err != nil { - return LookupNetworkPeeringResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkPeeringResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkPeeringResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetworkPeering:getNetworkPeering", args, LookupNetworkPeeringResultOutput{}, options).(LookupNetworkPeeringResultOutput), nil }).(LookupNetworkPeeringResultOutput) } diff --git a/sdk/go/gcp/compute/getNetworks.go b/sdk/go/gcp/compute/getNetworks.go index d474cdc833..50d3495ad9 100644 --- a/sdk/go/gcp/compute/getNetworks.go +++ b/sdk/go/gcp/compute/getNetworks.go @@ -67,21 +67,11 @@ type GetNetworksResult struct { } func GetNetworksOutput(ctx *pulumi.Context, args GetNetworksOutputArgs, opts ...pulumi.InvokeOption) GetNetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNetworksResultOutput, error) { args := v.(GetNetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNetworksResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNetworks:getNetworks", args, &rv, "", opts...) - if err != nil { - return GetNetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNetworks:getNetworks", args, GetNetworksResultOutput{}, options).(GetNetworksResultOutput), nil }).(GetNetworksResultOutput) } diff --git a/sdk/go/gcp/compute/getNodeTypes.go b/sdk/go/gcp/compute/getNodeTypes.go index abafe15d75..392c9378dd 100644 --- a/sdk/go/gcp/compute/getNodeTypes.go +++ b/sdk/go/gcp/compute/getNodeTypes.go @@ -79,21 +79,11 @@ type GetNodeTypesResult struct { } func GetNodeTypesOutput(ctx *pulumi.Context, args GetNodeTypesOutputArgs, opts ...pulumi.InvokeOption) GetNodeTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNodeTypesResultOutput, error) { args := v.(GetNodeTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNodeTypesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getNodeTypes:getNodeTypes", args, &rv, "", opts...) - if err != nil { - return GetNodeTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNodeTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNodeTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getNodeTypes:getNodeTypes", args, GetNodeTypesResultOutput{}, options).(GetNodeTypesResultOutput), nil }).(GetNodeTypesResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go b/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go index f893c8e092..250605f795 100644 --- a/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go +++ b/sdk/go/gcp/compute/getRegionBackendServiceIamPolicy.go @@ -51,21 +51,11 @@ type LookupRegionBackendServiceIamPolicyResult struct { } func LookupRegionBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupRegionBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRegionBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionBackendServiceIamPolicyResultOutput, error) { args := v.(LookupRegionBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRegionBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", args, LookupRegionBackendServiceIamPolicyResultOutput{}, options).(LookupRegionBackendServiceIamPolicyResultOutput), nil }).(LookupRegionBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionDisk.go b/sdk/go/gcp/compute/getRegionDisk.go index 23880b47e3..dda80cb9bf 100644 --- a/sdk/go/gcp/compute/getRegionDisk.go +++ b/sdk/go/gcp/compute/getRegionDisk.go @@ -71,21 +71,11 @@ type LookupRegionDiskResult struct { } func LookupRegionDiskOutput(ctx *pulumi.Context, args LookupRegionDiskOutputArgs, opts ...pulumi.InvokeOption) LookupRegionDiskResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionDiskResultOutput, error) { args := v.(LookupRegionDiskArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionDiskResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionDisk:getRegionDisk", args, &rv, "", opts...) - if err != nil { - return LookupRegionDiskResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionDiskResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionDiskResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionDisk:getRegionDisk", args, LookupRegionDiskResultOutput{}, options).(LookupRegionDiskResultOutput), nil }).(LookupRegionDiskResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionDiskIamPolicy.go b/sdk/go/gcp/compute/getRegionDiskIamPolicy.go index 88b06cf246..7b740f99a0 100644 --- a/sdk/go/gcp/compute/getRegionDiskIamPolicy.go +++ b/sdk/go/gcp/compute/getRegionDiskIamPolicy.go @@ -78,21 +78,11 @@ type LookupRegionDiskIamPolicyResult struct { } func LookupRegionDiskIamPolicyOutput(ctx *pulumi.Context, args LookupRegionDiskIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRegionDiskIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionDiskIamPolicyResultOutput, error) { args := v.(LookupRegionDiskIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionDiskIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRegionDiskIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionDiskIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionDiskIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", args, LookupRegionDiskIamPolicyResultOutput{}, options).(LookupRegionDiskIamPolicyResultOutput), nil }).(LookupRegionDiskIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionInstanceGroup.go b/sdk/go/gcp/compute/getRegionInstanceGroup.go index 9454fd7b23..327d82b319 100644 --- a/sdk/go/gcp/compute/getRegionInstanceGroup.go +++ b/sdk/go/gcp/compute/getRegionInstanceGroup.go @@ -83,21 +83,11 @@ type GetRegionInstanceGroupResult struct { } func GetRegionInstanceGroupOutput(ctx *pulumi.Context, args GetRegionInstanceGroupOutputArgs, opts ...pulumi.InvokeOption) GetRegionInstanceGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionInstanceGroupResultOutput, error) { args := v.(GetRegionInstanceGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionInstanceGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args, &rv, "", opts...) - if err != nil { - return GetRegionInstanceGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionInstanceGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionInstanceGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", args, GetRegionInstanceGroupResultOutput{}, options).(GetRegionInstanceGroupResultOutput), nil }).(GetRegionInstanceGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionInstanceGroupManager.go b/sdk/go/gcp/compute/getRegionInstanceGroupManager.go index aa0e54a6c1..387c4930a1 100644 --- a/sdk/go/gcp/compute/getRegionInstanceGroupManager.go +++ b/sdk/go/gcp/compute/getRegionInstanceGroupManager.go @@ -102,21 +102,11 @@ type LookupRegionInstanceGroupManagerResult struct { } func LookupRegionInstanceGroupManagerOutput(ctx *pulumi.Context, args LookupRegionInstanceGroupManagerOutputArgs, opts ...pulumi.InvokeOption) LookupRegionInstanceGroupManagerResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionInstanceGroupManagerResultOutput, error) { args := v.(LookupRegionInstanceGroupManagerArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionInstanceGroupManagerResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args, &rv, "", opts...) - if err != nil { - return LookupRegionInstanceGroupManagerResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionInstanceGroupManagerResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionInstanceGroupManagerResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", args, LookupRegionInstanceGroupManagerResultOutput{}, options).(LookupRegionInstanceGroupManagerResultOutput), nil }).(LookupRegionInstanceGroupManagerResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionInstanceTemplate.go b/sdk/go/gcp/compute/getRegionInstanceTemplate.go index 511215e6a2..c5556c805d 100644 --- a/sdk/go/gcp/compute/getRegionInstanceTemplate.go +++ b/sdk/go/gcp/compute/getRegionInstanceTemplate.go @@ -165,21 +165,11 @@ type LookupRegionInstanceTemplateResult struct { } func LookupRegionInstanceTemplateOutput(ctx *pulumi.Context, args LookupRegionInstanceTemplateOutputArgs, opts ...pulumi.InvokeOption) LookupRegionInstanceTemplateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionInstanceTemplateResultOutput, error) { args := v.(LookupRegionInstanceTemplateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionInstanceTemplateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args, &rv, "", opts...) - if err != nil { - return LookupRegionInstanceTemplateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionInstanceTemplateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionInstanceTemplateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", args, LookupRegionInstanceTemplateResultOutput{}, options).(LookupRegionInstanceTemplateResultOutput), nil }).(LookupRegionInstanceTemplateResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go b/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go index d112958e53..46a828aded 100644 --- a/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go +++ b/sdk/go/gcp/compute/getRegionNetworkEndpointGroup.go @@ -94,21 +94,11 @@ type LookupRegionNetworkEndpointGroupResult struct { } func LookupRegionNetworkEndpointGroupOutput(ctx *pulumi.Context, args LookupRegionNetworkEndpointGroupOutputArgs, opts ...pulumi.InvokeOption) LookupRegionNetworkEndpointGroupResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionNetworkEndpointGroupResultOutput, error) { args := v.(LookupRegionNetworkEndpointGroupArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionNetworkEndpointGroupResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args, &rv, "", opts...) - if err != nil { - return LookupRegionNetworkEndpointGroupResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionNetworkEndpointGroupResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionNetworkEndpointGroupResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", args, LookupRegionNetworkEndpointGroupResultOutput{}, options).(LookupRegionNetworkEndpointGroupResultOutput), nil }).(LookupRegionNetworkEndpointGroupResultOutput) } diff --git a/sdk/go/gcp/compute/getRegionSslCertificate.go b/sdk/go/gcp/compute/getRegionSslCertificate.go index d71c7cb19d..e671b6a528 100644 --- a/sdk/go/gcp/compute/getRegionSslCertificate.go +++ b/sdk/go/gcp/compute/getRegionSslCertificate.go @@ -83,21 +83,11 @@ type LookupRegionSslCertificateResult struct { } func LookupRegionSslCertificateOutput(ctx *pulumi.Context, args LookupRegionSslCertificateOutputArgs, opts ...pulumi.InvokeOption) LookupRegionSslCertificateResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionSslCertificateResultOutput, error) { args := v.(LookupRegionSslCertificateArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionSslCertificateResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args, &rv, "", opts...) - if err != nil { - return LookupRegionSslCertificateResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionSslCertificateResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionSslCertificateResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", args, LookupRegionSslCertificateResultOutput{}, options).(LookupRegionSslCertificateResultOutput), nil }).(LookupRegionSslCertificateResultOutput) } diff --git a/sdk/go/gcp/compute/getRegions.go b/sdk/go/gcp/compute/getRegions.go index c472729d95..1a2cac9f91 100644 --- a/sdk/go/gcp/compute/getRegions.go +++ b/sdk/go/gcp/compute/getRegions.go @@ -82,21 +82,11 @@ type GetRegionsResult struct { } func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionsResultOutput, error) { args := v.(GetRegionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionsResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRegions:getRegions", args, &rv, "", opts...) - if err != nil { - return GetRegionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRegions:getRegions", args, GetRegionsResultOutput{}, options).(GetRegionsResultOutput), nil }).(GetRegionsResultOutput) } diff --git a/sdk/go/gcp/compute/getReservation.go b/sdk/go/gcp/compute/getReservation.go index 0599fe1ca0..9d28dd5d12 100644 --- a/sdk/go/gcp/compute/getReservation.go +++ b/sdk/go/gcp/compute/getReservation.go @@ -76,21 +76,11 @@ type LookupReservationResult struct { } func LookupReservationOutput(ctx *pulumi.Context, args LookupReservationOutputArgs, opts ...pulumi.InvokeOption) LookupReservationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupReservationResultOutput, error) { args := v.(LookupReservationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupReservationResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getReservation:getReservation", args, &rv, "", opts...) - if err != nil { - return LookupReservationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupReservationResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupReservationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getReservation:getReservation", args, LookupReservationResultOutput{}, options).(LookupReservationResultOutput), nil }).(LookupReservationResultOutput) } diff --git a/sdk/go/gcp/compute/getResourcePolicy.go b/sdk/go/gcp/compute/getResourcePolicy.go index 0ec78c283c..e920d3542f 100644 --- a/sdk/go/gcp/compute/getResourcePolicy.go +++ b/sdk/go/gcp/compute/getResourcePolicy.go @@ -75,21 +75,11 @@ type LookupResourcePolicyResult struct { } func LookupResourcePolicyOutput(ctx *pulumi.Context, args LookupResourcePolicyOutputArgs, opts ...pulumi.InvokeOption) LookupResourcePolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupResourcePolicyResultOutput, error) { args := v.(LookupResourcePolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupResourcePolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getResourcePolicy:getResourcePolicy", args, &rv, "", opts...) - if err != nil { - return LookupResourcePolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupResourcePolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupResourcePolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getResourcePolicy:getResourcePolicy", args, LookupResourcePolicyResultOutput{}, options).(LookupResourcePolicyResultOutput), nil }).(LookupResourcePolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getRouter.go b/sdk/go/gcp/compute/getRouter.go index fe07706dae..861495a639 100644 --- a/sdk/go/gcp/compute/getRouter.go +++ b/sdk/go/gcp/compute/getRouter.go @@ -79,21 +79,11 @@ type LookupRouterResult struct { } func LookupRouterOutput(ctx *pulumi.Context, args LookupRouterOutputArgs, opts ...pulumi.InvokeOption) LookupRouterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRouterResultOutput, error) { args := v.(LookupRouterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRouterResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRouter:getRouter", args, &rv, "", opts...) - if err != nil { - return LookupRouterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRouterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRouterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRouter:getRouter", args, LookupRouterResultOutput{}, options).(LookupRouterResultOutput), nil }).(LookupRouterResultOutput) } diff --git a/sdk/go/gcp/compute/getRouterNat.go b/sdk/go/gcp/compute/getRouterNat.go index 15d3b75a8d..8aeeeef1d9 100644 --- a/sdk/go/gcp/compute/getRouterNat.go +++ b/sdk/go/gcp/compute/getRouterNat.go @@ -100,21 +100,11 @@ type LookupRouterNatResult struct { } func LookupRouterNatOutput(ctx *pulumi.Context, args LookupRouterNatOutputArgs, opts ...pulumi.InvokeOption) LookupRouterNatResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRouterNatResultOutput, error) { args := v.(LookupRouterNatArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRouterNatResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRouterNat:getRouterNat", args, &rv, "", opts...) - if err != nil { - return LookupRouterNatResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRouterNatResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRouterNatResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRouterNat:getRouterNat", args, LookupRouterNatResultOutput{}, options).(LookupRouterNatResultOutput), nil }).(LookupRouterNatResultOutput) } diff --git a/sdk/go/gcp/compute/getRouterStatus.go b/sdk/go/gcp/compute/getRouterStatus.go index 6d2f061bbf..b8562fc313 100644 --- a/sdk/go/gcp/compute/getRouterStatus.go +++ b/sdk/go/gcp/compute/getRouterStatus.go @@ -82,21 +82,11 @@ type GetRouterStatusResult struct { } func GetRouterStatusOutput(ctx *pulumi.Context, args GetRouterStatusOutputArgs, opts ...pulumi.InvokeOption) GetRouterStatusResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRouterStatusResultOutput, error) { args := v.(GetRouterStatusArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRouterStatusResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getRouterStatus:getRouterStatus", args, &rv, "", opts...) - if err != nil { - return GetRouterStatusResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRouterStatusResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRouterStatusResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getRouterStatus:getRouterStatus", args, GetRouterStatusResultOutput{}, options).(GetRouterStatusResultOutput), nil }).(GetRouterStatusResultOutput) } diff --git a/sdk/go/gcp/compute/getSSLPolicy.go b/sdk/go/gcp/compute/getSSLPolicy.go index 87038e7ddc..90fd52e855 100644 --- a/sdk/go/gcp/compute/getSSLPolicy.go +++ b/sdk/go/gcp/compute/getSSLPolicy.go @@ -87,21 +87,11 @@ type LookupSSLPolicyResult struct { } func LookupSSLPolicyOutput(ctx *pulumi.Context, args LookupSSLPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSSLPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSSLPolicyResultOutput, error) { args := v.(LookupSSLPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSSLPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSSLPolicy:getSSLPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSSLPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSSLPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSSLPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSSLPolicy:getSSLPolicy", args, LookupSSLPolicyResultOutput{}, options).(LookupSSLPolicyResultOutput), nil }).(LookupSSLPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSecurityPolicy.go b/sdk/go/gcp/compute/getSecurityPolicy.go index 3f33945f3f..fc6d4549d9 100644 --- a/sdk/go/gcp/compute/getSecurityPolicy.go +++ b/sdk/go/gcp/compute/getSecurityPolicy.go @@ -86,21 +86,11 @@ type LookupSecurityPolicyResult struct { } func LookupSecurityPolicyOutput(ctx *pulumi.Context, args LookupSecurityPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSecurityPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecurityPolicyResultOutput, error) { args := v.(LookupSecurityPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecurityPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSecurityPolicy:getSecurityPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSecurityPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecurityPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecurityPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSecurityPolicy:getSecurityPolicy", args, LookupSecurityPolicyResultOutput{}, options).(LookupSecurityPolicyResultOutput), nil }).(LookupSecurityPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSnapshot.go b/sdk/go/gcp/compute/getSnapshot.go index 99313455d1..fb029879e8 100644 --- a/sdk/go/gcp/compute/getSnapshot.go +++ b/sdk/go/gcp/compute/getSnapshot.go @@ -107,21 +107,11 @@ type LookupSnapshotResult struct { } func LookupSnapshotOutput(ctx *pulumi.Context, args LookupSnapshotOutputArgs, opts ...pulumi.InvokeOption) LookupSnapshotResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSnapshotResultOutput, error) { args := v.(LookupSnapshotArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSnapshotResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSnapshot:getSnapshot", args, &rv, "", opts...) - if err != nil { - return LookupSnapshotResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSnapshotResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSnapshotResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSnapshot:getSnapshot", args, LookupSnapshotResultOutput{}, options).(LookupSnapshotResultOutput), nil }).(LookupSnapshotResultOutput) } diff --git a/sdk/go/gcp/compute/getSnapshotIamPolicy.go b/sdk/go/gcp/compute/getSnapshotIamPolicy.go index 7f8e53d4e8..9ee54e7d7b 100644 --- a/sdk/go/gcp/compute/getSnapshotIamPolicy.go +++ b/sdk/go/gcp/compute/getSnapshotIamPolicy.go @@ -72,21 +72,11 @@ type LookupSnapshotIamPolicyResult struct { } func LookupSnapshotIamPolicyOutput(ctx *pulumi.Context, args LookupSnapshotIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSnapshotIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSnapshotIamPolicyResultOutput, error) { args := v.(LookupSnapshotIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSnapshotIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSnapshotIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSnapshotIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSnapshotIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", args, LookupSnapshotIamPolicyResultOutput{}, options).(LookupSnapshotIamPolicyResultOutput), nil }).(LookupSnapshotIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSubnetwork.go b/sdk/go/gcp/compute/getSubnetwork.go index db8e42971a..58a95eeddc 100644 --- a/sdk/go/gcp/compute/getSubnetwork.go +++ b/sdk/go/gcp/compute/getSubnetwork.go @@ -95,21 +95,11 @@ type LookupSubnetworkResult struct { } func LookupSubnetworkOutput(ctx *pulumi.Context, args LookupSubnetworkOutputArgs, opts ...pulumi.InvokeOption) LookupSubnetworkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSubnetworkResultOutput, error) { args := v.(LookupSubnetworkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSubnetworkResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSubnetwork:getSubnetwork", args, &rv, "", opts...) - if err != nil { - return LookupSubnetworkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSubnetworkResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSubnetworkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSubnetwork:getSubnetwork", args, LookupSubnetworkResultOutput{}, options).(LookupSubnetworkResultOutput), nil }).(LookupSubnetworkResultOutput) } diff --git a/sdk/go/gcp/compute/getSubnetworkIamPolicy.go b/sdk/go/gcp/compute/getSubnetworkIamPolicy.go index 28fbdc6af7..73a426bf9d 100644 --- a/sdk/go/gcp/compute/getSubnetworkIamPolicy.go +++ b/sdk/go/gcp/compute/getSubnetworkIamPolicy.go @@ -79,21 +79,11 @@ type GetSubnetworkIamPolicyResult struct { } func GetSubnetworkIamPolicyOutput(ctx *pulumi.Context, args GetSubnetworkIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetSubnetworkIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubnetworkIamPolicyResultOutput, error) { args := v.(GetSubnetworkIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubnetworkIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetSubnetworkIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubnetworkIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubnetworkIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", args, GetSubnetworkIamPolicyResultOutput{}, options).(GetSubnetworkIamPolicyResultOutput), nil }).(GetSubnetworkIamPolicyResultOutput) } diff --git a/sdk/go/gcp/compute/getSubnetworks.go b/sdk/go/gcp/compute/getSubnetworks.go index 919e3f16a3..c0cb3aa734 100644 --- a/sdk/go/gcp/compute/getSubnetworks.go +++ b/sdk/go/gcp/compute/getSubnetworks.go @@ -76,21 +76,11 @@ type GetSubnetworksResult struct { } func GetSubnetworksOutput(ctx *pulumi.Context, args GetSubnetworksOutputArgs, opts ...pulumi.InvokeOption) GetSubnetworksResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubnetworksResultOutput, error) { args := v.(GetSubnetworksArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubnetworksResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getSubnetworks:getSubnetworks", args, &rv, "", opts...) - if err != nil { - return GetSubnetworksResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubnetworksResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubnetworksResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getSubnetworks:getSubnetworks", args, GetSubnetworksResultOutput{}, options).(GetSubnetworksResultOutput), nil }).(GetSubnetworksResultOutput) } diff --git a/sdk/go/gcp/compute/getVPNGateway.go b/sdk/go/gcp/compute/getVPNGateway.go index 0fcd19a86c..37ab22208a 100644 --- a/sdk/go/gcp/compute/getVPNGateway.go +++ b/sdk/go/gcp/compute/getVPNGateway.go @@ -79,21 +79,11 @@ type LookupVPNGatewayResult struct { } func LookupVPNGatewayOutput(ctx *pulumi.Context, args LookupVPNGatewayOutputArgs, opts ...pulumi.InvokeOption) LookupVPNGatewayResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVPNGatewayResultOutput, error) { args := v.(LookupVPNGatewayArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVPNGatewayResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getVPNGateway:getVPNGateway", args, &rv, "", opts...) - if err != nil { - return LookupVPNGatewayResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVPNGatewayResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVPNGatewayResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getVPNGateway:getVPNGateway", args, LookupVPNGatewayResultOutput{}, options).(LookupVPNGatewayResultOutput), nil }).(LookupVPNGatewayResultOutput) } diff --git a/sdk/go/gcp/compute/getZones.go b/sdk/go/gcp/compute/getZones.go index 3edba7599f..2589ff28fb 100644 --- a/sdk/go/gcp/compute/getZones.go +++ b/sdk/go/gcp/compute/getZones.go @@ -46,21 +46,11 @@ type GetZonesResult struct { } func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetZonesResultOutput, error) { args := v.(GetZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetZonesResult - secret, err := ctx.InvokePackageRaw("gcp:compute/getZones:getZones", args, &rv, "", opts...) - if err != nil { - return GetZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/getZones:getZones", args, GetZonesResultOutput{}, options).(GetZonesResultOutput), nil }).(GetZonesResultOutput) } diff --git a/sdk/go/gcp/compute/routerStatus.go b/sdk/go/gcp/compute/routerStatus.go index d59d332bd0..ded70d1f16 100644 --- a/sdk/go/gcp/compute/routerStatus.go +++ b/sdk/go/gcp/compute/routerStatus.go @@ -84,21 +84,11 @@ type RouterStatusResult struct { } func RouterStatusOutput(ctx *pulumi.Context, args RouterStatusOutputArgs, opts ...pulumi.InvokeOption) RouterStatusResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (RouterStatusResultOutput, error) { args := v.(RouterStatusArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv RouterStatusResult - secret, err := ctx.InvokePackageRaw("gcp:compute/routerStatus:RouterStatus", args, &rv, "", opts...) - if err != nil { - return RouterStatusResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(RouterStatusResultOutput) - if secret { - return pulumi.ToSecret(output).(RouterStatusResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:compute/routerStatus:RouterStatus", args, RouterStatusResultOutput{}, options).(RouterStatusResultOutput), nil }).(RouterStatusResultOutput) } diff --git a/sdk/go/gcp/container/getAttachedInstallManifest.go b/sdk/go/gcp/container/getAttachedInstallManifest.go index 86c349edd4..06f217a842 100644 --- a/sdk/go/gcp/container/getAttachedInstallManifest.go +++ b/sdk/go/gcp/container/getAttachedInstallManifest.go @@ -78,21 +78,11 @@ type GetAttachedInstallManifestResult struct { } func GetAttachedInstallManifestOutput(ctx *pulumi.Context, args GetAttachedInstallManifestOutputArgs, opts ...pulumi.InvokeOption) GetAttachedInstallManifestResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAttachedInstallManifestResultOutput, error) { args := v.(GetAttachedInstallManifestArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAttachedInstallManifestResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args, &rv, "", opts...) - if err != nil { - return GetAttachedInstallManifestResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAttachedInstallManifestResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAttachedInstallManifestResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", args, GetAttachedInstallManifestResultOutput{}, options).(GetAttachedInstallManifestResultOutput), nil }).(GetAttachedInstallManifestResultOutput) } diff --git a/sdk/go/gcp/container/getAttachedVersions.go b/sdk/go/gcp/container/getAttachedVersions.go index 47041a1a0a..95336ad9ef 100644 --- a/sdk/go/gcp/container/getAttachedVersions.go +++ b/sdk/go/gcp/container/getAttachedVersions.go @@ -70,21 +70,11 @@ type GetAttachedVersionsResult struct { } func GetAttachedVersionsOutput(ctx *pulumi.Context, args GetAttachedVersionsOutputArgs, opts ...pulumi.InvokeOption) GetAttachedVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAttachedVersionsResultOutput, error) { args := v.(GetAttachedVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAttachedVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAttachedVersions:getAttachedVersions", args, &rv, "", opts...) - if err != nil { - return GetAttachedVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAttachedVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAttachedVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAttachedVersions:getAttachedVersions", args, GetAttachedVersionsResultOutput{}, options).(GetAttachedVersionsResultOutput), nil }).(GetAttachedVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getAwsVersions.go b/sdk/go/gcp/container/getAwsVersions.go index 7accd02e28..cf9b1f2c60 100644 --- a/sdk/go/gcp/container/getAwsVersions.go +++ b/sdk/go/gcp/container/getAwsVersions.go @@ -72,21 +72,11 @@ type GetAwsVersionsResult struct { } func GetAwsVersionsOutput(ctx *pulumi.Context, args GetAwsVersionsOutputArgs, opts ...pulumi.InvokeOption) GetAwsVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAwsVersionsResultOutput, error) { args := v.(GetAwsVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAwsVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAwsVersions:getAwsVersions", args, &rv, "", opts...) - if err != nil { - return GetAwsVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAwsVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAwsVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAwsVersions:getAwsVersions", args, GetAwsVersionsResultOutput{}, options).(GetAwsVersionsResultOutput), nil }).(GetAwsVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getAzureVersions.go b/sdk/go/gcp/container/getAzureVersions.go index afdad7b34c..c55ba1f9c5 100644 --- a/sdk/go/gcp/container/getAzureVersions.go +++ b/sdk/go/gcp/container/getAzureVersions.go @@ -72,21 +72,11 @@ type GetAzureVersionsResult struct { } func GetAzureVersionsOutput(ctx *pulumi.Context, args GetAzureVersionsOutputArgs, opts ...pulumi.InvokeOption) GetAzureVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAzureVersionsResultOutput, error) { args := v.(GetAzureVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAzureVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getAzureVersions:getAzureVersions", args, &rv, "", opts...) - if err != nil { - return GetAzureVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAzureVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAzureVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getAzureVersions:getAzureVersions", args, GetAzureVersionsResultOutput{}, options).(GetAzureVersionsResultOutput), nil }).(GetAzureVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getCluster.go b/sdk/go/gcp/container/getCluster.go index a2244f1c36..a58fea71a1 100644 --- a/sdk/go/gcp/container/getCluster.go +++ b/sdk/go/gcp/container/getCluster.go @@ -154,21 +154,11 @@ type LookupClusterResult struct { } func LookupClusterOutput(ctx *pulumi.Context, args LookupClusterOutputArgs, opts ...pulumi.InvokeOption) LookupClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupClusterResultOutput, error) { args := v.(LookupClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupClusterResult - secret, err := ctx.InvokePackageRaw("gcp:container/getCluster:getCluster", args, &rv, "", opts...) - if err != nil { - return LookupClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getCluster:getCluster", args, LookupClusterResultOutput{}, options).(LookupClusterResultOutput), nil }).(LookupClusterResultOutput) } diff --git a/sdk/go/gcp/container/getEngineVersions.go b/sdk/go/gcp/container/getEngineVersions.go index 2769b1288d..05d3f9c9a8 100644 --- a/sdk/go/gcp/container/getEngineVersions.go +++ b/sdk/go/gcp/container/getEngineVersions.go @@ -112,21 +112,11 @@ type GetEngineVersionsResult struct { } func GetEngineVersionsOutput(ctx *pulumi.Context, args GetEngineVersionsOutputArgs, opts ...pulumi.InvokeOption) GetEngineVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetEngineVersionsResultOutput, error) { args := v.(GetEngineVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetEngineVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:container/getEngineVersions:getEngineVersions", args, &rv, "", opts...) - if err != nil { - return GetEngineVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetEngineVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetEngineVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getEngineVersions:getEngineVersions", args, GetEngineVersionsResultOutput{}, options).(GetEngineVersionsResultOutput), nil }).(GetEngineVersionsResultOutput) } diff --git a/sdk/go/gcp/container/getRegistryImage.go b/sdk/go/gcp/container/getRegistryImage.go index 9ea39d764f..8c55260fa8 100644 --- a/sdk/go/gcp/container/getRegistryImage.go +++ b/sdk/go/gcp/container/getRegistryImage.go @@ -79,21 +79,11 @@ type GetRegistryImageResult struct { } func GetRegistryImageOutput(ctx *pulumi.Context, args GetRegistryImageOutputArgs, opts ...pulumi.InvokeOption) GetRegistryImageResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryImageResultOutput, error) { args := v.(GetRegistryImageArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryImageResult - secret, err := ctx.InvokePackageRaw("gcp:container/getRegistryImage:getRegistryImage", args, &rv, "", opts...) - if err != nil { - return GetRegistryImageResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryImageResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryImageResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getRegistryImage:getRegistryImage", args, GetRegistryImageResultOutput{}, options).(GetRegistryImageResultOutput), nil }).(GetRegistryImageResultOutput) } diff --git a/sdk/go/gcp/container/getRegistryRepository.go b/sdk/go/gcp/container/getRegistryRepository.go index 20cbef8af1..8faf76793b 100644 --- a/sdk/go/gcp/container/getRegistryRepository.go +++ b/sdk/go/gcp/container/getRegistryRepository.go @@ -68,21 +68,11 @@ type GetRegistryRepositoryResult struct { } func GetRegistryRepositoryOutput(ctx *pulumi.Context, args GetRegistryRepositoryOutputArgs, opts ...pulumi.InvokeOption) GetRegistryRepositoryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegistryRepositoryResultOutput, error) { args := v.(GetRegistryRepositoryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryRepositoryResult - secret, err := ctx.InvokePackageRaw("gcp:container/getRegistryRepository:getRegistryRepository", args, &rv, "", opts...) - if err != nil { - return GetRegistryRepositoryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegistryRepositoryResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegistryRepositoryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:container/getRegistryRepository:getRegistryRepository", args, GetRegistryRepositoryResultOutput{}, options).(GetRegistryRepositoryResultOutput), nil }).(GetRegistryRepositoryResultOutput) } diff --git a/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go b/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go index dc2137b189..e54b23d00e 100644 --- a/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go +++ b/sdk/go/gcp/containeranalysis/getNoteIamPolicy.go @@ -72,21 +72,11 @@ type LookupNoteIamPolicyResult struct { } func LookupNoteIamPolicyOutput(ctx *pulumi.Context, args LookupNoteIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupNoteIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNoteIamPolicyResultOutput, error) { args := v.(LookupNoteIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNoteIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupNoteIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNoteIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNoteIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", args, LookupNoteIamPolicyResultOutput{}, options).(LookupNoteIamPolicyResultOutput), nil }).(LookupNoteIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go b/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go index c785b30a48..3a2ef951a5 100644 --- a/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getEntryGroupIamPolicy.go @@ -73,21 +73,11 @@ type LookupEntryGroupIamPolicyResult struct { } func LookupEntryGroupIamPolicyOutput(ctx *pulumi.Context, args LookupEntryGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEntryGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntryGroupIamPolicyResultOutput, error) { args := v.(LookupEntryGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntryGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEntryGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntryGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntryGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, LookupEntryGroupIamPolicyResultOutput{}, options).(LookupEntryGroupIamPolicyResultOutput), nil }).(LookupEntryGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go b/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go index a14e43812f..ffe9f9a226 100644 --- a/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getPolicyTagIamPolicy.go @@ -67,21 +67,11 @@ type LookupPolicyTagIamPolicyResult struct { } func LookupPolicyTagIamPolicyOutput(ctx *pulumi.Context, args LookupPolicyTagIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupPolicyTagIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPolicyTagIamPolicyResultOutput, error) { args := v.(LookupPolicyTagIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPolicyTagIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupPolicyTagIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPolicyTagIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPolicyTagIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", args, LookupPolicyTagIamPolicyResultOutput{}, options).(LookupPolicyTagIamPolicyResultOutput), nil }).(LookupPolicyTagIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go b/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go index 1786622b36..cc7a8a39c6 100644 --- a/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getTagTemplateIamPolicy.go @@ -73,21 +73,11 @@ type LookupTagTemplateIamPolicyResult struct { } func LookupTagTemplateIamPolicyOutput(ctx *pulumi.Context, args LookupTagTemplateIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTagTemplateIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagTemplateIamPolicyResultOutput, error) { args := v.(LookupTagTemplateIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagTemplateIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTagTemplateIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagTemplateIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagTemplateIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", args, LookupTagTemplateIamPolicyResultOutput{}, options).(LookupTagTemplateIamPolicyResultOutput), nil }).(LookupTagTemplateIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go b/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go index 326a4a1957..f4f58ad5e3 100644 --- a/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go +++ b/sdk/go/gcp/datacatalog/getTaxonomyIamPolicy.go @@ -73,21 +73,11 @@ type LookupTaxonomyIamPolicyResult struct { } func LookupTaxonomyIamPolicyOutput(ctx *pulumi.Context, args LookupTaxonomyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTaxonomyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTaxonomyIamPolicyResultOutput, error) { args := v.(LookupTaxonomyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTaxonomyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTaxonomyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTaxonomyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTaxonomyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", args, LookupTaxonomyIamPolicyResultOutput{}, options).(LookupTaxonomyIamPolicyResultOutput), nil }).(LookupTaxonomyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataform/getRepositoryIamPolicy.go b/sdk/go/gcp/dataform/getRepositoryIamPolicy.go index 795b22f043..08c97fe36f 100644 --- a/sdk/go/gcp/dataform/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/dataform/getRepositoryIamPolicy.go @@ -49,21 +49,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datafusion/getInstanceIamPolicy.go b/sdk/go/gcp/datafusion/getInstanceIamPolicy.go index 8f8f33fe2c..ea72454dfa 100644 --- a/sdk/go/gcp/datafusion/getInstanceIamPolicy.go +++ b/sdk/go/gcp/datafusion/getInstanceIamPolicy.go @@ -79,21 +79,11 @@ type GetInstanceIamPolicyResult struct { } func GetInstanceIamPolicyOutput(ctx *pulumi.Context, args GetInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceIamPolicyResultOutput, error) { args := v.(GetInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", args, GetInstanceIamPolicyResultOutput{}, options).(GetInstanceIamPolicyResultOutput), nil }).(GetInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go b/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go index a72436dcd8..2d5a51853b 100644 --- a/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go +++ b/sdk/go/gcp/dataplex/getAspectTypeIamPolicy.go @@ -78,21 +78,11 @@ type LookupAspectTypeIamPolicyResult struct { } func LookupAspectTypeIamPolicyOutput(ctx *pulumi.Context, args LookupAspectTypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAspectTypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAspectTypeIamPolicyResultOutput, error) { args := v.(LookupAspectTypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAspectTypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAspectTypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAspectTypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAspectTypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", args, LookupAspectTypeIamPolicyResultOutput{}, options).(LookupAspectTypeIamPolicyResultOutput), nil }).(LookupAspectTypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getAssetIamPolicy.go b/sdk/go/gcp/dataplex/getAssetIamPolicy.go index 9abfe89792..eac9dc7a4f 100644 --- a/sdk/go/gcp/dataplex/getAssetIamPolicy.go +++ b/sdk/go/gcp/dataplex/getAssetIamPolicy.go @@ -81,21 +81,11 @@ type LookupAssetIamPolicyResult struct { } func LookupAssetIamPolicyOutput(ctx *pulumi.Context, args LookupAssetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAssetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAssetIamPolicyResultOutput, error) { args := v.(LookupAssetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAssetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAssetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAssetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAssetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", args, LookupAssetIamPolicyResultOutput{}, options).(LookupAssetIamPolicyResultOutput), nil }).(LookupAssetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getDatascanIamPolicy.go b/sdk/go/gcp/dataplex/getDatascanIamPolicy.go index c29c2d472a..a3ac3169e4 100644 --- a/sdk/go/gcp/dataplex/getDatascanIamPolicy.go +++ b/sdk/go/gcp/dataplex/getDatascanIamPolicy.go @@ -78,21 +78,11 @@ type LookupDatascanIamPolicyResult struct { } func LookupDatascanIamPolicyOutput(ctx *pulumi.Context, args LookupDatascanIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDatascanIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatascanIamPolicyResultOutput, error) { args := v.(LookupDatascanIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatascanIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDatascanIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatascanIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatascanIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", args, LookupDatascanIamPolicyResultOutput{}, options).(LookupDatascanIamPolicyResultOutput), nil }).(LookupDatascanIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go b/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go index bac67c5f3c..2c9e006727 100644 --- a/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go +++ b/sdk/go/gcp/dataplex/getEntryGroupIamPolicy.go @@ -78,21 +78,11 @@ type LookupEntryGroupIamPolicyResult struct { } func LookupEntryGroupIamPolicyOutput(ctx *pulumi.Context, args LookupEntryGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEntryGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntryGroupIamPolicyResultOutput, error) { args := v.(LookupEntryGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntryGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEntryGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntryGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntryGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", args, LookupEntryGroupIamPolicyResultOutput{}, options).(LookupEntryGroupIamPolicyResultOutput), nil }).(LookupEntryGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go b/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go index b108db76d3..acd711ce45 100644 --- a/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go +++ b/sdk/go/gcp/dataplex/getEntryTypeIamPolicy.go @@ -78,21 +78,11 @@ type LookupEntryTypeIamPolicyResult struct { } func LookupEntryTypeIamPolicyOutput(ctx *pulumi.Context, args LookupEntryTypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEntryTypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntryTypeIamPolicyResultOutput, error) { args := v.(LookupEntryTypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntryTypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEntryTypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntryTypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntryTypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", args, LookupEntryTypeIamPolicyResultOutput{}, options).(LookupEntryTypeIamPolicyResultOutput), nil }).(LookupEntryTypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getLakeIamPolicy.go b/sdk/go/gcp/dataplex/getLakeIamPolicy.go index 15d50e9166..fd792e17cc 100644 --- a/sdk/go/gcp/dataplex/getLakeIamPolicy.go +++ b/sdk/go/gcp/dataplex/getLakeIamPolicy.go @@ -75,21 +75,11 @@ type LookupLakeIamPolicyResult struct { } func LookupLakeIamPolicyOutput(ctx *pulumi.Context, args LookupLakeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupLakeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupLakeIamPolicyResultOutput, error) { args := v.(LookupLakeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupLakeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupLakeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupLakeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupLakeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", args, LookupLakeIamPolicyResultOutput{}, options).(LookupLakeIamPolicyResultOutput), nil }).(LookupLakeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getTaskIamPolicy.go b/sdk/go/gcp/dataplex/getTaskIamPolicy.go index b59d9d7d2e..41c358cb5a 100644 --- a/sdk/go/gcp/dataplex/getTaskIamPolicy.go +++ b/sdk/go/gcp/dataplex/getTaskIamPolicy.go @@ -83,21 +83,11 @@ type LookupTaskIamPolicyResult struct { } func LookupTaskIamPolicyOutput(ctx *pulumi.Context, args LookupTaskIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTaskIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTaskIamPolicyResultOutput, error) { args := v.(LookupTaskIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTaskIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTaskIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTaskIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTaskIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", args, LookupTaskIamPolicyResultOutput{}, options).(LookupTaskIamPolicyResultOutput), nil }).(LookupTaskIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataplex/getZoneIamPolicy.go b/sdk/go/gcp/dataplex/getZoneIamPolicy.go index 85b0825a62..f0cc50dca9 100644 --- a/sdk/go/gcp/dataplex/getZoneIamPolicy.go +++ b/sdk/go/gcp/dataplex/getZoneIamPolicy.go @@ -78,21 +78,11 @@ type LookupZoneIamPolicyResult struct { } func LookupZoneIamPolicyOutput(ctx *pulumi.Context, args LookupZoneIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupZoneIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupZoneIamPolicyResultOutput, error) { args := v.(LookupZoneIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupZoneIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupZoneIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupZoneIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupZoneIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", args, LookupZoneIamPolicyResultOutput{}, options).(LookupZoneIamPolicyResultOutput), nil }).(LookupZoneIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go b/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go index 9f3b4a0f38..47f3fe348e 100644 --- a/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go +++ b/sdk/go/gcp/dataproc/getAutoscalingPolicyIamPolicy.go @@ -83,21 +83,11 @@ type LookupAutoscalingPolicyIamPolicyResult struct { } func LookupAutoscalingPolicyIamPolicyOutput(ctx *pulumi.Context, args LookupAutoscalingPolicyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAutoscalingPolicyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAutoscalingPolicyIamPolicyResultOutput, error) { args := v.(LookupAutoscalingPolicyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAutoscalingPolicyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAutoscalingPolicyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAutoscalingPolicyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAutoscalingPolicyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", args, LookupAutoscalingPolicyIamPolicyResultOutput{}, options).(LookupAutoscalingPolicyIamPolicyResultOutput), nil }).(LookupAutoscalingPolicyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getClusterIamPolicy.go b/sdk/go/gcp/dataproc/getClusterIamPolicy.go index fc736c93e5..013ddc2543 100644 --- a/sdk/go/gcp/dataproc/getClusterIamPolicy.go +++ b/sdk/go/gcp/dataproc/getClusterIamPolicy.go @@ -71,21 +71,11 @@ type GetClusterIamPolicyResult struct { } func GetClusterIamPolicyOutput(ctx *pulumi.Context, args GetClusterIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetClusterIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterIamPolicyResultOutput, error) { args := v.(GetClusterIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClusterIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetClusterIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClusterIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClusterIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", args, GetClusterIamPolicyResultOutput{}, options).(GetClusterIamPolicyResultOutput), nil }).(GetClusterIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getJobIamPolicy.go b/sdk/go/gcp/dataproc/getJobIamPolicy.go index bf59532bb4..70369a5820 100644 --- a/sdk/go/gcp/dataproc/getJobIamPolicy.go +++ b/sdk/go/gcp/dataproc/getJobIamPolicy.go @@ -71,21 +71,11 @@ type GetJobIamPolicyResult struct { } func GetJobIamPolicyOutput(ctx *pulumi.Context, args GetJobIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetJobIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetJobIamPolicyResultOutput, error) { args := v.(GetJobIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetJobIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetJobIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetJobIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetJobIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", args, GetJobIamPolicyResultOutput{}, options).(GetJobIamPolicyResultOutput), nil }).(GetJobIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go b/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go index d8cdfab95c..0d9e97c268 100644 --- a/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go +++ b/sdk/go/gcp/dataproc/getMetastoreFederationIamPolicy.go @@ -78,21 +78,11 @@ type LookupMetastoreFederationIamPolicyResult struct { } func LookupMetastoreFederationIamPolicyOutput(ctx *pulumi.Context, args LookupMetastoreFederationIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMetastoreFederationIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMetastoreFederationIamPolicyResultOutput, error) { args := v.(LookupMetastoreFederationIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMetastoreFederationIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMetastoreFederationIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMetastoreFederationIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMetastoreFederationIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", args, LookupMetastoreFederationIamPolicyResultOutput{}, options).(LookupMetastoreFederationIamPolicyResultOutput), nil }).(LookupMetastoreFederationIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dataproc/getMetastoreService.go b/sdk/go/gcp/dataproc/getMetastoreService.go index 463ea4bb98..ed70e6e2fb 100644 --- a/sdk/go/gcp/dataproc/getMetastoreService.go +++ b/sdk/go/gcp/dataproc/getMetastoreService.go @@ -95,21 +95,11 @@ type LookupMetastoreServiceResult struct { } func LookupMetastoreServiceOutput(ctx *pulumi.Context, args LookupMetastoreServiceOutputArgs, opts ...pulumi.InvokeOption) LookupMetastoreServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMetastoreServiceResultOutput, error) { args := v.(LookupMetastoreServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMetastoreServiceResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getMetastoreService:getMetastoreService", args, &rv, "", opts...) - if err != nil { - return LookupMetastoreServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMetastoreServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMetastoreServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getMetastoreService:getMetastoreService", args, LookupMetastoreServiceResultOutput{}, options).(LookupMetastoreServiceResultOutput), nil }).(LookupMetastoreServiceResultOutput) } diff --git a/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go b/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go index ed2a1d2f73..eb3e33535f 100644 --- a/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go +++ b/sdk/go/gcp/dataproc/getMetastoreServiceIamPolicy.go @@ -79,21 +79,11 @@ type LookupMetastoreServiceIamPolicyResult struct { } func LookupMetastoreServiceIamPolicyOutput(ctx *pulumi.Context, args LookupMetastoreServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMetastoreServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMetastoreServiceIamPolicyResultOutput, error) { args := v.(LookupMetastoreServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMetastoreServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMetastoreServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMetastoreServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMetastoreServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", args, LookupMetastoreServiceIamPolicyResultOutput{}, options).(LookupMetastoreServiceIamPolicyResultOutput), nil }).(LookupMetastoreServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/datastream/getStaticIps.go b/sdk/go/gcp/datastream/getStaticIps.go index 0d6a665f74..3341b3fc6b 100644 --- a/sdk/go/gcp/datastream/getStaticIps.go +++ b/sdk/go/gcp/datastream/getStaticIps.go @@ -70,21 +70,11 @@ type GetStaticIpsResult struct { } func GetStaticIpsOutput(ctx *pulumi.Context, args GetStaticIpsOutputArgs, opts ...pulumi.InvokeOption) GetStaticIpsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetStaticIpsResultOutput, error) { args := v.(GetStaticIpsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetStaticIpsResult - secret, err := ctx.InvokePackageRaw("gcp:datastream/getStaticIps:getStaticIps", args, &rv, "", opts...) - if err != nil { - return GetStaticIpsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetStaticIpsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetStaticIpsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:datastream/getStaticIps:getStaticIps", args, GetStaticIpsResultOutput{}, options).(GetStaticIpsResultOutput), nil }).(GetStaticIpsResultOutput) } diff --git a/sdk/go/gcp/dns/getKeys.go b/sdk/go/gcp/dns/getKeys.go index 4955fca9b7..71c0210788 100644 --- a/sdk/go/gcp/dns/getKeys.go +++ b/sdk/go/gcp/dns/getKeys.go @@ -89,21 +89,11 @@ type GetKeysResult struct { } func GetKeysOutput(ctx *pulumi.Context, args GetKeysOutputArgs, opts ...pulumi.InvokeOption) GetKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeysResultOutput, error) { args := v.(GetKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeysResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getKeys:getKeys", args, &rv, "", opts...) - if err != nil { - return GetKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getKeys:getKeys", args, GetKeysResultOutput{}, options).(GetKeysResultOutput), nil }).(GetKeysResultOutput) } diff --git a/sdk/go/gcp/dns/getManagedZone.go b/sdk/go/gcp/dns/getManagedZone.go index 9e8d84ac0b..53649261e1 100644 --- a/sdk/go/gcp/dns/getManagedZone.go +++ b/sdk/go/gcp/dns/getManagedZone.go @@ -92,21 +92,11 @@ type LookupManagedZoneResult struct { } func LookupManagedZoneOutput(ctx *pulumi.Context, args LookupManagedZoneOutputArgs, opts ...pulumi.InvokeOption) LookupManagedZoneResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupManagedZoneResultOutput, error) { args := v.(LookupManagedZoneArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupManagedZoneResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getManagedZone:getManagedZone", args, &rv, "", opts...) - if err != nil { - return LookupManagedZoneResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupManagedZoneResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupManagedZoneResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getManagedZone:getManagedZone", args, LookupManagedZoneResultOutput{}, options).(LookupManagedZoneResultOutput), nil }).(LookupManagedZoneResultOutput) } diff --git a/sdk/go/gcp/dns/getManagedZoneIamPolicy.go b/sdk/go/gcp/dns/getManagedZoneIamPolicy.go index 2dfca7439f..d4b9771678 100644 --- a/sdk/go/gcp/dns/getManagedZoneIamPolicy.go +++ b/sdk/go/gcp/dns/getManagedZoneIamPolicy.go @@ -72,21 +72,11 @@ type GetManagedZoneIamPolicyResult struct { } func GetManagedZoneIamPolicyOutput(ctx *pulumi.Context, args GetManagedZoneIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetManagedZoneIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetManagedZoneIamPolicyResultOutput, error) { args := v.(GetManagedZoneIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetManagedZoneIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetManagedZoneIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetManagedZoneIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetManagedZoneIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", args, GetManagedZoneIamPolicyResultOutput{}, options).(GetManagedZoneIamPolicyResultOutput), nil }).(GetManagedZoneIamPolicyResultOutput) } diff --git a/sdk/go/gcp/dns/getManagedZones.go b/sdk/go/gcp/dns/getManagedZones.go index 06be532017..75ad9e20aa 100644 --- a/sdk/go/gcp/dns/getManagedZones.go +++ b/sdk/go/gcp/dns/getManagedZones.go @@ -65,21 +65,11 @@ type GetManagedZonesResult struct { } func GetManagedZonesOutput(ctx *pulumi.Context, args GetManagedZonesOutputArgs, opts ...pulumi.InvokeOption) GetManagedZonesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetManagedZonesResultOutput, error) { args := v.(GetManagedZonesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetManagedZonesResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getManagedZones:getManagedZones", args, &rv, "", opts...) - if err != nil { - return GetManagedZonesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetManagedZonesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetManagedZonesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getManagedZones:getManagedZones", args, GetManagedZonesResultOutput{}, options).(GetManagedZonesResultOutput), nil }).(GetManagedZonesResultOutput) } diff --git a/sdk/go/gcp/dns/getRecordSet.go b/sdk/go/gcp/dns/getRecordSet.go index 2f3b6c0226..870bdb27c9 100644 --- a/sdk/go/gcp/dns/getRecordSet.go +++ b/sdk/go/gcp/dns/getRecordSet.go @@ -89,21 +89,11 @@ type LookupRecordSetResult struct { } func LookupRecordSetOutput(ctx *pulumi.Context, args LookupRecordSetOutputArgs, opts ...pulumi.InvokeOption) LookupRecordSetResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRecordSetResultOutput, error) { args := v.(LookupRecordSetArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRecordSetResult - secret, err := ctx.InvokePackageRaw("gcp:dns/getRecordSet:getRecordSet", args, &rv, "", opts...) - if err != nil { - return LookupRecordSetResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRecordSetResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRecordSetResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:dns/getRecordSet:getRecordSet", args, LookupRecordSetResultOutput{}, options).(LookupRecordSetResultOutput), nil }).(LookupRecordSetResultOutput) } diff --git a/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go b/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go index 17e55746ce..9c2834d7a4 100644 --- a/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go +++ b/sdk/go/gcp/endpoints/getServiceConsumersIamPolicy.go @@ -42,21 +42,11 @@ type GetServiceConsumersIamPolicyResult struct { } func GetServiceConsumersIamPolicyOutput(ctx *pulumi.Context, args GetServiceConsumersIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetServiceConsumersIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetServiceConsumersIamPolicyResultOutput, error) { args := v.(GetServiceConsumersIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetServiceConsumersIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetServiceConsumersIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetServiceConsumersIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetServiceConsumersIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", args, GetServiceConsumersIamPolicyResultOutput{}, options).(GetServiceConsumersIamPolicyResultOutput), nil }).(GetServiceConsumersIamPolicyResultOutput) } diff --git a/sdk/go/gcp/endpoints/getServiceIamPolicy.go b/sdk/go/gcp/endpoints/getServiceIamPolicy.go index 93f300ae92..c52a01ad7d 100644 --- a/sdk/go/gcp/endpoints/getServiceIamPolicy.go +++ b/sdk/go/gcp/endpoints/getServiceIamPolicy.go @@ -66,21 +66,11 @@ type LookupServiceIamPolicyResult struct { } func LookupServiceIamPolicyOutput(ctx *pulumi.Context, args LookupServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceIamPolicyResultOutput, error) { args := v.(LookupServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", args, LookupServiceIamPolicyResultOutput{}, options).(LookupServiceIamPolicyResultOutput), nil }).(LookupServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/filestore/getInstance.go b/sdk/go/gcp/filestore/getInstance.go index 12158200fe..713225ce5b 100644 --- a/sdk/go/gcp/filestore/getInstance.go +++ b/sdk/go/gcp/filestore/getInstance.go @@ -91,21 +91,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:filestore/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:filestore/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/firebase/getAndroidApp.go b/sdk/go/gcp/firebase/getAndroidApp.go index 4c597b65ee..9de931a3db 100644 --- a/sdk/go/gcp/firebase/getAndroidApp.go +++ b/sdk/go/gcp/firebase/getAndroidApp.go @@ -59,21 +59,11 @@ type LookupAndroidAppResult struct { } func LookupAndroidAppOutput(ctx *pulumi.Context, args LookupAndroidAppOutputArgs, opts ...pulumi.InvokeOption) LookupAndroidAppResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAndroidAppResultOutput, error) { args := v.(LookupAndroidAppArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAndroidAppResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAndroidApp:getAndroidApp", args, &rv, "", opts...) - if err != nil { - return LookupAndroidAppResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAndroidAppResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAndroidAppResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAndroidApp:getAndroidApp", args, LookupAndroidAppResultOutput{}, options).(LookupAndroidAppResultOutput), nil }).(LookupAndroidAppResultOutput) } diff --git a/sdk/go/gcp/firebase/getAndroidAppConfig.go b/sdk/go/gcp/firebase/getAndroidAppConfig.go index 15b6b2c926..0fc0d92ec0 100644 --- a/sdk/go/gcp/firebase/getAndroidAppConfig.go +++ b/sdk/go/gcp/firebase/getAndroidAppConfig.go @@ -37,21 +37,11 @@ type GetAndroidAppConfigResult struct { } func GetAndroidAppConfigOutput(ctx *pulumi.Context, args GetAndroidAppConfigOutputArgs, opts ...pulumi.InvokeOption) GetAndroidAppConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAndroidAppConfigResultOutput, error) { args := v.(GetAndroidAppConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAndroidAppConfigResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args, &rv, "", opts...) - if err != nil { - return GetAndroidAppConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAndroidAppConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAndroidAppConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", args, GetAndroidAppConfigResultOutput{}, options).(GetAndroidAppConfigResultOutput), nil }).(GetAndroidAppConfigResultOutput) } diff --git a/sdk/go/gcp/firebase/getAppleApp.go b/sdk/go/gcp/firebase/getAppleApp.go index 884ff776a1..81d9ca3d9b 100644 --- a/sdk/go/gcp/firebase/getAppleApp.go +++ b/sdk/go/gcp/firebase/getAppleApp.go @@ -56,21 +56,11 @@ type LookupAppleAppResult struct { } func LookupAppleAppOutput(ctx *pulumi.Context, args LookupAppleAppOutputArgs, opts ...pulumi.InvokeOption) LookupAppleAppResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppleAppResultOutput, error) { args := v.(LookupAppleAppArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppleAppResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAppleApp:getAppleApp", args, &rv, "", opts...) - if err != nil { - return LookupAppleAppResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppleAppResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppleAppResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAppleApp:getAppleApp", args, LookupAppleAppResultOutput{}, options).(LookupAppleAppResultOutput), nil }).(LookupAppleAppResultOutput) } diff --git a/sdk/go/gcp/firebase/getAppleAppConfig.go b/sdk/go/gcp/firebase/getAppleAppConfig.go index 38ce23024c..0f2bd6ff90 100644 --- a/sdk/go/gcp/firebase/getAppleAppConfig.go +++ b/sdk/go/gcp/firebase/getAppleAppConfig.go @@ -44,21 +44,11 @@ type GetAppleAppConfigResult struct { } func GetAppleAppConfigOutput(ctx *pulumi.Context, args GetAppleAppConfigOutputArgs, opts ...pulumi.InvokeOption) GetAppleAppConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppleAppConfigResultOutput, error) { args := v.(GetAppleAppConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppleAppConfigResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args, &rv, "", opts...) - if err != nil { - return GetAppleAppConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppleAppConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppleAppConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getAppleAppConfig:getAppleAppConfig", args, GetAppleAppConfigResultOutput{}, options).(GetAppleAppConfigResultOutput), nil }).(GetAppleAppConfigResultOutput) } diff --git a/sdk/go/gcp/firebase/getHostingChannel.go b/sdk/go/gcp/firebase/getHostingChannel.go index 825fc57366..f65a1d19e9 100644 --- a/sdk/go/gcp/firebase/getHostingChannel.go +++ b/sdk/go/gcp/firebase/getHostingChannel.go @@ -46,21 +46,11 @@ type LookupHostingChannelResult struct { } func LookupHostingChannelOutput(ctx *pulumi.Context, args LookupHostingChannelOutputArgs, opts ...pulumi.InvokeOption) LookupHostingChannelResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupHostingChannelResultOutput, error) { args := v.(LookupHostingChannelArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupHostingChannelResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getHostingChannel:getHostingChannel", args, &rv, "", opts...) - if err != nil { - return LookupHostingChannelResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupHostingChannelResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupHostingChannelResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getHostingChannel:getHostingChannel", args, LookupHostingChannelResultOutput{}, options).(LookupHostingChannelResultOutput), nil }).(LookupHostingChannelResultOutput) } diff --git a/sdk/go/gcp/firebase/getWebApp.go b/sdk/go/gcp/firebase/getWebApp.go index 63f2cbce63..99e6fa7887 100644 --- a/sdk/go/gcp/firebase/getWebApp.go +++ b/sdk/go/gcp/firebase/getWebApp.go @@ -51,21 +51,11 @@ type LookupWebAppResult struct { } func LookupWebAppOutput(ctx *pulumi.Context, args LookupWebAppOutputArgs, opts ...pulumi.InvokeOption) LookupWebAppResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebAppResultOutput, error) { args := v.(LookupWebAppArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebAppResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getWebApp:getWebApp", args, &rv, "", opts...) - if err != nil { - return LookupWebAppResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebAppResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebAppResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getWebApp:getWebApp", args, LookupWebAppResultOutput{}, options).(LookupWebAppResultOutput), nil }).(LookupWebAppResultOutput) } diff --git a/sdk/go/gcp/firebase/getWebAppConfig.go b/sdk/go/gcp/firebase/getWebAppConfig.go index 4f7f004369..0019c00d2d 100644 --- a/sdk/go/gcp/firebase/getWebAppConfig.go +++ b/sdk/go/gcp/firebase/getWebAppConfig.go @@ -70,21 +70,11 @@ type GetWebAppConfigResult struct { } func GetWebAppConfigOutput(ctx *pulumi.Context, args GetWebAppConfigOutputArgs, opts ...pulumi.InvokeOption) GetWebAppConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWebAppConfigResultOutput, error) { args := v.(GetWebAppConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWebAppConfigResult - secret, err := ctx.InvokePackageRaw("gcp:firebase/getWebAppConfig:getWebAppConfig", args, &rv, "", opts...) - if err != nil { - return GetWebAppConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWebAppConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWebAppConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:firebase/getWebAppConfig:getWebAppConfig", args, GetWebAppConfigResultOutput{}, options).(GetWebAppConfigResultOutput), nil }).(GetWebAppConfigResultOutput) } diff --git a/sdk/go/gcp/folder/getIamPolicy.go b/sdk/go/gcp/folder/getIamPolicy.go index 241ebd9acd..561fff643d 100644 --- a/sdk/go/gcp/folder/getIamPolicy.go +++ b/sdk/go/gcp/folder/getIamPolicy.go @@ -66,21 +66,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:folder/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:folder/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/folder/getOrganizationPolicy.go b/sdk/go/gcp/folder/getOrganizationPolicy.go index 1928b43e94..0e29c33ea3 100644 --- a/sdk/go/gcp/folder/getOrganizationPolicy.go +++ b/sdk/go/gcp/folder/getOrganizationPolicy.go @@ -75,21 +75,11 @@ type LookupOrganizationPolicyResult struct { } func LookupOrganizationPolicyOutput(ctx *pulumi.Context, args LookupOrganizationPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupOrganizationPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupOrganizationPolicyResultOutput, error) { args := v.(LookupOrganizationPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupOrganizationPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args, &rv, "", opts...) - if err != nil { - return LookupOrganizationPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupOrganizationPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupOrganizationPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", args, LookupOrganizationPolicyResultOutput{}, options).(LookupOrganizationPolicyResultOutput), nil }).(LookupOrganizationPolicyResultOutput) } diff --git a/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go b/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go index 4730d29579..6f37a5d65d 100644 --- a/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go +++ b/sdk/go/gcp/gkebackup/getBackupPlanIamPolicy.go @@ -79,21 +79,11 @@ type LookupBackupPlanIamPolicyResult struct { } func LookupBackupPlanIamPolicyOutput(ctx *pulumi.Context, args LookupBackupPlanIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPlanIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBackupPlanIamPolicyResultOutput, error) { args := v.(LookupBackupPlanIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBackupPlanIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupBackupPlanIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBackupPlanIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBackupPlanIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", args, LookupBackupPlanIamPolicyResultOutput{}, options).(LookupBackupPlanIamPolicyResultOutput), nil }).(LookupBackupPlanIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go b/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go index f14cdf2e1b..bfa229aeec 100644 --- a/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go +++ b/sdk/go/gcp/gkebackup/getRestorePlanIamPolicy.go @@ -79,21 +79,11 @@ type LookupRestorePlanIamPolicyResult struct { } func LookupRestorePlanIamPolicyOutput(ctx *pulumi.Context, args LookupRestorePlanIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRestorePlanIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRestorePlanIamPolicyResultOutput, error) { args := v.(LookupRestorePlanIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRestorePlanIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRestorePlanIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRestorePlanIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRestorePlanIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", args, LookupRestorePlanIamPolicyResultOutput{}, options).(LookupRestorePlanIamPolicyResultOutput), nil }).(LookupRestorePlanIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkehub/getFeatureIamPolicy.go b/sdk/go/gcp/gkehub/getFeatureIamPolicy.go index 8c71fd2c99..96ece81a81 100644 --- a/sdk/go/gcp/gkehub/getFeatureIamPolicy.go +++ b/sdk/go/gcp/gkehub/getFeatureIamPolicy.go @@ -78,21 +78,11 @@ type LookupFeatureIamPolicyResult struct { } func LookupFeatureIamPolicyOutput(ctx *pulumi.Context, args LookupFeatureIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFeatureIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFeatureIamPolicyResultOutput, error) { args := v.(LookupFeatureIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFeatureIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFeatureIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFeatureIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFeatureIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", args, LookupFeatureIamPolicyResultOutput{}, options).(LookupFeatureIamPolicyResultOutput), nil }).(LookupFeatureIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkehub/getMembershipBinding.go b/sdk/go/gcp/gkehub/getMembershipBinding.go index 3d8cfc1086..70de3db378 100644 --- a/sdk/go/gcp/gkehub/getMembershipBinding.go +++ b/sdk/go/gcp/gkehub/getMembershipBinding.go @@ -50,21 +50,11 @@ type LookupMembershipBindingResult struct { } func LookupMembershipBindingOutput(ctx *pulumi.Context, args LookupMembershipBindingOutputArgs, opts ...pulumi.InvokeOption) LookupMembershipBindingResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMembershipBindingResultOutput, error) { args := v.(LookupMembershipBindingArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMembershipBindingResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getMembershipBinding:getMembershipBinding", args, &rv, "", opts...) - if err != nil { - return LookupMembershipBindingResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMembershipBindingResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMembershipBindingResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getMembershipBinding:getMembershipBinding", args, LookupMembershipBindingResultOutput{}, options).(LookupMembershipBindingResultOutput), nil }).(LookupMembershipBindingResultOutput) } diff --git a/sdk/go/gcp/gkehub/getMembershipIamPolicy.go b/sdk/go/gcp/gkehub/getMembershipIamPolicy.go index 0f6c3c78f6..9da95f436e 100644 --- a/sdk/go/gcp/gkehub/getMembershipIamPolicy.go +++ b/sdk/go/gcp/gkehub/getMembershipIamPolicy.go @@ -79,21 +79,11 @@ type LookupMembershipIamPolicyResult struct { } func LookupMembershipIamPolicyOutput(ctx *pulumi.Context, args LookupMembershipIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupMembershipIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupMembershipIamPolicyResultOutput, error) { args := v.(LookupMembershipIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupMembershipIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupMembershipIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupMembershipIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupMembershipIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", args, LookupMembershipIamPolicyResultOutput{}, options).(LookupMembershipIamPolicyResultOutput), nil }).(LookupMembershipIamPolicyResultOutput) } diff --git a/sdk/go/gcp/gkehub/getScopeIamPolicy.go b/sdk/go/gcp/gkehub/getScopeIamPolicy.go index 13d2cab2d4..17ae093fa4 100644 --- a/sdk/go/gcp/gkehub/getScopeIamPolicy.go +++ b/sdk/go/gcp/gkehub/getScopeIamPolicy.go @@ -71,21 +71,11 @@ type LookupScopeIamPolicyResult struct { } func LookupScopeIamPolicyOutput(ctx *pulumi.Context, args LookupScopeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupScopeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupScopeIamPolicyResultOutput, error) { args := v.(LookupScopeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupScopeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupScopeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupScopeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupScopeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", args, LookupScopeIamPolicyResultOutput{}, options).(LookupScopeIamPolicyResultOutput), nil }).(LookupScopeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go b/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go index 5ae49857cc..b0311ffeca 100644 --- a/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getConsentStoreIamPolicy.go @@ -73,21 +73,11 @@ type LookupConsentStoreIamPolicyResult struct { } func LookupConsentStoreIamPolicyOutput(ctx *pulumi.Context, args LookupConsentStoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupConsentStoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConsentStoreIamPolicyResultOutput, error) { args := v.(LookupConsentStoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConsentStoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupConsentStoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConsentStoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConsentStoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", args, LookupConsentStoreIamPolicyResultOutput{}, options).(LookupConsentStoreIamPolicyResultOutput), nil }).(LookupConsentStoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getDatasetIamPolicy.go b/sdk/go/gcp/healthcare/getDatasetIamPolicy.go index 3a2abeb736..4b2f6d0289 100644 --- a/sdk/go/gcp/healthcare/getDatasetIamPolicy.go +++ b/sdk/go/gcp/healthcare/getDatasetIamPolicy.go @@ -69,21 +69,11 @@ type LookupDatasetIamPolicyResult struct { } func LookupDatasetIamPolicyOutput(ctx *pulumi.Context, args LookupDatasetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDatasetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatasetIamPolicyResultOutput, error) { args := v.(LookupDatasetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatasetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDatasetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatasetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatasetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", args, LookupDatasetIamPolicyResultOutput{}, options).(LookupDatasetIamPolicyResultOutput), nil }).(LookupDatasetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go b/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go index 8be79b0207..2380a4c2d2 100644 --- a/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getDicomStoreIamPolicy.go @@ -69,21 +69,11 @@ type LookupDicomStoreIamPolicyResult struct { } func LookupDicomStoreIamPolicyOutput(ctx *pulumi.Context, args LookupDicomStoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupDicomStoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDicomStoreIamPolicyResultOutput, error) { args := v.(LookupDicomStoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDicomStoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupDicomStoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDicomStoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDicomStoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", args, LookupDicomStoreIamPolicyResultOutput{}, options).(LookupDicomStoreIamPolicyResultOutput), nil }).(LookupDicomStoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go b/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go index b1ac23a11e..92d27ca264 100644 --- a/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getFhirStoreIamPolicy.go @@ -69,21 +69,11 @@ type LookupFhirStoreIamPolicyResult struct { } func LookupFhirStoreIamPolicyOutput(ctx *pulumi.Context, args LookupFhirStoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFhirStoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFhirStoreIamPolicyResultOutput, error) { args := v.(LookupFhirStoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFhirStoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupFhirStoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFhirStoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFhirStoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", args, LookupFhirStoreIamPolicyResultOutput{}, options).(LookupFhirStoreIamPolicyResultOutput), nil }).(LookupFhirStoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go b/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go index e35c925850..a623f86b74 100644 --- a/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go +++ b/sdk/go/gcp/healthcare/getHl7V2StoreIamPolicy.go @@ -69,21 +69,11 @@ type GetHl7V2StoreIamPolicyResult struct { } func GetHl7V2StoreIamPolicyOutput(ctx *pulumi.Context, args GetHl7V2StoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetHl7V2StoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetHl7V2StoreIamPolicyResultOutput, error) { args := v.(GetHl7V2StoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetHl7V2StoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetHl7V2StoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetHl7V2StoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetHl7V2StoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", args, GetHl7V2StoreIamPolicyResultOutput{}, options).(GetHl7V2StoreIamPolicyResultOutput), nil }).(GetHl7V2StoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iam/getRule.go b/sdk/go/gcp/iam/getRule.go index 6bd7151e09..30e39e46d8 100644 --- a/sdk/go/gcp/iam/getRule.go +++ b/sdk/go/gcp/iam/getRule.go @@ -67,21 +67,11 @@ type GetRuleResult struct { } func GetRuleOutput(ctx *pulumi.Context, args GetRuleOutputArgs, opts ...pulumi.InvokeOption) GetRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRuleResultOutput, error) { args := v.(GetRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRuleResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getRule:getRule", args, &rv, "", opts...) - if err != nil { - return GetRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getRule:getRule", args, GetRuleResultOutput{}, options).(GetRuleResultOutput), nil }).(GetRuleResultOutput) } diff --git a/sdk/go/gcp/iam/getTestablePermissions.go b/sdk/go/gcp/iam/getTestablePermissions.go index fd44835c87..72cb77b57b 100644 --- a/sdk/go/gcp/iam/getTestablePermissions.go +++ b/sdk/go/gcp/iam/getTestablePermissions.go @@ -77,21 +77,11 @@ type GetTestablePermissionsResult struct { } func GetTestablePermissionsOutput(ctx *pulumi.Context, args GetTestablePermissionsOutputArgs, opts ...pulumi.InvokeOption) GetTestablePermissionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTestablePermissionsResultOutput, error) { args := v.(GetTestablePermissionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTestablePermissionsResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getTestablePermissions:getTestablePermissions", args, &rv, "", opts...) - if err != nil { - return GetTestablePermissionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTestablePermissionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTestablePermissionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getTestablePermissions:getTestablePermissions", args, GetTestablePermissionsResultOutput{}, options).(GetTestablePermissionsResultOutput), nil }).(GetTestablePermissionsResultOutput) } diff --git a/sdk/go/gcp/iam/getWorkloadIdentityPool.go b/sdk/go/gcp/iam/getWorkloadIdentityPool.go index 78e9cfad72..35b927c5de 100644 --- a/sdk/go/gcp/iam/getWorkloadIdentityPool.go +++ b/sdk/go/gcp/iam/getWorkloadIdentityPool.go @@ -74,21 +74,11 @@ type LookupWorkloadIdentityPoolResult struct { } func LookupWorkloadIdentityPoolOutput(ctx *pulumi.Context, args LookupWorkloadIdentityPoolOutputArgs, opts ...pulumi.InvokeOption) LookupWorkloadIdentityPoolResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkloadIdentityPoolResultOutput, error) { args := v.(LookupWorkloadIdentityPoolArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkloadIdentityPoolResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args, &rv, "", opts...) - if err != nil { - return LookupWorkloadIdentityPoolResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkloadIdentityPoolResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkloadIdentityPoolResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", args, LookupWorkloadIdentityPoolResultOutput{}, options).(LookupWorkloadIdentityPoolResultOutput), nil }).(LookupWorkloadIdentityPoolResultOutput) } diff --git a/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go b/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go index ba04bd03b8..b4593403e5 100644 --- a/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go +++ b/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go @@ -85,21 +85,11 @@ type LookupWorkloadIdentityPoolProviderResult struct { } func LookupWorkloadIdentityPoolProviderOutput(ctx *pulumi.Context, args LookupWorkloadIdentityPoolProviderOutputArgs, opts ...pulumi.InvokeOption) LookupWorkloadIdentityPoolProviderResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkloadIdentityPoolProviderResultOutput, error) { args := v.(LookupWorkloadIdentityPoolProviderArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkloadIdentityPoolProviderResult - secret, err := ctx.InvokePackageRaw("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args, &rv, "", opts...) - if err != nil { - return LookupWorkloadIdentityPoolProviderResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkloadIdentityPoolProviderResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkloadIdentityPoolProviderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", args, LookupWorkloadIdentityPoolProviderResultOutput{}, options).(LookupWorkloadIdentityPoolProviderResultOutput), nil }).(LookupWorkloadIdentityPoolProviderResultOutput) } diff --git a/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go b/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go index c50cc1f74c..4fa480d3c5 100644 --- a/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go +++ b/sdk/go/gcp/iap/getAppEngineServiceIamPolicy.go @@ -76,21 +76,11 @@ type LookupAppEngineServiceIamPolicyResult struct { } func LookupAppEngineServiceIamPolicyOutput(ctx *pulumi.Context, args LookupAppEngineServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAppEngineServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppEngineServiceIamPolicyResultOutput, error) { args := v.(LookupAppEngineServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppEngineServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAppEngineServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppEngineServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppEngineServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", args, LookupAppEngineServiceIamPolicyResultOutput{}, options).(LookupAppEngineServiceIamPolicyResultOutput), nil }).(LookupAppEngineServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go b/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go index fc87a48cce..15a37c75bf 100644 --- a/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go +++ b/sdk/go/gcp/iap/getAppEngineVersionIamPolicy.go @@ -80,21 +80,11 @@ type LookupAppEngineVersionIamPolicyResult struct { } func LookupAppEngineVersionIamPolicyOutput(ctx *pulumi.Context, args LookupAppEngineVersionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAppEngineVersionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAppEngineVersionIamPolicyResultOutput, error) { args := v.(LookupAppEngineVersionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAppEngineVersionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAppEngineVersionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAppEngineVersionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAppEngineVersionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", args, LookupAppEngineVersionIamPolicyResultOutput{}, options).(LookupAppEngineVersionIamPolicyResultOutput), nil }).(LookupAppEngineVersionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getClient.go b/sdk/go/gcp/iap/getClient.go index 37f3e1c18b..893a56d0a4 100644 --- a/sdk/go/gcp/iap/getClient.go +++ b/sdk/go/gcp/iap/getClient.go @@ -77,21 +77,11 @@ type LookupClientResult struct { } func LookupClientOutput(ctx *pulumi.Context, args LookupClientOutputArgs, opts ...pulumi.InvokeOption) LookupClientResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupClientResultOutput, error) { args := v.(LookupClientArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupClientResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getClient:getClient", args, &rv, "", opts...) - if err != nil { - return LookupClientResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupClientResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupClientResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getClient:getClient", args, LookupClientResultOutput{}, options).(LookupClientResultOutput), nil }).(LookupClientResultOutput) } diff --git a/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go b/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go index 8db9093285..ee0b9daa15 100644 --- a/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go +++ b/sdk/go/gcp/iap/getTunnelDestGroupIamPolicy.go @@ -78,21 +78,11 @@ type LookupTunnelDestGroupIamPolicyResult struct { } func LookupTunnelDestGroupIamPolicyOutput(ctx *pulumi.Context, args LookupTunnelDestGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTunnelDestGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTunnelDestGroupIamPolicyResultOutput, error) { args := v.(LookupTunnelDestGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTunnelDestGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTunnelDestGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTunnelDestGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTunnelDestGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", args, LookupTunnelDestGroupIamPolicyResultOutput{}, options).(LookupTunnelDestGroupIamPolicyResultOutput), nil }).(LookupTunnelDestGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getTunnelIamPolicy.go b/sdk/go/gcp/iap/getTunnelIamPolicy.go index 1f47323508..951c002b6c 100644 --- a/sdk/go/gcp/iap/getTunnelIamPolicy.go +++ b/sdk/go/gcp/iap/getTunnelIamPolicy.go @@ -68,21 +68,11 @@ type LookupTunnelIamPolicyResult struct { } func LookupTunnelIamPolicyOutput(ctx *pulumi.Context, args LookupTunnelIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTunnelIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTunnelIamPolicyResultOutput, error) { args := v.(LookupTunnelIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTunnelIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTunnelIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTunnelIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTunnelIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", args, LookupTunnelIamPolicyResultOutput{}, options).(LookupTunnelIamPolicyResultOutput), nil }).(LookupTunnelIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go b/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go index 6343537e6e..39baa126be 100644 --- a/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go +++ b/sdk/go/gcp/iap/getTunnelInstanceIamPolicy.go @@ -75,21 +75,11 @@ type GetTunnelInstanceIamPolicyResult struct { } func GetTunnelInstanceIamPolicyOutput(ctx *pulumi.Context, args GetTunnelInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetTunnelInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTunnelInstanceIamPolicyResultOutput, error) { args := v.(GetTunnelInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTunnelInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetTunnelInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTunnelInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTunnelInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", args, GetTunnelInstanceIamPolicyResultOutput{}, options).(GetTunnelInstanceIamPolicyResultOutput), nil }).(GetTunnelInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go b/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go index 52dcc2c764..5608ed5fb4 100644 --- a/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go +++ b/sdk/go/gcp/iap/getWebBackendServiceIamPolicy.go @@ -72,21 +72,11 @@ type LookupWebBackendServiceIamPolicyResult struct { } func LookupWebBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupWebBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebBackendServiceIamPolicyResultOutput, error) { args := v.(LookupWebBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", args, LookupWebBackendServiceIamPolicyResultOutput{}, options).(LookupWebBackendServiceIamPolicyResultOutput), nil }).(LookupWebBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebIamPolicy.go b/sdk/go/gcp/iap/getWebIamPolicy.go index f194912ffb..31759aa06a 100644 --- a/sdk/go/gcp/iap/getWebIamPolicy.go +++ b/sdk/go/gcp/iap/getWebIamPolicy.go @@ -68,21 +68,11 @@ type LookupWebIamPolicyResult struct { } func LookupWebIamPolicyOutput(ctx *pulumi.Context, args LookupWebIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebIamPolicyResultOutput, error) { args := v.(LookupWebIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebIamPolicy:getWebIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebIamPolicy:getWebIamPolicy", args, LookupWebIamPolicyResultOutput{}, options).(LookupWebIamPolicyResultOutput), nil }).(LookupWebIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go b/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go index 0e0a1f5f1c..429cffc3a6 100644 --- a/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go +++ b/sdk/go/gcp/iap/getWebRegionBackendServiceIamPolicy.go @@ -75,21 +75,11 @@ type LookupWebRegionBackendServiceIamPolicyResult struct { } func LookupWebRegionBackendServiceIamPolicyOutput(ctx *pulumi.Context, args LookupWebRegionBackendServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebRegionBackendServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebRegionBackendServiceIamPolicyResultOutput, error) { args := v.(LookupWebRegionBackendServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebRegionBackendServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebRegionBackendServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebRegionBackendServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebRegionBackendServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", args, LookupWebRegionBackendServiceIamPolicyResultOutput{}, options).(LookupWebRegionBackendServiceIamPolicyResultOutput), nil }).(LookupWebRegionBackendServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go b/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go index 2d32d061ce..bb1b75c81f 100644 --- a/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go +++ b/sdk/go/gcp/iap/getWebTypeAppEngineIamPolicy.go @@ -72,21 +72,11 @@ type GetWebTypeAppEngineIamPolicyResult struct { } func GetWebTypeAppEngineIamPolicyOutput(ctx *pulumi.Context, args GetWebTypeAppEngineIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetWebTypeAppEngineIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetWebTypeAppEngineIamPolicyResultOutput, error) { args := v.(GetWebTypeAppEngineIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetWebTypeAppEngineIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetWebTypeAppEngineIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetWebTypeAppEngineIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetWebTypeAppEngineIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", args, GetWebTypeAppEngineIamPolicyResultOutput{}, options).(GetWebTypeAppEngineIamPolicyResultOutput), nil }).(GetWebTypeAppEngineIamPolicyResultOutput) } diff --git a/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go b/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go index ab8cb66266..b425502c88 100644 --- a/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go +++ b/sdk/go/gcp/iap/getWebTypeComputeIamPolicy.go @@ -68,21 +68,11 @@ type LookupWebTypeComputeIamPolicyResult struct { } func LookupWebTypeComputeIamPolicyOutput(ctx *pulumi.Context, args LookupWebTypeComputeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWebTypeComputeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWebTypeComputeIamPolicyResultOutput, error) { args := v.(LookupWebTypeComputeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWebTypeComputeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWebTypeComputeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWebTypeComputeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWebTypeComputeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", args, LookupWebTypeComputeIamPolicyResultOutput{}, options).(LookupWebTypeComputeIamPolicyResultOutput), nil }).(LookupWebTypeComputeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go b/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go index 7ca2d51472..ffe104ec6f 100644 --- a/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go +++ b/sdk/go/gcp/kms/getCryptoKeyIamPolicy.go @@ -66,21 +66,11 @@ type GetCryptoKeyIamPolicyResult struct { } func GetCryptoKeyIamPolicyOutput(ctx *pulumi.Context, args GetCryptoKeyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeyIamPolicyResultOutput, error) { args := v.(GetCryptoKeyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", args, GetCryptoKeyIamPolicyResultOutput{}, options).(GetCryptoKeyIamPolicyResultOutput), nil }).(GetCryptoKeyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go b/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go index 3bf8b7a03c..910d590279 100644 --- a/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go +++ b/sdk/go/gcp/kms/getCryptoKeyLatestVersion.go @@ -99,21 +99,11 @@ type GetCryptoKeyLatestVersionResult struct { } func GetCryptoKeyLatestVersionOutput(ctx *pulumi.Context, args GetCryptoKeyLatestVersionOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeyLatestVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeyLatestVersionResultOutput, error) { args := v.(GetCryptoKeyLatestVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeyLatestVersionResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeyLatestVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeyLatestVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeyLatestVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", args, GetCryptoKeyLatestVersionResultOutput{}, options).(GetCryptoKeyLatestVersionResultOutput), nil }).(GetCryptoKeyLatestVersionResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeyVersions.go b/sdk/go/gcp/kms/getCryptoKeyVersions.go index e1d2771984..ab0d9d4f6d 100644 --- a/sdk/go/gcp/kms/getCryptoKeyVersions.go +++ b/sdk/go/gcp/kms/getCryptoKeyVersions.go @@ -93,21 +93,11 @@ type GetCryptoKeyVersionsResult struct { } func GetCryptoKeyVersionsOutput(ctx *pulumi.Context, args GetCryptoKeyVersionsOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeyVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeyVersionsResultOutput, error) { args := v.(GetCryptoKeyVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeyVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeyVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeyVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeyVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", args, GetCryptoKeyVersionsResultOutput{}, options).(GetCryptoKeyVersionsResultOutput), nil }).(GetCryptoKeyVersionsResultOutput) } diff --git a/sdk/go/gcp/kms/getCryptoKeys.go b/sdk/go/gcp/kms/getCryptoKeys.go index 21a25939c7..cf71be3064 100644 --- a/sdk/go/gcp/kms/getCryptoKeys.go +++ b/sdk/go/gcp/kms/getCryptoKeys.go @@ -54,21 +54,11 @@ type GetCryptoKeysResult struct { } func GetCryptoKeysOutput(ctx *pulumi.Context, args GetCryptoKeysOutputArgs, opts ...pulumi.InvokeOption) GetCryptoKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCryptoKeysResultOutput, error) { args := v.(GetCryptoKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCryptoKeysResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getCryptoKeys:getCryptoKeys", args, &rv, "", opts...) - if err != nil { - return GetCryptoKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCryptoKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCryptoKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getCryptoKeys:getCryptoKeys", args, GetCryptoKeysResultOutput{}, options).(GetCryptoKeysResultOutput), nil }).(GetCryptoKeysResultOutput) } diff --git a/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go b/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go index c84509affe..82973eb3b0 100644 --- a/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go +++ b/sdk/go/gcp/kms/getEkmConnectionIamPolicy.go @@ -80,21 +80,11 @@ type LookupEkmConnectionIamPolicyResult struct { } func LookupEkmConnectionIamPolicyOutput(ctx *pulumi.Context, args LookupEkmConnectionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupEkmConnectionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEkmConnectionIamPolicyResultOutput, error) { args := v.(LookupEkmConnectionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEkmConnectionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupEkmConnectionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEkmConnectionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEkmConnectionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", args, LookupEkmConnectionIamPolicyResultOutput{}, options).(LookupEkmConnectionIamPolicyResultOutput), nil }).(LookupEkmConnectionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSCryptoKey.go b/sdk/go/gcp/kms/getKMSCryptoKey.go index f3883a2f87..ca3ba04ea1 100644 --- a/sdk/go/gcp/kms/getKMSCryptoKey.go +++ b/sdk/go/gcp/kms/getKMSCryptoKey.go @@ -96,21 +96,11 @@ type GetKMSCryptoKeyResult struct { } func GetKMSCryptoKeyOutput(ctx *pulumi.Context, args GetKMSCryptoKeyOutputArgs, opts ...pulumi.InvokeOption) GetKMSCryptoKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSCryptoKeyResultOutput, error) { args := v.(GetKMSCryptoKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSCryptoKeyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args, &rv, "", opts...) - if err != nil { - return GetKMSCryptoKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSCryptoKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSCryptoKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", args, GetKMSCryptoKeyResultOutput{}, options).(GetKMSCryptoKeyResultOutput), nil }).(GetKMSCryptoKeyResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go b/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go index 52a19900e5..a7e8ce2a24 100644 --- a/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go +++ b/sdk/go/gcp/kms/getKMSCryptoKeyVersion.go @@ -95,21 +95,11 @@ type GetKMSCryptoKeyVersionResult struct { } func GetKMSCryptoKeyVersionOutput(ctx *pulumi.Context, args GetKMSCryptoKeyVersionOutputArgs, opts ...pulumi.InvokeOption) GetKMSCryptoKeyVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSCryptoKeyVersionResultOutput, error) { args := v.(GetKMSCryptoKeyVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSCryptoKeyVersionResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args, &rv, "", opts...) - if err != nil { - return GetKMSCryptoKeyVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSCryptoKeyVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSCryptoKeyVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", args, GetKMSCryptoKeyVersionResultOutput{}, options).(GetKMSCryptoKeyVersionResultOutput), nil }).(GetKMSCryptoKeyVersionResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSKeyRing.go b/sdk/go/gcp/kms/getKMSKeyRing.go index cd24c3af0a..015a54e83d 100644 --- a/sdk/go/gcp/kms/getKMSKeyRing.go +++ b/sdk/go/gcp/kms/getKMSKeyRing.go @@ -80,21 +80,11 @@ type GetKMSKeyRingResult struct { } func GetKMSKeyRingOutput(ctx *pulumi.Context, args GetKMSKeyRingOutputArgs, opts ...pulumi.InvokeOption) GetKMSKeyRingResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSKeyRingResultOutput, error) { args := v.(GetKMSKeyRingArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSKeyRingResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSKeyRing:getKMSKeyRing", args, &rv, "", opts...) - if err != nil { - return GetKMSKeyRingResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSKeyRingResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSKeyRingResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSKeyRing:getKMSKeyRing", args, GetKMSKeyRingResultOutput{}, options).(GetKMSKeyRingResultOutput), nil }).(GetKMSKeyRingResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSSecret.go b/sdk/go/gcp/kms/getKMSSecret.go index df21186921..02026e8b17 100644 --- a/sdk/go/gcp/kms/getKMSSecret.go +++ b/sdk/go/gcp/kms/getKMSSecret.go @@ -155,21 +155,11 @@ type GetKMSSecretResult struct { } func GetKMSSecretOutput(ctx *pulumi.Context, args GetKMSSecretOutputArgs, opts ...pulumi.InvokeOption) GetKMSSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSSecretResultOutput, error) { args := v.(GetKMSSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSSecretResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSSecret:getKMSSecret", args, &rv, "", opts...) - if err != nil { - return GetKMSSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSSecret:getKMSSecret", args, GetKMSSecretResultOutput{}, options).(GetKMSSecretResultOutput), nil }).(GetKMSSecretResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSSecretAsymmetric.go b/sdk/go/gcp/kms/getKMSSecretAsymmetric.go index 86d9394350..498fb32ecf 100644 --- a/sdk/go/gcp/kms/getKMSSecretAsymmetric.go +++ b/sdk/go/gcp/kms/getKMSSecretAsymmetric.go @@ -166,21 +166,11 @@ type GetKMSSecretAsymmetricResult struct { } func GetKMSSecretAsymmetricOutput(ctx *pulumi.Context, args GetKMSSecretAsymmetricOutputArgs, opts ...pulumi.InvokeOption) GetKMSSecretAsymmetricResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSSecretAsymmetricResultOutput, error) { args := v.(GetKMSSecretAsymmetricArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSSecretAsymmetricResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args, &rv, "", opts...) - if err != nil { - return GetKMSSecretAsymmetricResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSSecretAsymmetricResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSSecretAsymmetricResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", args, GetKMSSecretAsymmetricResultOutput{}, options).(GetKMSSecretAsymmetricResultOutput), nil }).(GetKMSSecretAsymmetricResultOutput) } diff --git a/sdk/go/gcp/kms/getKMSSecretCiphertext.go b/sdk/go/gcp/kms/getKMSSecretCiphertext.go index dbdefd4676..126ef9dbf4 100644 --- a/sdk/go/gcp/kms/getKMSSecretCiphertext.go +++ b/sdk/go/gcp/kms/getKMSSecretCiphertext.go @@ -146,21 +146,11 @@ type GetKMSSecretCiphertextResult struct { } func GetKMSSecretCiphertextOutput(ctx *pulumi.Context, args GetKMSSecretCiphertextOutputArgs, opts ...pulumi.InvokeOption) GetKMSSecretCiphertextResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKMSSecretCiphertextResultOutput, error) { args := v.(GetKMSSecretCiphertextArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKMSSecretCiphertextResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args, &rv, "", opts...) - if err != nil { - return GetKMSSecretCiphertextResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKMSSecretCiphertextResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKMSSecretCiphertextResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", args, GetKMSSecretCiphertextResultOutput{}, options).(GetKMSSecretCiphertextResultOutput), nil }).(GetKMSSecretCiphertextResultOutput) } diff --git a/sdk/go/gcp/kms/getKeyRingIamPolicy.go b/sdk/go/gcp/kms/getKeyRingIamPolicy.go index 2a73c483c4..e331a1c2c2 100644 --- a/sdk/go/gcp/kms/getKeyRingIamPolicy.go +++ b/sdk/go/gcp/kms/getKeyRingIamPolicy.go @@ -69,21 +69,11 @@ type GetKeyRingIamPolicyResult struct { } func GetKeyRingIamPolicyOutput(ctx *pulumi.Context, args GetKeyRingIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetKeyRingIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyRingIamPolicyResultOutput, error) { args := v.(GetKeyRingIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyRingIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetKeyRingIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyRingIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyRingIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", args, GetKeyRingIamPolicyResultOutput{}, options).(GetKeyRingIamPolicyResultOutput), nil }).(GetKeyRingIamPolicyResultOutput) } diff --git a/sdk/go/gcp/kms/getKeyRings.go b/sdk/go/gcp/kms/getKeyRings.go index 6677b4d02f..6a617a7a32 100644 --- a/sdk/go/gcp/kms/getKeyRings.go +++ b/sdk/go/gcp/kms/getKeyRings.go @@ -39,21 +39,11 @@ type GetKeyRingsResult struct { } func GetKeyRingsOutput(ctx *pulumi.Context, args GetKeyRingsOutputArgs, opts ...pulumi.InvokeOption) GetKeyRingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetKeyRingsResultOutput, error) { args := v.(GetKeyRingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetKeyRingsResult - secret, err := ctx.InvokePackageRaw("gcp:kms/getKeyRings:getKeyRings", args, &rv, "", opts...) - if err != nil { - return GetKeyRingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetKeyRingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetKeyRingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:kms/getKeyRings:getKeyRings", args, GetKeyRingsResultOutput{}, options).(GetKeyRingsResultOutput), nil }).(GetKeyRingsResultOutput) } diff --git a/sdk/go/gcp/logging/getFolderSettings.go b/sdk/go/gcp/logging/getFolderSettings.go index 92ca25df48..c5c2b8bb4c 100644 --- a/sdk/go/gcp/logging/getFolderSettings.go +++ b/sdk/go/gcp/logging/getFolderSettings.go @@ -87,21 +87,11 @@ type LookupFolderSettingsResult struct { } func LookupFolderSettingsOutput(ctx *pulumi.Context, args LookupFolderSettingsOutputArgs, opts ...pulumi.InvokeOption) LookupFolderSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFolderSettingsResultOutput, error) { args := v.(LookupFolderSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFolderSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getFolderSettings:getFolderSettings", args, &rv, "", opts...) - if err != nil { - return LookupFolderSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFolderSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFolderSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getFolderSettings:getFolderSettings", args, LookupFolderSettingsResultOutput{}, options).(LookupFolderSettingsResultOutput), nil }).(LookupFolderSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getLogViewIamPolicy.go b/sdk/go/gcp/logging/getLogViewIamPolicy.go index 0873e86b78..6d394685ec 100644 --- a/sdk/go/gcp/logging/getLogViewIamPolicy.go +++ b/sdk/go/gcp/logging/getLogViewIamPolicy.go @@ -81,21 +81,11 @@ type LookupLogViewIamPolicyResult struct { } func LookupLogViewIamPolicyOutput(ctx *pulumi.Context, args LookupLogViewIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupLogViewIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupLogViewIamPolicyResultOutput, error) { args := v.(LookupLogViewIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupLogViewIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupLogViewIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupLogViewIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupLogViewIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", args, LookupLogViewIamPolicyResultOutput{}, options).(LookupLogViewIamPolicyResultOutput), nil }).(LookupLogViewIamPolicyResultOutput) } diff --git a/sdk/go/gcp/logging/getOrganizationSettings.go b/sdk/go/gcp/logging/getOrganizationSettings.go index 79500ed4da..ccbad77f5f 100644 --- a/sdk/go/gcp/logging/getOrganizationSettings.go +++ b/sdk/go/gcp/logging/getOrganizationSettings.go @@ -87,21 +87,11 @@ type LookupOrganizationSettingsResult struct { } func LookupOrganizationSettingsOutput(ctx *pulumi.Context, args LookupOrganizationSettingsOutputArgs, opts ...pulumi.InvokeOption) LookupOrganizationSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupOrganizationSettingsResultOutput, error) { args := v.(LookupOrganizationSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupOrganizationSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getOrganizationSettings:getOrganizationSettings", args, &rv, "", opts...) - if err != nil { - return LookupOrganizationSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupOrganizationSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupOrganizationSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getOrganizationSettings:getOrganizationSettings", args, LookupOrganizationSettingsResultOutput{}, options).(LookupOrganizationSettingsResultOutput), nil }).(LookupOrganizationSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getProjectCmekSettings.go b/sdk/go/gcp/logging/getProjectCmekSettings.go index 0de9907978..fdaebcd660 100644 --- a/sdk/go/gcp/logging/getProjectCmekSettings.go +++ b/sdk/go/gcp/logging/getProjectCmekSettings.go @@ -96,21 +96,11 @@ type GetProjectCmekSettingsResult struct { } func GetProjectCmekSettingsOutput(ctx *pulumi.Context, args GetProjectCmekSettingsOutputArgs, opts ...pulumi.InvokeOption) GetProjectCmekSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectCmekSettingsResultOutput, error) { args := v.(GetProjectCmekSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectCmekSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args, &rv, "", opts...) - if err != nil { - return GetProjectCmekSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectCmekSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectCmekSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", args, GetProjectCmekSettingsResultOutput{}, options).(GetProjectCmekSettingsResultOutput), nil }).(GetProjectCmekSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getProjectSettings.go b/sdk/go/gcp/logging/getProjectSettings.go index bb4abb2bd9..157653f6bf 100644 --- a/sdk/go/gcp/logging/getProjectSettings.go +++ b/sdk/go/gcp/logging/getProjectSettings.go @@ -87,21 +87,11 @@ type GetProjectSettingsResult struct { } func GetProjectSettingsOutput(ctx *pulumi.Context, args GetProjectSettingsOutputArgs, opts ...pulumi.InvokeOption) GetProjectSettingsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectSettingsResultOutput, error) { args := v.(GetProjectSettingsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectSettingsResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getProjectSettings:getProjectSettings", args, &rv, "", opts...) - if err != nil { - return GetProjectSettingsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectSettingsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectSettingsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getProjectSettings:getProjectSettings", args, GetProjectSettingsResultOutput{}, options).(GetProjectSettingsResultOutput), nil }).(GetProjectSettingsResultOutput) } diff --git a/sdk/go/gcp/logging/getSink.go b/sdk/go/gcp/logging/getSink.go index 628d6aad10..7bfc58c9f3 100644 --- a/sdk/go/gcp/logging/getSink.go +++ b/sdk/go/gcp/logging/getSink.go @@ -87,21 +87,11 @@ type GetSinkResult struct { } func GetSinkOutput(ctx *pulumi.Context, args GetSinkOutputArgs, opts ...pulumi.InvokeOption) GetSinkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSinkResultOutput, error) { args := v.(GetSinkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSinkResult - secret, err := ctx.InvokePackageRaw("gcp:logging/getSink:getSink", args, &rv, "", opts...) - if err != nil { - return GetSinkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSinkResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSinkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:logging/getSink:getSink", args, GetSinkResultOutput{}, options).(GetSinkResultOutput), nil }).(GetSinkResultOutput) } diff --git a/sdk/go/gcp/monitoring/getAppEngineService.go b/sdk/go/gcp/monitoring/getAppEngineService.go index 3a4998797b..d583ee9855 100644 --- a/sdk/go/gcp/monitoring/getAppEngineService.go +++ b/sdk/go/gcp/monitoring/getAppEngineService.go @@ -135,21 +135,11 @@ type GetAppEngineServiceResult struct { } func GetAppEngineServiceOutput(ctx *pulumi.Context, args GetAppEngineServiceOutputArgs, opts ...pulumi.InvokeOption) GetAppEngineServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAppEngineServiceResultOutput, error) { args := v.(GetAppEngineServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAppEngineServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getAppEngineService:getAppEngineService", args, &rv, "", opts...) - if err != nil { - return GetAppEngineServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAppEngineServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAppEngineServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getAppEngineService:getAppEngineService", args, GetAppEngineServiceResultOutput{}, options).(GetAppEngineServiceResultOutput), nil }).(GetAppEngineServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getClusterIstioService.go b/sdk/go/gcp/monitoring/getClusterIstioService.go index e41f0cbf33..c86f1d1397 100644 --- a/sdk/go/gcp/monitoring/getClusterIstioService.go +++ b/sdk/go/gcp/monitoring/getClusterIstioService.go @@ -110,21 +110,11 @@ type GetClusterIstioServiceResult struct { } func GetClusterIstioServiceOutput(ctx *pulumi.Context, args GetClusterIstioServiceOutputArgs, opts ...pulumi.InvokeOption) GetClusterIstioServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetClusterIstioServiceResultOutput, error) { args := v.(GetClusterIstioServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClusterIstioServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getClusterIstioService:getClusterIstioService", args, &rv, "", opts...) - if err != nil { - return GetClusterIstioServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClusterIstioServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClusterIstioServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getClusterIstioService:getClusterIstioService", args, GetClusterIstioServiceResultOutput{}, options).(GetClusterIstioServiceResultOutput), nil }).(GetClusterIstioServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getIstioCanonicalService.go b/sdk/go/gcp/monitoring/getIstioCanonicalService.go index 5839e7c0fc..0c226e039f 100644 --- a/sdk/go/gcp/monitoring/getIstioCanonicalService.go +++ b/sdk/go/gcp/monitoring/getIstioCanonicalService.go @@ -105,21 +105,11 @@ type GetIstioCanonicalServiceResult struct { } func GetIstioCanonicalServiceOutput(ctx *pulumi.Context, args GetIstioCanonicalServiceOutputArgs, opts ...pulumi.InvokeOption) GetIstioCanonicalServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIstioCanonicalServiceResultOutput, error) { args := v.(GetIstioCanonicalServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIstioCanonicalServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args, &rv, "", opts...) - if err != nil { - return GetIstioCanonicalServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIstioCanonicalServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIstioCanonicalServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", args, GetIstioCanonicalServiceResultOutput{}, options).(GetIstioCanonicalServiceResultOutput), nil }).(GetIstioCanonicalServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getMeshIstioService.go b/sdk/go/gcp/monitoring/getMeshIstioService.go index 713d36a3a4..68227e7270 100644 --- a/sdk/go/gcp/monitoring/getMeshIstioService.go +++ b/sdk/go/gcp/monitoring/getMeshIstioService.go @@ -105,21 +105,11 @@ type GetMeshIstioServiceResult struct { } func GetMeshIstioServiceOutput(ctx *pulumi.Context, args GetMeshIstioServiceOutputArgs, opts ...pulumi.InvokeOption) GetMeshIstioServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetMeshIstioServiceResultOutput, error) { args := v.(GetMeshIstioServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetMeshIstioServiceResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getMeshIstioService:getMeshIstioService", args, &rv, "", opts...) - if err != nil { - return GetMeshIstioServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetMeshIstioServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetMeshIstioServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getMeshIstioService:getMeshIstioService", args, GetMeshIstioServiceResultOutput{}, options).(GetMeshIstioServiceResultOutput), nil }).(GetMeshIstioServiceResultOutput) } diff --git a/sdk/go/gcp/monitoring/getNotificationChannel.go b/sdk/go/gcp/monitoring/getNotificationChannel.go index 0ba412da28..e91cb55f15 100644 --- a/sdk/go/gcp/monitoring/getNotificationChannel.go +++ b/sdk/go/gcp/monitoring/getNotificationChannel.go @@ -131,21 +131,11 @@ type LookupNotificationChannelResult struct { } func LookupNotificationChannelOutput(ctx *pulumi.Context, args LookupNotificationChannelOutputArgs, opts ...pulumi.InvokeOption) LookupNotificationChannelResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNotificationChannelResultOutput, error) { args := v.(LookupNotificationChannelArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNotificationChannelResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getNotificationChannel:getNotificationChannel", args, &rv, "", opts...) - if err != nil { - return LookupNotificationChannelResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNotificationChannelResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNotificationChannelResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getNotificationChannel:getNotificationChannel", args, LookupNotificationChannelResultOutput{}, options).(LookupNotificationChannelResultOutput), nil }).(LookupNotificationChannelResultOutput) } diff --git a/sdk/go/gcp/monitoring/getSecretVersion.go b/sdk/go/gcp/monitoring/getSecretVersion.go index 4a684e33d4..4978899e17 100644 --- a/sdk/go/gcp/monitoring/getSecretVersion.go +++ b/sdk/go/gcp/monitoring/getSecretVersion.go @@ -87,21 +87,11 @@ type GetSecretVersionResult struct { } func GetSecretVersionOutput(ctx *pulumi.Context, args GetSecretVersionOutputArgs, opts ...pulumi.InvokeOption) GetSecretVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretVersionResultOutput, error) { args := v.(GetSecretVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretVersionResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getSecretVersion:getSecretVersion", args, &rv, "", opts...) - if err != nil { - return GetSecretVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getSecretVersion:getSecretVersion", args, GetSecretVersionResultOutput{}, options).(GetSecretVersionResultOutput), nil }).(GetSecretVersionResultOutput) } diff --git a/sdk/go/gcp/monitoring/getUptimeCheckIPs.go b/sdk/go/gcp/monitoring/getUptimeCheckIPs.go index 5179835fe7..419d4f51e4 100644 --- a/sdk/go/gcp/monitoring/getUptimeCheckIPs.go +++ b/sdk/go/gcp/monitoring/getUptimeCheckIPs.go @@ -58,18 +58,8 @@ type GetUptimeCheckIPsResult struct { func GetUptimeCheckIPsOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetUptimeCheckIPsResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetUptimeCheckIPsResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetUptimeCheckIPsResult - secret, err := ctx.InvokePackageRaw("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", nil, &rv, "", opts...) - if err != nil { - return GetUptimeCheckIPsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetUptimeCheckIPsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetUptimeCheckIPsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", nil, GetUptimeCheckIPsResultOutput{}, options).(GetUptimeCheckIPsResultOutput), nil }).(GetUptimeCheckIPsResultOutput) } diff --git a/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go b/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go index c0c4ccdb93..d92445dd6f 100644 --- a/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go +++ b/sdk/go/gcp/networksecurity/getAddressGroupIamPolicy.go @@ -51,21 +51,11 @@ type LookupAddressGroupIamPolicyResult struct { } func LookupAddressGroupIamPolicyOutput(ctx *pulumi.Context, args LookupAddressGroupIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAddressGroupIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAddressGroupIamPolicyResultOutput, error) { args := v.(LookupAddressGroupIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAddressGroupIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAddressGroupIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAddressGroupIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAddressGroupIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", args, LookupAddressGroupIamPolicyResultOutput{}, options).(LookupAddressGroupIamPolicyResultOutput), nil }).(LookupAddressGroupIamPolicyResultOutput) } diff --git a/sdk/go/gcp/notebooks/getInstanceIamPolicy.go b/sdk/go/gcp/notebooks/getInstanceIamPolicy.go index 991472fed0..a6308d979f 100644 --- a/sdk/go/gcp/notebooks/getInstanceIamPolicy.go +++ b/sdk/go/gcp/notebooks/getInstanceIamPolicy.go @@ -78,21 +78,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go b/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go index 97acc8f36e..b7ccda4b12 100644 --- a/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go +++ b/sdk/go/gcp/notebooks/getRuntimeIamPolicy.go @@ -78,21 +78,11 @@ type LookupRuntimeIamPolicyResult struct { } func LookupRuntimeIamPolicyOutput(ctx *pulumi.Context, args LookupRuntimeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRuntimeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRuntimeIamPolicyResultOutput, error) { args := v.(LookupRuntimeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRuntimeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRuntimeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRuntimeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRuntimeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", args, LookupRuntimeIamPolicyResultOutput{}, options).(LookupRuntimeIamPolicyResultOutput), nil }).(LookupRuntimeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go b/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go index 096c95669f..390327a996 100644 --- a/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go +++ b/sdk/go/gcp/oracledatabase/getAutonomousDatabase.go @@ -87,21 +87,11 @@ type LookupAutonomousDatabaseResult struct { } func LookupAutonomousDatabaseOutput(ctx *pulumi.Context, args LookupAutonomousDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupAutonomousDatabaseResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAutonomousDatabaseResultOutput, error) { args := v.(LookupAutonomousDatabaseArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAutonomousDatabaseResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args, &rv, "", opts...) - if err != nil { - return LookupAutonomousDatabaseResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAutonomousDatabaseResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAutonomousDatabaseResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", args, LookupAutonomousDatabaseResultOutput{}, options).(LookupAutonomousDatabaseResultOutput), nil }).(LookupAutonomousDatabaseResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go b/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go index 8563ca6b23..8db88165ac 100644 --- a/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go +++ b/sdk/go/gcp/oracledatabase/getAutonomousDatabases.go @@ -72,21 +72,11 @@ type GetAutonomousDatabasesResult struct { } func GetAutonomousDatabasesOutput(ctx *pulumi.Context, args GetAutonomousDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetAutonomousDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAutonomousDatabasesResultOutput, error) { args := v.(GetAutonomousDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAutonomousDatabasesResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args, &rv, "", opts...) - if err != nil { - return GetAutonomousDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAutonomousDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAutonomousDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", args, GetAutonomousDatabasesResultOutput{}, options).(GetAutonomousDatabasesResultOutput), nil }).(GetAutonomousDatabasesResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go index 1087c50238..9364e50937 100644 --- a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go +++ b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructure.go @@ -84,21 +84,11 @@ type LookupCloudExadataInfrastructureResult struct { } func LookupCloudExadataInfrastructureOutput(ctx *pulumi.Context, args LookupCloudExadataInfrastructureOutputArgs, opts ...pulumi.InvokeOption) LookupCloudExadataInfrastructureResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCloudExadataInfrastructureResultOutput, error) { args := v.(LookupCloudExadataInfrastructureArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCloudExadataInfrastructureResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args, &rv, "", opts...) - if err != nil { - return LookupCloudExadataInfrastructureResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCloudExadataInfrastructureResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCloudExadataInfrastructureResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", args, LookupCloudExadataInfrastructureResultOutput{}, options).(LookupCloudExadataInfrastructureResultOutput), nil }).(LookupCloudExadataInfrastructureResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go index 3c551cd235..aa8c28e368 100644 --- a/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go +++ b/sdk/go/gcp/oracledatabase/getCloudExadataInfrastructures.go @@ -72,21 +72,11 @@ type GetCloudExadataInfrastructuresResult struct { } func GetCloudExadataInfrastructuresOutput(ctx *pulumi.Context, args GetCloudExadataInfrastructuresOutputArgs, opts ...pulumi.InvokeOption) GetCloudExadataInfrastructuresResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCloudExadataInfrastructuresResultOutput, error) { args := v.(GetCloudExadataInfrastructuresArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCloudExadataInfrastructuresResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args, &rv, "", opts...) - if err != nil { - return GetCloudExadataInfrastructuresResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCloudExadataInfrastructuresResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCloudExadataInfrastructuresResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", args, GetCloudExadataInfrastructuresResultOutput{}, options).(GetCloudExadataInfrastructuresResultOutput), nil }).(GetCloudExadataInfrastructuresResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudVmCluster.go b/sdk/go/gcp/oracledatabase/getCloudVmCluster.go index 6929f21d93..aaa7343075 100644 --- a/sdk/go/gcp/oracledatabase/getCloudVmCluster.go +++ b/sdk/go/gcp/oracledatabase/getCloudVmCluster.go @@ -87,21 +87,11 @@ type LookupCloudVmClusterResult struct { } func LookupCloudVmClusterOutput(ctx *pulumi.Context, args LookupCloudVmClusterOutputArgs, opts ...pulumi.InvokeOption) LookupCloudVmClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupCloudVmClusterResultOutput, error) { args := v.(LookupCloudVmClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupCloudVmClusterResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args, &rv, "", opts...) - if err != nil { - return LookupCloudVmClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupCloudVmClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupCloudVmClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", args, LookupCloudVmClusterResultOutput{}, options).(LookupCloudVmClusterResultOutput), nil }).(LookupCloudVmClusterResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getCloudVmClusters.go b/sdk/go/gcp/oracledatabase/getCloudVmClusters.go index cd3c4e7a95..75739d95e1 100644 --- a/sdk/go/gcp/oracledatabase/getCloudVmClusters.go +++ b/sdk/go/gcp/oracledatabase/getCloudVmClusters.go @@ -72,21 +72,11 @@ type GetCloudVmClustersResult struct { } func GetCloudVmClustersOutput(ctx *pulumi.Context, args GetCloudVmClustersOutputArgs, opts ...pulumi.InvokeOption) GetCloudVmClustersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCloudVmClustersResultOutput, error) { args := v.(GetCloudVmClustersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCloudVmClustersResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args, &rv, "", opts...) - if err != nil { - return GetCloudVmClustersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCloudVmClustersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCloudVmClustersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", args, GetCloudVmClustersResultOutput{}, options).(GetCloudVmClustersResultOutput), nil }).(GetCloudVmClustersResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getDbNodes.go b/sdk/go/gcp/oracledatabase/getDbNodes.go index f359bf993e..a34f0dd93c 100644 --- a/sdk/go/gcp/oracledatabase/getDbNodes.go +++ b/sdk/go/gcp/oracledatabase/getDbNodes.go @@ -114,21 +114,11 @@ type GetDbNodesResult struct { } func GetDbNodesOutput(ctx *pulumi.Context, args GetDbNodesOutputArgs, opts ...pulumi.InvokeOption) GetDbNodesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbNodesResultOutput, error) { args := v.(GetDbNodesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbNodesResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getDbNodes:getDbNodes", args, &rv, "", opts...) - if err != nil { - return GetDbNodesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbNodesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbNodesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getDbNodes:getDbNodes", args, GetDbNodesResultOutput{}, options).(GetDbNodesResultOutput), nil }).(GetDbNodesResultOutput) } diff --git a/sdk/go/gcp/oracledatabase/getDbServers.go b/sdk/go/gcp/oracledatabase/getDbServers.go index 769f84352b..3fa8018bb7 100644 --- a/sdk/go/gcp/oracledatabase/getDbServers.go +++ b/sdk/go/gcp/oracledatabase/getDbServers.go @@ -114,21 +114,11 @@ type GetDbServersResult struct { } func GetDbServersOutput(ctx *pulumi.Context, args GetDbServersOutputArgs, opts ...pulumi.InvokeOption) GetDbServersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDbServersResultOutput, error) { args := v.(GetDbServersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbServersResult - secret, err := ctx.InvokePackageRaw("gcp:oracledatabase/getDbServers:getDbServers", args, &rv, "", opts...) - if err != nil { - return GetDbServersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDbServersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDbServersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:oracledatabase/getDbServers:getDbServers", args, GetDbServersResultOutput{}, options).(GetDbServersResultOutput), nil }).(GetDbServersResultOutput) } diff --git a/sdk/go/gcp/organizations/getActiveFolder.go b/sdk/go/gcp/organizations/getActiveFolder.go index 35bd051b79..16660e52c5 100644 --- a/sdk/go/gcp/organizations/getActiveFolder.go +++ b/sdk/go/gcp/organizations/getActiveFolder.go @@ -71,21 +71,11 @@ type GetActiveFolderResult struct { } func GetActiveFolderOutput(ctx *pulumi.Context, args GetActiveFolderOutputArgs, opts ...pulumi.InvokeOption) GetActiveFolderResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetActiveFolderResultOutput, error) { args := v.(GetActiveFolderArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetActiveFolderResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getActiveFolder:getActiveFolder", args, &rv, "", opts...) - if err != nil { - return GetActiveFolderResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetActiveFolderResultOutput) - if secret { - return pulumi.ToSecret(output).(GetActiveFolderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getActiveFolder:getActiveFolder", args, GetActiveFolderResultOutput{}, options).(GetActiveFolderResultOutput), nil }).(GetActiveFolderResultOutput) } diff --git a/sdk/go/gcp/organizations/getBillingAccount.go b/sdk/go/gcp/organizations/getBillingAccount.go index 35005a4475..501aa25b85 100644 --- a/sdk/go/gcp/organizations/getBillingAccount.go +++ b/sdk/go/gcp/organizations/getBillingAccount.go @@ -87,21 +87,11 @@ type GetBillingAccountResult struct { } func GetBillingAccountOutput(ctx *pulumi.Context, args GetBillingAccountOutputArgs, opts ...pulumi.InvokeOption) GetBillingAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBillingAccountResultOutput, error) { args := v.(GetBillingAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBillingAccountResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getBillingAccount:getBillingAccount", args, &rv, "", opts...) - if err != nil { - return GetBillingAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBillingAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBillingAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getBillingAccount:getBillingAccount", args, GetBillingAccountResultOutput{}, options).(GetBillingAccountResultOutput), nil }).(GetBillingAccountResultOutput) } diff --git a/sdk/go/gcp/organizations/getClientConfig.go b/sdk/go/gcp/organizations/getClientConfig.go index 029d298143..9e05dffacd 100644 --- a/sdk/go/gcp/organizations/getClientConfig.go +++ b/sdk/go/gcp/organizations/getClientConfig.go @@ -62,18 +62,8 @@ type GetClientConfigResult struct { func GetClientConfigOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetClientConfigResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetClientConfigResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClientConfigResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getClientConfig:getClientConfig", nil, &rv, "", opts...) - if err != nil { - return GetClientConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClientConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClientConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getClientConfig:getClientConfig", nil, GetClientConfigResultOutput{}, options).(GetClientConfigResultOutput), nil }).(GetClientConfigResultOutput) } diff --git a/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go b/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go index 003d7a2d4e..861c95891e 100644 --- a/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go +++ b/sdk/go/gcp/organizations/getClientOpenIdUserInfo.go @@ -68,18 +68,8 @@ type GetClientOpenIdUserInfoResult struct { func GetClientOpenIdUserInfoOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetClientOpenIdUserInfoResultOutput { return pulumi.ToOutput(0).ApplyT(func(int) (GetClientOpenIdUserInfoResultOutput, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetClientOpenIdUserInfoResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", nil, &rv, "", opts...) - if err != nil { - return GetClientOpenIdUserInfoResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetClientOpenIdUserInfoResultOutput) - if secret { - return pulumi.ToSecret(output).(GetClientOpenIdUserInfoResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", nil, GetClientOpenIdUserInfoResultOutput{}, options).(GetClientOpenIdUserInfoResultOutput), nil }).(GetClientOpenIdUserInfoResultOutput) } diff --git a/sdk/go/gcp/organizations/getFolder.go b/sdk/go/gcp/organizations/getFolder.go index 0ce728af77..0cd05ffac4 100644 --- a/sdk/go/gcp/organizations/getFolder.go +++ b/sdk/go/gcp/organizations/getFolder.go @@ -86,21 +86,11 @@ type LookupFolderResult struct { } func LookupFolderOutput(ctx *pulumi.Context, args LookupFolderOutputArgs, opts ...pulumi.InvokeOption) LookupFolderResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupFolderResultOutput, error) { args := v.(LookupFolderArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupFolderResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getFolder:getFolder", args, &rv, "", opts...) - if err != nil { - return LookupFolderResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupFolderResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupFolderResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getFolder:getFolder", args, LookupFolderResultOutput{}, options).(LookupFolderResultOutput), nil }).(LookupFolderResultOutput) } diff --git a/sdk/go/gcp/organizations/getFolders.go b/sdk/go/gcp/organizations/getFolders.go index 0024e607b6..e91816d6a9 100644 --- a/sdk/go/gcp/organizations/getFolders.go +++ b/sdk/go/gcp/organizations/getFolders.go @@ -76,21 +76,11 @@ type GetFoldersResult struct { } func GetFoldersOutput(ctx *pulumi.Context, args GetFoldersOutputArgs, opts ...pulumi.InvokeOption) GetFoldersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetFoldersResultOutput, error) { args := v.(GetFoldersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetFoldersResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getFolders:getFolders", args, &rv, "", opts...) - if err != nil { - return GetFoldersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetFoldersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetFoldersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getFolders:getFolders", args, GetFoldersResultOutput{}, options).(GetFoldersResultOutput), nil }).(GetFoldersResultOutput) } diff --git a/sdk/go/gcp/organizations/getIAMPolicy.go b/sdk/go/gcp/organizations/getIAMPolicy.go index c5805d17e3..16ab3e6a32 100644 --- a/sdk/go/gcp/organizations/getIAMPolicy.go +++ b/sdk/go/gcp/organizations/getIAMPolicy.go @@ -50,21 +50,11 @@ type LookupIAMPolicyResult struct { } func LookupIAMPolicyOutput(ctx *pulumi.Context, args LookupIAMPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupIAMPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupIAMPolicyResultOutput, error) { args := v.(LookupIAMPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupIAMPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getIAMPolicy:getIAMPolicy", args, &rv, "", opts...) - if err != nil { - return LookupIAMPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupIAMPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupIAMPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getIAMPolicy:getIAMPolicy", args, LookupIAMPolicyResultOutput{}, options).(LookupIAMPolicyResultOutput), nil }).(LookupIAMPolicyResultOutput) } diff --git a/sdk/go/gcp/organizations/getOrganization.go b/sdk/go/gcp/organizations/getOrganization.go index 138e019ed5..f72b02a132 100644 --- a/sdk/go/gcp/organizations/getOrganization.go +++ b/sdk/go/gcp/organizations/getOrganization.go @@ -82,21 +82,11 @@ type GetOrganizationResult struct { } func GetOrganizationOutput(ctx *pulumi.Context, args GetOrganizationOutputArgs, opts ...pulumi.InvokeOption) GetOrganizationResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetOrganizationResultOutput, error) { args := v.(GetOrganizationArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetOrganizationResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getOrganization:getOrganization", args, &rv, "", opts...) - if err != nil { - return GetOrganizationResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetOrganizationResultOutput) - if secret { - return pulumi.ToSecret(output).(GetOrganizationResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getOrganization:getOrganization", args, GetOrganizationResultOutput{}, options).(GetOrganizationResultOutput), nil }).(GetOrganizationResultOutput) } diff --git a/sdk/go/gcp/organizations/getProject.go b/sdk/go/gcp/organizations/getProject.go index 11a9199b84..2b0ae5e44e 100644 --- a/sdk/go/gcp/organizations/getProject.go +++ b/sdk/go/gcp/organizations/getProject.go @@ -75,21 +75,11 @@ type LookupProjectResult struct { } func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts ...pulumi.InvokeOption) LookupProjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupProjectResultOutput, error) { args := v.(LookupProjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupProjectResult - secret, err := ctx.InvokePackageRaw("gcp:organizations/getProject:getProject", args, &rv, "", opts...) - if err != nil { - return LookupProjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupProjectResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupProjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:organizations/getProject:getProject", args, LookupProjectResultOutput{}, options).(LookupProjectResultOutput), nil }).(LookupProjectResultOutput) } diff --git a/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go b/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go index 9036c6707f..1e97725eb5 100644 --- a/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go +++ b/sdk/go/gcp/privilegedaccessmanager/getEntitlement.go @@ -87,21 +87,11 @@ type LookupEntitlementResult struct { } func LookupEntitlementOutput(ctx *pulumi.Context, args LookupEntitlementOutputArgs, opts ...pulumi.InvokeOption) LookupEntitlementResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupEntitlementResultOutput, error) { args := v.(LookupEntitlementArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupEntitlementResult - secret, err := ctx.InvokePackageRaw("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args, &rv, "", opts...) - if err != nil { - return LookupEntitlementResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupEntitlementResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupEntitlementResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", args, LookupEntitlementResultOutput{}, options).(LookupEntitlementResultOutput), nil }).(LookupEntitlementResultOutput) } diff --git a/sdk/go/gcp/projects/getIamPolicy.go b/sdk/go/gcp/projects/getIamPolicy.go index 15fb3c74f3..4d937cc25b 100644 --- a/sdk/go/gcp/projects/getIamPolicy.go +++ b/sdk/go/gcp/projects/getIamPolicy.go @@ -67,21 +67,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/projects/getOrganizationPolicy.go b/sdk/go/gcp/projects/getOrganizationPolicy.go index 6dc76dd803..c144a06969 100644 --- a/sdk/go/gcp/projects/getOrganizationPolicy.go +++ b/sdk/go/gcp/projects/getOrganizationPolicy.go @@ -75,21 +75,11 @@ type LookupOrganizationPolicyResult struct { } func LookupOrganizationPolicyOutput(ctx *pulumi.Context, args LookupOrganizationPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupOrganizationPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupOrganizationPolicyResultOutput, error) { args := v.(LookupOrganizationPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupOrganizationPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args, &rv, "", opts...) - if err != nil { - return LookupOrganizationPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupOrganizationPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupOrganizationPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", args, LookupOrganizationPolicyResultOutput{}, options).(LookupOrganizationPolicyResultOutput), nil }).(LookupOrganizationPolicyResultOutput) } diff --git a/sdk/go/gcp/projects/getProject.go b/sdk/go/gcp/projects/getProject.go index 4714127517..aad1bac2d5 100644 --- a/sdk/go/gcp/projects/getProject.go +++ b/sdk/go/gcp/projects/getProject.go @@ -75,21 +75,11 @@ type GetProjectResult struct { } func GetProjectOutput(ctx *pulumi.Context, args GetProjectOutputArgs, opts ...pulumi.InvokeOption) GetProjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectResultOutput, error) { args := v.(GetProjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getProject:getProject", args, &rv, "", opts...) - if err != nil { - return GetProjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getProject:getProject", args, GetProjectResultOutput{}, options).(GetProjectResultOutput), nil }).(GetProjectResultOutput) } diff --git a/sdk/go/gcp/projects/getProjectService.go b/sdk/go/gcp/projects/getProjectService.go index d1c988e456..1f42ec9835 100644 --- a/sdk/go/gcp/projects/getProjectService.go +++ b/sdk/go/gcp/projects/getProjectService.go @@ -83,21 +83,11 @@ type GetProjectServiceResult struct { } func GetProjectServiceOutput(ctx *pulumi.Context, args GetProjectServiceOutputArgs, opts ...pulumi.InvokeOption) GetProjectServiceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectServiceResultOutput, error) { args := v.(GetProjectServiceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectServiceResult - secret, err := ctx.InvokePackageRaw("gcp:projects/getProjectService:getProjectService", args, &rv, "", opts...) - if err != nil { - return GetProjectServiceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectServiceResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectServiceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:projects/getProjectService:getProjectService", args, GetProjectServiceResultOutput{}, options).(GetProjectServiceResultOutput), nil }).(GetProjectServiceResultOutput) } diff --git a/sdk/go/gcp/pubsub/getSchemaIamPolicy.go b/sdk/go/gcp/pubsub/getSchemaIamPolicy.go index 0dd21f52b8..36b70923d6 100644 --- a/sdk/go/gcp/pubsub/getSchemaIamPolicy.go +++ b/sdk/go/gcp/pubsub/getSchemaIamPolicy.go @@ -72,21 +72,11 @@ type LookupSchemaIamPolicyResult struct { } func LookupSchemaIamPolicyOutput(ctx *pulumi.Context, args LookupSchemaIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSchemaIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSchemaIamPolicyResultOutput, error) { args := v.(LookupSchemaIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSchemaIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSchemaIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSchemaIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSchemaIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", args, LookupSchemaIamPolicyResultOutput{}, options).(LookupSchemaIamPolicyResultOutput), nil }).(LookupSchemaIamPolicyResultOutput) } diff --git a/sdk/go/gcp/pubsub/getSubscription.go b/sdk/go/gcp/pubsub/getSubscription.go index 6d0cbc18fa..78da6a3ebc 100644 --- a/sdk/go/gcp/pubsub/getSubscription.go +++ b/sdk/go/gcp/pubsub/getSubscription.go @@ -86,21 +86,11 @@ type LookupSubscriptionResult struct { } func LookupSubscriptionOutput(ctx *pulumi.Context, args LookupSubscriptionOutputArgs, opts ...pulumi.InvokeOption) LookupSubscriptionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSubscriptionResultOutput, error) { args := v.(LookupSubscriptionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSubscriptionResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getSubscription:getSubscription", args, &rv, "", opts...) - if err != nil { - return LookupSubscriptionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSubscriptionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSubscriptionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getSubscription:getSubscription", args, LookupSubscriptionResultOutput{}, options).(LookupSubscriptionResultOutput), nil }).(LookupSubscriptionResultOutput) } diff --git a/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go b/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go index 830a48f698..31a0d26cdd 100644 --- a/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go +++ b/sdk/go/gcp/pubsub/getSubscriptionIamPolicy.go @@ -70,21 +70,11 @@ type GetSubscriptionIamPolicyResult struct { } func GetSubscriptionIamPolicyOutput(ctx *pulumi.Context, args GetSubscriptionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetSubscriptionIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSubscriptionIamPolicyResultOutput, error) { args := v.(GetSubscriptionIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSubscriptionIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetSubscriptionIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSubscriptionIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSubscriptionIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", args, GetSubscriptionIamPolicyResultOutput{}, options).(GetSubscriptionIamPolicyResultOutput), nil }).(GetSubscriptionIamPolicyResultOutput) } diff --git a/sdk/go/gcp/pubsub/getTopic.go b/sdk/go/gcp/pubsub/getTopic.go index 63e8fe420a..baf1f835e9 100644 --- a/sdk/go/gcp/pubsub/getTopic.go +++ b/sdk/go/gcp/pubsub/getTopic.go @@ -78,21 +78,11 @@ type LookupTopicResult struct { } func LookupTopicOutput(ctx *pulumi.Context, args LookupTopicOutputArgs, opts ...pulumi.InvokeOption) LookupTopicResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTopicResultOutput, error) { args := v.(LookupTopicArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTopicResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getTopic:getTopic", args, &rv, "", opts...) - if err != nil { - return LookupTopicResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTopicResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTopicResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getTopic:getTopic", args, LookupTopicResultOutput{}, options).(LookupTopicResultOutput), nil }).(LookupTopicResultOutput) } diff --git a/sdk/go/gcp/pubsub/getTopicIamPolicy.go b/sdk/go/gcp/pubsub/getTopicIamPolicy.go index 9ead2c331f..e01be2c602 100644 --- a/sdk/go/gcp/pubsub/getTopicIamPolicy.go +++ b/sdk/go/gcp/pubsub/getTopicIamPolicy.go @@ -72,21 +72,11 @@ type GetTopicIamPolicyResult struct { } func GetTopicIamPolicyOutput(ctx *pulumi.Context, args GetTopicIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetTopicIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTopicIamPolicyResultOutput, error) { args := v.(GetTopicIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTopicIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetTopicIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTopicIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTopicIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", args, GetTopicIamPolicyResultOutput{}, options).(GetTopicIamPolicyResultOutput), nil }).(GetTopicIamPolicyResultOutput) } diff --git a/sdk/go/gcp/redis/getInstance.go b/sdk/go/gcp/redis/getInstance.go index afe99f27ca..7907ea285b 100644 --- a/sdk/go/gcp/redis/getInstance.go +++ b/sdk/go/gcp/redis/getInstance.go @@ -108,21 +108,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:redis/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:redis/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/runtimeconfig/getConfig.go b/sdk/go/gcp/runtimeconfig/getConfig.go index 0f6af2f4aa..3f43270800 100644 --- a/sdk/go/gcp/runtimeconfig/getConfig.go +++ b/sdk/go/gcp/runtimeconfig/getConfig.go @@ -67,21 +67,11 @@ type LookupConfigResult struct { } func LookupConfigOutput(ctx *pulumi.Context, args LookupConfigOutputArgs, opts ...pulumi.InvokeOption) LookupConfigResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConfigResultOutput, error) { args := v.(LookupConfigArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConfigResult - secret, err := ctx.InvokePackageRaw("gcp:runtimeconfig/getConfig:getConfig", args, &rv, "", opts...) - if err != nil { - return LookupConfigResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConfigResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConfigResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:runtimeconfig/getConfig:getConfig", args, LookupConfigResultOutput{}, options).(LookupConfigResultOutput), nil }).(LookupConfigResultOutput) } diff --git a/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go b/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go index a8f66107ce..4be142d004 100644 --- a/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go +++ b/sdk/go/gcp/runtimeconfig/getConfigIamPolicy.go @@ -44,21 +44,11 @@ type LookupConfigIamPolicyResult struct { } func LookupConfigIamPolicyOutput(ctx *pulumi.Context, args LookupConfigIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupConfigIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConfigIamPolicyResultOutput, error) { args := v.(LookupConfigIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConfigIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupConfigIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConfigIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConfigIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", args, LookupConfigIamPolicyResultOutput{}, options).(LookupConfigIamPolicyResultOutput), nil }).(LookupConfigIamPolicyResultOutput) } diff --git a/sdk/go/gcp/runtimeconfig/getVariable.go b/sdk/go/gcp/runtimeconfig/getVariable.go index 8635c0295b..3828bd5baf 100644 --- a/sdk/go/gcp/runtimeconfig/getVariable.go +++ b/sdk/go/gcp/runtimeconfig/getVariable.go @@ -73,21 +73,11 @@ type LookupVariableResult struct { } func LookupVariableOutput(ctx *pulumi.Context, args LookupVariableOutputArgs, opts ...pulumi.InvokeOption) LookupVariableResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupVariableResultOutput, error) { args := v.(LookupVariableArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupVariableResult - secret, err := ctx.InvokePackageRaw("gcp:runtimeconfig/getVariable:getVariable", args, &rv, "", opts...) - if err != nil { - return LookupVariableResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupVariableResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupVariableResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:runtimeconfig/getVariable:getVariable", args, LookupVariableResultOutput{}, options).(LookupVariableResultOutput), nil }).(LookupVariableResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecret.go b/sdk/go/gcp/secretmanager/getRegionalSecret.go index aa14788457..ea32bf965e 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecret.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecret.go @@ -83,21 +83,11 @@ type LookupRegionalSecretResult struct { } func LookupRegionalSecretOutput(ctx *pulumi.Context, args LookupRegionalSecretOutputArgs, opts ...pulumi.InvokeOption) LookupRegionalSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionalSecretResultOutput, error) { args := v.(LookupRegionalSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionalSecretResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args, &rv, "", opts...) - if err != nil { - return LookupRegionalSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionalSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionalSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecret:getRegionalSecret", args, LookupRegionalSecretResultOutput{}, options).(LookupRegionalSecretResultOutput), nil }).(LookupRegionalSecretResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go b/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go index 7fb107bbc9..c8b4133336 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecretIamPolicy.go @@ -78,21 +78,11 @@ type LookupRegionalSecretIamPolicyResult struct { } func LookupRegionalSecretIamPolicyOutput(ctx *pulumi.Context, args LookupRegionalSecretIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRegionalSecretIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionalSecretIamPolicyResultOutput, error) { args := v.(LookupRegionalSecretIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionalSecretIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRegionalSecretIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionalSecretIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionalSecretIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", args, LookupRegionalSecretIamPolicyResultOutput{}, options).(LookupRegionalSecretIamPolicyResultOutput), nil }).(LookupRegionalSecretIamPolicyResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go b/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go index 64c7768aaa..8d44fa96bb 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecretVersion.go @@ -93,21 +93,11 @@ type LookupRegionalSecretVersionResult struct { } func LookupRegionalSecretVersionOutput(ctx *pulumi.Context, args LookupRegionalSecretVersionOutputArgs, opts ...pulumi.InvokeOption) LookupRegionalSecretVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRegionalSecretVersionResultOutput, error) { args := v.(LookupRegionalSecretVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRegionalSecretVersionResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args, &rv, "", opts...) - if err != nil { - return LookupRegionalSecretVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRegionalSecretVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRegionalSecretVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", args, LookupRegionalSecretVersionResultOutput{}, options).(LookupRegionalSecretVersionResultOutput), nil }).(LookupRegionalSecretVersionResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go b/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go index 42b120d302..d0ae82c0f3 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecretVersionAccess.go @@ -85,21 +85,11 @@ type GetRegionalSecretVersionAccessResult struct { } func GetRegionalSecretVersionAccessOutput(ctx *pulumi.Context, args GetRegionalSecretVersionAccessOutputArgs, opts ...pulumi.InvokeOption) GetRegionalSecretVersionAccessResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionalSecretVersionAccessResultOutput, error) { args := v.(GetRegionalSecretVersionAccessArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionalSecretVersionAccessResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args, &rv, "", opts...) - if err != nil { - return GetRegionalSecretVersionAccessResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionalSecretVersionAccessResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionalSecretVersionAccessResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", args, GetRegionalSecretVersionAccessResultOutput{}, options).(GetRegionalSecretVersionAccessResultOutput), nil }).(GetRegionalSecretVersionAccessResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getRegionalSecrets.go b/sdk/go/gcp/secretmanager/getRegionalSecrets.go index 4751cb6ac1..05bfd1ab20 100644 --- a/sdk/go/gcp/secretmanager/getRegionalSecrets.go +++ b/sdk/go/gcp/secretmanager/getRegionalSecrets.go @@ -72,21 +72,11 @@ type GetRegionalSecretsResult struct { } func GetRegionalSecretsOutput(ctx *pulumi.Context, args GetRegionalSecretsOutputArgs, opts ...pulumi.InvokeOption) GetRegionalSecretsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetRegionalSecretsResultOutput, error) { args := v.(GetRegionalSecretsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegionalSecretsResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args, &rv, "", opts...) - if err != nil { - return GetRegionalSecretsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetRegionalSecretsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetRegionalSecretsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", args, GetRegionalSecretsResultOutput{}, options).(GetRegionalSecretsResultOutput), nil }).(GetRegionalSecretsResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecret.go b/sdk/go/gcp/secretmanager/getSecret.go index 611e04ff7a..6c3c3f2c19 100644 --- a/sdk/go/gcp/secretmanager/getSecret.go +++ b/sdk/go/gcp/secretmanager/getSecret.go @@ -79,21 +79,11 @@ type LookupSecretResult struct { } func LookupSecretOutput(ctx *pulumi.Context, args LookupSecretOutputArgs, opts ...pulumi.InvokeOption) LookupSecretResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecretResultOutput, error) { args := v.(LookupSecretArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecretResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecret:getSecret", args, &rv, "", opts...) - if err != nil { - return LookupSecretResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecretResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecretResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecret:getSecret", args, LookupSecretResultOutput{}, options).(LookupSecretResultOutput), nil }).(LookupSecretResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecretIamPolicy.go b/sdk/go/gcp/secretmanager/getSecretIamPolicy.go index c941c84a72..ac33391800 100644 --- a/sdk/go/gcp/secretmanager/getSecretIamPolicy.go +++ b/sdk/go/gcp/secretmanager/getSecretIamPolicy.go @@ -71,21 +71,11 @@ type LookupSecretIamPolicyResult struct { } func LookupSecretIamPolicyOutput(ctx *pulumi.Context, args LookupSecretIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSecretIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecretIamPolicyResultOutput, error) { args := v.(LookupSecretIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecretIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSecretIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecretIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecretIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", args, LookupSecretIamPolicyResultOutput{}, options).(LookupSecretIamPolicyResultOutput), nil }).(LookupSecretIamPolicyResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecretVersion.go b/sdk/go/gcp/secretmanager/getSecretVersion.go index dcab8f571f..f07b454968 100644 --- a/sdk/go/gcp/secretmanager/getSecretVersion.go +++ b/sdk/go/gcp/secretmanager/getSecretVersion.go @@ -85,21 +85,11 @@ type LookupSecretVersionResult struct { } func LookupSecretVersionOutput(ctx *pulumi.Context, args LookupSecretVersionOutputArgs, opts ...pulumi.InvokeOption) LookupSecretVersionResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSecretVersionResultOutput, error) { args := v.(LookupSecretVersionArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSecretVersionResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecretVersion:getSecretVersion", args, &rv, "", opts...) - if err != nil { - return LookupSecretVersionResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSecretVersionResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSecretVersionResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecretVersion:getSecretVersion", args, LookupSecretVersionResultOutput{}, options).(LookupSecretVersionResultOutput), nil }).(LookupSecretVersionResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecretVersionAccess.go b/sdk/go/gcp/secretmanager/getSecretVersionAccess.go index b94edd4ab7..6a44309dab 100644 --- a/sdk/go/gcp/secretmanager/getSecretVersionAccess.go +++ b/sdk/go/gcp/secretmanager/getSecretVersionAccess.go @@ -79,21 +79,11 @@ type GetSecretVersionAccessResult struct { } func GetSecretVersionAccessOutput(ctx *pulumi.Context, args GetSecretVersionAccessOutputArgs, opts ...pulumi.InvokeOption) GetSecretVersionAccessResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretVersionAccessResultOutput, error) { args := v.(GetSecretVersionAccessArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretVersionAccessResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args, &rv, "", opts...) - if err != nil { - return GetSecretVersionAccessResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretVersionAccessResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretVersionAccessResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", args, GetSecretVersionAccessResultOutput{}, options).(GetSecretVersionAccessResultOutput), nil }).(GetSecretVersionAccessResultOutput) } diff --git a/sdk/go/gcp/secretmanager/getSecrets.go b/sdk/go/gcp/secretmanager/getSecrets.go index 04f4fc7b6f..7571aa30a9 100644 --- a/sdk/go/gcp/secretmanager/getSecrets.go +++ b/sdk/go/gcp/secretmanager/getSecrets.go @@ -66,21 +66,11 @@ type GetSecretsResult struct { } func GetSecretsOutput(ctx *pulumi.Context, args GetSecretsOutputArgs, opts ...pulumi.InvokeOption) GetSecretsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSecretsResultOutput, error) { args := v.(GetSecretsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSecretsResult - secret, err := ctx.InvokePackageRaw("gcp:secretmanager/getSecrets:getSecrets", args, &rv, "", opts...) - if err != nil { - return GetSecretsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSecretsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSecretsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:secretmanager/getSecrets:getSecrets", args, GetSecretsResultOutput{}, options).(GetSecretsResultOutput), nil }).(GetSecretsResultOutput) } diff --git a/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go b/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go index c74cf20e1c..c1bf5c375d 100644 --- a/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go +++ b/sdk/go/gcp/securesourcemanager/getInstanceIamPolicy.go @@ -80,21 +80,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go b/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go index 313cd0bba9..0c218a118b 100644 --- a/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/securesourcemanager/getRepositoryIamPolicy.go @@ -80,21 +80,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/securitycenter/getSourceIamPolicy.go b/sdk/go/gcp/securitycenter/getSourceIamPolicy.go index 70b8eac864..8b9e618a07 100644 --- a/sdk/go/gcp/securitycenter/getSourceIamPolicy.go +++ b/sdk/go/gcp/securitycenter/getSourceIamPolicy.go @@ -69,21 +69,11 @@ type LookupSourceIamPolicyResult struct { } func LookupSourceIamPolicyOutput(ctx *pulumi.Context, args LookupSourceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupSourceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSourceIamPolicyResultOutput, error) { args := v.(LookupSourceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSourceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupSourceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSourceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSourceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", args, LookupSourceIamPolicyResultOutput{}, options).(LookupSourceIamPolicyResultOutput), nil }).(LookupSourceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go b/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go index d8758b9cba..f7f7aa5626 100644 --- a/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go +++ b/sdk/go/gcp/securitycenter/getV2OrganizationSourceIamPolicy.go @@ -69,21 +69,11 @@ type LookupV2OrganizationSourceIamPolicyResult struct { } func LookupV2OrganizationSourceIamPolicyOutput(ctx *pulumi.Context, args LookupV2OrganizationSourceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupV2OrganizationSourceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupV2OrganizationSourceIamPolicyResultOutput, error) { args := v.(LookupV2OrganizationSourceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupV2OrganizationSourceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupV2OrganizationSourceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupV2OrganizationSourceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupV2OrganizationSourceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", args, LookupV2OrganizationSourceIamPolicyResultOutput{}, options).(LookupV2OrganizationSourceIamPolicyResultOutput), nil }).(LookupV2OrganizationSourceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccount.go b/sdk/go/gcp/serviceaccount/getAccount.go index ac1151e805..c73705bdd4 100644 --- a/sdk/go/gcp/serviceaccount/getAccount.go +++ b/sdk/go/gcp/serviceaccount/getAccount.go @@ -138,21 +138,11 @@ type LookupAccountResult struct { } func LookupAccountOutput(ctx *pulumi.Context, args LookupAccountOutputArgs, opts ...pulumi.InvokeOption) LookupAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAccountResultOutput, error) { args := v.(LookupAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAccountResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccount:getAccount", args, &rv, "", opts...) - if err != nil { - return LookupAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccount:getAccount", args, LookupAccountResultOutput{}, options).(LookupAccountResultOutput), nil }).(LookupAccountResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountAccessToken.go b/sdk/go/gcp/serviceaccount/getAccountAccessToken.go index 35992fdb29..13a4ef20e2 100644 --- a/sdk/go/gcp/serviceaccount/getAccountAccessToken.go +++ b/sdk/go/gcp/serviceaccount/getAccountAccessToken.go @@ -129,21 +129,11 @@ type GetAccountAccessTokenResult struct { } func GetAccountAccessTokenOutput(ctx *pulumi.Context, args GetAccountAccessTokenOutputArgs, opts ...pulumi.InvokeOption) GetAccountAccessTokenResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountAccessTokenResultOutput, error) { args := v.(GetAccountAccessTokenArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountAccessTokenResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args, &rv, "", opts...) - if err != nil { - return GetAccountAccessTokenResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountAccessTokenResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountAccessTokenResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", args, GetAccountAccessTokenResultOutput{}, options).(GetAccountAccessTokenResultOutput), nil }).(GetAccountAccessTokenResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountIdToken.go b/sdk/go/gcp/serviceaccount/getAccountIdToken.go index 4a54c92e46..cce0aede06 100644 --- a/sdk/go/gcp/serviceaccount/getAccountIdToken.go +++ b/sdk/go/gcp/serviceaccount/getAccountIdToken.go @@ -169,21 +169,11 @@ type GetAccountIdTokenResult struct { } func GetAccountIdTokenOutput(ctx *pulumi.Context, args GetAccountIdTokenOutputArgs, opts ...pulumi.InvokeOption) GetAccountIdTokenResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountIdTokenResultOutput, error) { args := v.(GetAccountIdTokenArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountIdTokenResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args, &rv, "", opts...) - if err != nil { - return GetAccountIdTokenResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountIdTokenResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountIdTokenResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", args, GetAccountIdTokenResultOutput{}, options).(GetAccountIdTokenResultOutput), nil }).(GetAccountIdTokenResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountJwt.go b/sdk/go/gcp/serviceaccount/getAccountJwt.go index c6c1dc373b..36dc3b0bbe 100644 --- a/sdk/go/gcp/serviceaccount/getAccountJwt.go +++ b/sdk/go/gcp/serviceaccount/getAccountJwt.go @@ -88,21 +88,11 @@ type GetAccountJwtResult struct { } func GetAccountJwtOutput(ctx *pulumi.Context, args GetAccountJwtOutputArgs, opts ...pulumi.InvokeOption) GetAccountJwtResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountJwtResultOutput, error) { args := v.(GetAccountJwtArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountJwtResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountJwt:getAccountJwt", args, &rv, "", opts...) - if err != nil { - return GetAccountJwtResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountJwtResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountJwtResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountJwt:getAccountJwt", args, GetAccountJwtResultOutput{}, options).(GetAccountJwtResultOutput), nil }).(GetAccountJwtResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getAccountKey.go b/sdk/go/gcp/serviceaccount/getAccountKey.go index f5b2987f51..46f448646a 100644 --- a/sdk/go/gcp/serviceaccount/getAccountKey.go +++ b/sdk/go/gcp/serviceaccount/getAccountKey.go @@ -84,21 +84,11 @@ type GetAccountKeyResult struct { } func GetAccountKeyOutput(ctx *pulumi.Context, args GetAccountKeyOutputArgs, opts ...pulumi.InvokeOption) GetAccountKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAccountKeyResultOutput, error) { args := v.(GetAccountKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAccountKeyResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getAccountKey:getAccountKey", args, &rv, "", opts...) - if err != nil { - return GetAccountKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAccountKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAccountKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getAccountKey:getAccountKey", args, GetAccountKeyResultOutput{}, options).(GetAccountKeyResultOutput), nil }).(GetAccountKeyResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getIamPolicy.go b/sdk/go/gcp/serviceaccount/getIamPolicy.go index 54a81a9d8e..371ea4fa2f 100644 --- a/sdk/go/gcp/serviceaccount/getIamPolicy.go +++ b/sdk/go/gcp/serviceaccount/getIamPolicy.go @@ -66,21 +66,11 @@ type GetIamPolicyResult struct { } func GetIamPolicyOutput(ctx *pulumi.Context, args GetIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetIamPolicyResultOutput, error) { args := v.(GetIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getIamPolicy:getIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getIamPolicy:getIamPolicy", args, GetIamPolicyResultOutput{}, options).(GetIamPolicyResultOutput), nil }).(GetIamPolicyResultOutput) } diff --git a/sdk/go/gcp/serviceaccount/getS.go b/sdk/go/gcp/serviceaccount/getS.go index b1ddfb722a..89e55410b6 100644 --- a/sdk/go/gcp/serviceaccount/getS.go +++ b/sdk/go/gcp/serviceaccount/getS.go @@ -68,21 +68,11 @@ type GetSResult struct { } func GetSOutput(ctx *pulumi.Context, args GetSOutputArgs, opts ...pulumi.InvokeOption) GetSResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetSResultOutput, error) { args := v.(GetSArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetSResult - secret, err := ctx.InvokePackageRaw("gcp:serviceaccount/getS:getS", args, &rv, "", opts...) - if err != nil { - return GetSResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetSResultOutput) - if secret { - return pulumi.ToSecret(output).(GetSResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:serviceaccount/getS:getS", args, GetSResultOutput{}, options).(GetSResultOutput), nil }).(GetSResultOutput) } diff --git a/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go b/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go index ccf1f70d77..225fbbb9b2 100644 --- a/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go +++ b/sdk/go/gcp/servicedirectory/getNamespaceIamPolicy.go @@ -40,21 +40,11 @@ type LookupNamespaceIamPolicyResult struct { } func LookupNamespaceIamPolicyOutput(ctx *pulumi.Context, args LookupNamespaceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupNamespaceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNamespaceIamPolicyResultOutput, error) { args := v.(LookupNamespaceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNamespaceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupNamespaceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNamespaceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNamespaceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", args, LookupNamespaceIamPolicyResultOutput{}, options).(LookupNamespaceIamPolicyResultOutput), nil }).(LookupNamespaceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go b/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go index 7b2498979f..6a4b784479 100644 --- a/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go +++ b/sdk/go/gcp/servicedirectory/getServiceIamPolicy.go @@ -40,21 +40,11 @@ type LookupServiceIamPolicyResult struct { } func LookupServiceIamPolicyOutput(ctx *pulumi.Context, args LookupServiceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupServiceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupServiceIamPolicyResultOutput, error) { args := v.(LookupServiceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupServiceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupServiceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupServiceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupServiceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", args, LookupServiceIamPolicyResultOutput{}, options).(LookupServiceIamPolicyResultOutput), nil }).(LookupServiceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go b/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go index 21c5baad26..25721fe67c 100644 --- a/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go +++ b/sdk/go/gcp/servicenetworking/getPeeredDnsDomain.go @@ -42,21 +42,11 @@ type LookupPeeredDnsDomainResult struct { } func LookupPeeredDnsDomainOutput(ctx *pulumi.Context, args LookupPeeredDnsDomainOutputArgs, opts ...pulumi.InvokeOption) LookupPeeredDnsDomainResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPeeredDnsDomainResultOutput, error) { args := v.(LookupPeeredDnsDomainArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPeeredDnsDomainResult - secret, err := ctx.InvokePackageRaw("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args, &rv, "", opts...) - if err != nil { - return LookupPeeredDnsDomainResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPeeredDnsDomainResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPeeredDnsDomainResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", args, LookupPeeredDnsDomainResultOutput{}, options).(LookupPeeredDnsDomainResultOutput), nil }).(LookupPeeredDnsDomainResultOutput) } diff --git a/sdk/go/gcp/siteverification/getToken.go b/sdk/go/gcp/siteverification/getToken.go index 55997b8375..18cb7ca724 100644 --- a/sdk/go/gcp/siteverification/getToken.go +++ b/sdk/go/gcp/siteverification/getToken.go @@ -114,21 +114,11 @@ type GetTokenResult struct { } func GetTokenOutput(ctx *pulumi.Context, args GetTokenOutputArgs, opts ...pulumi.InvokeOption) GetTokenResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTokenResultOutput, error) { args := v.(GetTokenArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTokenResult - secret, err := ctx.InvokePackageRaw("gcp:siteverification/getToken:getToken", args, &rv, "", opts...) - if err != nil { - return GetTokenResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTokenResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTokenResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:siteverification/getToken:getToken", args, GetTokenResultOutput{}, options).(GetTokenResultOutput), nil }).(GetTokenResultOutput) } diff --git a/sdk/go/gcp/sourcerepo/getRepository.go b/sdk/go/gcp/sourcerepo/getRepository.go index 34a58698bb..d549255820 100644 --- a/sdk/go/gcp/sourcerepo/getRepository.go +++ b/sdk/go/gcp/sourcerepo/getRepository.go @@ -72,21 +72,11 @@ type LookupRepositoryResult struct { } func LookupRepositoryOutput(ctx *pulumi.Context, args LookupRepositoryOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryResultOutput, error) { args := v.(LookupRepositoryArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryResult - secret, err := ctx.InvokePackageRaw("gcp:sourcerepo/getRepository:getRepository", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sourcerepo/getRepository:getRepository", args, LookupRepositoryResultOutput{}, options).(LookupRepositoryResultOutput), nil }).(LookupRepositoryResultOutput) } diff --git a/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go b/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go index 7e58cb8808..36a62cf00b 100644 --- a/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go +++ b/sdk/go/gcp/sourcerepo/getRepositoryIamPolicy.go @@ -72,21 +72,11 @@ type LookupRepositoryIamPolicyResult struct { } func LookupRepositoryIamPolicyOutput(ctx *pulumi.Context, args LookupRepositoryIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupRepositoryIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupRepositoryIamPolicyResultOutput, error) { args := v.(LookupRepositoryIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupRepositoryIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupRepositoryIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupRepositoryIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupRepositoryIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", args, LookupRepositoryIamPolicyResultOutput{}, options).(LookupRepositoryIamPolicyResultOutput), nil }).(LookupRepositoryIamPolicyResultOutput) } diff --git a/sdk/go/gcp/spanner/getDatabase.go b/sdk/go/gcp/spanner/getDatabase.go index 33f837e323..0110671c37 100644 --- a/sdk/go/gcp/spanner/getDatabase.go +++ b/sdk/go/gcp/spanner/getDatabase.go @@ -79,21 +79,11 @@ type LookupDatabaseResult struct { } func LookupDatabaseOutput(ctx *pulumi.Context, args LookupDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseResultOutput, error) { args := v.(LookupDatabaseArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getDatabase:getDatabase", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getDatabase:getDatabase", args, LookupDatabaseResultOutput{}, options).(LookupDatabaseResultOutput), nil }).(LookupDatabaseResultOutput) } diff --git a/sdk/go/gcp/spanner/getDatabaseIamPolicy.go b/sdk/go/gcp/spanner/getDatabaseIamPolicy.go index 6daef4eb4b..8b6ccc6265 100644 --- a/sdk/go/gcp/spanner/getDatabaseIamPolicy.go +++ b/sdk/go/gcp/spanner/getDatabaseIamPolicy.go @@ -75,21 +75,11 @@ type GetDatabaseIamPolicyResult struct { } func GetDatabaseIamPolicyOutput(ctx *pulumi.Context, args GetDatabaseIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabaseIamPolicyResultOutput, error) { args := v.(GetDatabaseIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetDatabaseIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabaseIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabaseIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", args, GetDatabaseIamPolicyResultOutput{}, options).(GetDatabaseIamPolicyResultOutput), nil }).(GetDatabaseIamPolicyResultOutput) } diff --git a/sdk/go/gcp/spanner/getInstance.go b/sdk/go/gcp/spanner/getInstance.go index 2d73c8a852..6d0c6dcaf7 100644 --- a/sdk/go/gcp/spanner/getInstance.go +++ b/sdk/go/gcp/spanner/getInstance.go @@ -82,21 +82,11 @@ type LookupInstanceResult struct { } func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) { args := v.(LookupInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getInstance:getInstance", args, &rv, "", opts...) - if err != nil { - return LookupInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil }).(LookupInstanceResultOutput) } diff --git a/sdk/go/gcp/spanner/getInstanceIamPolicy.go b/sdk/go/gcp/spanner/getInstanceIamPolicy.go index 0465fbcfff..e5739a7bff 100644 --- a/sdk/go/gcp/spanner/getInstanceIamPolicy.go +++ b/sdk/go/gcp/spanner/getInstanceIamPolicy.go @@ -71,21 +71,11 @@ type GetInstanceIamPolicyResult struct { } func GetInstanceIamPolicyOutput(ctx *pulumi.Context, args GetInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetInstanceIamPolicyResultOutput, error) { args := v.(GetInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", args, GetInstanceIamPolicyResultOutput{}, options).(GetInstanceIamPolicyResultOutput), nil }).(GetInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/sql/getBackupRun.go b/sdk/go/gcp/sql/getBackupRun.go index e26d42c79a..277c4c438d 100644 --- a/sdk/go/gcp/sql/getBackupRun.go +++ b/sdk/go/gcp/sql/getBackupRun.go @@ -82,21 +82,11 @@ type GetBackupRunResult struct { } func GetBackupRunOutput(ctx *pulumi.Context, args GetBackupRunOutputArgs, opts ...pulumi.InvokeOption) GetBackupRunResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBackupRunResultOutput, error) { args := v.(GetBackupRunArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBackupRunResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getBackupRun:getBackupRun", args, &rv, "", opts...) - if err != nil { - return GetBackupRunResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBackupRunResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBackupRunResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getBackupRun:getBackupRun", args, GetBackupRunResultOutput{}, options).(GetBackupRunResultOutput), nil }).(GetBackupRunResultOutput) } diff --git a/sdk/go/gcp/sql/getCaCerts.go b/sdk/go/gcp/sql/getCaCerts.go index 7926366a21..ad866218f1 100644 --- a/sdk/go/gcp/sql/getCaCerts.go +++ b/sdk/go/gcp/sql/getCaCerts.go @@ -46,21 +46,11 @@ type GetCaCertsResult struct { } func GetCaCertsOutput(ctx *pulumi.Context, args GetCaCertsOutputArgs, opts ...pulumi.InvokeOption) GetCaCertsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetCaCertsResultOutput, error) { args := v.(GetCaCertsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetCaCertsResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getCaCerts:getCaCerts", args, &rv, "", opts...) - if err != nil { - return GetCaCertsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetCaCertsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetCaCertsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getCaCerts:getCaCerts", args, GetCaCertsResultOutput{}, options).(GetCaCertsResultOutput), nil }).(GetCaCertsResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabase.go b/sdk/go/gcp/sql/getDatabase.go index 7f5a667f4e..23bd69d7ad 100644 --- a/sdk/go/gcp/sql/getDatabase.go +++ b/sdk/go/gcp/sql/getDatabase.go @@ -73,21 +73,11 @@ type LookupDatabaseResult struct { } func LookupDatabaseOutput(ctx *pulumi.Context, args LookupDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseResultOutput, error) { args := v.(LookupDatabaseArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabase:getDatabase", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabase:getDatabase", args, LookupDatabaseResultOutput{}, options).(LookupDatabaseResultOutput), nil }).(LookupDatabaseResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabaseInstance.go b/sdk/go/gcp/sql/getDatabaseInstance.go index db29bdbaf5..1e6d710810 100644 --- a/sdk/go/gcp/sql/getDatabaseInstance.go +++ b/sdk/go/gcp/sql/getDatabaseInstance.go @@ -89,21 +89,11 @@ type LookupDatabaseInstanceResult struct { } func LookupDatabaseInstanceOutput(ctx *pulumi.Context, args LookupDatabaseInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseInstanceResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupDatabaseInstanceResultOutput, error) { args := v.(LookupDatabaseInstanceArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupDatabaseInstanceResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabaseInstance:getDatabaseInstance", args, &rv, "", opts...) - if err != nil { - return LookupDatabaseInstanceResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupDatabaseInstanceResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupDatabaseInstanceResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabaseInstance:getDatabaseInstance", args, LookupDatabaseInstanceResultOutput{}, options).(LookupDatabaseInstanceResultOutput), nil }).(LookupDatabaseInstanceResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go b/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go index d48b0faf14..c72c667387 100644 --- a/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go +++ b/sdk/go/gcp/sql/getDatabaseInstanceLatestRecoveryTime.go @@ -73,21 +73,11 @@ type GetDatabaseInstanceLatestRecoveryTimeResult struct { } func GetDatabaseInstanceLatestRecoveryTimeOutput(ctx *pulumi.Context, args GetDatabaseInstanceLatestRecoveryTimeOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseInstanceLatestRecoveryTimeResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabaseInstanceLatestRecoveryTimeResultOutput, error) { args := v.(GetDatabaseInstanceLatestRecoveryTimeArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseInstanceLatestRecoveryTimeResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args, &rv, "", opts...) - if err != nil { - return GetDatabaseInstanceLatestRecoveryTimeResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabaseInstanceLatestRecoveryTimeResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabaseInstanceLatestRecoveryTimeResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", args, GetDatabaseInstanceLatestRecoveryTimeResultOutput{}, options).(GetDatabaseInstanceLatestRecoveryTimeResultOutput), nil }).(GetDatabaseInstanceLatestRecoveryTimeResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabaseInstances.go b/sdk/go/gcp/sql/getDatabaseInstances.go index b4360ee77c..446cf04f88 100644 --- a/sdk/go/gcp/sql/getDatabaseInstances.go +++ b/sdk/go/gcp/sql/getDatabaseInstances.go @@ -78,21 +78,11 @@ type GetDatabaseInstancesResult struct { } func GetDatabaseInstancesOutput(ctx *pulumi.Context, args GetDatabaseInstancesOutputArgs, opts ...pulumi.InvokeOption) GetDatabaseInstancesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabaseInstancesResultOutput, error) { args := v.(GetDatabaseInstancesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabaseInstancesResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabaseInstances:getDatabaseInstances", args, &rv, "", opts...) - if err != nil { - return GetDatabaseInstancesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabaseInstancesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabaseInstancesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabaseInstances:getDatabaseInstances", args, GetDatabaseInstancesResultOutput{}, options).(GetDatabaseInstancesResultOutput), nil }).(GetDatabaseInstancesResultOutput) } diff --git a/sdk/go/gcp/sql/getDatabases.go b/sdk/go/gcp/sql/getDatabases.go index 685e4e487d..8b0bae0fd6 100644 --- a/sdk/go/gcp/sql/getDatabases.go +++ b/sdk/go/gcp/sql/getDatabases.go @@ -67,21 +67,11 @@ type GetDatabasesResult struct { } func GetDatabasesOutput(ctx *pulumi.Context, args GetDatabasesOutputArgs, opts ...pulumi.InvokeOption) GetDatabasesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetDatabasesResultOutput, error) { args := v.(GetDatabasesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDatabasesResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getDatabases:getDatabases", args, &rv, "", opts...) - if err != nil { - return GetDatabasesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetDatabasesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetDatabasesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getDatabases:getDatabases", args, GetDatabasesResultOutput{}, options).(GetDatabasesResultOutput), nil }).(GetDatabasesResultOutput) } diff --git a/sdk/go/gcp/sql/getTiers.go b/sdk/go/gcp/sql/getTiers.go index 1ada368416..98198d55c1 100644 --- a/sdk/go/gcp/sql/getTiers.go +++ b/sdk/go/gcp/sql/getTiers.go @@ -41,21 +41,11 @@ type GetTiersResult struct { } func GetTiersOutput(ctx *pulumi.Context, args GetTiersOutputArgs, opts ...pulumi.InvokeOption) GetTiersResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTiersResultOutput, error) { args := v.(GetTiersArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTiersResult - secret, err := ctx.InvokePackageRaw("gcp:sql/getTiers:getTiers", args, &rv, "", opts...) - if err != nil { - return GetTiersResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTiersResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTiersResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:sql/getTiers:getTiers", args, GetTiersResultOutput{}, options).(GetTiersResultOutput), nil }).(GetTiersResultOutput) } diff --git a/sdk/go/gcp/storage/getBucket.go b/sdk/go/gcp/storage/getBucket.go index bfbcc67075..02300b7f0e 100644 --- a/sdk/go/gcp/storage/getBucket.go +++ b/sdk/go/gcp/storage/getBucket.go @@ -94,21 +94,11 @@ type LookupBucketResult struct { } func LookupBucketOutput(ctx *pulumi.Context, args LookupBucketOutputArgs, opts ...pulumi.InvokeOption) LookupBucketResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBucketResultOutput, error) { args := v.(LookupBucketArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBucketResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucket:getBucket", args, &rv, "", opts...) - if err != nil { - return LookupBucketResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBucketResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBucketResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucket:getBucket", args, LookupBucketResultOutput{}, options).(LookupBucketResultOutput), nil }).(LookupBucketResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketIamPolicy.go b/sdk/go/gcp/storage/getBucketIamPolicy.go index 6894f89653..035101baa2 100644 --- a/sdk/go/gcp/storage/getBucketIamPolicy.go +++ b/sdk/go/gcp/storage/getBucketIamPolicy.go @@ -67,21 +67,11 @@ type GetBucketIamPolicyResult struct { } func GetBucketIamPolicyOutput(ctx *pulumi.Context, args GetBucketIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetBucketIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketIamPolicyResultOutput, error) { args := v.(GetBucketIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetBucketIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", args, GetBucketIamPolicyResultOutput{}, options).(GetBucketIamPolicyResultOutput), nil }).(GetBucketIamPolicyResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketObject.go b/sdk/go/gcp/storage/getBucketObject.go index e3bb34324c..80cd043510 100644 --- a/sdk/go/gcp/storage/getBucketObject.go +++ b/sdk/go/gcp/storage/getBucketObject.go @@ -108,21 +108,11 @@ type LookupBucketObjectResult struct { } func LookupBucketObjectOutput(ctx *pulumi.Context, args LookupBucketObjectOutputArgs, opts ...pulumi.InvokeOption) LookupBucketObjectResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupBucketObjectResultOutput, error) { args := v.(LookupBucketObjectArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupBucketObjectResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketObject:getBucketObject", args, &rv, "", opts...) - if err != nil { - return LookupBucketObjectResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupBucketObjectResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupBucketObjectResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketObject:getBucketObject", args, LookupBucketObjectResultOutput{}, options).(LookupBucketObjectResultOutput), nil }).(LookupBucketObjectResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketObjectContent.go b/sdk/go/gcp/storage/getBucketObjectContent.go index a1bae6c5d0..624a114510 100644 --- a/sdk/go/gcp/storage/getBucketObjectContent.go +++ b/sdk/go/gcp/storage/getBucketObjectContent.go @@ -98,21 +98,11 @@ type GetBucketObjectContentResult struct { } func GetBucketObjectContentOutput(ctx *pulumi.Context, args GetBucketObjectContentOutputArgs, opts ...pulumi.InvokeOption) GetBucketObjectContentResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketObjectContentResultOutput, error) { args := v.(GetBucketObjectContentArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketObjectContentResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketObjectContent:getBucketObjectContent", args, &rv, "", opts...) - if err != nil { - return GetBucketObjectContentResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketObjectContentResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketObjectContentResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketObjectContent:getBucketObjectContent", args, GetBucketObjectContentResultOutput{}, options).(GetBucketObjectContentResultOutput), nil }).(GetBucketObjectContentResultOutput) } diff --git a/sdk/go/gcp/storage/getBucketObjects.go b/sdk/go/gcp/storage/getBucketObjects.go index e64c687345..e94c72f864 100644 --- a/sdk/go/gcp/storage/getBucketObjects.go +++ b/sdk/go/gcp/storage/getBucketObjects.go @@ -74,21 +74,11 @@ type GetBucketObjectsResult struct { } func GetBucketObjectsOutput(ctx *pulumi.Context, args GetBucketObjectsOutputArgs, opts ...pulumi.InvokeOption) GetBucketObjectsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketObjectsResultOutput, error) { args := v.(GetBucketObjectsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketObjectsResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBucketObjects:getBucketObjects", args, &rv, "", opts...) - if err != nil { - return GetBucketObjectsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketObjectsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketObjectsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBucketObjects:getBucketObjects", args, GetBucketObjectsResultOutput{}, options).(GetBucketObjectsResultOutput), nil }).(GetBucketObjectsResultOutput) } diff --git a/sdk/go/gcp/storage/getBuckets.go b/sdk/go/gcp/storage/getBuckets.go index 88ec315667..761f1fee9f 100644 --- a/sdk/go/gcp/storage/getBuckets.go +++ b/sdk/go/gcp/storage/getBuckets.go @@ -71,21 +71,11 @@ type GetBucketsResult struct { } func GetBucketsOutput(ctx *pulumi.Context, args GetBucketsOutputArgs, opts ...pulumi.InvokeOption) GetBucketsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetBucketsResultOutput, error) { args := v.(GetBucketsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetBucketsResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getBuckets:getBuckets", args, &rv, "", opts...) - if err != nil { - return GetBucketsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetBucketsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetBucketsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getBuckets:getBuckets", args, GetBucketsResultOutput{}, options).(GetBucketsResultOutput), nil }).(GetBucketsResultOutput) } diff --git a/sdk/go/gcp/storage/getManagedFolderIamPolicy.go b/sdk/go/gcp/storage/getManagedFolderIamPolicy.go index 5b4ad65216..573c84bd35 100644 --- a/sdk/go/gcp/storage/getManagedFolderIamPolicy.go +++ b/sdk/go/gcp/storage/getManagedFolderIamPolicy.go @@ -38,21 +38,11 @@ type LookupManagedFolderIamPolicyResult struct { } func LookupManagedFolderIamPolicyOutput(ctx *pulumi.Context, args LookupManagedFolderIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupManagedFolderIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupManagedFolderIamPolicyResultOutput, error) { args := v.(LookupManagedFolderIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupManagedFolderIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupManagedFolderIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupManagedFolderIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupManagedFolderIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", args, LookupManagedFolderIamPolicyResultOutput{}, options).(LookupManagedFolderIamPolicyResultOutput), nil }).(LookupManagedFolderIamPolicyResultOutput) } diff --git a/sdk/go/gcp/storage/getObjectSignedUrl.go b/sdk/go/gcp/storage/getObjectSignedUrl.go index 75f7c8e7dd..d4643de8fe 100644 --- a/sdk/go/gcp/storage/getObjectSignedUrl.go +++ b/sdk/go/gcp/storage/getObjectSignedUrl.go @@ -139,21 +139,11 @@ type GetObjectSignedUrlResult struct { } func GetObjectSignedUrlOutput(ctx *pulumi.Context, args GetObjectSignedUrlOutputArgs, opts ...pulumi.InvokeOption) GetObjectSignedUrlResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetObjectSignedUrlResultOutput, error) { args := v.(GetObjectSignedUrlArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetObjectSignedUrlResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args, &rv, "", opts...) - if err != nil { - return GetObjectSignedUrlResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetObjectSignedUrlResultOutput) - if secret { - return pulumi.ToSecret(output).(GetObjectSignedUrlResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", args, GetObjectSignedUrlResultOutput{}, options).(GetObjectSignedUrlResultOutput), nil }).(GetObjectSignedUrlResultOutput) } diff --git a/sdk/go/gcp/storage/getProjectServiceAccount.go b/sdk/go/gcp/storage/getProjectServiceAccount.go index 0c84ef760e..f0c5d686d0 100644 --- a/sdk/go/gcp/storage/getProjectServiceAccount.go +++ b/sdk/go/gcp/storage/getProjectServiceAccount.go @@ -165,21 +165,11 @@ type GetProjectServiceAccountResult struct { } func GetProjectServiceAccountOutput(ctx *pulumi.Context, args GetProjectServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetProjectServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetProjectServiceAccountResultOutput, error) { args := v.(GetProjectServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetProjectServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetProjectServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetProjectServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetProjectServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", args, GetProjectServiceAccountResultOutput{}, options).(GetProjectServiceAccountResultOutput), nil }).(GetProjectServiceAccountResultOutput) } diff --git a/sdk/go/gcp/storage/getTransferProjectServiceAccount.go b/sdk/go/gcp/storage/getTransferProjectServiceAccount.go index f730aae25a..1df75638c4 100644 --- a/sdk/go/gcp/storage/getTransferProjectServiceAccount.go +++ b/sdk/go/gcp/storage/getTransferProjectServiceAccount.go @@ -67,21 +67,11 @@ type GetTransferProjectServiceAccountResult struct { } func GetTransferProjectServiceAccountOutput(ctx *pulumi.Context, args GetTransferProjectServiceAccountOutputArgs, opts ...pulumi.InvokeOption) GetTransferProjectServiceAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransferProjectServiceAccountResultOutput, error) { args := v.(GetTransferProjectServiceAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransferProjectServiceAccountResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args, &rv, "", opts...) - if err != nil { - return GetTransferProjectServiceAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransferProjectServiceAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransferProjectServiceAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", args, GetTransferProjectServiceAccountResultOutput{}, options).(GetTransferProjectServiceAccountResultOutput), nil }).(GetTransferProjectServiceAccountResultOutput) } diff --git a/sdk/go/gcp/storage/getTransferProjectServieAccount.go b/sdk/go/gcp/storage/getTransferProjectServieAccount.go index 7f46f7df68..9ac8153405 100644 --- a/sdk/go/gcp/storage/getTransferProjectServieAccount.go +++ b/sdk/go/gcp/storage/getTransferProjectServieAccount.go @@ -69,21 +69,11 @@ type GetTransferProjectServieAccountResult struct { } func GetTransferProjectServieAccountOutput(ctx *pulumi.Context, args GetTransferProjectServieAccountOutputArgs, opts ...pulumi.InvokeOption) GetTransferProjectServieAccountResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTransferProjectServieAccountResultOutput, error) { args := v.(GetTransferProjectServieAccountArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTransferProjectServieAccountResult - secret, err := ctx.InvokePackageRaw("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args, &rv, "", opts...) - if err != nil { - return GetTransferProjectServieAccountResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTransferProjectServieAccountResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTransferProjectServieAccountResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", args, GetTransferProjectServieAccountResultOutput{}, options).(GetTransferProjectServieAccountResultOutput), nil }).(GetTransferProjectServieAccountResultOutput) } diff --git a/sdk/go/gcp/tags/getTagKey.go b/sdk/go/gcp/tags/getTagKey.go index b9acbcd3d5..31bee68d2e 100644 --- a/sdk/go/gcp/tags/getTagKey.go +++ b/sdk/go/gcp/tags/getTagKey.go @@ -101,21 +101,11 @@ type LookupTagKeyResult struct { } func LookupTagKeyOutput(ctx *pulumi.Context, args LookupTagKeyOutputArgs, opts ...pulumi.InvokeOption) LookupTagKeyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagKeyResultOutput, error) { args := v.(LookupTagKeyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagKeyResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagKey:getTagKey", args, &rv, "", opts...) - if err != nil { - return LookupTagKeyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagKeyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagKeyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagKey:getTagKey", args, LookupTagKeyResultOutput{}, options).(LookupTagKeyResultOutput), nil }).(LookupTagKeyResultOutput) } diff --git a/sdk/go/gcp/tags/getTagKeyIamPolicy.go b/sdk/go/gcp/tags/getTagKeyIamPolicy.go index 87c7dfaa60..261d066abf 100644 --- a/sdk/go/gcp/tags/getTagKeyIamPolicy.go +++ b/sdk/go/gcp/tags/getTagKeyIamPolicy.go @@ -67,21 +67,11 @@ type LookupTagKeyIamPolicyResult struct { } func LookupTagKeyIamPolicyOutput(ctx *pulumi.Context, args LookupTagKeyIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTagKeyIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagKeyIamPolicyResultOutput, error) { args := v.(LookupTagKeyIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagKeyIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTagKeyIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagKeyIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagKeyIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", args, LookupTagKeyIamPolicyResultOutput{}, options).(LookupTagKeyIamPolicyResultOutput), nil }).(LookupTagKeyIamPolicyResultOutput) } diff --git a/sdk/go/gcp/tags/getTagKeys.go b/sdk/go/gcp/tags/getTagKeys.go index 229531b01a..6efbe9eb93 100644 --- a/sdk/go/gcp/tags/getTagKeys.go +++ b/sdk/go/gcp/tags/getTagKeys.go @@ -87,21 +87,11 @@ type GetTagKeysResult struct { } func GetTagKeysOutput(ctx *pulumi.Context, args GetTagKeysOutputArgs, opts ...pulumi.InvokeOption) GetTagKeysResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTagKeysResultOutput, error) { args := v.(GetTagKeysArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTagKeysResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagKeys:getTagKeys", args, &rv, "", opts...) - if err != nil { - return GetTagKeysResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTagKeysResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTagKeysResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagKeys:getTagKeys", args, GetTagKeysResultOutput{}, options).(GetTagKeysResultOutput), nil }).(GetTagKeysResultOutput) } diff --git a/sdk/go/gcp/tags/getTagValue.go b/sdk/go/gcp/tags/getTagValue.go index f897dbce0b..067e3625b8 100644 --- a/sdk/go/gcp/tags/getTagValue.go +++ b/sdk/go/gcp/tags/getTagValue.go @@ -77,21 +77,11 @@ type LookupTagValueResult struct { } func LookupTagValueOutput(ctx *pulumi.Context, args LookupTagValueOutputArgs, opts ...pulumi.InvokeOption) LookupTagValueResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagValueResultOutput, error) { args := v.(LookupTagValueArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagValueResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagValue:getTagValue", args, &rv, "", opts...) - if err != nil { - return LookupTagValueResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagValueResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagValueResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagValue:getTagValue", args, LookupTagValueResultOutput{}, options).(LookupTagValueResultOutput), nil }).(LookupTagValueResultOutput) } diff --git a/sdk/go/gcp/tags/getTagValueIamPolicy.go b/sdk/go/gcp/tags/getTagValueIamPolicy.go index 9a5d824121..b8d8415884 100644 --- a/sdk/go/gcp/tags/getTagValueIamPolicy.go +++ b/sdk/go/gcp/tags/getTagValueIamPolicy.go @@ -67,21 +67,11 @@ type LookupTagValueIamPolicyResult struct { } func LookupTagValueIamPolicyOutput(ctx *pulumi.Context, args LookupTagValueIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupTagValueIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupTagValueIamPolicyResultOutput, error) { args := v.(LookupTagValueIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupTagValueIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupTagValueIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupTagValueIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupTagValueIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", args, LookupTagValueIamPolicyResultOutput{}, options).(LookupTagValueIamPolicyResultOutput), nil }).(LookupTagValueIamPolicyResultOutput) } diff --git a/sdk/go/gcp/tags/getTagValues.go b/sdk/go/gcp/tags/getTagValues.go index a6b4ae6d46..a33acbc633 100644 --- a/sdk/go/gcp/tags/getTagValues.go +++ b/sdk/go/gcp/tags/getTagValues.go @@ -64,21 +64,11 @@ type GetTagValuesResult struct { } func GetTagValuesOutput(ctx *pulumi.Context, args GetTagValuesOutputArgs, opts ...pulumi.InvokeOption) GetTagValuesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTagValuesResultOutput, error) { args := v.(GetTagValuesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTagValuesResult - secret, err := ctx.InvokePackageRaw("gcp:tags/getTagValues:getTagValues", args, &rv, "", opts...) - if err != nil { - return GetTagValuesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTagValuesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTagValuesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tags/getTagValues:getTagValues", args, GetTagValuesResultOutput{}, options).(GetTagValuesResultOutput), nil }).(GetTagValuesResultOutput) } diff --git a/sdk/go/gcp/tpu/getTensorflowVersions.go b/sdk/go/gcp/tpu/getTensorflowVersions.go index 0ee41e3342..b08b5c06cd 100644 --- a/sdk/go/gcp/tpu/getTensorflowVersions.go +++ b/sdk/go/gcp/tpu/getTensorflowVersions.go @@ -101,21 +101,11 @@ type GetTensorflowVersionsResult struct { } func GetTensorflowVersionsOutput(ctx *pulumi.Context, args GetTensorflowVersionsOutputArgs, opts ...pulumi.InvokeOption) GetTensorflowVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetTensorflowVersionsResultOutput, error) { args := v.(GetTensorflowVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetTensorflowVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args, &rv, "", opts...) - if err != nil { - return GetTensorflowVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetTensorflowVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetTensorflowVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tpu/getTensorflowVersions:getTensorflowVersions", args, GetTensorflowVersionsResultOutput{}, options).(GetTensorflowVersionsResultOutput), nil }).(GetTensorflowVersionsResultOutput) } diff --git a/sdk/go/gcp/tpu/getV2AcceleratorTypes.go b/sdk/go/gcp/tpu/getV2AcceleratorTypes.go index 67cf8a0922..71a25c9f81 100644 --- a/sdk/go/gcp/tpu/getV2AcceleratorTypes.go +++ b/sdk/go/gcp/tpu/getV2AcceleratorTypes.go @@ -104,21 +104,11 @@ type GetV2AcceleratorTypesResult struct { } func GetV2AcceleratorTypesOutput(ctx *pulumi.Context, args GetV2AcceleratorTypesOutputArgs, opts ...pulumi.InvokeOption) GetV2AcceleratorTypesResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetV2AcceleratorTypesResultOutput, error) { args := v.(GetV2AcceleratorTypesArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetV2AcceleratorTypesResult - secret, err := ctx.InvokePackageRaw("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args, &rv, "", opts...) - if err != nil { - return GetV2AcceleratorTypesResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetV2AcceleratorTypesResultOutput) - if secret { - return pulumi.ToSecret(output).(GetV2AcceleratorTypesResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", args, GetV2AcceleratorTypesResultOutput{}, options).(GetV2AcceleratorTypesResultOutput), nil }).(GetV2AcceleratorTypesResultOutput) } diff --git a/sdk/go/gcp/tpu/getV2RuntimeVersions.go b/sdk/go/gcp/tpu/getV2RuntimeVersions.go index 8250e783c3..b28d435977 100644 --- a/sdk/go/gcp/tpu/getV2RuntimeVersions.go +++ b/sdk/go/gcp/tpu/getV2RuntimeVersions.go @@ -99,21 +99,11 @@ type GetV2RuntimeVersionsResult struct { } func GetV2RuntimeVersionsOutput(ctx *pulumi.Context, args GetV2RuntimeVersionsOutputArgs, opts ...pulumi.InvokeOption) GetV2RuntimeVersionsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetV2RuntimeVersionsResultOutput, error) { args := v.(GetV2RuntimeVersionsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetV2RuntimeVersionsResult - secret, err := ctx.InvokePackageRaw("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args, &rv, "", opts...) - if err != nil { - return GetV2RuntimeVersionsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetV2RuntimeVersionsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetV2RuntimeVersionsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", args, GetV2RuntimeVersionsResultOutput{}, options).(GetV2RuntimeVersionsResultOutput), nil }).(GetV2RuntimeVersionsResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go b/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go index a175fc076c..830351107d 100644 --- a/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go +++ b/sdk/go/gcp/vertex/getAiEndpointIamPolicy.go @@ -49,21 +49,11 @@ type LookupAiEndpointIamPolicyResult struct { } func LookupAiEndpointIamPolicyOutput(ctx *pulumi.Context, args LookupAiEndpointIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupAiEndpointIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAiEndpointIamPolicyResultOutput, error) { args := v.(LookupAiEndpointIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAiEndpointIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupAiEndpointIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAiEndpointIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAiEndpointIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", args, LookupAiEndpointIamPolicyResultOutput{}, options).(LookupAiEndpointIamPolicyResultOutput), nil }).(LookupAiEndpointIamPolicyResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go b/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go index c20d0f0181..f67bb1ec43 100644 --- a/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go +++ b/sdk/go/gcp/vertex/getAiFeaturestoreEntitytypeIamPolicy.go @@ -43,21 +43,11 @@ type GetAiFeaturestoreEntitytypeIamPolicyResult struct { } func GetAiFeaturestoreEntitytypeIamPolicyOutput(ctx *pulumi.Context, args GetAiFeaturestoreEntitytypeIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetAiFeaturestoreEntitytypeIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAiFeaturestoreEntitytypeIamPolicyResultOutput, error) { args := v.(GetAiFeaturestoreEntitytypeIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAiFeaturestoreEntitytypeIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetAiFeaturestoreEntitytypeIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", args, GetAiFeaturestoreEntitytypeIamPolicyResultOutput{}, options).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput), nil }).(GetAiFeaturestoreEntitytypeIamPolicyResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go b/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go index d3f27df759..eec09e9ff4 100644 --- a/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go +++ b/sdk/go/gcp/vertex/getAiFeaturestoreIamPolicy.go @@ -49,21 +49,11 @@ type GetAiFeaturestoreIamPolicyResult struct { } func GetAiFeaturestoreIamPolicyOutput(ctx *pulumi.Context, args GetAiFeaturestoreIamPolicyOutputArgs, opts ...pulumi.InvokeOption) GetAiFeaturestoreIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetAiFeaturestoreIamPolicyResultOutput, error) { args := v.(GetAiFeaturestoreIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetAiFeaturestoreIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args, &rv, "", opts...) - if err != nil { - return GetAiFeaturestoreIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetAiFeaturestoreIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(GetAiFeaturestoreIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", args, GetAiFeaturestoreIamPolicyResultOutput{}, options).(GetAiFeaturestoreIamPolicyResultOutput), nil }).(GetAiFeaturestoreIamPolicyResultOutput) } diff --git a/sdk/go/gcp/vertex/getAiIndex.go b/sdk/go/gcp/vertex/getAiIndex.go index dbb763f0aa..b980475987 100644 --- a/sdk/go/gcp/vertex/getAiIndex.go +++ b/sdk/go/gcp/vertex/getAiIndex.go @@ -57,21 +57,11 @@ type LookupAiIndexResult struct { } func LookupAiIndexOutput(ctx *pulumi.Context, args LookupAiIndexOutputArgs, opts ...pulumi.InvokeOption) LookupAiIndexResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupAiIndexResultOutput, error) { args := v.(LookupAiIndexArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupAiIndexResult - secret, err := ctx.InvokePackageRaw("gcp:vertex/getAiIndex:getAiIndex", args, &rv, "", opts...) - if err != nil { - return LookupAiIndexResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupAiIndexResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupAiIndexResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vertex/getAiIndex:getAiIndex", args, LookupAiIndexResultOutput{}, options).(LookupAiIndexResultOutput), nil }).(LookupAiIndexResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getCluster.go b/sdk/go/gcp/vmwareengine/getCluster.go index e9b4a4ded4..8ab9160b50 100644 --- a/sdk/go/gcp/vmwareengine/getCluster.go +++ b/sdk/go/gcp/vmwareengine/getCluster.go @@ -74,21 +74,11 @@ type LookupClusterResult struct { } func LookupClusterOutput(ctx *pulumi.Context, args LookupClusterOutputArgs, opts ...pulumi.InvokeOption) LookupClusterResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupClusterResultOutput, error) { args := v.(LookupClusterArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupClusterResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getCluster:getCluster", args, &rv, "", opts...) - if err != nil { - return LookupClusterResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupClusterResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupClusterResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getCluster:getCluster", args, LookupClusterResultOutput{}, options).(LookupClusterResultOutput), nil }).(LookupClusterResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getExternalAccessRule.go b/sdk/go/gcp/vmwareengine/getExternalAccessRule.go index 491c6fef1e..2f7493c476 100644 --- a/sdk/go/gcp/vmwareengine/getExternalAccessRule.go +++ b/sdk/go/gcp/vmwareengine/getExternalAccessRule.go @@ -81,21 +81,11 @@ type LookupExternalAccessRuleResult struct { } func LookupExternalAccessRuleOutput(ctx *pulumi.Context, args LookupExternalAccessRuleOutputArgs, opts ...pulumi.InvokeOption) LookupExternalAccessRuleResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupExternalAccessRuleResultOutput, error) { args := v.(LookupExternalAccessRuleArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupExternalAccessRuleResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args, &rv, "", opts...) - if err != nil { - return LookupExternalAccessRuleResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupExternalAccessRuleResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupExternalAccessRuleResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", args, LookupExternalAccessRuleResultOutput{}, options).(LookupExternalAccessRuleResultOutput), nil }).(LookupExternalAccessRuleResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getExternalAddress.go b/sdk/go/gcp/vmwareengine/getExternalAddress.go index 152ce0636f..8d76eaf376 100644 --- a/sdk/go/gcp/vmwareengine/getExternalAddress.go +++ b/sdk/go/gcp/vmwareengine/getExternalAddress.go @@ -76,21 +76,11 @@ type LookupExternalAddressResult struct { } func LookupExternalAddressOutput(ctx *pulumi.Context, args LookupExternalAddressOutputArgs, opts ...pulumi.InvokeOption) LookupExternalAddressResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupExternalAddressResultOutput, error) { args := v.(LookupExternalAddressArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupExternalAddressResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getExternalAddress:getExternalAddress", args, &rv, "", opts...) - if err != nil { - return LookupExternalAddressResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupExternalAddressResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupExternalAddressResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getExternalAddress:getExternalAddress", args, LookupExternalAddressResultOutput{}, options).(LookupExternalAddressResultOutput), nil }).(LookupExternalAddressResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNetwork.go b/sdk/go/gcp/vmwareengine/getNetwork.go index d8e1f31a5f..2a0dca37d5 100644 --- a/sdk/go/gcp/vmwareengine/getNetwork.go +++ b/sdk/go/gcp/vmwareengine/getNetwork.go @@ -79,21 +79,11 @@ type LookupNetworkResult struct { } func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkResultOutput, error) { args := v.(LookupNetworkArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNetwork:getNetwork", args, &rv, "", opts...) - if err != nil { - return LookupNetworkResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNetwork:getNetwork", args, LookupNetworkResultOutput{}, options).(LookupNetworkResultOutput), nil }).(LookupNetworkResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNetworkPeering.go b/sdk/go/gcp/vmwareengine/getNetworkPeering.go index b64199ed7d..dcf732eb06 100644 --- a/sdk/go/gcp/vmwareengine/getNetworkPeering.go +++ b/sdk/go/gcp/vmwareengine/getNetworkPeering.go @@ -81,21 +81,11 @@ type LookupNetworkPeeringResult struct { } func LookupNetworkPeeringOutput(ctx *pulumi.Context, args LookupNetworkPeeringOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPeeringResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkPeeringResultOutput, error) { args := v.(LookupNetworkPeeringArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkPeeringResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args, &rv, "", opts...) - if err != nil { - return LookupNetworkPeeringResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkPeeringResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkPeeringResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", args, LookupNetworkPeeringResultOutput{}, options).(LookupNetworkPeeringResultOutput), nil }).(LookupNetworkPeeringResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNetworkPolicy.go b/sdk/go/gcp/vmwareengine/getNetworkPolicy.go index 04767be1ae..93cc32961e 100644 --- a/sdk/go/gcp/vmwareengine/getNetworkPolicy.go +++ b/sdk/go/gcp/vmwareengine/getNetworkPolicy.go @@ -80,21 +80,11 @@ type LookupNetworkPolicyResult struct { } func LookupNetworkPolicyOutput(ctx *pulumi.Context, args LookupNetworkPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupNetworkPolicyResultOutput, error) { args := v.(LookupNetworkPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupNetworkPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args, &rv, "", opts...) - if err != nil { - return LookupNetworkPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupNetworkPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupNetworkPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", args, LookupNetworkPolicyResultOutput{}, options).(LookupNetworkPolicyResultOutput), nil }).(LookupNetworkPolicyResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getNsxCredentials.go b/sdk/go/gcp/vmwareengine/getNsxCredentials.go index 15b133b6dc..3eb5cc9010 100644 --- a/sdk/go/gcp/vmwareengine/getNsxCredentials.go +++ b/sdk/go/gcp/vmwareengine/getNsxCredentials.go @@ -69,21 +69,11 @@ type GetNsxCredentialsResult struct { } func GetNsxCredentialsOutput(ctx *pulumi.Context, args GetNsxCredentialsOutputArgs, opts ...pulumi.InvokeOption) GetNsxCredentialsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetNsxCredentialsResultOutput, error) { args := v.(GetNsxCredentialsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetNsxCredentialsResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args, &rv, "", opts...) - if err != nil { - return GetNsxCredentialsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetNsxCredentialsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetNsxCredentialsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", args, GetNsxCredentialsResultOutput{}, options).(GetNsxCredentialsResultOutput), nil }).(GetNsxCredentialsResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getPrivateCloud.go b/sdk/go/gcp/vmwareengine/getPrivateCloud.go index e111940ac5..ea42b09c94 100644 --- a/sdk/go/gcp/vmwareengine/getPrivateCloud.go +++ b/sdk/go/gcp/vmwareengine/getPrivateCloud.go @@ -86,21 +86,11 @@ type LookupPrivateCloudResult struct { } func LookupPrivateCloudOutput(ctx *pulumi.Context, args LookupPrivateCloudOutputArgs, opts ...pulumi.InvokeOption) LookupPrivateCloudResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupPrivateCloudResultOutput, error) { args := v.(LookupPrivateCloudArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupPrivateCloudResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args, &rv, "", opts...) - if err != nil { - return LookupPrivateCloudResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupPrivateCloudResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupPrivateCloudResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", args, LookupPrivateCloudResultOutput{}, options).(LookupPrivateCloudResultOutput), nil }).(LookupPrivateCloudResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getSubnet.go b/sdk/go/gcp/vmwareengine/getSubnet.go index 8fd35e54a4..0b6577574c 100644 --- a/sdk/go/gcp/vmwareengine/getSubnet.go +++ b/sdk/go/gcp/vmwareengine/getSubnet.go @@ -82,21 +82,11 @@ type LookupSubnetResult struct { } func LookupSubnetOutput(ctx *pulumi.Context, args LookupSubnetOutputArgs, opts ...pulumi.InvokeOption) LookupSubnetResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupSubnetResultOutput, error) { args := v.(LookupSubnetArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupSubnetResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getSubnet:getSubnet", args, &rv, "", opts...) - if err != nil { - return LookupSubnetResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupSubnetResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupSubnetResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getSubnet:getSubnet", args, LookupSubnetResultOutput{}, options).(LookupSubnetResultOutput), nil }).(LookupSubnetResultOutput) } diff --git a/sdk/go/gcp/vmwareengine/getVcenterCredentials.go b/sdk/go/gcp/vmwareengine/getVcenterCredentials.go index a8dd018610..092d23de0f 100644 --- a/sdk/go/gcp/vmwareengine/getVcenterCredentials.go +++ b/sdk/go/gcp/vmwareengine/getVcenterCredentials.go @@ -69,21 +69,11 @@ type GetVcenterCredentialsResult struct { } func GetVcenterCredentialsOutput(ctx *pulumi.Context, args GetVcenterCredentialsOutputArgs, opts ...pulumi.InvokeOption) GetVcenterCredentialsResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (GetVcenterCredentialsResultOutput, error) { args := v.(GetVcenterCredentialsArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetVcenterCredentialsResult - secret, err := ctx.InvokePackageRaw("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args, &rv, "", opts...) - if err != nil { - return GetVcenterCredentialsResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(GetVcenterCredentialsResultOutput) - if secret { - return pulumi.ToSecret(output).(GetVcenterCredentialsResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", args, GetVcenterCredentialsResultOutput{}, options).(GetVcenterCredentialsResultOutput), nil }).(GetVcenterCredentialsResultOutput) } diff --git a/sdk/go/gcp/vpcaccess/getConnector.go b/sdk/go/gcp/vpcaccess/getConnector.go index d56d0d94b1..f19a4f97ae 100644 --- a/sdk/go/gcp/vpcaccess/getConnector.go +++ b/sdk/go/gcp/vpcaccess/getConnector.go @@ -100,21 +100,11 @@ type LookupConnectorResult struct { } func LookupConnectorOutput(ctx *pulumi.Context, args LookupConnectorOutputArgs, opts ...pulumi.InvokeOption) LookupConnectorResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupConnectorResultOutput, error) { args := v.(LookupConnectorArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupConnectorResult - secret, err := ctx.InvokePackageRaw("gcp:vpcaccess/getConnector:getConnector", args, &rv, "", opts...) - if err != nil { - return LookupConnectorResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupConnectorResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupConnectorResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:vpcaccess/getConnector:getConnector", args, LookupConnectorResultOutput{}, options).(LookupConnectorResultOutput), nil }).(LookupConnectorResultOutput) } diff --git a/sdk/go/gcp/workbench/getInstanceIamPolicy.go b/sdk/go/gcp/workbench/getInstanceIamPolicy.go index 0c4b8e671f..76098bf112 100644 --- a/sdk/go/gcp/workbench/getInstanceIamPolicy.go +++ b/sdk/go/gcp/workbench/getInstanceIamPolicy.go @@ -78,21 +78,11 @@ type LookupInstanceIamPolicyResult struct { } func LookupInstanceIamPolicyOutput(ctx *pulumi.Context, args LookupInstanceIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupInstanceIamPolicyResultOutput, error) { args := v.(LookupInstanceIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupInstanceIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupInstanceIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupInstanceIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupInstanceIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", args, LookupInstanceIamPolicyResultOutput{}, options).(LookupInstanceIamPolicyResultOutput), nil }).(LookupInstanceIamPolicyResultOutput) } diff --git a/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go b/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go index 33a62c4801..87cae38439 100644 --- a/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go +++ b/sdk/go/gcp/workstations/getWorkstationConfigIamPolicy.go @@ -51,21 +51,11 @@ type LookupWorkstationConfigIamPolicyResult struct { } func LookupWorkstationConfigIamPolicyOutput(ctx *pulumi.Context, args LookupWorkstationConfigIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWorkstationConfigIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkstationConfigIamPolicyResultOutput, error) { args := v.(LookupWorkstationConfigIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkstationConfigIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWorkstationConfigIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkstationConfigIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkstationConfigIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", args, LookupWorkstationConfigIamPolicyResultOutput{}, options).(LookupWorkstationConfigIamPolicyResultOutput), nil }).(LookupWorkstationConfigIamPolicyResultOutput) } diff --git a/sdk/go/gcp/workstations/getWorkstationIamPolicy.go b/sdk/go/gcp/workstations/getWorkstationIamPolicy.go index 41da09e212..ad31513baf 100644 --- a/sdk/go/gcp/workstations/getWorkstationIamPolicy.go +++ b/sdk/go/gcp/workstations/getWorkstationIamPolicy.go @@ -53,21 +53,11 @@ type LookupWorkstationIamPolicyResult struct { } func LookupWorkstationIamPolicyOutput(ctx *pulumi.Context, args LookupWorkstationIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupWorkstationIamPolicyResultOutput { - return pulumi.ToOutputWithContext(context.Background(), args). + return pulumi.ToOutputWithContext(ctx.Context(), args). ApplyT(func(v interface{}) (LookupWorkstationIamPolicyResultOutput, error) { args := v.(LookupWorkstationIamPolicyArgs) - opts = internal.PkgInvokeDefaultOpts(opts) - var rv LookupWorkstationIamPolicyResult - secret, err := ctx.InvokePackageRaw("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args, &rv, "", opts...) - if err != nil { - return LookupWorkstationIamPolicyResultOutput{}, err - } - - output := pulumi.ToOutput(rv).(LookupWorkstationIamPolicyResultOutput) - if secret { - return pulumi.ToSecret(output).(LookupWorkstationIamPolicyResultOutput), nil - } - return output, nil + options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} + return ctx.InvokeOutput("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", args, LookupWorkstationIamPolicyResultOutput{}, options).(LookupWorkstationIamPolicyResultOutput), nil }).(LookupWorkstationIamPolicyResultOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index fe25c86a02..823c1c5fc0 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.18.0") + implementation("com.pulumi:pulumi:0.20.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/gcp/Utilities.java b/sdk/java/src/main/java/com/pulumi/gcp/Utilities.java index 334150d90c..72014434d1 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/Utilities.java @@ -14,6 +14,7 @@ import javax.annotation.Nullable; import com.pulumi.core.internal.Environment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; public class Utilities { @@ -57,16 +58,28 @@ public static Optional getEnvDouble(java.lang.String... names) return Optional.empty(); } - public static InvokeOptions withVersion(@Nullable InvokeOptions options) { - if (options != null && options.getVersion().isPresent()) { - return options; - } - return new InvokeOptions( - options == null ? null : options.getParent().orElse(null), - options == null ? null : options.getProvider().orElse(null), - getVersion() - ); + public static InvokeOptions withVersion(@Nullable InvokeOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; + } + return new InvokeOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion() + ); + } + + public static InvokeOutputOptions withVersion(@Nullable InvokeOutputOptions options) { + if (options != null && options.getVersion().isPresent()) { + return options; } + return new InvokeOutputOptions( + options == null ? null : options.getParent().orElse(null), + options == null ? null : options.getProvider().orElse(null), + getVersion(), + options == null ? null : options.getDependsOn() + ); + } private static final java.lang.String version; public static java.lang.String getVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/gcp/accessapproval/AccessapprovalFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/accessapproval/AccessapprovalFunctions.java index 4bd89b33fc..2a0d3ef933 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/accessapproval/AccessapprovalFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/accessapproval/AccessapprovalFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.accessapproval.inputs.GetFolderServiceAccountArgs; import com.pulumi.gcp.accessapproval.inputs.GetFolderServiceAccountPlainArgs; @@ -188,6 +189,62 @@ public static CompletableFuture getFolderServiceA public static Output getFolderServiceAccount(GetFolderServiceAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", TypeShape.of(GetFolderServiceAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Get the email address of a folder's Access Approval service account. + * + * Each Google Cloud folder has a unique service account used by Access Approval. + * When using Access Approval with a + * [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + * this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + * Cloud KMS key used to sign approvals. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.accessapproval.AccessapprovalFunctions;
+     * import com.pulumi.gcp.accessapproval.inputs.GetFolderServiceAccountArgs;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMember;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var serviceAccount = AccessapprovalFunctions.getFolderServiceAccount(GetFolderServiceAccountArgs.builder()
+     *             .folderId("my-folder")
+     *             .build());
+     * 
+     *         var iam = new CryptoKeyIAMMember("iam", CryptoKeyIAMMemberArgs.builder()
+     *             .cryptoKeyId(cryptoKey.id())
+     *             .role("roles/cloudkms.signerVerifier")
+     *             .member(String.format("serviceAccount:%s", serviceAccount.applyValue(getFolderServiceAccountResult -> getFolderServiceAccountResult.accountEmail())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFolderServiceAccount(GetFolderServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:accessapproval/getFolderServiceAccount:getFolderServiceAccount", TypeShape.of(GetFolderServiceAccountResult.class), args, Utilities.withVersion(options)); + } /** * Get the email address of a folder's Access Approval service account. * @@ -412,6 +469,62 @@ public static CompletableFuture getOrganiza public static Output getOrganizationServiceAccount(GetOrganizationServiceAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", TypeShape.of(GetOrganizationServiceAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Get the email address of an organization's Access Approval service account. + * + * Each Google Cloud organization has a unique service account used by Access Approval. + * When using Access Approval with a + * [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + * this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + * Cloud KMS key used to sign approvals. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.accessapproval.AccessapprovalFunctions;
+     * import com.pulumi.gcp.accessapproval.inputs.GetOrganizationServiceAccountArgs;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMember;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var serviceAccount = AccessapprovalFunctions.getOrganizationServiceAccount(GetOrganizationServiceAccountArgs.builder()
+     *             .organizationId("my-organization")
+     *             .build());
+     * 
+     *         var iam = new CryptoKeyIAMMember("iam", CryptoKeyIAMMemberArgs.builder()
+     *             .cryptoKeyId(cryptoKey.id())
+     *             .role("roles/cloudkms.signerVerifier")
+     *             .member(String.format("serviceAccount:%s", serviceAccount.applyValue(getOrganizationServiceAccountResult -> getOrganizationServiceAccountResult.accountEmail())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOrganizationServiceAccount(GetOrganizationServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:accessapproval/getOrganizationServiceAccount:getOrganizationServiceAccount", TypeShape.of(GetOrganizationServiceAccountResult.class), args, Utilities.withVersion(options)); + } /** * Get the email address of an organization's Access Approval service account. * @@ -636,6 +749,62 @@ public static CompletableFuture getProjectServic public static Output getProjectServiceAccount(GetProjectServiceAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", TypeShape.of(GetProjectServiceAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Get the email address of a project's Access Approval service account. + * + * Each Google Cloud project has a unique service account used by Access Approval. + * When using Access Approval with a + * [custom signing key](https://cloud.google.com/cloud-provider-access-management/access-approval/docs/review-approve-access-requests-custom-keys), + * this account needs to be granted the `cloudkms.signerVerifier` IAM role on the + * Cloud KMS key used to sign approvals. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.accessapproval.AccessapprovalFunctions;
+     * import com.pulumi.gcp.accessapproval.inputs.GetProjectServiceAccountArgs;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMember;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var serviceAccount = AccessapprovalFunctions.getProjectServiceAccount(GetProjectServiceAccountArgs.builder()
+     *             .projectId("my-project")
+     *             .build());
+     * 
+     *         var iam = new CryptoKeyIAMMember("iam", CryptoKeyIAMMemberArgs.builder()
+     *             .cryptoKeyId(cryptoKey.id())
+     *             .role("roles/cloudkms.signerVerifier")
+     *             .member(String.format("serviceAccount:%s", serviceAccount.applyValue(getProjectServiceAccountResult -> getProjectServiceAccountResult.accountEmail())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProjectServiceAccount(GetProjectServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:accessapproval/getProjectServiceAccount:getProjectServiceAccount", TypeShape.of(GetProjectServiceAccountResult.class), args, Utilities.withVersion(options)); + } /** * Get the email address of a project's Access Approval service account. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/accesscontextmanager/AccesscontextmanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/accesscontextmanager/AccesscontextmanagerFunctions.java index 0e28fc9c49..db5b5d2ffe 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/accesscontextmanager/AccesscontextmanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/accesscontextmanager/AccesscontextmanagerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.accesscontextmanager.inputs.GetAccessPolicyArgs; import com.pulumi.gcp.accesscontextmanager.inputs.GetAccessPolicyIamPolicyArgs; @@ -158,6 +159,53 @@ public static CompletableFuture getAccessPolicyPlain(GetA public static Output getAccessPolicy(GetAccessPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", TypeShape.of(GetAccessPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about an Access Context Manager AccessPolicy. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.accesscontextmanager.AccesscontextmanagerFunctions;
+     * import com.pulumi.gcp.accesscontextmanager.inputs.GetAccessPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy-org = AccesscontextmanagerFunctions.getAccessPolicy(GetAccessPolicyArgs.builder()
+     *             .parent("organizations/1234567")
+     *             .build());
+     * 
+     *         final var policy-scoped = AccesscontextmanagerFunctions.getAccessPolicy(GetAccessPolicyArgs.builder()
+     *             .parent("organizations/1234567")
+     *             .scopes("projects/1234567")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessPolicy(GetAccessPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:accesscontextmanager/getAccessPolicy:getAccessPolicy", TypeShape.of(GetAccessPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Get information about an Access Context Manager AccessPolicy. * @@ -331,6 +379,48 @@ public static CompletableFuture getAccessPolicyI public static Output getAccessPolicyIamPolicy(GetAccessPolicyIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", TypeShape.of(GetAccessPolicyIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for accesspolicy + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.accesscontextmanager.AccesscontextmanagerFunctions;
+     * import com.pulumi.gcp.accesscontextmanager.inputs.GetAccessPolicyIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = AccesscontextmanagerFunctions.getAccessPolicyIamPolicy(GetAccessPolicyIamPolicyArgs.builder()
+     *             .name(access_policy.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccessPolicyIamPolicy(GetAccessPolicyIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:accesscontextmanager/getAccessPolicyIamPolicy:getAccessPolicyIamPolicy", TypeShape.of(GetAccessPolicyIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for accesspolicy * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/alloydb/AlloydbFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/alloydb/AlloydbFunctions.java index 8c7563aba9..8c0e57f744 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/alloydb/AlloydbFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/alloydb/AlloydbFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.alloydb.inputs.GetLocationsArgs; import com.pulumi.gcp.alloydb.inputs.GetLocationsPlainArgs; @@ -217,6 +218,46 @@ public static CompletableFuture getLocationsPlain(GetLocatio public static Output getLocations(GetLocationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:alloydb/getLocations:getLocations", TypeShape.of(GetLocationsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about the available locations. For more details refer the [API docs](https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.alloydb.AlloydbFunctions;
+     * import com.pulumi.gcp.alloydb.inputs.GetLocationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var qa = AlloydbFunctions.getLocations();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLocations(GetLocationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:alloydb/getLocations:getLocations", TypeShape.of(GetLocationsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about the available locations. For more details refer the [API docs](https://cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations). * @@ -383,6 +424,48 @@ public static CompletableFuture getSupportedDat public static Output getSupportedDatabaseFlags(GetSupportedDatabaseFlagsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", TypeShape.of(GetSupportedDatabaseFlagsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about the supported alloydb database flags in a location. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.alloydb.AlloydbFunctions;
+     * import com.pulumi.gcp.alloydb.inputs.GetSupportedDatabaseFlagsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var qa = AlloydbFunctions.getSupportedDatabaseFlags(GetSupportedDatabaseFlagsArgs.builder()
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSupportedDatabaseFlags(GetSupportedDatabaseFlagsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:alloydb/getSupportedDatabaseFlags:getSupportedDatabaseFlags", TypeShape.of(GetSupportedDatabaseFlagsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about the supported alloydb database flags in a location. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/apigateway/ApigatewayFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/apigateway/ApigatewayFunctions.java index 0adf99a286..6be2d38090 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/apigateway/ApigatewayFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/apigateway/ApigatewayFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.apigateway.inputs.GetApiConfigIamPolicyArgs; import com.pulumi.gcp.apigateway.inputs.GetApiConfigIamPolicyPlainArgs; @@ -29,6 +30,9 @@ public static CompletableFuture getApiConfigIamPoli public static Output getApiConfigIamPolicy(GetApiConfigIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", TypeShape.of(GetApiConfigIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getApiConfigIamPolicy(GetApiConfigIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", TypeShape.of(GetApiConfigIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getApiConfigIamPolicyPlain(GetApiConfigIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:apigateway/getApiConfigIamPolicy:getApiConfigIamPolicy", TypeShape.of(GetApiConfigIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -41,6 +45,9 @@ public static CompletableFuture getApiIamPolicyPlain(GetA public static Output getApiIamPolicy(GetApiIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", TypeShape.of(GetApiIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getApiIamPolicy(GetApiIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", TypeShape.of(GetApiIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getApiIamPolicyPlain(GetApiIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:apigateway/getApiIamPolicy:getApiIamPolicy", TypeShape.of(GetApiIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -53,6 +60,9 @@ public static CompletableFuture getGatewayIamPolicyPl public static Output getGatewayIamPolicy(GetGatewayIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", TypeShape.of(GetGatewayIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getGatewayIamPolicy(GetGatewayIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", TypeShape.of(GetGatewayIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getGatewayIamPolicyPlain(GetGatewayIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:apigateway/getGatewayIamPolicy:getGatewayIamPolicy", TypeShape.of(GetGatewayIamPolicyResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/apigee/ApigeeFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/apigee/ApigeeFunctions.java index 4ebe5c9362..0a83eeef2c 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/apigee/ApigeeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/apigee/ApigeeFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.apigee.inputs.GetEnvironmentIamPolicyArgs; import com.pulumi.gcp.apigee.inputs.GetEnvironmentIamPolicyPlainArgs; @@ -143,6 +144,49 @@ public static CompletableFuture getEnvironmentIam public static Output getEnvironmentIamPolicy(GetEnvironmentIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", TypeShape.of(GetEnvironmentIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for environment + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.apigee.ApigeeFunctions;
+     * import com.pulumi.gcp.apigee.inputs.GetEnvironmentIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ApigeeFunctions.getEnvironmentIamPolicy(GetEnvironmentIamPolicyArgs.builder()
+     *             .orgId(apigeeEnvironment.orgId())
+     *             .envId(apigeeEnvironment.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnvironmentIamPolicy(GetEnvironmentIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:apigee/getEnvironmentIamPolicy:getEnvironmentIamPolicy", TypeShape.of(GetEnvironmentIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for environment * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/appengine/AppengineFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/appengine/AppengineFunctions.java index 2e91110b53..74a0ce1610 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/appengine/AppengineFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/appengine/AppengineFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.appengine.inputs.GetDefaultServiceAccountArgs; import com.pulumi.gcp.appengine.inputs.GetDefaultServiceAccountPlainArgs; @@ -219,6 +220,47 @@ public static CompletableFuture getDefaultServic public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve the default App Engine service account for the specified project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.appengine.AppengineFunctions;
+     * import com.pulumi.gcp.appengine.inputs.GetDefaultServiceAccountArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = AppengineFunctions.getDefaultServiceAccount();
+     * 
+     *         ctx.export("defaultAccount", default_.email());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:appengine/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve the default App Engine service account for the specified project. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/apphub/ApphubFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/apphub/ApphubFunctions.java index 7549994bfc..1282a02532 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/apphub/ApphubFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/apphub/ApphubFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.apphub.inputs.GetApplicationArgs; import com.pulumi.gcp.apphub.inputs.GetApplicationPlainArgs; @@ -152,6 +153,50 @@ public static CompletableFuture getApplicationPlain(GetApp public static Output getApplication(GetApplicationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:apphub/getApplication:getApplication", TypeShape.of(GetApplicationResult.class), args, Utilities.withVersion(options)); } + /** + * Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.apphub.ApphubFunctions;
+     * import com.pulumi.gcp.apphub.inputs.GetApplicationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var application = ApphubFunctions.getApplication(GetApplicationArgs.builder()
+     *             .project("project-id")
+     *             .applicationId("application")
+     *             .location("location")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getApplication(GetApplicationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:apphub/getApplication:getApplication", TypeShape.of(GetApplicationResult.class), args, Utilities.withVersion(options)); + } /** * Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application. * @@ -325,6 +370,49 @@ public static CompletableFuture getDiscoveredService public static Output getDiscoveredService(GetDiscoveredServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:apphub/getDiscoveredService:getDiscoveredService", TypeShape.of(GetDiscoveredServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a discovered service from its uri. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.apphub.ApphubFunctions;
+     * import com.pulumi.gcp.apphub.inputs.GetDiscoveredServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-service = ApphubFunctions.getDiscoveredService(GetDiscoveredServiceArgs.builder()
+     *             .location("my-location")
+     *             .serviceUri("my-service-uri")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDiscoveredService(GetDiscoveredServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:apphub/getDiscoveredService:getDiscoveredService", TypeShape.of(GetDiscoveredServiceResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a discovered service from its uri. * @@ -497,6 +585,49 @@ public static CompletableFuture getDiscoveredWorklo public static Output getDiscoveredWorkload(GetDiscoveredWorkloadArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", TypeShape.of(GetDiscoveredWorkloadResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a discovered workload from its uri. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.apphub.ApphubFunctions;
+     * import com.pulumi.gcp.apphub.inputs.GetDiscoveredWorkloadArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-workload = ApphubFunctions.getDiscoveredWorkload(GetDiscoveredWorkloadArgs.builder()
+     *             .location("us-central1")
+     *             .workloadUri("my-workload-uri")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDiscoveredWorkload(GetDiscoveredWorkloadArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:apphub/getDiscoveredWorkload:getDiscoveredWorkload", TypeShape.of(GetDiscoveredWorkloadResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a discovered workload from its uri. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/artifactregistry/ArtifactregistryFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/artifactregistry/ArtifactregistryFunctions.java index 171951eef9..684a81ff11 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/artifactregistry/ArtifactregistryFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/artifactregistry/ArtifactregistryFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.artifactregistry.inputs.GetDockerImageArgs; import com.pulumi.gcp.artifactregistry.inputs.GetDockerImagePlainArgs; @@ -221,6 +222,72 @@ public static CompletableFuture getDockerImagePlain(GetDoc public static Output getDockerImage(GetDockerImageArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:artifactregistry/getDockerImage:getDockerImage", TypeShape.of(GetDockerImageResult.class), args, Utilities.withVersion(options)); } + /** + * This data source fetches information from a provided Artifact Registry repository, including the fully qualified name and URI for an image, based on a the latest version of image name and optional digest or tag. + * + * > **Note** + * Requires one of the following OAuth scopes: `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/cloud-platform.read-only`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.artifactregistry.Repository;
+     * import com.pulumi.gcp.artifactregistry.RepositoryArgs;
+     * import com.pulumi.gcp.artifactregistry.ArtifactregistryFunctions;
+     * import com.pulumi.gcp.artifactregistry.inputs.GetDockerImageArgs;
+     * import com.pulumi.gcp.cloudrunv2.Service;
+     * import com.pulumi.gcp.cloudrunv2.ServiceArgs;
+     * import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var myRepo = new Repository("myRepo", RepositoryArgs.builder()
+     *             .location("us-west1")
+     *             .repositoryId("my-repository")
+     *             .format("DOCKER")
+     *             .build());
+     * 
+     *         final var myImage = ArtifactregistryFunctions.getDockerImage(GetDockerImageArgs.builder()
+     *             .location(myRepo.location())
+     *             .repositoryId(myRepo.repositoryId())
+     *             .imageName("my-image:my-tag")
+     *             .build());
+     * 
+     *         var default_ = new Service("default", ServiceArgs.builder()
+     *             .template(ServiceTemplateArgs.builder()
+     *                 .containers(ServiceTemplateContainerArgs.builder()
+     *                     .image(myImage.applyValue(getDockerImageResult -> getDockerImageResult).applyValue(myImage -> myImage.applyValue(getDockerImageResult -> getDockerImageResult.selfLink())))
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDockerImage(GetDockerImageArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:artifactregistry/getDockerImage:getDockerImage", TypeShape.of(GetDockerImageResult.class), args, Utilities.withVersion(options)); + } /** * This data source fetches information from a provided Artifact Registry repository, including the fully qualified name and URI for an image, based on a the latest version of image name and optional digest or tag. * @@ -752,6 +819,99 @@ public static CompletableFuture getLocationsPlain(GetLocatio public static Output getLocations(GetLocationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:artifactregistry/getLocations:getLocations", TypeShape.of(GetLocationsResult.class), args, Utilities.withVersion(options)); } + /** + * Get Artifact Registry locations available for a project. + * + * To get more information about Artifact Registry, see: + * + * * [API documentation](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations/list) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/artifact-registry/docs/overview) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.artifactregistry.ArtifactregistryFunctions;
+     * import com.pulumi.gcp.artifactregistry.inputs.GetLocationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = ArtifactregistryFunctions.getLocations();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Multi-Regional Artifact Registry Deployment + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.artifactregistry.ArtifactregistryFunctions;
+     * import com.pulumi.gcp.artifactregistry.inputs.GetLocationsArgs;
+     * import com.pulumi.gcp.artifactregistry.Repository;
+     * import com.pulumi.gcp.artifactregistry.RepositoryArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = ArtifactregistryFunctions.getLocations();
+     * 
+     *         var repoOne = new Repository("repoOne", RepositoryArgs.builder()
+     *             .location(available.applyValue(getLocationsResult -> getLocationsResult.locations()[0]))
+     *             .repositoryId("repo-one")
+     *             .format("apt")
+     *             .build());
+     * 
+     *         var repoTwo = new Repository("repoTwo", RepositoryArgs.builder()
+     *             .location(available.applyValue(getLocationsResult -> getLocationsResult.locations()[1]))
+     *             .repositoryId("repo-two")
+     *             .format("apt")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLocations(GetLocationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:artifactregistry/getLocations:getLocations", TypeShape.of(GetLocationsResult.class), args, Utilities.withVersion(options)); + } /** * Get Artifact Registry locations available for a project. * @@ -980,6 +1140,51 @@ public static CompletableFuture getRepositoryPlain(GetRepos public static Output getRepository(GetRepositoryArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:artifactregistry/getRepository:getRepository", TypeShape.of(GetRepositoryResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Artifact Registry Repository. For more information see + * the [official documentation](https://cloud.google.com/artifact-registry/docs/) + * and [API](https://cloud.google.com/artifact-registry/docs/apis). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.artifactregistry.ArtifactregistryFunctions;
+     * import com.pulumi.gcp.artifactregistry.inputs.GetRepositoryArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-repo = ArtifactregistryFunctions.getRepository(GetRepositoryArgs.builder()
+     *             .location("us-central1")
+     *             .repositoryId("my-repository")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRepository(GetRepositoryArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:artifactregistry/getRepository:getRepository", TypeShape.of(GetRepositoryResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Artifact Registry Repository. For more information see * the [official documentation](https://cloud.google.com/artifact-registry/docs/) @@ -1157,6 +1362,50 @@ public static CompletableFuture getRepositoryIamPo public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for repository + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.artifactregistry.ArtifactregistryFunctions;
+     * import com.pulumi.gcp.artifactregistry.inputs.GetRepositoryIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ArtifactregistryFunctions.getRepositoryIamPolicy(GetRepositoryIamPolicyArgs.builder()
+     *             .project(my_repo.project())
+     *             .location(my_repo.location())
+     *             .repository(my_repo.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:artifactregistry/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for repository * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/backupdisasterrecovery/BackupdisasterrecoveryFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/backupdisasterrecovery/BackupdisasterrecoveryFunctions.java index 55ad34fd3f..38917d63ca 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/backupdisasterrecovery/BackupdisasterrecoveryFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/backupdisasterrecovery/BackupdisasterrecoveryFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.backupdisasterrecovery.inputs.GetBackupPlanArgs; import com.pulumi.gcp.backupdisasterrecovery.inputs.GetBackupPlanAssociationArgs; @@ -32,6 +33,9 @@ public static CompletableFuture getBackupPlanPlain(GetBacku public static Output getBackupPlan(GetBackupPlanArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", TypeShape.of(GetBackupPlanResult.class), args, Utilities.withVersion(options)); } + public static Output getBackupPlan(GetBackupPlanArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", TypeShape.of(GetBackupPlanResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getBackupPlanPlain(GetBackupPlanPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan", TypeShape.of(GetBackupPlanResult.class), args, Utilities.withVersion(options)); } @@ -158,6 +162,47 @@ public static CompletableFuture getBackupPlanAss public static Output getBackupPlanAssociation(GetBackupPlanAssociationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", TypeShape.of(GetBackupPlanAssociationResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.backupdisasterrecovery.BackupdisasterrecoveryFunctions;
+     * import com.pulumi.gcp.backupdisasterrecovery.inputs.GetBackupPlanAssociationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-backupplan-association = BackupdisasterrecoveryFunctions.getBackupPlanAssociation(GetBackupPlanAssociationArgs.builder()
+     *             .location("us-central1")
+     *             .backupPlanAssociationId("bpa-id")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPlanAssociation(GetBackupPlanAssociationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation", TypeShape.of(GetBackupPlanAssociationResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * @@ -208,6 +253,9 @@ public static CompletableFuture getDataSourcePlain(GetDataS public static Output getDataSource(GetDataSourceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getDataSource:getDataSource", TypeShape.of(GetDataSourceResult.class), args, Utilities.withVersion(options)); } + public static Output getDataSource(GetDataSourceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getDataSource:getDataSource", TypeShape.of(GetDataSourceResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getDataSourcePlain(GetDataSourcePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:backupdisasterrecovery/getDataSource:getDataSource", TypeShape.of(GetDataSourceResult.class), args, Utilities.withVersion(options)); } @@ -331,6 +379,46 @@ public static CompletableFuture getManagementServerPl public static Output getManagementServer(GetManagementServerArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", TypeShape.of(GetManagementServerResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.backupdisasterrecovery.BackupdisasterrecoveryFunctions;
+     * import com.pulumi.gcp.backupdisasterrecovery.inputs.GetManagementServerArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-backup-dr-management-server = BackupdisasterrecoveryFunctions.getManagementServer(GetManagementServerArgs.builder()
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagementServer(GetManagementServerArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:backupdisasterrecovery/getManagementServer:getManagementServer", TypeShape.of(GetManagementServerResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/beyondcorp/BeyondcorpFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/beyondcorp/BeyondcorpFunctions.java index 3938309091..9164078ab4 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/beyondcorp/BeyondcorpFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/beyondcorp/BeyondcorpFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.beyondcorp.inputs.GetAppConnectionArgs; import com.pulumi.gcp.beyondcorp.inputs.GetAppConnectionPlainArgs; @@ -146,6 +147,48 @@ public static CompletableFuture getAppConnectionPlain(Ge public static Output getAppConnection(GetAppConnectionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:beyondcorp/getAppConnection:getAppConnection", TypeShape.of(GetAppConnectionResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google BeyondCorp App Connection. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.beyondcorp.BeyondcorpFunctions;
+     * import com.pulumi.gcp.beyondcorp.inputs.GetAppConnectionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-beyondcorp-app-connection = BeyondcorpFunctions.getAppConnection(GetAppConnectionArgs.builder()
+     *             .name("my-beyondcorp-app-connection")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppConnection(GetAppConnectionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:beyondcorp/getAppConnection:getAppConnection", TypeShape.of(GetAppConnectionResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google BeyondCorp App Connection. * @@ -314,6 +357,48 @@ public static CompletableFuture getAppConnectorPlain(GetA public static Output getAppConnector(GetAppConnectorArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:beyondcorp/getAppConnector:getAppConnector", TypeShape.of(GetAppConnectorResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google BeyondCorp App Connector. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.beyondcorp.BeyondcorpFunctions;
+     * import com.pulumi.gcp.beyondcorp.inputs.GetAppConnectorArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-beyondcorp-app-connector = BeyondcorpFunctions.getAppConnector(GetAppConnectorArgs.builder()
+     *             .name("my-beyondcorp-app-connector")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppConnector(GetAppConnectorArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:beyondcorp/getAppConnector:getAppConnector", TypeShape.of(GetAppConnectorResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google BeyondCorp App Connector. * @@ -482,6 +567,48 @@ public static CompletableFuture getAppGatewayPlain(GetAppGa public static Output getAppGateway(GetAppGatewayArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:beyondcorp/getAppGateway:getAppGateway", TypeShape.of(GetAppGatewayResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google BeyondCorp App Gateway. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.beyondcorp.BeyondcorpFunctions;
+     * import com.pulumi.gcp.beyondcorp.inputs.GetAppGatewayArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-beyondcorp-app-gateway = BeyondcorpFunctions.getAppGateway(GetAppGatewayArgs.builder()
+     *             .name("my-beyondcorp-app-gateway")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppGateway(GetAppGatewayArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:beyondcorp/getAppGateway:getAppGateway", TypeShape.of(GetAppGatewayResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google BeyondCorp App Gateway. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/bigquery/BigqueryFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/bigquery/BigqueryFunctions.java index 19c24157e6..96b09216fa 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/bigquery/BigqueryFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/bigquery/BigqueryFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.bigquery.inputs.GetConnectionIamPolicyArgs; import com.pulumi.gcp.bigquery.inputs.GetConnectionIamPolicyPlainArgs; @@ -161,6 +162,50 @@ public static CompletableFuture getConnectionIamPo public static Output getConnectionIamPolicy(GetConnectionIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", TypeShape.of(GetConnectionIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for connection + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigquery.BigqueryFunctions;
+     * import com.pulumi.gcp.bigquery.inputs.GetConnectionIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigqueryFunctions.getConnectionIamPolicy(GetConnectionIamPolicyArgs.builder()
+     *             .project(connection.project())
+     *             .location(connection.location())
+     *             .connectionId(connection.connectionId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConnectionIamPolicy(GetConnectionIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigquery/getConnectionIamPolicy:getConnectionIamPolicy", TypeShape.of(GetConnectionIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for connection * @@ -340,6 +385,51 @@ public static CompletableFuture getDatasetPlain(GetDatasetPlai public static Output getDataset(GetDatasetArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigquery/getDataset:getDataset", TypeShape.of(GetDatasetResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a BigQuery dataset. For more information see + * the [official documentation](https://cloud.google.com/bigquery/docs) + * and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigquery.BigqueryFunctions;
+     * import com.pulumi.gcp.bigquery.inputs.GetDatasetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var dataset = BigqueryFunctions.getDataset(GetDatasetArgs.builder()
+     *             .datasetId("my-bq-dataset")
+     *             .project("my-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDataset(GetDatasetArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigquery/getDataset:getDataset", TypeShape.of(GetDatasetResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a BigQuery dataset. For more information see * the [official documentation](https://cloud.google.com/bigquery/docs) @@ -511,6 +601,48 @@ public static CompletableFuture getDatasetIamPolicyPl public static Output getDatasetIamPolicy(GetDatasetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", TypeShape.of(GetDatasetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a BigQuery dataset. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigquery.BigqueryFunctions;
+     * import com.pulumi.gcp.bigquery.inputs.GetDatasetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigqueryFunctions.getDatasetIamPolicy(GetDatasetIamPolicyArgs.builder()
+     *             .datasetId(dataset.datasetId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatasetIamPolicy(GetDatasetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigquery/getDatasetIamPolicy:getDatasetIamPolicy", TypeShape.of(GetDatasetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a BigQuery dataset. * @@ -833,6 +965,62 @@ public static CompletableFuture getDefaultServic public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Get the email address of a project's unique BigQuery service account. + * + * Each Google Cloud project has a unique service account used by BigQuery. When using + * BigQuery with [customer-managed encryption keys](https://cloud.google.com/bigquery/docs/customer-managed-encryption), + * this account needs to be granted the + * `cloudkms.cryptoKeyEncrypterDecrypter` IAM role on the customer-managed Cloud KMS key used to protect the data. + * + * For more information see + * [the API reference](https://cloud.google.com/bigquery/docs/reference/rest/v2/projects/getServiceAccount). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigquery.BigqueryFunctions;
+     * import com.pulumi.gcp.bigquery.inputs.GetDefaultServiceAccountArgs;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMember;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var bqSa = BigqueryFunctions.getDefaultServiceAccount();
+     * 
+     *         var keySaUser = new CryptoKeyIAMMember("keySaUser", CryptoKeyIAMMemberArgs.builder()
+     *             .cryptoKeyId(key.id())
+     *             .role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
+     *             .member(String.format("serviceAccount:%s", bqSa.applyValue(getDefaultServiceAccountResult -> getDefaultServiceAccountResult.email())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigquery/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); + } /** * Get the email address of a project's unique BigQuery service account. * @@ -1021,6 +1209,50 @@ public static CompletableFuture getTableIamPolicyPlain( public static Output getTableIamPolicy(GetTableIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", TypeShape.of(GetTableIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for table + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigquery.BigqueryFunctions;
+     * import com.pulumi.gcp.bigquery.inputs.GetTableIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigqueryFunctions.getTableIamPolicy(GetTableIamPolicyArgs.builder()
+     *             .project(test.project())
+     *             .datasetId(test.datasetId())
+     *             .tableId(test.tableId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTableIamPolicy(GetTableIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigquery/getTableIamPolicy:getTableIamPolicy", TypeShape.of(GetTableIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for table * @@ -1200,6 +1432,51 @@ public static CompletableFuture getTablesPlain(GetTablesPlainAr public static Output getTables(GetTablesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigquery/getTables:getTables", TypeShape.of(GetTablesResult.class), args, Utilities.withVersion(options)); } + /** + * Get a list of tables in a BigQuery dataset. For more information see + * the [official documentation](https://cloud.google.com/bigquery/docs) + * and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigquery.BigqueryFunctions;
+     * import com.pulumi.gcp.bigquery.inputs.GetTablesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var tables = BigqueryFunctions.getTables(GetTablesArgs.builder()
+     *             .datasetId("my-bq-dataset")
+     *             .project("my-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTables(GetTablesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigquery/getTables:getTables", TypeShape.of(GetTablesResult.class), args, Utilities.withVersion(options)); + } /** * Get a list of tables in a BigQuery dataset. For more information see * the [official documentation](https://cloud.google.com/bigquery/docs) diff --git a/sdk/java/src/main/java/com/pulumi/gcp/bigqueryanalyticshub/BigqueryanalyticshubFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/bigqueryanalyticshub/BigqueryanalyticshubFunctions.java index f2048c35c4..a81d1cb0c1 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/bigqueryanalyticshub/BigqueryanalyticshubFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/bigqueryanalyticshub/BigqueryanalyticshubFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.bigqueryanalyticshub.inputs.GetDataExchangeIamPolicyArgs; import com.pulumi.gcp.bigqueryanalyticshub.inputs.GetDataExchangeIamPolicyPlainArgs; @@ -149,6 +150,50 @@ public static CompletableFuture getDataExchangeI public static Output getDataExchangeIamPolicy(GetDataExchangeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", TypeShape.of(GetDataExchangeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for dataexchange + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigqueryanalyticshub.BigqueryanalyticshubFunctions;
+     * import com.pulumi.gcp.bigqueryanalyticshub.inputs.GetDataExchangeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigqueryanalyticshubFunctions.getDataExchangeIamPolicy(GetDataExchangeIamPolicyArgs.builder()
+     *             .project(dataExchange.project())
+     *             .location(dataExchange.location())
+     *             .dataExchangeId(dataExchange.dataExchangeId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDataExchangeIamPolicy(GetDataExchangeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigqueryanalyticshub/getDataExchangeIamPolicy:getDataExchangeIamPolicy", TypeShape.of(GetDataExchangeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for dataexchange * @@ -328,6 +373,51 @@ public static CompletableFuture getListingIamPolicyPl public static Output getListingIamPolicy(GetListingIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", TypeShape.of(GetListingIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for listing + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigqueryanalyticshub.BigqueryanalyticshubFunctions;
+     * import com.pulumi.gcp.bigqueryanalyticshub.inputs.GetListingIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigqueryanalyticshubFunctions.getListingIamPolicy(GetListingIamPolicyArgs.builder()
+     *             .project(listing.project())
+     *             .location(listing.location())
+     *             .dataExchangeId(listing.dataExchangeId())
+     *             .listingId(listing.listingId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getListingIamPolicy(GetListingIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigqueryanalyticshub/getListingIamPolicy:getListingIamPolicy", TypeShape.of(GetListingIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for listing * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/bigquerydatapolicy/BigquerydatapolicyFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/bigquerydatapolicy/BigquerydatapolicyFunctions.java index 280e06bb69..165b860c82 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/bigquerydatapolicy/BigquerydatapolicyFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/bigquerydatapolicy/BigquerydatapolicyFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.bigquerydatapolicy.inputs.GetIamPolicyArgs; import com.pulumi.gcp.bigquerydatapolicy.inputs.GetIamPolicyPlainArgs; @@ -146,6 +147,50 @@ public static CompletableFuture getIamPolicyPlain(GetIamPoli public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for datapolicy + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigquerydatapolicy.BigquerydatapolicyFunctions;
+     * import com.pulumi.gcp.bigquerydatapolicy.inputs.GetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigquerydatapolicyFunctions.getIamPolicy(GetIamPolicyArgs.builder()
+     *             .project(dataPolicy.project())
+     *             .location(dataPolicy.location())
+     *             .dataPolicyId(dataPolicy.dataPolicyId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigquerydatapolicy/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for datapolicy * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/bigtable/BigtableFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/bigtable/BigtableFunctions.java index b8cc6cb7dd..7d5bb44104 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/bigtable/BigtableFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/bigtable/BigtableFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.bigtable.inputs.GetInstanceIamPolicyArgs; import com.pulumi.gcp.bigtable.inputs.GetInstanceIamPolicyPlainArgs; @@ -143,6 +144,48 @@ public static CompletableFuture getInstanceIamPolicy public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Bigtable instance. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigtable.BigtableFunctions;
+     * import com.pulumi.gcp.bigtable.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigtableFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .instance(instance.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigtable/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Bigtable instance. * @@ -314,6 +357,49 @@ public static CompletableFuture getTableIamPolicyPlain( public static Output getTableIamPolicy(GetTableIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", TypeShape.of(GetTableIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Bigtable Table. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.bigtable.BigtableFunctions;
+     * import com.pulumi.gcp.bigtable.inputs.GetTableIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BigtableFunctions.getTableIamPolicy(GetTableIamPolicyArgs.builder()
+     *             .instance(instance.name())
+     *             .table(table.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTableIamPolicy(GetTableIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:bigtable/getTableIamPolicy:getTableIamPolicy", TypeShape.of(GetTableIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Bigtable Table. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/billing/BillingFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/billing/BillingFunctions.java index bb076537cf..3d3cddbdc6 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/billing/BillingFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/billing/BillingFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.billing.inputs.GetAccountIamPolicyArgs; import com.pulumi.gcp.billing.inputs.GetAccountIamPolicyPlainArgs; @@ -140,6 +141,48 @@ public static CompletableFuture getAccountIamPolicyPl public static Output getAccountIamPolicy(GetAccountIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", TypeShape.of(GetAccountIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Billing Account. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.billing.BillingFunctions;
+     * import com.pulumi.gcp.billing.inputs.GetAccountIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BillingFunctions.getAccountIamPolicy(GetAccountIamPolicyArgs.builder()
+     *             .billingAccountId("MEEP-MEEP-MEEP-MEEP-MEEP")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccountIamPolicy(GetAccountIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:billing/getAccountIamPolicy:getAccountIamPolicy", TypeShape.of(GetAccountIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Billing Account. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/binaryauthorization/BinaryauthorizationFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/binaryauthorization/BinaryauthorizationFunctions.java index f4af3deb82..8fb2e0b8ac 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/binaryauthorization/BinaryauthorizationFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/binaryauthorization/BinaryauthorizationFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.binaryauthorization.inputs.GetAttestorIamPolicyArgs; import com.pulumi.gcp.binaryauthorization.inputs.GetAttestorIamPolicyPlainArgs; @@ -143,6 +144,49 @@ public static CompletableFuture getAttestorIamPolicy public static Output getAttestorIamPolicy(GetAttestorIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", TypeShape.of(GetAttestorIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for attestor + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.binaryauthorization.BinaryauthorizationFunctions;
+     * import com.pulumi.gcp.binaryauthorization.inputs.GetAttestorIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = BinaryauthorizationFunctions.getAttestorIamPolicy(GetAttestorIamPolicyArgs.builder()
+     *             .project(attestor.project())
+     *             .attestor(attestor.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAttestorIamPolicy(GetAttestorIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:binaryauthorization/getAttestorIamPolicy:getAttestorIamPolicy", TypeShape.of(GetAttestorIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for attestor * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java index 7b21a118bc..a049c4e376 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs; import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityPlainArgs; @@ -245,6 +246,51 @@ public static CompletableFuture getAuthorityPlain(GetAuthori public static Output getAuthority(GetAuthorityArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:certificateauthority/getAuthority:getAuthority", TypeShape.of(GetAuthorityResult.class), args, Utilities.withVersion(options)); } + /** + * Get info about a Google CAS Certificate Authority. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
+     *             .location("us-west1")
+     *             .pool("pool-name")
+     *             .certificateAuthorityId("ca-id")
+     *             .build());
+     * 
+     *         ctx.export("csr", default_.pemCsr());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAuthority(GetAuthorityArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:certificateauthority/getAuthority:getAuthority", TypeShape.of(GetAuthorityResult.class), args, Utilities.withVersion(options)); + } /** * Get info about a Google CAS Certificate Authority. * @@ -416,6 +462,48 @@ public static CompletableFuture getCaPoolIamPolicyPlai public static Output getCaPoolIamPolicy(GetCaPoolIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", TypeShape.of(GetCaPoolIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for capool + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetCaPoolIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = CertificateauthorityFunctions.getCaPoolIamPolicy(GetCaPoolIamPolicyArgs.builder()
+     *             .caPool(default_.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCaPoolIamPolicy(GetCaPoolIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:certificateauthority/getCaPoolIamPolicy:getCaPoolIamPolicy", TypeShape.of(GetCaPoolIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for capool * @@ -584,6 +672,48 @@ public static CompletableFuture getCertif public static Output getCertificateTemplateIamPolicy(GetCertificateTemplateIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", TypeShape.of(GetCertificateTemplateIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for certificatetemplate + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetCertificateTemplateIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = CertificateauthorityFunctions.getCertificateTemplateIamPolicy(GetCertificateTemplateIamPolicyArgs.builder()
+     *             .certificateTemplate(default_.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCertificateTemplateIamPolicy(GetCertificateTemplateIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:certificateauthority/getCertificateTemplateIamPolicy:getCertificateTemplateIamPolicy", TypeShape.of(GetCertificateTemplateIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for certificatetemplate * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java index 1c9f455974..b91a8270cd 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapArgs; import com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapPlainArgs; @@ -143,6 +144,48 @@ public static CompletableFuture getCertificateMapPlain( public static Output getCertificateMap(GetCertificateMapArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:certificatemanager/getCertificateMap:getCertificateMap", TypeShape.of(GetCertificateMapResult.class), args, Utilities.withVersion(options)); } + /** + * Get info about a Google Certificate Manager Certificate Map resource. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions;
+     * import com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CertificatemanagerFunctions.getCertificateMap(GetCertificateMapArgs.builder()
+     *             .name("cert-map")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCertificateMap(GetCertificateMapArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:certificatemanager/getCertificateMap:getCertificateMap", TypeShape.of(GetCertificateMapResult.class), args, Utilities.withVersion(options)); + } /** * Get info about a Google Certificate Manager Certificate Map resource. * @@ -560,6 +603,81 @@ public static CompletableFuture getCertificatesPlain(GetC public static Output getCertificates(GetCertificatesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:certificatemanager/getCertificates:getCertificates", TypeShape.of(GetCertificatesResult.class), args, Utilities.withVersion(options)); } + /** + * List all certificates within Google Certificate Manager for a given project, region or filter. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions;
+     * import com.pulumi.gcp.certificatemanager.inputs.GetCertificatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CertificatemanagerFunctions.getCertificates();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### With A Filter + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions;
+     * import com.pulumi.gcp.certificatemanager.inputs.GetCertificatesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = CertificatemanagerFunctions.getCertificates(GetCertificatesArgs.builder()
+     *             .filter("name:projects/PROJECT_ID/locations/REGION/certificates/certificate-name-*")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCertificates(GetCertificatesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:certificatemanager/getCertificates:getCertificates", TypeShape.of(GetCertificatesResult.class), args, Utilities.withVersion(options)); + } /** * List all certificates within Google Certificate Manager for a given project, region or filter. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudasset/CloudassetFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudasset/CloudassetFunctions.java index 3be0bccfe5..785701c06b 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudasset/CloudassetFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudasset/CloudassetFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllArgs; import com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllPlainArgs; @@ -478,6 +479,122 @@ public static Output getResourcesSearchAll(Ge * <!--End PulumiCodeChooser --> * */ + public static Output getResourcesSearchAll(GetResourcesSearchAllArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", TypeShape.of(GetResourcesSearchAllInvokeResult.class), args, Utilities.withVersion(options)); + } + /** + * ## Example Usage + * + * ### Searching For All Projects In An Org + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudasset.CloudassetFunctions;
+     * import com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var projects = CloudassetFunctions.getResourcesSearchAll(GetResourcesSearchAllArgs.builder()
+     *             .scope("organizations/0123456789")
+     *             .assetTypes("cloudresourcemanager.googleapis.com/Project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Searching For All Projects With CloudBuild API Enabled + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudasset.CloudassetFunctions;
+     * import com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cloudBuildProjects = CloudassetFunctions.getResourcesSearchAll(GetResourcesSearchAllArgs.builder()
+     *             .scope("organizations/0123456789")
+     *             .assetTypes("serviceusage.googleapis.com/Service")
+     *             .query("displayName:cloudbuild.googleapis.com AND state:ENABLED")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Searching For All Service Accounts In A Project + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudasset.CloudassetFunctions;
+     * import com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var projectServiceAccounts = CloudassetFunctions.getResourcesSearchAll(GetResourcesSearchAllArgs.builder()
+     *             .scope("projects/my-project-id")
+     *             .assetTypes("iam.googleapis.com/ServiceAccount")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getResourcesSearchAllPlain(GetResourcesSearchAllPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:cloudasset/getResourcesSearchAll:getResourcesSearchAll", TypeShape.of(GetResourcesSearchAllInvokeResult.class), args, Utilities.withVersion(options)); } @@ -958,6 +1075,126 @@ public static Output getSearchAllResources(Ge * <!--End PulumiCodeChooser --> * */ + public static Output getSearchAllResources(GetSearchAllResourcesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudasset/getSearchAllResources:getSearchAllResources", TypeShape.of(GetSearchAllResourcesInvokeResult.class), args, Utilities.withVersion(options)); + } + /** + * Searches all Google Cloud resources within the specified scope, such as a project, folder, or organization. See the + * [REST API](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources) + * for more details. + * + * ## Example Usage + * + * ### Searching For All Projects In An Org + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudasset.CloudassetFunctions;
+     * import com.pulumi.gcp.cloudasset.inputs.GetSearchAllResourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var projects = CloudassetFunctions.getSearchAllResources(GetSearchAllResourcesArgs.builder()
+     *             .scope("organizations/0123456789")
+     *             .assetTypes("cloudresourcemanager.googleapis.com/Project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Searching For All Projects With CloudBuild API Enabled + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudasset.CloudassetFunctions;
+     * import com.pulumi.gcp.cloudasset.inputs.GetSearchAllResourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cloudBuildProjects = CloudassetFunctions.getSearchAllResources(GetSearchAllResourcesArgs.builder()
+     *             .scope("organizations/0123456789")
+     *             .assetTypes("serviceusage.googleapis.com/Service")
+     *             .query("displayName:cloudbuild.googleapis.com AND state:ENABLED")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Searching For All Service Accounts In A Project + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudasset.CloudassetFunctions;
+     * import com.pulumi.gcp.cloudasset.inputs.GetSearchAllResourcesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var projectServiceAccounts = CloudassetFunctions.getSearchAllResources(GetSearchAllResourcesArgs.builder()
+     *             .scope("projects/my-project-id")
+     *             .assetTypes("iam.googleapis.com/ServiceAccount")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getSearchAllResourcesPlain(GetSearchAllResourcesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:cloudasset/getSearchAllResources:getSearchAllResources", TypeShape.of(GetSearchAllResourcesInvokeResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudbuild/CloudbuildFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudbuild/CloudbuildFunctions.java index 06698948a8..fc5ee91016 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudbuild/CloudbuildFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudbuild/CloudbuildFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudbuild.inputs.GetTriggerArgs; import com.pulumi.gcp.cloudbuild.inputs.GetTriggerPlainArgs; @@ -158,6 +159,54 @@ public static CompletableFuture getTriggerPlain(GetTriggerPlai public static Output getTrigger(GetTriggerArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudbuild/getTrigger:getTrigger", TypeShape.of(GetTriggerResult.class), args, Utilities.withVersion(options)); } + /** + * To get more information about Cloudbuild Trigger, see: + * + * * [API documentation](https://cloud.google.com/build/docs/api/reference/rest/v1/projects.triggers) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/build/docs/automating-builds/create-manage-triggers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudbuild.CloudbuildFunctions;
+     * import com.pulumi.gcp.cloudbuild.inputs.GetTriggerArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var name = CloudbuildFunctions.getTrigger(GetTriggerArgs.builder()
+     *             .project("your-project-id")
+     *             .triggerId(filename_trigger.triggerId())
+     *             .location("location of trigger build")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTrigger(GetTriggerArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudbuild/getTrigger:getTrigger", TypeShape.of(GetTriggerResult.class), args, Utilities.withVersion(options)); + } /** * To get more information about Cloudbuild Trigger, see: * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudbuildv2/Cloudbuildv2Functions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudbuildv2/Cloudbuildv2Functions.java index 42c42d9f86..bc459c5b67 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudbuildv2/Cloudbuildv2Functions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudbuildv2/Cloudbuildv2Functions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudbuildv2.inputs.GetConnectionIamPolicyArgs; import com.pulumi.gcp.cloudbuildv2.inputs.GetConnectionIamPolicyPlainArgs; @@ -146,6 +147,50 @@ public static CompletableFuture getConnectionIamPo public static Output getConnectionIamPolicy(GetConnectionIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", TypeShape.of(GetConnectionIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for connection + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudbuildv2.Cloudbuildv2Functions;
+     * import com.pulumi.gcp.cloudbuildv2.inputs.GetConnectionIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = Cloudbuildv2Functions.getConnectionIamPolicy(GetConnectionIamPolicyArgs.builder()
+     *             .project(my_connection.project())
+     *             .location(my_connection.location())
+     *             .name(my_connection.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConnectionIamPolicy(GetConnectionIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudbuildv2/getConnectionIamPolicy:getConnectionIamPolicy", TypeShape.of(GetConnectionIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for connection * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/clouddeploy/ClouddeployFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/clouddeploy/ClouddeployFunctions.java index 825889d542..8ec48cd4b7 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/clouddeploy/ClouddeployFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/clouddeploy/ClouddeployFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.clouddeploy.inputs.GetCustomTargetTypeIamPolicyArgs; import com.pulumi.gcp.clouddeploy.inputs.GetCustomTargetTypeIamPolicyPlainArgs; @@ -152,6 +153,50 @@ public static CompletableFuture getCustomTar public static Output getCustomTargetTypeIamPolicy(GetCustomTargetTypeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", TypeShape.of(GetCustomTargetTypeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for customtargettype + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.clouddeploy.ClouddeployFunctions;
+     * import com.pulumi.gcp.clouddeploy.inputs.GetCustomTargetTypeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ClouddeployFunctions.getCustomTargetTypeIamPolicy(GetCustomTargetTypeIamPolicyArgs.builder()
+     *             .project(custom_target_type.project())
+     *             .location(custom_target_type.location())
+     *             .name(custom_target_type.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCustomTargetTypeIamPolicy(GetCustomTargetTypeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:clouddeploy/getCustomTargetTypeIamPolicy:getCustomTargetTypeIamPolicy", TypeShape.of(GetCustomTargetTypeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for customtargettype * @@ -328,6 +373,50 @@ public static CompletableFuture getDeliveryP public static Output getDeliveryPipelineIamPolicy(GetDeliveryPipelineIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", TypeShape.of(GetDeliveryPipelineIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for deliverypipeline + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.clouddeploy.ClouddeployFunctions;
+     * import com.pulumi.gcp.clouddeploy.inputs.GetDeliveryPipelineIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ClouddeployFunctions.getDeliveryPipelineIamPolicy(GetDeliveryPipelineIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .name(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDeliveryPipelineIamPolicy(GetDeliveryPipelineIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:clouddeploy/getDeliveryPipelineIamPolicy:getDeliveryPipelineIamPolicy", TypeShape.of(GetDeliveryPipelineIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for deliverypipeline * @@ -504,6 +593,50 @@ public static CompletableFuture getTargetIamPolicyPlai public static Output getTargetIamPolicy(GetTargetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", TypeShape.of(GetTargetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for target + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.clouddeploy.ClouddeployFunctions;
+     * import com.pulumi.gcp.clouddeploy.inputs.GetTargetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ClouddeployFunctions.getTargetIamPolicy(GetTargetIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .name(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTargetIamPolicy(GetTargetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:clouddeploy/getTargetIamPolicy:getTargetIamPolicy", TypeShape.of(GetTargetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for target * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctions/CloudfunctionsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctions/CloudfunctionsFunctions.java index 710d59bce7..6041e3ec86 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctions/CloudfunctionsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctions/CloudfunctionsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudfunctions.inputs.GetFunctionArgs; import com.pulumi.gcp.cloudfunctions.inputs.GetFunctionIamPolicyArgs; @@ -149,6 +150,50 @@ public static CompletableFuture getFunctionPlain(GetFunctionP public static Output getFunction(GetFunctionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudfunctions/getFunction:getFunction", TypeShape.of(GetFunctionResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Function. For more information see + * the [official documentation](https://cloud.google.com/functions/docs/) + * and [API](https://cloud.google.com/functions/docs/apis). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudfunctions.CloudfunctionsFunctions;
+     * import com.pulumi.gcp.cloudfunctions.inputs.GetFunctionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-function = CloudfunctionsFunctions.getFunction(GetFunctionArgs.builder()
+     *             .name("function")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFunction(GetFunctionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudfunctions/getFunction:getFunction", TypeShape.of(GetFunctionResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Function. For more information see * the [official documentation](https://cloud.google.com/functions/docs/) @@ -325,6 +370,50 @@ public static CompletableFuture getFunctionIamPolicy public static Output getFunctionIamPolicy(GetFunctionIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", TypeShape.of(GetFunctionIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for cloudfunction + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudfunctions.CloudfunctionsFunctions;
+     * import com.pulumi.gcp.cloudfunctions.inputs.GetFunctionIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = CloudfunctionsFunctions.getFunctionIamPolicy(GetFunctionIamPolicyArgs.builder()
+     *             .project(function.project())
+     *             .region(function.region())
+     *             .cloudFunction(function.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFunctionIamPolicy(GetFunctionIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudfunctions/getFunctionIamPolicy:getFunctionIamPolicy", TypeShape.of(GetFunctionIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for cloudfunction * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctionsv2/Cloudfunctionsv2Functions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctionsv2/Cloudfunctionsv2Functions.java index 4039114ba3..ddb5a7c99e 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctionsv2/Cloudfunctionsv2Functions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudfunctionsv2/Cloudfunctionsv2Functions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudfunctionsv2.inputs.GetFunctionArgs; import com.pulumi.gcp.cloudfunctionsv2.inputs.GetFunctionIamPolicyArgs; @@ -152,6 +153,51 @@ public static CompletableFuture getFunctionPlain(GetFunctionP public static Output getFunction(GetFunctionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudfunctionsv2/getFunction:getFunction", TypeShape.of(GetFunctionResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Function (2nd gen). For more information see: + * + * * [API documentation](https://cloud.google.com/functions/docs/reference/rest/v2beta/projects.locations.functions). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudfunctionsv2.Cloudfunctionsv2Functions;
+     * import com.pulumi.gcp.cloudfunctionsv2.inputs.GetFunctionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-function = Cloudfunctionsv2Functions.getFunction(GetFunctionArgs.builder()
+     *             .name("function")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFunction(GetFunctionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudfunctionsv2/getFunction:getFunction", TypeShape.of(GetFunctionResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Function (2nd gen). For more information see: * @@ -329,6 +375,50 @@ public static CompletableFuture getFunctionIamPolicy public static Output getFunctionIamPolicy(GetFunctionIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", TypeShape.of(GetFunctionIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for function + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudfunctionsv2.Cloudfunctionsv2Functions;
+     * import com.pulumi.gcp.cloudfunctionsv2.inputs.GetFunctionIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = Cloudfunctionsv2Functions.getFunctionIamPolicy(GetFunctionIamPolicyArgs.builder()
+     *             .project(function.project())
+     *             .location(function.location())
+     *             .cloudFunction(function.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFunctionIamPolicy(GetFunctionIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudfunctionsv2/getFunctionIamPolicy:getFunctionIamPolicy", TypeShape.of(GetFunctionIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for function * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java index b1e7908a38..fc3cd706dc 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs; import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupPlainArgs; @@ -164,6 +165,53 @@ public static CompletableFuture getGroupLookupPlain(GetGro public static Output getGroupLookup(GetGroupLookupArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", TypeShape.of(GetGroupLookupResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email. + * + * https://cloud.google.com/identity/docs/concepts/overview#groups + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupGroupKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var group = CloudidentityFunctions.getGroupLookup(GetGroupLookupArgs.builder()
+     *             .groupKey(GetGroupLookupGroupKeyArgs.builder()
+     *                 .id("my-group}{@literal @}{@code example.com")
+     *                 .build())
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroupLookup(GetGroupLookupArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", TypeShape.of(GetGroupLookupResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email. * @@ -361,6 +409,56 @@ public static CompletableFuture getGroupMembershipsPl public static Output getGroupMemberships(GetGroupMembershipsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", TypeShape.of(GetGroupMembershipsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get list of the Cloud Identity Group Memberships within a given Group. + * + * https://cloud.google.com/identity/docs/concepts/overview#memberships + * + * To get more information about GroupMembership, see: + * + * * [API documentation](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupMembershipsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var members = CloudidentityFunctions.getGroupMemberships(GetGroupMembershipsArgs.builder()
+     *             .group("groups/123eab45c6defghi")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroupMemberships(GetGroupMembershipsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", TypeShape.of(GetGroupMembershipsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get list of the Cloud Identity Group Memberships within a given Group. * @@ -420,6 +518,9 @@ public static CompletableFuture getGroupTra public static Output getGroupTransitiveMemberships(GetGroupTransitiveMembershipsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", TypeShape.of(GetGroupTransitiveMembershipsResult.class), args, Utilities.withVersion(options)); } + public static Output getGroupTransitiveMemberships(GetGroupTransitiveMembershipsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", TypeShape.of(GetGroupTransitiveMembershipsResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getGroupTransitiveMembershipsPlain(GetGroupTransitiveMembershipsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:cloudidentity/getGroupTransitiveMemberships:getGroupTransitiveMemberships", TypeShape.of(GetGroupTransitiveMembershipsResult.class), args, Utilities.withVersion(options)); } @@ -555,6 +656,50 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudidentity/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get list of the Cloud Identity Groups under a customer or namespace. + * + * https://cloud.google.com/identity/docs/concepts/overview#groups + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var groups = CloudidentityFunctions.getGroups(GetGroupsArgs.builder()
+     *             .parent("customers/A01b123xz")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGroups(GetGroupsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudidentity/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get list of the Cloud Identity Groups under a customer or namespace. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudquota/CloudquotaFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudquota/CloudquotaFunctions.java index cbfc65cd13..f150bc484a 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudquota/CloudquotaFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudquota/CloudquotaFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudquota.inputs.GetSQuotaInfoArgs; import com.pulumi.gcp.cloudquota.inputs.GetSQuotaInfoPlainArgs; @@ -149,6 +150,50 @@ public static CompletableFuture getSQuotaInfoPlain(GetSQuot public static Output getSQuotaInfo(GetSQuotaInfoArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", TypeShape.of(GetSQuotaInfoResult.class), args, Utilities.withVersion(options)); } + /** + * Provides information about a particular quota for a given project, folder or organization. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudquota.CloudquotaFunctions;
+     * import com.pulumi.gcp.cloudquota.inputs.GetSQuotaInfoArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myQuotaInfo = CloudquotaFunctions.getSQuotaInfo(GetSQuotaInfoArgs.builder()
+     *             .parent("projects/my-project")
+     *             .service("compute.googleapis.com")
+     *             .quotaId("CPUS-per-project-region")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSQuotaInfo(GetSQuotaInfoArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudquota/getSQuotaInfo:getSQuotaInfo", TypeShape.of(GetSQuotaInfoResult.class), args, Utilities.withVersion(options)); + } /** * Provides information about a particular quota for a given project, folder or organization. * @@ -322,6 +367,49 @@ public static CompletableFuture getSQuotaInfosPlain(GetSQu public static Output getSQuotaInfos(GetSQuotaInfosArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", TypeShape.of(GetSQuotaInfosResult.class), args, Utilities.withVersion(options)); } + /** + * Provides information about all quotas for a given project, folder or organization. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudquota.CloudquotaFunctions;
+     * import com.pulumi.gcp.cloudquota.inputs.GetSQuotaInfosArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myQuotaInfos = CloudquotaFunctions.getSQuotaInfos(GetSQuotaInfosArgs.builder()
+     *             .parent("projects/my-project")
+     *             .service("compute.googleapis.com")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSQuotaInfos(GetSQuotaInfosArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudquota/getSQuotaInfos:getSQuotaInfos", TypeShape.of(GetSQuotaInfosResult.class), args, Utilities.withVersion(options)); + } /** * Provides information about all quotas for a given project, folder or organization. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudrun/CloudrunFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudrun/CloudrunFunctions.java index 4d7a62938b..0f43715022 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudrun/CloudrunFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudrun/CloudrunFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudrun.inputs.GetLocationsArgs; import com.pulumi.gcp.cloudrun.inputs.GetLocationsPlainArgs; @@ -250,6 +251,52 @@ public static CompletableFuture getLocationsPlain(GetLocatio public static Output getLocations(GetLocationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudrun/getLocations:getLocations", TypeShape.of(GetLocationsResult.class), args, Utilities.withVersion(options)); } + /** + * Get Cloud Run locations available for a project. + * + * To get more information about Cloud Run, see: + * + * * [API documentation](https://cloud.google.com/run/docs/reference/rest/v1/projects.locations) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/run/docs/) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudrun.CloudrunFunctions;
+     * import com.pulumi.gcp.cloudrun.inputs.GetLocationsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = CloudrunFunctions.getLocations();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLocations(GetLocationsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudrun/getLocations:getLocations", TypeShape.of(GetLocationsResult.class), args, Utilities.withVersion(options)); + } /** * Get Cloud Run locations available for a project. * @@ -431,6 +478,51 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudrun/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Run Service. For more information see + * the [official documentation](https://cloud.google.com/run/docs/) + * and [API](https://cloud.google.com/run/docs/apis). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudrun.CloudrunFunctions;
+     * import com.pulumi.gcp.cloudrun.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var run-service = CloudrunFunctions.getService(GetServiceArgs.builder()
+     *             .name("my-service")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudrun/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Run Service. For more information see * the [official documentation](https://cloud.google.com/run/docs/) @@ -608,6 +700,50 @@ public static CompletableFuture getServiceIamPolicyPl public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for service + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudrun.CloudrunFunctions;
+     * import com.pulumi.gcp.cloudrun.inputs.GetServiceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = CloudrunFunctions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder()
+     *             .location(default_.location())
+     *             .project(default_.project())
+     *             .service(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudrun/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for service * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudrunv2/Cloudrunv2Functions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudrunv2/Cloudrunv2Functions.java index 07ea7e863a..fc57363ff2 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudrunv2/Cloudrunv2Functions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudrunv2/Cloudrunv2Functions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudrunv2.inputs.GetJobArgs; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; @@ -158,6 +159,51 @@ public static CompletableFuture getJobPlain(GetJobPlainArgs args) public static Output getJob(GetJobArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudrunv2/getJob:getJob", TypeShape.of(GetJobResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Run v2 Job. For more information see + * the [official documentation](https://cloud.google.com/run/docs/) + * and [API](https://cloud.google.com/run/docs/apis). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions;
+     * import com.pulumi.gcp.cloudrunv2.inputs.GetJobArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myJob = Cloudrunv2Functions.getJob(GetJobArgs.builder()
+     *             .name("my-job")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getJob(GetJobArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudrunv2/getJob:getJob", TypeShape.of(GetJobResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Run v2 Job. For more information see * the [official documentation](https://cloud.google.com/run/docs/) @@ -335,6 +381,50 @@ public static CompletableFuture getJobIamPolicyPlain(GetJ public static Output getJobIamPolicy(GetJobIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", TypeShape.of(GetJobIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for job + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions;
+     * import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .name(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getJobIamPolicy(GetJobIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudrunv2/getJobIamPolicy:getJobIamPolicy", TypeShape.of(GetJobIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for job * @@ -514,6 +604,51 @@ public static CompletableFuture getServicePlain(GetServicePlai public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudrunv2/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Run v2 Service. For more information see + * the [official documentation](https://cloud.google.com/run/docs/) + * and [API](https://cloud.google.com/run/docs/apis). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions;
+     * import com.pulumi.gcp.cloudrunv2.inputs.GetServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myService = Cloudrunv2Functions.getService(GetServiceArgs.builder()
+     *             .name("my-service")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getService(GetServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudrunv2/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Run v2 Service. For more information see * the [official documentation](https://cloud.google.com/run/docs/) @@ -691,6 +826,50 @@ public static CompletableFuture getServiceIamPolicyPl public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for service + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions;
+     * import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .name(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudrunv2/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for service * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudtasks/CloudtasksFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudtasks/CloudtasksFunctions.java index 6cc140b275..7fdb3aca41 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudtasks/CloudtasksFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudtasks/CloudtasksFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.cloudtasks.inputs.GetQueueIamPolicyArgs; import com.pulumi.gcp.cloudtasks.inputs.GetQueueIamPolicyPlainArgs; @@ -146,6 +147,50 @@ public static CompletableFuture getQueueIamPolicyPlain( public static Output getQueueIamPolicy(GetQueueIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", TypeShape.of(GetQueueIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for queue + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudtasks.CloudtasksFunctions;
+     * import com.pulumi.gcp.cloudtasks.inputs.GetQueueIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = CloudtasksFunctions.getQueueIamPolicy(GetQueueIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .name(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getQueueIamPolicy(GetQueueIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:cloudtasks/getQueueIamPolicy:getQueueIamPolicy", TypeShape.of(GetQueueIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for queue * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/composer/ComposerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/composer/ComposerFunctions.java index 9c1afcd2c6..946060cc0e 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/composer/ComposerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/composer/ComposerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.composer.inputs.GetEnvironmentArgs; import com.pulumi.gcp.composer.inputs.GetEnvironmentPlainArgs; @@ -170,6 +171,55 @@ public static CompletableFuture getEnvironmentPlain(GetEnv public static Output getEnvironment(GetEnvironmentArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:composer/getEnvironment:getEnvironment", TypeShape.of(GetEnvironmentResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to Cloud Composer environment configuration in a region for a given project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.composer.Environment;
+     * import com.pulumi.gcp.composer.EnvironmentArgs;
+     * import com.pulumi.gcp.composer.ComposerFunctions;
+     * import com.pulumi.gcp.composer.inputs.GetEnvironmentArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var composerEnvEnvironment = new Environment("composerEnvEnvironment", EnvironmentArgs.builder()
+     *             .name("composer-environment")
+     *             .build());
+     * 
+     *         final var composerEnv = ComposerFunctions.getEnvironment(GetEnvironmentArgs.builder()
+     *             .name(test.name())
+     *             .build());
+     * 
+     *         ctx.export("debug", composerEnv.applyValue(getEnvironmentResult -> getEnvironmentResult.configs()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEnvironment(GetEnvironmentArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:composer/getEnvironment:getEnvironment", TypeShape.of(GetEnvironmentResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to Cloud Composer environment configuration in a region for a given project. * @@ -489,6 +539,60 @@ public static CompletableFuture getImageVersionsPlain(Ge public static Output getImageVersions(GetImageVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:composer/getImageVersions:getImageVersions", TypeShape.of(GetImageVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to available Cloud Composer versions in a region for a given project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.composer.ComposerFunctions;
+     * import com.pulumi.gcp.composer.inputs.GetImageVersionsArgs;
+     * import com.pulumi.gcp.composer.Environment;
+     * import com.pulumi.gcp.composer.EnvironmentArgs;
+     * import com.pulumi.gcp.composer.inputs.EnvironmentConfigArgs;
+     * import com.pulumi.gcp.composer.inputs.EnvironmentConfigSoftwareConfigArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var all = ComposerFunctions.getImageVersions();
+     * 
+     *         var test = new Environment("test", EnvironmentArgs.builder()
+     *             .name("test-env")
+     *             .region("us-central1")
+     *             .config(EnvironmentConfigArgs.builder()
+     *                 .softwareConfig(EnvironmentConfigSoftwareConfigArgs.builder()
+     *                     .imageVersion(all.applyValue(getImageVersionsResult -> getImageVersionsResult.imageVersions()[0].imageVersionId()))
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getImageVersions(GetImageVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:composer/getImageVersions:getImageVersions", TypeShape.of(GetImageVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available Cloud Composer versions in a region for a given project. * @@ -741,6 +845,72 @@ public static CompletableFuture getUserWorkload public static Output getUserWorkloadsConfigMap(GetUserWorkloadsConfigMapArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", TypeShape.of(GetUserWorkloadsConfigMapResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.composer.Environment;
+     * import com.pulumi.gcp.composer.EnvironmentArgs;
+     * import com.pulumi.gcp.composer.inputs.EnvironmentConfigArgs;
+     * import com.pulumi.gcp.composer.inputs.EnvironmentConfigSoftwareConfigArgs;
+     * import com.pulumi.gcp.composer.UserWorkloadsConfigMap;
+     * import com.pulumi.gcp.composer.UserWorkloadsConfigMapArgs;
+     * import com.pulumi.gcp.composer.ComposerFunctions;
+     * import com.pulumi.gcp.composer.inputs.GetUserWorkloadsConfigMapArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
+     *             .name("example-environment")
+     *             .config(EnvironmentConfigArgs.builder()
+     *                 .softwareConfig(EnvironmentConfigSoftwareConfigArgs.builder()
+     *                     .imageVersion("composer-3-airflow-2")
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *         var exampleUserWorkloadsConfigMap = new UserWorkloadsConfigMap("exampleUserWorkloadsConfigMap", UserWorkloadsConfigMapArgs.builder()
+     *             .environment(exampleEnvironment.name())
+     *             .name("example-config-map")
+     *             .data(Map.ofEntries(
+     *                 Map.entry("db_host", "dbhost:5432"),
+     *                 Map.entry("api_host", "apihost:443")
+     *             ))
+     *             .build());
+     * 
+     *         final var example = ComposerFunctions.getUserWorkloadsConfigMap(GetUserWorkloadsConfigMapArgs.builder()
+     *             .environment(exampleEnvironment.name())
+     *             .name(googleComposerUserWorkloadsConfigMap.example().name())
+     *             .build());
+     * 
+     *         ctx.export("debug", example.applyValue(getUserWorkloadsConfigMapResult -> getUserWorkloadsConfigMapResult));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUserWorkloadsConfigMap(GetUserWorkloadsConfigMapArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:composer/getUserWorkloadsConfigMap:getUserWorkloadsConfigMap", TypeShape.of(GetUserWorkloadsConfigMapResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * @@ -1017,6 +1187,76 @@ public static CompletableFuture getUserWorkloadsSe public static Output getUserWorkloadsSecret(GetUserWorkloadsSecretArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", TypeShape.of(GetUserWorkloadsSecretResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.composer.Environment;
+     * import com.pulumi.gcp.composer.EnvironmentArgs;
+     * import com.pulumi.gcp.composer.inputs.EnvironmentConfigArgs;
+     * import com.pulumi.gcp.composer.inputs.EnvironmentConfigSoftwareConfigArgs;
+     * import com.pulumi.gcp.composer.UserWorkloadsSecret;
+     * import com.pulumi.gcp.composer.UserWorkloadsSecretArgs;
+     * import com.pulumi.gcp.composer.ComposerFunctions;
+     * import com.pulumi.gcp.composer.inputs.GetUserWorkloadsSecretArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
+     *             .name("example-environment")
+     *             .config(EnvironmentConfigArgs.builder()
+     *                 .softwareConfig(EnvironmentConfigSoftwareConfigArgs.builder()
+     *                     .imageVersion("composer-3-airflow-2")
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *         var exampleUserWorkloadsSecret = new UserWorkloadsSecret("exampleUserWorkloadsSecret", UserWorkloadsSecretArgs.builder()
+     *             .environment(exampleEnvironment.name())
+     *             .name("example-secret")
+     *             .data(Map.ofEntries(
+     *                 Map.entry("username", StdFunctions.base64encode(Base64encodeArgs.builder()
+     *                     .input("username")
+     *                     .build()).result()),
+     *                 Map.entry("password", StdFunctions.base64encode(Base64encodeArgs.builder()
+     *                     .input("password")
+     *                     .build()).result())
+     *             ))
+     *             .build());
+     * 
+     *         final var example = ComposerFunctions.getUserWorkloadsSecret(GetUserWorkloadsSecretArgs.builder()
+     *             .environment(exampleEnvironment.name())
+     *             .name(googleComposerUserWorkloadsSecret.example().name())
+     *             .build());
+     * 
+     *         ctx.export("debug", example.applyValue(getUserWorkloadsSecretResult -> getUserWorkloadsSecretResult));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUserWorkloadsSecret(GetUserWorkloadsSecretArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:composer/getUserWorkloadsSecret:getUserWorkloadsSecret", TypeShape.of(GetUserWorkloadsSecretResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java index 3bc64d4c37..515baf42df 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.compute.inputs.GetAddressArgs; import com.pulumi.gcp.compute.inputs.GetAddressPlainArgs; @@ -364,6 +365,66 @@ public static CompletableFuture getAddressPlain(GetAddressPlai public static Output getAddress(GetAddressArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getAddress:getAddress", TypeShape.of(GetAddressResult.class), args, Utilities.withVersion(options)); } + /** + * Get the IP address from a static address. For more information see + * the official [API](https://cloud.google.com/compute/docs/reference/latest/addresses/get) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetAddressArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myAddress = ComputeFunctions.getAddress(GetAddressArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("frontend.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(myAddress.applyValue(getAddressResult -> getAddressResult.address()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAddress(GetAddressArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getAddress:getAddress", TypeShape.of(GetAddressResult.class), args, Utilities.withVersion(options)); + } /** * Get the IP address from a static address. For more information see * the official [API](https://cloud.google.com/compute/docs/reference/latest/addresses/get) documentation. @@ -729,6 +790,67 @@ public static CompletableFuture getAddressesPlain(GetAddress public static Output getAddresses(GetAddressesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getAddresses:getAddresses", TypeShape.of(GetAddressesResult.class), args, Utilities.withVersion(options)); } + /** + * List IP addresses in a project. For more information see + * the official API [list](https://cloud.google.com/compute/docs/reference/latest/addresses/list) and + * [aggregated list](https://cloud.google.com/compute/docs/reference/rest/v1/addresses/aggregatedList) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetAddressesArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = ComputeFunctions.getAddresses(GetAddressesArgs.builder()
+     *             .filter("name:test-*")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("frontend.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(test.applyValue(getAddressesResult -> getAddressesResult.addresses()).stream().map(element -> element.address()).collect(toList()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAddresses(GetAddressesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getAddresses:getAddresses", TypeShape.of(GetAddressesResult.class), args, Utilities.withVersion(options)); + } /** * List IP addresses in a project. For more information see * the official API [list](https://cloud.google.com/compute/docs/reference/latest/addresses/list) and @@ -916,6 +1038,48 @@ public static CompletableFuture getBackendBucketPlain(Ge public static Output getBackendBucket(GetBackendBucketArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getBackendBucket:getBackendBucket", TypeShape.of(GetBackendBucketResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a BackendBucket. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetBackendBucketArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-backend-bucket = ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()
+     *             .name("my-backend")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackendBucket(GetBackendBucketArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getBackendBucket:getBackendBucket", TypeShape.of(GetBackendBucketResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a BackendBucket. * @@ -967,6 +1131,9 @@ public static CompletableFuture getBackendBucke public static Output getBackendBucketIamPolicy(GetBackendBucketIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", TypeShape.of(GetBackendBucketIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getBackendBucketIamPolicy(GetBackendBucketIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", TypeShape.of(GetBackendBucketIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getBackendBucketIamPolicyPlain(GetBackendBucketIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", TypeShape.of(GetBackendBucketIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -1123,6 +1290,57 @@ public static CompletableFuture getBackendServicePlain( public static Output getBackendService(GetBackendServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getBackendService:getBackendService", TypeShape.of(GetBackendServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Provide access to a Backend Service's attribute. For more information + * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) + * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetBackendServiceArgs;
+     * import com.pulumi.gcp.compute.BackendService;
+     * import com.pulumi.gcp.compute.BackendServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var baz = ComputeFunctions.getBackendService(GetBackendServiceArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var default_ = new BackendService("default", BackendServiceArgs.builder()
+     *             .name("backend-service")
+     *             .healthChecks(baz.applyValue(getBackendServiceResult -> getBackendServiceResult.healthChecks()[0]))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackendService(GetBackendServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getBackendService:getBackendService", TypeShape.of(GetBackendServiceResult.class), args, Utilities.withVersion(options)); + } /** * Provide access to a Backend Service's attribute. For more information * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) @@ -1183,6 +1401,9 @@ public static CompletableFuture getBackendServ public static Output getBackendServiceIamPolicy(GetBackendServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", TypeShape.of(GetBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getBackendServiceIamPolicy(GetBackendServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", TypeShape.of(GetBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getBackendServiceIamPolicyPlain(GetBackendServiceIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", TypeShape.of(GetBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -1363,11 +1584,11 @@ public static Output getCertificate(GetCertificateArgs arg * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options)); + public static Output getCertificate(GetCertificateArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to retrieve default service account for this project + * Get info about a Google Compute SSL Certificate from its name. * * ## Example Usage * @@ -1380,7 +1601,7 @@ public static CompletableFuture getCertificatePlain(GetCer * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs; + * import com.pulumi.gcp.compute.inputs.GetCertificateArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1394,9 +1615,13 @@ public static CompletableFuture getCertificatePlain(GetCer * } * * public static void stack(Context ctx) { - * final var default = ComputeFunctions.getDefaultServiceAccount(); + * final var myCert = ComputeFunctions.getCertificate(GetCertificateArgs.builder() + * .name("my-cert") + * .build()); * - * ctx.export("defaultAccount", default_.email()); + * ctx.export("certificate", myCert.applyValue(getCertificateResult -> getCertificateResult.certificate())); + * ctx.export("certificateId", myCert.applyValue(getCertificateResult -> getCertificateResult.certificateId())); + * ctx.export("selfLink", myCert.applyValue(getCertificateResult -> getCertificateResult.selfLink())); * } * } * } @@ -1404,8 +1629,8 @@ public static CompletableFuture getCertificatePlain(GetCer * <!--End PulumiCodeChooser --> * */ - public static Output getDefaultServiceAccount() { - return getDefaultServiceAccount(GetDefaultServiceAccountArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve default service account for this project @@ -1445,8 +1670,8 @@ public static Output getDefaultServiceAccount() * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getDefaultServiceAccountPlain() { - return getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs.Empty, InvokeOptions.Empty); + public static Output getDefaultServiceAccount() { + return getDefaultServiceAccount(GetDefaultServiceAccountArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve default service account for this project @@ -1486,8 +1711,8 @@ public static CompletableFuture getDefaultServic * <!--End PulumiCodeChooser --> * */ - public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args) { - return getDefaultServiceAccount(args, InvokeOptions.Empty); + public static CompletableFuture getDefaultServiceAccountPlain() { + return getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve default service account for this project @@ -1527,8 +1752,8 @@ public static Output getDefaultServiceAccount(Ge * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args) { - return getDefaultServiceAccountPlain(args, InvokeOptions.Empty); + public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args) { + return getDefaultServiceAccount(args, InvokeOptions.Empty); } /** * Use this data source to retrieve default service account for this project @@ -1568,8 +1793,8 @@ public static CompletableFuture getDefaultServic * <!--End PulumiCodeChooser --> * */ - public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args) { + return getDefaultServiceAccountPlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve default service account for this project @@ -1609,13 +1834,95 @@ public static Output getDefaultServiceAccount(Ge * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); + public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); } /** - * Get information about a Google Compute Persistent disks. + * Use this data source to retrieve default service account for this project * - * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks). + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     * 
+     *         ctx.export("defaultAccount", default_.email());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to retrieve default service account for this project + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     * 
+     *         ctx.export("defaultAccount", default_.email());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options)); + } + /** + * Get information about a Google Compute Persistent disks. + * + * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks). * * ## Example Usage * @@ -1777,6 +2084,61 @@ public static CompletableFuture getDiskPlain(GetDiskPlainArgs arg public static Output getDisk(GetDiskArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getDisk:getDisk", TypeShape.of(GetDiskResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Compute Persistent disks. + * + * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
+     *             .name("persistent-boot-disk")
+     *             .project("example")
+     *             .build());
+     * 
+     *         var default_ = new Instance("default", InstanceArgs.builder()
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .source(persistent_boot_disk.selfLink())
+     *                 .autoDelete(false)
+     *                 .build())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDisk(GetDiskArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getDisk:getDisk", TypeShape.of(GetDiskResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Compute Persistent disks. * @@ -1964,6 +2326,50 @@ public static CompletableFuture getDiskIamPolicyPlain(Ge public static Output getDiskIamPolicy(GetDiskIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", TypeShape.of(GetDiskIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for disk + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .name(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDiskIamPolicy(GetDiskIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", TypeShape.of(GetDiskIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for disk * @@ -2134,6 +2540,48 @@ public static CompletableFuture getForwardingRulePlain( public static Output getForwardingRule(GetForwardingRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getForwardingRule:getForwardingRule", TypeShape.of(GetForwardingRuleResult.class), args, Utilities.withVersion(options)); } + /** + * Get a forwarding rule within GCE from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRuleArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-forwarding-rule = ComputeFunctions.getForwardingRule(GetForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getForwardingRule(GetForwardingRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getForwardingRule:getForwardingRule", TypeShape.of(GetForwardingRuleResult.class), args, Utilities.withVersion(options)); + } /** * Get a forwarding rule within GCE from its name. * @@ -2431,12 +2879,11 @@ public static Output getForwardingRules(GetForwardingR * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getForwardingRulesPlain(GetForwardingRulesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options)); + public static Output getForwardingRules(GetForwardingRulesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options)); } /** - * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see - * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation. + * List all networks in a specified Google Cloud project. * * ## Example Usage * @@ -2449,11 +2896,7 @@ public static CompletableFuture getForwardingRulesPlai * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs; - * import com.pulumi.gcp.dns.ManagedZone; - * import com.pulumi.gcp.dns.ManagedZoneArgs; - * import com.pulumi.gcp.dns.RecordSet; - * import com.pulumi.gcp.dns.RecordSetArgs; + * import com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -2467,21 +2910,9 @@ public static CompletableFuture getForwardingRulesPlai * } * * public static void stack(Context ctx) { - * final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder() - * .name("foobar") - * .build()); - * - * var prod = new ManagedZone("prod", ManagedZoneArgs.builder() - * .name("prod-zone") - * .dnsName("prod.mydomain.com.") - * .build()); - * - * var frontend = new RecordSet("frontend", RecordSetArgs.builder() - * .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName))) - * .type("A") - * .ttl(300) - * .managedZone(prod.name()) - * .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address())) + * final var my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder() + * .project("my-cloud-project") + * .region("us-central1") * .build()); * * } @@ -2491,8 +2922,8 @@ public static CompletableFuture getForwardingRulesPlai * <!--End PulumiCodeChooser --> * */ - public static Output getGlobalAddress(GetGlobalAddressArgs args) { - return getGlobalAddress(args, InvokeOptions.Empty); + public static CompletableFuture getForwardingRulesPlain(GetForwardingRulesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options)); } /** * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see @@ -2551,8 +2982,68 @@ public static Output getGlobalAddress(GetGlobalAddressAr * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getGlobalAddressPlain(GetGlobalAddressPlainArgs args) { - return getGlobalAddressPlain(args, InvokeOptions.Empty); + public static Output getGlobalAddress(GetGlobalAddressArgs args) { + return getGlobalAddress(args, InvokeOptions.Empty); + } + /** + * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see + * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getGlobalAddressPlain(GetGlobalAddressPlainArgs args) { + return getGlobalAddressPlain(args, InvokeOptions.Empty); } /** * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see @@ -2614,6 +3105,66 @@ public static CompletableFuture getGlobalAddressPlain(Ge public static Output getGlobalAddress(GetGlobalAddressArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getGlobalAddress:getGlobalAddress", TypeShape.of(GetGlobalAddressResult.class), args, Utilities.withVersion(options)); } + /** + * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see + * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalAddress(GetGlobalAddressArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getGlobalAddress:getGlobalAddress", TypeShape.of(GetGlobalAddressResult.class), args, Utilities.withVersion(options)); + } /** * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation. @@ -2800,6 +3351,48 @@ public static CompletableFuture getGlobalForwardi public static Output getGlobalForwardingRule(GetGlobalForwardingRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", TypeShape.of(GetGlobalForwardingRuleResult.class), args, Utilities.withVersion(options)); } + /** + * Get a global forwarding rule within GCE from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalForwardingRuleArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-forwarding-rule = ComputeFunctions.getGlobalForwardingRule(GetGlobalForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-global")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getGlobalForwardingRule(GetGlobalForwardingRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", TypeShape.of(GetGlobalForwardingRuleResult.class), args, Utilities.withVersion(options)); + } /** * Get a global forwarding rule within GCE from its name. * @@ -2968,6 +3561,48 @@ public static CompletableFuture getHcVpnGatewayPlain(GetH public static Output getHcVpnGateway(GetHcVpnGatewayArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", TypeShape.of(GetHcVpnGatewayResult.class), args, Utilities.withVersion(options)); } + /** + * Get a HA VPN Gateway within GCE from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetHcVpnGatewayArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var gateway = ComputeFunctions.getHcVpnGateway(GetHcVpnGatewayArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHcVpnGateway(GetHcVpnGatewayArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", TypeShape.of(GetHcVpnGatewayResult.class), args, Utilities.withVersion(options)); + } /** * Get a HA VPN Gateway within GCE from its name. * @@ -3136,6 +3771,48 @@ public static CompletableFuture getHealthCheckPlain(GetHea public static Output getHealthCheck(GetHealthCheckArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getHealthCheck:getHealthCheck", TypeShape.of(GetHealthCheckResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a HealthCheck. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetHealthCheckArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var healthCheck = ComputeFunctions.getHealthCheck(GetHealthCheckArgs.builder()
+     *             .name("my-hc")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHealthCheck(GetHealthCheckArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getHealthCheck:getHealthCheck", TypeShape.of(GetHealthCheckResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a HealthCheck. * @@ -3511,13 +4188,14 @@ public static Output getImage(GetImageArgs args, InvokeOptions o * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getImagePlain(GetImagePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getImage:getImage", TypeShape.of(GetImageResult.class), args, Utilities.withVersion(options)); + public static Output getImage(GetImageArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getImage:getImage", TypeShape.of(GetImageResult.class), args, Utilities.withVersion(options)); } /** - * Retrieves the current IAM policy data for image + * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). * - * ## example + * ## Example Usage * * <!--Start PulumiCodeChooser --> *
@@ -3528,10 +4206,65 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
-     * import java.util.List;
-     * import java.util.ArrayList;
-     * import java.util.Map;
+     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
+     *             .family("debian-11")
+     *             .project("debian-cloud")
+     *             .build());
+     * 
+     *         var default_ = new Instance("default", InstanceArgs.builder()
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
+     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getImagePlain(GetImagePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getImage:getImage", TypeShape.of(GetImageResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieves the current IAM policy data for image + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
      * import java.io.File;
      * import java.nio.file.Files;
      * import java.nio.file.Paths;
@@ -3643,6 +4376,49 @@ public static CompletableFuture getImageIamPolicyPlain(
     public static Output getImageIamPolicy(GetImageIamPolicyArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", TypeShape.of(GetImageIamPolicyResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * Retrieves the current IAM policy data for image
+     * 
+     * ## example
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .image(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getImageIamPolicy(GetImageIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", TypeShape.of(GetImageIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for image * @@ -3916,6 +4692,52 @@ public static CompletableFuture getInstancePlain(GetInstanceP public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstance(GetInstanceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a VM instance resource within GCE. For more information see * [the official documentation](https://cloud.google.com/compute/docs/instances) @@ -4177,6 +4999,49 @@ public static CompletableFuture getInstanceGroupPlain(Ge public static Output getInstanceGroup(GetInstanceGroupArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getInstanceGroup:getInstanceGroup", TypeShape.of(GetInstanceGroupResult.class), args, Utilities.withVersion(options)); } + /** + * Get a Compute Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroup(GetInstanceGroupArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceGroup:getInstanceGroup", TypeShape.of(GetInstanceGroupResult.class), args, Utilities.withVersion(options)); + } /** * Get a Compute Instance Group within GCE. * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) @@ -4465,6 +5330,55 @@ public static CompletableFuture getInstanceGroupM public static Output getInstanceGroupManager(GetInstanceGroupManagerArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", TypeShape.of(GetInstanceGroupManagerResult.class), args, Utilities.withVersion(options)); } + /** + * Get a Compute Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroupManager(GetInstanceGroupManagerArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", TypeShape.of(GetInstanceGroupManagerResult.class), args, Utilities.withVersion(options)); + } /** * Get a Compute Instance Group Manager within GCE. * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) @@ -4871,13 +5785,22 @@ public static Output getInstanceGuestAttribute * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getInstanceGuestAttributesPlain(GetInstanceGuestAttributesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", TypeShape.of(GetInstanceGuestAttributesResult.class), args, Utilities.withVersion(options)); + public static Output getInstanceGuestAttributes(GetInstanceGuestAttributesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", TypeShape.of(GetInstanceGuestAttributesResult.class), args, Utilities.withVersion(options)); } /** - * Retrieves the current IAM policy data for instance + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). * - * ## example + * Get information about VM's guest attrubutes. For more information see [the official documentation](https://cloud.google.com/compute/docs/metadata/manage-guest-attributes) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instances/getGuestAttributes). + * + * ## Example Usage + * + * ### Get All Attributes From A Single Namespace * * <!--Start PulumiCodeChooser --> *
@@ -4888,7 +5811,7 @@ public static CompletableFuture getInstanceGue
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGuestAttributesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -4902,8 +5825,89 @@ public static CompletableFuture getInstanceGue
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
-     *             .project(default_.project())
+     *         final var appserverGa = ComputeFunctions.getInstanceGuestAttributes(GetInstanceGuestAttributesArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .queryPath("variables/")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Get A Specific Variable + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGuestAttributesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var appserverGa = ComputeFunctions.getInstanceGuestAttributes(GetInstanceGuestAttributesArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .variableKey("variables/key1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceGuestAttributesPlain(GetInstanceGuestAttributesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceGuestAttributes:getInstanceGuestAttributes", TypeShape.of(GetInstanceGuestAttributesResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(default_.project())
      *             .zone(default_.zone())
      *             .instanceName(default_.name())
      *             .build());
@@ -5006,6 +6010,50 @@ public static CompletableFuture getInstanceIamPolicy
     public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * Retrieves the current IAM policy data for instance
+     * 
+     * ## example
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .instanceName(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for instance * @@ -5539,6 +6587,129 @@ public static Output getInstanceSerialPort(GetInsta * <!--End PulumiCodeChooser --> * */ + public static Output getInstanceSerialPort(GetInstanceSerialPortArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", TypeShape.of(GetInstanceSerialPortResult.class), args, Utilities.withVersion(options)); + } + /** + * Get the serial port output from a Compute Instance. For more information see + * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance("my-instance")
+     *             .zone("us-central1-a")
+     *             .port(1)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var windows = new Instance("windows", InstanceArgs.builder()
+     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
+     *                 .accessConfigs()
+     *                 .network("default")
+     *                 .build())
+     *             .name("windows-instance")
+     *             .machineType("e2-medium")
+     *             .zone("us-central1-a")
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
+     *                     .image("windows-cloud/windows-2019")
+     *                     .build())
+     *                 .build())
+     *             .metadata(Map.ofEntries(
+     *                 Map.entry("serial-port-logging-enable", "TRUE"),
+     *                 Map.entry("windows-keys", serializeJson(
+     *                     jsonObject(
+     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
+     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
+     *                         jsonProperty("exponent", "AQAB"),
+     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
+     *                         jsonProperty("userName", "example-user")
+     *                     )))
+     *             ))
+     *             .serviceAccount(InstanceServiceAccountArgs.builder()
+     *                 .scopes(                
+     *                     "userinfo-email",
+     *                     "compute-ro",
+     *                     "storage-ro")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance(windows.name())
+     *             .zone(windows.zone())
+     *             .port(4)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getInstanceSerialPortPlain(GetInstanceSerialPortPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", TypeShape.of(GetInstanceSerialPortResult.class), args, Utilities.withVersion(options)); } @@ -5602,6 +6773,18 @@ public static CompletableFuture getInstanceTemplatePl public static Output getInstanceTemplate(GetInstanceTemplateArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", TypeShape.of(GetInstanceTemplateResult.class), args, Utilities.withVersion(options)); } + /** + * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * + */ + public static Output getInstanceTemplate(GetInstanceTemplateArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", TypeShape.of(GetInstanceTemplateResult.class), args, Utilities.withVersion(options)); + } /** * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. * @@ -5889,6 +7072,61 @@ public static CompletableFuture getLBIPRangesPlain(InvokeAr public static Output getLBIPRanges(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getLBIPRanges:getLBIPRanges", TypeShape.of(GetLBIPRangesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to access IP ranges in your firewall rules. + * + * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ranges = ComputeFunctions.getLBIPRanges();
+     * 
+     *         var lb = new Firewall("lb", FirewallArgs.builder()
+     *             .name("lb-firewall")
+     *             .network(main.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(ranges.applyValue(getLBIPRangesResult -> getLBIPRangesResult.networks()))
+     *             .targetTags("InstanceBehindLoadBalancer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLBIPRanges(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getLBIPRanges:getLBIPRanges", TypeShape.of(GetLBIPRangesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to access IP ranges in your firewall rules. * @@ -5953,6 +7191,9 @@ public static CompletableFuture getMachineImageI public static Output getMachineImageIamPolicy(GetMachineImageIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", TypeShape.of(GetMachineImageIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getMachineImageIamPolicy(GetMachineImageIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", TypeShape.of(GetMachineImageIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getMachineImageIamPolicyPlain(GetMachineImageIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", TypeShape.of(GetMachineImageIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -6027,24 +7268,138 @@ public static CompletableFuture getMachineTypesPlain(GetM * * ## Example Usage * - */ - public static Output getMachineTypes(GetMachineTypesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); - } - /** - * Provides access to available Google Compute machine types in a zone for a given project. - * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + */ + public static Output getMachineTypes(GetMachineTypesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static Output getMachineTypes(GetMachineTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static CompletableFuture getMachineTypesPlain(GetMachineTypesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * + * ## Example Usage + * + * ### Cloud Ranges + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var netblock = ComputeFunctions.getNetblockIPRanges();
+     * 
+     *         ctx.export("cidrBlocks", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocks()));
+     *         ctx.export("cidrBlocksIpv4", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv4s()));
+     *         ctx.export("cidrBlocksIpv6", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv6s()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Allow Health Checks + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()
+     *             .rangeType("legacy-health-checkers")
+     *             .build());
      * 
-     * To get more information about machine types, see:
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("test-network")
+     *             .build());
      * 
-     * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list)
-     * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource)
+     *         var allow_hcs = new Firewall("allow-hcs", FirewallArgs.builder()
+     *             .name("allow-hcs")
+     *             .network(default_.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(legacy_hcs.cidrBlocksIpv4s())
+     *             .build());
      * 
-     * ## Example Usage
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getMachineTypesPlain(GetMachineTypesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); + public static Output getNetblockIPRanges() { + return getNetblockIPRanges(GetNetblockIPRangesArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. @@ -6142,8 +7497,8 @@ public static CompletableFuture getMachineTypesPlain(GetM * <!--End PulumiCodeChooser --> * */ - public static Output getNetblockIPRanges() { - return getNetblockIPRanges(GetNetblockIPRangesArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getNetblockIPRangesPlain() { + return getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. @@ -6241,8 +7596,8 @@ public static Output getNetblockIPRanges() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetblockIPRangesPlain() { - return getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args) { + return getNetblockIPRanges(args, InvokeOptions.Empty); } /** * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. @@ -6340,8 +7695,8 @@ public static CompletableFuture getNetblockIPRangesPl * <!--End PulumiCodeChooser --> * */ - public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args) { - return getNetblockIPRanges(args, InvokeOptions.Empty); + public static CompletableFuture getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs args) { + return getNetblockIPRangesPlain(args, InvokeOptions.Empty); } /** * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. @@ -6439,8 +7794,8 @@ public static Output getNetblockIPRanges(GetNetblockI * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs args) { - return getNetblockIPRangesPlain(args, InvokeOptions.Empty); + public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", TypeShape.of(GetNetblockIPRangesResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. @@ -6538,7 +7893,7 @@ public static CompletableFuture getNetblockIPRangesPl * <!--End PulumiCodeChooser --> * */ - public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args, InvokeOptions options) { + public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", TypeShape.of(GetNetblockIPRangesResult.class), args, Utilities.withVersion(options)); } /** @@ -6766,6 +8121,48 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai public static Output getNetwork(GetNetworkArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options)); } + /** + * Get a network within GCE from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-network = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
+     *             .name("default-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetwork(GetNetworkArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options)); + } /** * Get a network within GCE from its name. * @@ -7053,6 +8450,55 @@ public static CompletableFuture getNetworkEndpoin public static Output getNetworkEndpointGroup(GetNetworkEndpointGroupArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", TypeShape.of(GetNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to access a Network Endpoint Group's attributes. + * + * The NEG may be found by providing either a `self_link`, or a `name` and a `zone`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkEndpointGroupArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var neg1 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder()
+     *             .name("k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var neg2 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworkEndpointGroup(GetNetworkEndpointGroupArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", TypeShape.of(GetNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to access a Network Endpoint Group's attributes. * @@ -7318,6 +8764,78 @@ public static CompletableFuture getNetworkPeeringPlain( public static Output getNetworkPeering(GetNetworkPeeringArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); } + /** + * Get information of a specified compute network peering. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/networks). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.NetworkPeering;
+     * import com.pulumi.gcp.compute.NetworkPeeringArgs;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkPeeringArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("foobar")
+     *             .autoCreateSubnetworks("false")
+     *             .build());
+     * 
+     *         var other = new Network("other", NetworkArgs.builder()
+     *             .name("other")
+     *             .autoCreateSubnetworks("false")
+     *             .build());
+     * 
+     *         var peering1 = new NetworkPeering("peering1", NetworkPeeringArgs.builder()
+     *             .name("peering1")
+     *             .network(default_.selfLink())
+     *             .peerNetwork(other.selfLink())
+     *             .build());
+     * 
+     *         var peering2 = new NetworkPeering("peering2", NetworkPeeringArgs.builder()
+     *             .name("peering2")
+     *             .network(other.selfLink())
+     *             .peerNetwork(default_.selfLink())
+     *             .build());
+     * 
+     *         final var peering1Ds = ComputeFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder()
+     *             .name(peering1.name())
+     *             .network(peering1.network())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworkPeering(GetNetworkPeeringArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); + } /** * Get information of a specified compute network peering. For more information see * [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) @@ -7429,8 +8947,50 @@ public static CompletableFuture getNetworkPeeringPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getNetworks() { - return getNetworks(GetNetworksArgs.Empty, InvokeOptions.Empty); + public static Output getNetworks() { + return getNetworks(GetNetworksArgs.Empty, InvokeOptions.Empty); + } + /** + * List all networks in a specified Google Cloud project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .project("my-cloud-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getNetworksPlain() { + return getNetworksPlain(GetNetworksPlainArgs.Empty, InvokeOptions.Empty); } /** * List all networks in a specified Google Cloud project. @@ -7471,8 +9031,8 @@ public static Output getNetworks() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworksPlain() { - return getNetworksPlain(GetNetworksPlainArgs.Empty, InvokeOptions.Empty); + public static Output getNetworks(GetNetworksArgs args) { + return getNetworks(args, InvokeOptions.Empty); } /** * List all networks in a specified Google Cloud project. @@ -7513,8 +9073,8 @@ public static CompletableFuture getNetworksPlain() { * <!--End PulumiCodeChooser --> * */ - public static Output getNetworks(GetNetworksArgs args) { - return getNetworks(args, InvokeOptions.Empty); + public static CompletableFuture getNetworksPlain(GetNetworksPlainArgs args) { + return getNetworksPlain(args, InvokeOptions.Empty); } /** * List all networks in a specified Google Cloud project. @@ -7555,8 +9115,8 @@ public static Output getNetworks(GetNetworksArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworksPlain(GetNetworksPlainArgs args) { - return getNetworksPlain(args, InvokeOptions.Empty); + public static Output getNetworks(GetNetworksArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options)); } /** * List all networks in a specified Google Cloud project. @@ -7597,7 +9157,7 @@ public static CompletableFuture getNetworksPlain(GetNetworksP * <!--End PulumiCodeChooser --> * */ - public static Output getNetworks(GetNetworksArgs args, InvokeOptions options) { + public static Output getNetworks(GetNetworksArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("gcp:compute/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options)); } /** @@ -7897,6 +9457,57 @@ public static CompletableFuture getNodeTypesPlain(GetNodeTyp public static Output getNodeTypes(GetNodeTypesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getNodeTypes:getNodeTypes", TypeShape.of(GetNodeTypesResult.class), args, Utilities.withVersion(options)); } + /** + * Provides available node types for Compute Engine sole-tenant nodes in a zone + * for a given project. For more information, see [the official documentation](https://cloud.google.com/compute/docs/nodes/#types) and [API](https://cloud.google.com/compute/docs/reference/rest/v1/nodeTypes). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNodeTypesArgs;
+     * import com.pulumi.gcp.compute.NodeTemplate;
+     * import com.pulumi.gcp.compute.NodeTemplateArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var central1b = ComputeFunctions.getNodeTypes(GetNodeTypesArgs.builder()
+     *             .zone("us-central1-b")
+     *             .build());
+     * 
+     *         var tmpl = new NodeTemplate("tmpl", NodeTemplateArgs.builder()
+     *             .name("test-tmpl")
+     *             .region("us-central1")
+     *             .nodeType(types.names()[0])
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNodeTypes(GetNodeTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNodeTypes:getNodeTypes", TypeShape.of(GetNodeTypesResult.class), args, Utilities.withVersion(options)); + } /** * Provides available node types for Compute Engine sole-tenant nodes in a zone * for a given project. For more information, see [the official documentation](https://cloud.google.com/compute/docs/nodes/#types) and [API](https://cloud.google.com/compute/docs/reference/rest/v1/nodeTypes). @@ -7957,6 +9568,9 @@ public static CompletableFuture getRegio public static Output getRegionBackendServiceIamPolicy(GetRegionBackendServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", TypeShape.of(GetRegionBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getRegionBackendServiceIamPolicy(GetRegionBackendServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", TypeShape.of(GetRegionBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getRegionBackendServiceIamPolicyPlain(GetRegionBackendServiceIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/getRegionBackendServiceIamPolicy:getRegionBackendServiceIamPolicy", TypeShape.of(GetRegionBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -8140,6 +9754,66 @@ public static CompletableFuture getRegionDiskPlain(GetRegio public static Output getRegionDisk(GetRegionDiskArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getRegionDisk:getRegionDisk", TypeShape.of(GetRegionDiskResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Compute Regional Persistent disks. + * + * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionDisks). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionDiskArgs;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceAttachedDiskArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var disk = ComputeFunctions.getRegionDisk(GetRegionDiskArgs.builder()
+     *             .name("persistent-regional-disk")
+     *             .project("example")
+     *             .region("us-central1")
+     *             .type("pd-ssd")
+     *             .physicalBlockSizeBytes(4096)
+     *             .replicaZones(            
+     *                 "us-central1-a",
+     *                 "us-central1-f")
+     *             .build());
+     * 
+     *         var default_ = new Instance("default", InstanceArgs.builder()
+     *             .attachedDisks(InstanceAttachedDiskArgs.builder()
+     *                 .source(diskGoogleComputeDisk.selfLink())
+     *                 .build())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionDisk(GetRegionDiskArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionDisk:getRegionDisk", TypeShape.of(GetRegionDiskResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Compute Regional Persistent disks. * @@ -8346,7 +10020,137 @@ public static Output getRegionDiskIamPolicy(GetReg * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetRegionDiskIamPolicyArgs; + * import com.pulumi.gcp.compute.inputs.GetRegionDiskIamPolicyArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var policy = ComputeFunctions.getRegionDiskIamPolicy(GetRegionDiskIamPolicyArgs.builder() + * .project(regiondisk.project()) + * .region(regiondisk.region()) + * .name(regiondisk.name()) + * .build()); + * + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionDiskIamPolicy(GetRegionDiskIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", TypeShape.of(GetRegionDiskIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieves the current IAM policy data for regiondisk + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionDiskIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getRegionDiskIamPolicy(GetRegionDiskIamPolicyArgs.builder()
+     *             .project(regiondisk.project())
+     *             .region(regiondisk.region())
+     *             .name(regiondisk.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getRegionDiskIamPolicyPlain(GetRegionDiskIamPolicyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", TypeShape.of(GetRegionDiskIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a Compute Region Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/latest/regionInstanceGroups). + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionInstanceGroupArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var group = ComputeFunctions.getRegionInstanceGroup(GetRegionInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: + * + */ + public static Output getRegionInstanceGroup() { + return getRegionInstanceGroup(GetRegionInstanceGroupArgs.Empty, InvokeOptions.Empty); + } + /** + * Get a Compute Region Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/latest/regionInstanceGroups). + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionInstanceGroupArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -8360,10 +10164,8 @@ public static Output getRegionDiskIamPolicy(GetReg
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getRegionDiskIamPolicy(GetRegionDiskIamPolicyArgs.builder()
-     *             .project(regiondisk.project())
-     *             .region(regiondisk.region())
-     *             .name(regiondisk.name())
+     *         final var group = ComputeFunctions.getRegionInstanceGroup(GetRegionInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
      *             .build());
      * 
      *     }
@@ -8372,9 +10174,11 @@ public static Output getRegionDiskIamPolicy(GetReg
      * 
* <!--End PulumiCodeChooser --> * + * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: + * */ - public static CompletableFuture getRegionDiskIamPolicyPlain(GetRegionDiskIamPolicyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getRegionDiskIamPolicy:getRegionDiskIamPolicy", TypeShape.of(GetRegionDiskIamPolicyResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getRegionInstanceGroupPlain() { + return getRegionInstanceGroupPlain(GetRegionInstanceGroupPlainArgs.Empty, InvokeOptions.Empty); } /** * Get a Compute Region Instance Group within GCE. @@ -8416,8 +10220,8 @@ public static CompletableFuture getRegionDiskIamPo * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: * */ - public static Output getRegionInstanceGroup() { - return getRegionInstanceGroup(GetRegionInstanceGroupArgs.Empty, InvokeOptions.Empty); + public static Output getRegionInstanceGroup(GetRegionInstanceGroupArgs args) { + return getRegionInstanceGroup(args, InvokeOptions.Empty); } /** * Get a Compute Region Instance Group within GCE. @@ -8459,8 +10263,8 @@ public static Output getRegionInstanceGroup() { * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: * */ - public static CompletableFuture getRegionInstanceGroupPlain() { - return getRegionInstanceGroupPlain(GetRegionInstanceGroupPlainArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getRegionInstanceGroupPlain(GetRegionInstanceGroupPlainArgs args) { + return getRegionInstanceGroupPlain(args, InvokeOptions.Empty); } /** * Get a Compute Region Instance Group within GCE. @@ -8502,8 +10306,8 @@ public static CompletableFuture getRegionInstanceG * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: * */ - public static Output getRegionInstanceGroup(GetRegionInstanceGroupArgs args) { - return getRegionInstanceGroup(args, InvokeOptions.Empty); + public static Output getRegionInstanceGroup(GetRegionInstanceGroupArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", TypeShape.of(GetRegionInstanceGroupResult.class), args, Utilities.withVersion(options)); } /** * Get a Compute Region Instance Group within GCE. @@ -8545,8 +10349,8 @@ public static Output getRegionInstanceGroup(GetReg * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: * */ - public static CompletableFuture getRegionInstanceGroupPlain(GetRegionInstanceGroupPlainArgs args) { - return getRegionInstanceGroupPlain(args, InvokeOptions.Empty); + public static Output getRegionInstanceGroup(GetRegionInstanceGroupArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", TypeShape.of(GetRegionInstanceGroupResult.class), args, Utilities.withVersion(options)); } /** * Get a Compute Region Instance Group within GCE. @@ -8588,12 +10392,15 @@ public static CompletableFuture getRegionInstanceG * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: * */ - public static Output getRegionInstanceGroup(GetRegionInstanceGroupArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", TypeShape.of(GetRegionInstanceGroupResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getRegionInstanceGroupPlain(GetRegionInstanceGroupPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", TypeShape.of(GetRegionInstanceGroupResult.class), args, Utilities.withVersion(options)); } /** - * Get a Compute Region Instance Group within GCE. - * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/latest/regionInstanceGroups). + * Get a Compute Region Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups) + * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionInstanceGroupManagers) + * + * ## Example Usage * * <!--Start PulumiCodeChooser --> *
@@ -8604,7 +10411,7 @@ public static Output getRegionInstanceGroup(GetReg
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetRegionInstanceGroupArgs;
+     * import com.pulumi.gcp.compute.inputs.GetRegionInstanceGroupManagerArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -8618,8 +10425,9 @@ public static Output getRegionInstanceGroup(GetReg
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var group = ComputeFunctions.getRegionInstanceGroup(GetRegionInstanceGroupArgs.builder()
-     *             .name("instance-group-name")
+     *         final var rigm = ComputeFunctions.getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .region("us-central1")
      *             .build());
      * 
      *     }
@@ -8628,11 +10436,9 @@ public static Output getRegionInstanceGroup(GetReg
      * 
* <!--End PulumiCodeChooser --> * - * The most common use of this datasource will be to fetch information about the instances inside regional managed instance groups, for instance: - * */ - public static CompletableFuture getRegionInstanceGroupPlain(GetRegionInstanceGroupPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getRegionInstanceGroup:getRegionInstanceGroup", TypeShape.of(GetRegionInstanceGroupResult.class), args, Utilities.withVersion(options)); + public static Output getRegionInstanceGroupManager() { + return getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs.Empty, InvokeOptions.Empty); } /** * Get a Compute Region Instance Group Manager within GCE. @@ -8676,8 +10482,8 @@ public static CompletableFuture getRegionInstanceG * <!--End PulumiCodeChooser --> * */ - public static Output getRegionInstanceGroupManager() { - return getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getRegionInstanceGroupManagerPlain() { + return getRegionInstanceGroupManagerPlain(GetRegionInstanceGroupManagerPlainArgs.Empty, InvokeOptions.Empty); } /** * Get a Compute Region Instance Group Manager within GCE. @@ -8721,8 +10527,8 @@ public static Output getRegionInstanceGroup * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRegionInstanceGroupManagerPlain() { - return getRegionInstanceGroupManagerPlain(GetRegionInstanceGroupManagerPlainArgs.Empty, InvokeOptions.Empty); + public static Output getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs args) { + return getRegionInstanceGroupManager(args, InvokeOptions.Empty); } /** * Get a Compute Region Instance Group Manager within GCE. @@ -8766,8 +10572,8 @@ public static CompletableFuture getRegionIn * <!--End PulumiCodeChooser --> * */ - public static Output getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs args) { - return getRegionInstanceGroupManager(args, InvokeOptions.Empty); + public static CompletableFuture getRegionInstanceGroupManagerPlain(GetRegionInstanceGroupManagerPlainArgs args) { + return getRegionInstanceGroupManagerPlain(args, InvokeOptions.Empty); } /** * Get a Compute Region Instance Group Manager within GCE. @@ -8811,8 +10617,8 @@ public static Output getRegionInstanceGroup * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRegionInstanceGroupManagerPlain(GetRegionInstanceGroupManagerPlainArgs args) { - return getRegionInstanceGroupManagerPlain(args, InvokeOptions.Empty); + public static Output getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", TypeShape.of(GetRegionInstanceGroupManagerResult.class), args, Utilities.withVersion(options)); } /** * Get a Compute Region Instance Group Manager within GCE. @@ -8856,7 +10662,7 @@ public static CompletableFuture getRegionIn * <!--End PulumiCodeChooser --> * */ - public static Output getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs args, InvokeOptions options) { + public static Output getRegionInstanceGroupManager(GetRegionInstanceGroupManagerArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("gcp:compute/getRegionInstanceGroupManager:getRegionInstanceGroupManager", TypeShape.of(GetRegionInstanceGroupManagerResult.class), args, Utilities.withVersion(options)); } /** @@ -9164,6 +10970,58 @@ public static CompletableFuture getRegionInstan public static Output getRegionInstanceTemplate(GetRegionInstanceTemplateArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", TypeShape.of(GetRegionInstanceTemplateResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/regionInstanceTemplates). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionInstanceTemplateArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // by name
+     *         final var generic = ComputeFunctions.getRegionInstanceTemplate(GetRegionInstanceTemplateArgs.builder()
+     *             .name("generic-tpl-20200107")
+     *             .build());
+     * 
+     *         // using a filter
+     *         final var generic-regex = ComputeFunctions.getRegionInstanceTemplate(GetRegionInstanceTemplateArgs.builder()
+     *             .filter("name != generic-tpl-20200107")
+     *             .mostRecent(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionInstanceTemplate(GetRegionInstanceTemplateArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionInstanceTemplate:getRegionInstanceTemplate", TypeShape.of(GetRegionInstanceTemplateResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a VM instance template resource within GCE. For more information see * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) @@ -9461,6 +11319,55 @@ public static CompletableFuture getRegionNe public static Output getRegionNetworkEndpointGroup(GetRegionNetworkEndpointGroupArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", TypeShape.of(GetRegionNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to access a Region Network Endpoint Group's attributes. + * + * The RNEG may be found by providing either a `self_link`, or a `name` and a `region`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionNetworkEndpointGroupArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var rneg1 = ComputeFunctions.getRegionNetworkEndpointGroup(GetRegionNetworkEndpointGroupArgs.builder()
+     *             .name("k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .region("us-central1")
+     *             .build());
+     * 
+     *         final var rneg2 = ComputeFunctions.getRegionNetworkEndpointGroup(GetRegionNetworkEndpointGroupArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionNetworkEndpointGroup(GetRegionNetworkEndpointGroupArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionNetworkEndpointGroup:getRegionNetworkEndpointGroup", TypeShape.of(GetRegionNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to access a Region Network Endpoint Group's attributes. * @@ -9659,7 +11566,99 @@ public static Output getRegionSslCertificate(GetR * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs; + * import com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder() + * .name("my-cert") + * .build()); + * + * ctx.export("certificate", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificate())); + * ctx.export("certificateId", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificateId())); + * ctx.export("selfLink", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.selfLink())); + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionSslCertificate(GetRegionSslCertificateArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", TypeShape.of(GetRegionSslCertificateResult.class), args, Utilities.withVersion(options)); + } + /** + * Get info about a Region Google Compute SSL Certificate from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder()
+     *             .name("my-cert")
+     *             .build());
+     * 
+     *         ctx.export("certificate", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.selfLink()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getRegionSslCertificatePlain(GetRegionSslCertificatePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", TypeShape.of(GetRegionSslCertificateResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to available Google Compute regions for a given project. + * See more about [regions and zones](https://cloud.google.com/compute/docs/regions-zones/) in the upstream docs. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionsArgs;
+     * import com.pulumi.gcp.compute.Subnetwork;
+     * import com.pulumi.gcp.compute.SubnetworkArgs;
+     * import com.pulumi.codegen.internal.KeyedValue;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -9673,13 +11672,18 @@ public static Output getRegionSslCertificate(GetR
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder()
-     *             .name("my-cert")
-     *             .build());
+     *         final var available = ComputeFunctions.getRegions();
      * 
-     *         ctx.export("certificate", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificate()));
-     *         ctx.export("certificateId", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificateId()));
-     *         ctx.export("selfLink", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.selfLink()));
+     *         for (var i = 0; i < available.applyValue(getRegionsResult -> getRegionsResult.names()).length(); i++) {
+     *             new Subnetwork("cluster-" + i, SubnetworkArgs.builder()
+     *                 .name("my-network")
+     *                 .ipCidrRange(String.format("10.36.%s.0/24", range.value()))
+     *                 .network("my-network")
+     *                 .region(available.applyValue(getRegionsResult -> getRegionsResult.names())[range.value()])
+     *                 .build());
+     * 
+     *         
+     * }
      *     }
      * }
      * }
@@ -9687,8 +11691,8 @@ public static Output getRegionSslCertificate(GetR
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getRegionSslCertificatePlain(GetRegionSslCertificatePlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", TypeShape.of(GetRegionSslCertificateResult.class), args, Utilities.withVersion(options));
+    public static Output getRegions() {
+        return getRegions(GetRegionsArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * Provides access to available Google Compute regions for a given project.
@@ -9739,8 +11743,8 @@ public static CompletableFuture getRegionSslCerti
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getRegions() {
-        return getRegions(GetRegionsArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getRegionsPlain() {
+        return getRegionsPlain(GetRegionsPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
      * Provides access to available Google Compute regions for a given project.
@@ -9791,8 +11795,8 @@ public static Output getRegions() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getRegionsPlain() {
-        return getRegionsPlain(GetRegionsPlainArgs.Empty, InvokeOptions.Empty);
+    public static Output getRegions(GetRegionsArgs args) {
+        return getRegions(args, InvokeOptions.Empty);
     }
     /**
      * Provides access to available Google Compute regions for a given project.
@@ -9843,8 +11847,8 @@ public static CompletableFuture getRegionsPlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getRegions(GetRegionsArgs args) {
-        return getRegions(args, InvokeOptions.Empty);
+    public static CompletableFuture getRegionsPlain(GetRegionsPlainArgs args) {
+        return getRegionsPlain(args, InvokeOptions.Empty);
     }
     /**
      * Provides access to available Google Compute regions for a given project.
@@ -9895,8 +11899,8 @@ public static Output getRegions(GetRegionsArgs args) {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getRegionsPlain(GetRegionsPlainArgs args) {
-        return getRegionsPlain(args, InvokeOptions.Empty);
+    public static Output getRegions(GetRegionsArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options));
     }
     /**
      * Provides access to available Google Compute regions for a given project.
@@ -9947,7 +11951,7 @@ public static CompletableFuture getRegionsPlain(GetRegionsPlai
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getRegions(GetRegionsArgs args, InvokeOptions options) {
+    public static Output getRegions(GetRegionsArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("gcp:compute/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -10128,6 +12132,48 @@ public static CompletableFuture getReservationPlain(GetRes
     public static Output getReservation(GetReservationArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("gcp:compute/getReservation:getReservation", TypeShape.of(GetReservationResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * Provides access to available Google Compute Reservation Resources for a given project.
+     * See more about [Reservations of Compute Engine resources](https://cloud.google.com/compute/docs/instances/reservations-overview) in the upstream docs.
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetReservationArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var reservation = ComputeFunctions.getReservation(GetReservationArgs.builder()
+     *             .name("gce-reservation")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getReservation(GetReservationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getReservation:getReservation", TypeShape.of(GetReservationResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available Google Compute Reservation Resources for a given project. * See more about [Reservations of Compute Engine resources](https://cloud.google.com/compute/docs/instances/reservations-overview) in the upstream docs. @@ -10293,6 +12339,47 @@ public static CompletableFuture getResourcePolicyPlain( public static Output getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getResourcePolicy:getResourcePolicy", TypeShape.of(GetResourcePolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Provide access to a Resource Policy's attributes. For more information see [the official documentation](https://cloud.google.com/compute/docs/disks/scheduled-snapshots) or the [API](https://cloud.google.com/compute/docs/reference/rest/beta/resourcePolicies). + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetResourcePolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var daily = ComputeFunctions.getResourcePolicy(GetResourcePolicyArgs.builder()
+     *             .name("daily")
+     *             .region("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getResourcePolicy(GetResourcePolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getResourcePolicy:getResourcePolicy", TypeShape.of(GetResourcePolicyResult.class), args, Utilities.withVersion(options)); + } /** * Provide access to a Resource Policy's attributes. For more information see [the official documentation](https://cloud.google.com/compute/docs/disks/scheduled-snapshots) or the [API](https://cloud.google.com/compute/docs/reference/rest/beta/resourcePolicies). * @@ -10460,11 +12547,148 @@ public static CompletableFuture getRouterPlain(GetRouterPlainAr * <!--End PulumiCodeChooser --> * */ - public static Output getRouter(GetRouterArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getRouter:getRouter", TypeShape.of(GetRouterResult.class), args, Utilities.withVersion(options)); + public static Output getRouter(GetRouterArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRouter:getRouter", TypeShape.of(GetRouterResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a router within GCE from its name and VPC. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRouterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-router = ComputeFunctions.getRouter(GetRouterArgs.builder()
+     *             .name("myrouter-us-east1")
+     *             .network("my-network")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRouter(GetRouterArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRouter:getRouter", TypeShape.of(GetRouterResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a router within GCE from its name and VPC. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRouterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-router = ComputeFunctions.getRouter(GetRouterArgs.builder()
+     *             .name("myrouter-us-east1")
+     *             .network("my-network")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getRouterPlain(GetRouterPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getRouter:getRouter", TypeShape.of(GetRouterResult.class), args, Utilities.withVersion(options)); + } + /** + * To get more information about Snapshot, see: + * + * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/routers) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/router/docs/) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRouterNatArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = ComputeFunctions.getRouterNat(GetRouterNatArgs.builder()
+     *             .name("my-nat")
+     *             .router("my-router")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRouterNat(GetRouterNatArgs args) { + return getRouterNat(args, InvokeOptions.Empty); } /** - * Get a router within GCE from its name and VPC. + * To get more information about Snapshot, see: + * + * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/routers) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/router/docs/) * * ## Example Usage * @@ -10477,7 +12701,7 @@ public static Output getRouter(GetRouterArgs args, InvokeOption * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetRouterArgs; + * import com.pulumi.gcp.compute.inputs.GetRouterNatArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -10491,9 +12715,9 @@ public static Output getRouter(GetRouterArgs args, InvokeOption * } * * public static void stack(Context ctx) { - * final var my-router = ComputeFunctions.getRouter(GetRouterArgs.builder() - * .name("myrouter-us-east1") - * .network("my-network") + * final var foo = ComputeFunctions.getRouterNat(GetRouterNatArgs.builder() + * .name("my-nat") + * .router("my-router") * .build()); * * } @@ -10503,8 +12727,8 @@ public static Output getRouter(GetRouterArgs args, InvokeOption * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouterPlain(GetRouterPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getRouter:getRouter", TypeShape.of(GetRouterResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getRouterNatPlain(GetRouterNatPlainArgs args) { + return getRouterNatPlain(args, InvokeOptions.Empty); } /** * To get more information about Snapshot, see: @@ -10550,8 +12774,8 @@ public static CompletableFuture getRouterPlain(GetRouterPlainAr * <!--End PulumiCodeChooser --> * */ - public static Output getRouterNat(GetRouterNatArgs args) { - return getRouterNat(args, InvokeOptions.Empty); + public static Output getRouterNat(GetRouterNatArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRouterNat:getRouterNat", TypeShape.of(GetRouterNatResult.class), args, Utilities.withVersion(options)); } /** * To get more information about Snapshot, see: @@ -10597,8 +12821,8 @@ public static Output getRouterNat(GetRouterNatArgs args) { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouterNatPlain(GetRouterNatPlainArgs args) { - return getRouterNatPlain(args, InvokeOptions.Empty); + public static Output getRouterNat(GetRouterNatArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRouterNat:getRouterNat", TypeShape.of(GetRouterNatResult.class), args, Utilities.withVersion(options)); } /** * To get more information about Snapshot, see: @@ -10644,15 +12868,16 @@ public static CompletableFuture getRouterNatPlain(GetRouterN * <!--End PulumiCodeChooser --> * */ - public static Output getRouterNat(GetRouterNatArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getRouterNat:getRouterNat", TypeShape.of(GetRouterNatResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getRouterNatPlain(GetRouterNatPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getRouterNat:getRouterNat", TypeShape.of(GetRouterNatResult.class), args, Utilities.withVersion(options)); } /** - * To get more information about Snapshot, see: + * Get a Cloud Router's status within GCE from its name and region. This data source exposes the + * routes learned by a Cloud Router via BGP peers. * - * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/routers) - * * How-to Guides - * * [Official Documentation](https://cloud.google.com/router/docs/) + * For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus). * * ## Example Usage * @@ -10665,7 +12890,7 @@ public static Output getRouterNat(GetRouterNatArgs args, Inv * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetRouterNatArgs; + * import com.pulumi.gcp.compute.inputs.GetRouterStatusArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -10679,9 +12904,8 @@ public static Output getRouterNat(GetRouterNatArgs args, Inv * } * * public static void stack(Context ctx) { - * final var foo = ComputeFunctions.getRouterNat(GetRouterNatArgs.builder() - * .name("my-nat") - * .router("my-router") + * final var my-router = ComputeFunctions.getRouterStatus(GetRouterStatusArgs.builder() + * .name("myrouter") * .build()); * * } @@ -10691,8 +12915,8 @@ public static Output getRouterNat(GetRouterNatArgs args, Inv * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouterNatPlain(GetRouterNatPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getRouterNat:getRouterNat", TypeShape.of(GetRouterNatResult.class), args, Utilities.withVersion(options)); + public static Output getRouterStatus(GetRouterStatusArgs args) { + return getRouterStatus(args, InvokeOptions.Empty); } /** * Get a Cloud Router's status within GCE from its name and region. This data source exposes the @@ -10738,8 +12962,8 @@ public static CompletableFuture getRouterNatPlain(GetRouterN * <!--End PulumiCodeChooser --> * */ - public static Output getRouterStatus(GetRouterStatusArgs args) { - return getRouterStatus(args, InvokeOptions.Empty); + public static CompletableFuture getRouterStatusPlain(GetRouterStatusPlainArgs args) { + return getRouterStatusPlain(args, InvokeOptions.Empty); } /** * Get a Cloud Router's status within GCE from its name and region. This data source exposes the @@ -10785,8 +13009,8 @@ public static Output getRouterStatus(GetRouterStatusArgs * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getRouterStatusPlain(GetRouterStatusPlainArgs args) { - return getRouterStatusPlain(args, InvokeOptions.Empty); + public static Output getRouterStatus(GetRouterStatusArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRouterStatus:getRouterStatus", TypeShape.of(GetRouterStatusResult.class), args, Utilities.withVersion(options)); } /** * Get a Cloud Router's status within GCE from its name and region. This data source exposes the @@ -10832,7 +13056,7 @@ public static CompletableFuture getRouterStatusPlain(GetR * <!--End PulumiCodeChooser --> * */ - public static Output getRouterStatus(GetRouterStatusArgs args, InvokeOptions options) { + public static Output getRouterStatus(GetRouterStatusArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("gcp:compute/getRouterStatus:getRouterStatus", TypeShape.of(GetRouterStatusResult.class), args, Utilities.withVersion(options)); } /** @@ -11011,6 +13235,49 @@ public static CompletableFuture getSSLPolicyPlain(GetSSLPoli public static Output getSSLPolicy(GetSSLPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getSSLPolicy:getSSLPolicy", TypeShape.of(GetSSLPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Gets an SSL Policy within GCE from its name, for use with Target HTTPS and Target SSL Proxies. + * For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSSLPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-ssl-policy = ComputeFunctions.getSSLPolicy(GetSSLPolicyArgs.builder()
+     *             .name("production-ssl-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSSLPolicy(GetSSLPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getSSLPolicy:getSSLPolicy", TypeShape.of(GetSSLPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Gets an SSL Policy within GCE from its name, for use with Target HTTPS and Target SSL Proxies. * For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies). @@ -11309,6 +13576,57 @@ public static CompletableFuture getSecurityPolicyPlain( public static Output getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getSecurityPolicy:getSecurityPolicy", TypeShape.of(GetSecurityPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * To get more information about Google Compute Security Policy, see: + * + * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/securityPolicies) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/armor/docs/configure-security-policies) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSecurityPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sp1 = ComputeFunctions.getSecurityPolicy(GetSecurityPolicyArgs.builder()
+     *             .name("my-policy")
+     *             .project("my-project")
+     *             .build());
+     * 
+     *         final var sp2 = ComputeFunctions.getSecurityPolicy(GetSecurityPolicyArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecurityPolicy(GetSecurityPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getSecurityPolicy:getSecurityPolicy", TypeShape.of(GetSecurityPolicyResult.class), args, Utilities.withVersion(options)); + } /** * To get more information about Google Compute Security Policy, see: * @@ -11643,7 +13961,109 @@ public static Output getSnapshot(GetSnapshotArgs args, Invoke * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetSnapshotArgs; + * import com.pulumi.gcp.compute.inputs.GetSnapshotArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * //by name + * final var snapshot = ComputeFunctions.getSnapshot(GetSnapshotArgs.builder() + * .name("my-snapshot") + * .build()); + * + * // using a filter + * final var latest-snapshot = ComputeFunctions.getSnapshot(GetSnapshotArgs.builder() + * .filter("name != my-snapshot") + * .mostRecent(true) + * .build()); + * + * } + * } + * } + *
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSnapshot(GetSnapshotArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getSnapshot:getSnapshot", TypeShape.of(GetSnapshotResult.class), args, Utilities.withVersion(options)); + } + /** + * To get more information about Snapshot, see: + * + * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/snapshots) + * * How-to Guides + * * [Official Documentation](https://cloud.google.com/compute/docs/disks/create-snapshots) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSnapshotArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         //by name 
+     *         final var snapshot = ComputeFunctions.getSnapshot(GetSnapshotArgs.builder()
+     *             .name("my-snapshot")
+     *             .build());
+     * 
+     *         // using a filter
+     *         final var latest-snapshot = ComputeFunctions.getSnapshot(GetSnapshotArgs.builder()
+     *             .filter("name != my-snapshot")
+     *             .mostRecent(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getSnapshotPlain(GetSnapshotPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getSnapshot:getSnapshot", TypeShape.of(GetSnapshotResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieves the current IAM policy data for snapshot + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSnapshotIamPolicyArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -11657,15 +14077,9 @@ public static Output getSnapshot(GetSnapshotArgs args, Invoke
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         //by name 
-     *         final var snapshot = ComputeFunctions.getSnapshot(GetSnapshotArgs.builder()
-     *             .name("my-snapshot")
-     *             .build());
-     * 
-     *         // using a filter
-     *         final var latest-snapshot = ComputeFunctions.getSnapshot(GetSnapshotArgs.builder()
-     *             .filter("name != my-snapshot")
-     *             .mostRecent(true)
+     *         final var policy = ComputeFunctions.getSnapshotIamPolicy(GetSnapshotIamPolicyArgs.builder()
+     *             .project(snapshot.project())
+     *             .name(snapshot.name())
      *             .build());
      * 
      *     }
@@ -11675,8 +14089,8 @@ public static Output getSnapshot(GetSnapshotArgs args, Invoke
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getSnapshotPlain(GetSnapshotPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getSnapshot:getSnapshot", TypeShape.of(GetSnapshotResult.class), args, Utilities.withVersion(options));
+    public static Output getSnapshotIamPolicy(GetSnapshotIamPolicyArgs args) {
+        return getSnapshotIamPolicy(args, InvokeOptions.Empty);
     }
     /**
      * Retrieves the current IAM policy data for snapshot
@@ -11718,8 +14132,8 @@ public static CompletableFuture getSnapshotPlain(GetSnapshotP
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getSnapshotIamPolicy(GetSnapshotIamPolicyArgs args) {
-        return getSnapshotIamPolicy(args, InvokeOptions.Empty);
+    public static CompletableFuture getSnapshotIamPolicyPlain(GetSnapshotIamPolicyPlainArgs args) {
+        return getSnapshotIamPolicyPlain(args, InvokeOptions.Empty);
     }
     /**
      * Retrieves the current IAM policy data for snapshot
@@ -11761,8 +14175,8 @@ public static Output getSnapshotIamPolicy(GetSnapsho
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getSnapshotIamPolicyPlain(GetSnapshotIamPolicyPlainArgs args) {
-        return getSnapshotIamPolicyPlain(args, InvokeOptions.Empty);
+    public static Output getSnapshotIamPolicy(GetSnapshotIamPolicyArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", TypeShape.of(GetSnapshotIamPolicyResult.class), args, Utilities.withVersion(options));
     }
     /**
      * Retrieves the current IAM policy data for snapshot
@@ -11804,7 +14218,7 @@ public static CompletableFuture getSnapshotIamPolicy
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getSnapshotIamPolicy(GetSnapshotIamPolicyArgs args, InvokeOptions options) {
+    public static Output getSnapshotIamPolicy(GetSnapshotIamPolicyArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("gcp:compute/getSnapshotIamPolicy:getSnapshotIamPolicy", TypeShape.of(GetSnapshotIamPolicyResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -12065,6 +14479,49 @@ public static CompletableFuture getSubnetworkPlain(GetSubne
     public static Output getSubnetwork(GetSubnetworkArgs args, InvokeOptions options) {
         return Deployment.getInstance().invoke("gcp:compute/getSubnetwork:getSubnetwork", TypeShape.of(GetSubnetworkResult.class), args, Utilities.withVersion(options));
     }
+    /**
+     * Get a subnetwork within GCE from its name and region.
+     * 
+     * ## Example Usage
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSubnetworkArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-subnetwork = ComputeFunctions.getSubnetwork(GetSubnetworkArgs.builder()
+     *             .name("default-us-east1")
+     *             .region("us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubnetwork(GetSubnetworkArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getSubnetwork:getSubnetwork", TypeShape.of(GetSubnetworkResult.class), args, Utilities.withVersion(options)); + } /** * Get a subnetwork within GCE from its name and region. * @@ -12240,6 +14697,50 @@ public static CompletableFuture getSubnetworkIamPo public static Output getSubnetworkIamPolicy(GetSubnetworkIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", TypeShape.of(GetSubnetworkIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for subnetwork + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSubnetworkIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getSubnetworkIamPolicy(GetSubnetworkIamPolicyArgs.builder()
+     *             .project(network_with_private_secondary_ip_ranges.project())
+     *             .region(network_with_private_secondary_ip_ranges.region())
+     *             .subnetwork(network_with_private_secondary_ip_ranges.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubnetworkIamPolicy(GetSubnetworkIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getSubnetworkIamPolicy:getSubnetworkIamPolicy", TypeShape.of(GetSubnetworkIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for subnetwork * @@ -12514,6 +15015,52 @@ public static CompletableFuture getSubnetworksPlain(GetSub public static Output getSubnetworks(GetSubnetworksArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getSubnetworks:getSubnetworks", TypeShape.of(GetSubnetworksResult.class), args, Utilities.withVersion(options)); } + /** + * Get subnetworks within GCE. + * See [the official documentation](https://cloud.google.com/vpc/docs/subnets) + * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks/list). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSubnetworksArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-subnetworks = ComputeFunctions.getSubnetworks(GetSubnetworksArgs.builder()
+     *             .filter("ipCidrRange eq 192.168.178.0/24")
+     *             .project("my-project")
+     *             .region("us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubnetworks(GetSubnetworksArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getSubnetworks:getSubnetworks", TypeShape.of(GetSubnetworksResult.class), args, Utilities.withVersion(options)); + } /** * Get subnetworks within GCE. * See [the official documentation](https://cloud.google.com/vpc/docs/subnets) @@ -12686,6 +15233,48 @@ public static CompletableFuture getVPNGatewayPlain(GetVPNGa public static Output getVPNGateway(GetVPNGatewayArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getVPNGateway:getVPNGateway", TypeShape.of(GetVPNGatewayResult.class), args, Utilities.withVersion(options)); } + /** + * Get a VPN gateway within GCE from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetVPNGatewayArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-vpn-gateway = ComputeFunctions.getVPNGateway(GetVPNGatewayArgs.builder()
+     *             .name("vpn-gateway-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVPNGateway(GetVPNGatewayArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getVPNGateway:getVPNGateway", TypeShape.of(GetVPNGatewayResult.class), args, Utilities.withVersion(options)); + } /** * Get a VPN gateway within GCE from its name. * @@ -12768,6 +15357,14 @@ public static CompletableFuture getZonesPlain(GetZonesPlainArgs public static Output getZones(GetZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to available Google Compute zones in a region for a given project. + * See more about [regions and zones](https://cloud.google.com/compute/docs/regions-zones/regions-zones) in the upstream docs. + * + */ + public static Output getZones(GetZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available Google Compute zones in a region for a given project. * See more about [regions and zones](https://cloud.google.com/compute/docs/regions-zones/regions-zones) in the upstream docs. @@ -12977,6 +15574,57 @@ public static Output routerStatus(RouterStatusArgs args, Inv * */ @Deprecated /* gcp.compute.RouterStatus has been deprecated in favor of gcp.compute.getRouterStatus */ + public static Output routerStatus(RouterStatusArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:compute/routerStatus:RouterStatus", TypeShape.of(RouterStatusResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a Cloud Router's status within GCE from its name and region. This data source exposes the + * routes learned by a Cloud Router via BGP peers. + * + * For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRouterStatusArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-router = ComputeFunctions.getRouterStatus(GetRouterStatusArgs.builder()
+     *             .name("myrouter")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * @deprecated + * gcp.compute.RouterStatus has been deprecated in favor of gcp.compute.getRouterStatus + * + */ + @Deprecated /* gcp.compute.RouterStatus has been deprecated in favor of gcp.compute.getRouterStatus */ public static CompletableFuture routerStatusPlain(RouterStatusPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/routerStatus:RouterStatus", TypeShape.of(RouterStatusResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java index a1629f63b2..1e4bc00552 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.container.inputs.GetAttachedInstallManifestArgs; import com.pulumi.gcp.container.inputs.GetAttachedInstallManifestPlainArgs; @@ -173,6 +174,52 @@ public static CompletableFuture getAttachedIns public static Output getAttachedInstallManifest(GetAttachedInstallManifestArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", TypeShape.of(GetAttachedInstallManifestResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to available platform versions in a location for a given project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetAttachedInstallManifestArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var manifest = ContainerFunctions.getAttachedInstallManifest(GetAttachedInstallManifestArgs.builder()
+     *             .location("us-west1")
+     *             .project("my-project")
+     *             .clusterId("test-cluster-1")
+     *             .platformVersion("1.25.0-gke.1")
+     *             .build());
+     * 
+     *         ctx.export("installManifest", manifest.applyValue(getAttachedInstallManifestResult -> getAttachedInstallManifestResult));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAttachedInstallManifest(GetAttachedInstallManifestArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getAttachedInstallManifest:getAttachedInstallManifest", TypeShape.of(GetAttachedInstallManifestResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available platform versions in a location for a given project. * @@ -351,6 +398,50 @@ public static CompletableFuture getAttachedVersionsPl public static Output getAttachedVersions(GetAttachedVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getAttachedVersions:getAttachedVersions", TypeShape.of(GetAttachedVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to available platform versions in a location for a given project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetAttachedVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var uswest = ContainerFunctions.getAttachedVersions(GetAttachedVersionsArgs.builder()
+     *             .location("us-west1")
+     *             .project("my-project")
+     *             .build());
+     * 
+     *         ctx.export("firstAvailableVersion", versions.validVersions()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAttachedVersions(GetAttachedVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getAttachedVersions:getAttachedVersions", TypeShape.of(GetAttachedVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available platform versions in a location for a given project. * @@ -615,6 +706,50 @@ public static CompletableFuture getAwsVersionsPlain(GetAws public static Output getAwsVersions(GetAwsVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getAwsVersions:getAwsVersions", TypeShape.of(GetAwsVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to available Kubernetes versions in a location for a given project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetAwsVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var central1b = ContainerFunctions.getAwsVersions(GetAwsVersionsArgs.builder()
+     *             .location("us-west1")
+     *             .project("my-project")
+     *             .build());
+     * 
+     *         ctx.export("firstAvailableVersion", versions.validVersions()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAwsVersions(GetAwsVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getAwsVersions:getAwsVersions", TypeShape.of(GetAwsVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available Kubernetes versions in a location for a given project. * @@ -879,6 +1014,50 @@ public static CompletableFuture getAzureVersionsPlain(Ge public static Output getAzureVersions(GetAzureVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getAzureVersions:getAzureVersions", TypeShape.of(GetAzureVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to available Kubernetes versions in a location for a given project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetAzureVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var central1b = ContainerFunctions.getAzureVersions(GetAzureVersionsArgs.builder()
+     *             .location("us-west1")
+     *             .project("my-project")
+     *             .build());
+     * 
+     *         ctx.export("firstAvailableVersion", versions.validVersions()[0]);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAzureVersions(GetAzureVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getAzureVersions:getAzureVersions", TypeShape.of(GetAzureVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available Kubernetes versions in a location for a given project. * @@ -1064,6 +1243,53 @@ public static CompletableFuture getClusterPlain(GetClusterPlai public static Output getCluster(GetClusterArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getCluster:getCluster", TypeShape.of(GetClusterResult.class), args, Utilities.withVersion(options)); } + /** + * Get info about a GKE cluster from its name and location. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .location("us-east1-a")
+     *             .build());
+     * 
+     *         ctx.export("endpoint", myCluster.applyValue(getClusterResult -> getClusterResult.endpoint()));
+     *         ctx.export("instanceGroupUrls", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()[0].instanceGroupUrls()));
+     *         ctx.export("nodeConfig", myCluster.applyValue(getClusterResult -> getClusterResult.nodeConfigs()));
+     *         ctx.export("nodePools", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCluster(GetClusterArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getCluster:getCluster", TypeShape.of(GetClusterResult.class), args, Utilities.withVersion(options)); + } /** * Get info about a GKE cluster from its name and location. * @@ -1426,6 +1652,69 @@ public static CompletableFuture getEngineVersionsPlain( public static Output getEngineVersions(GetEngineVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getEngineVersions:getEngineVersions", TypeShape.of(GetEngineVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to available Google Kubernetes Engine versions in a zone or region for a given project. + * + * To get more information about GKE versions, see: + * * [The API reference](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations/getServerConfig) + * + * > If you are using the `gcp.container.getEngineVersions` datasource with a + * regional cluster, ensure that you have provided a region as the `location` to + * the datasource. A region can have a different set of supported versions than + * its component zones, and not all zones in a region are guaranteed to + * support the same version. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetEngineVersionsArgs;
+     * import com.pulumi.gcp.container.Cluster;
+     * import com.pulumi.gcp.container.ClusterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var central1b = ContainerFunctions.getEngineVersions(GetEngineVersionsArgs.builder()
+     *             .location("us-central1-b")
+     *             .versionPrefix("1.12.")
+     *             .build());
+     * 
+     *         var foo = new Cluster("foo", ClusterArgs.builder()
+     *             .name("test-cluster")
+     *             .location("us-central1-b")
+     *             .nodeVersion(central1b.applyValue(getEngineVersionsResult -> getEngineVersionsResult.latestNodeVersion()))
+     *             .initialNodeCount(1)
+     *             .build());
+     * 
+     *         ctx.export("stableChannelDefaultVersion", central1b.applyValue(getEngineVersionsResult -> getEngineVersionsResult.releaseChannelDefaultVersion().STABLE()));
+     *         ctx.export("stableChannelLatestVersion", central1b.applyValue(getEngineVersionsResult -> getEngineVersionsResult.releaseChannelLatestVersion().STABLE()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEngineVersions(GetEngineVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getEngineVersions:getEngineVersions", TypeShape.of(GetEngineVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to available Google Kubernetes Engine versions in a zone or region for a given project. * @@ -1624,6 +1913,51 @@ public static CompletableFuture getRegistryImagePlain(Ge public static Output getRegistryImage(GetRegistryImageArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getRegistryImage:getRegistryImage", TypeShape.of(GetRegistryImageResult.class), args, Utilities.withVersion(options)); } + /** + * This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. + * + * The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetRegistryImageArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var debian = ContainerFunctions.getRegistryImage(GetRegistryImageArgs.builder()
+     *             .name("debian")
+     *             .build());
+     * 
+     *         ctx.export("gcrLocation", debian.applyValue(getRegistryImageResult -> getRegistryImageResult.imageUrl()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegistryImage(GetRegistryImageArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getRegistryImage:getRegistryImage", TypeShape.of(GetRegistryImageResult.class), args, Utilities.withVersion(options)); + } /** * This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. * @@ -1884,6 +2218,49 @@ public static CompletableFuture getRegistryReposito public static Output getRegistryRepository(GetRegistryRepositoryArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getRegistryRepository:getRegistryRepository", TypeShape.of(GetRegistryRepositoryResult.class), args, Utilities.withVersion(options)); } + /** + * This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. + * + * The URLs are computed entirely offline - as long as the project exists, they will be valid, but this data source does not contact Google Container Registry (GCR) at any point. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetRegistryRepositoryArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = ContainerFunctions.getRegistryRepository();
+     * 
+     *         ctx.export("gcrLocation", foo.applyValue(getRegistryRepositoryResult -> getRegistryRepositoryResult.repositoryUrl()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegistryRepository(GetRegistryRepositoryArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:container/getRegistryRepository:getRegistryRepository", TypeShape.of(GetRegistryRepositoryResult.class), args, Utilities.withVersion(options)); + } /** * This data source fetches the project name, and provides the appropriate URLs to use for container registry for this project. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/containeranalysis/ContaineranalysisFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/containeranalysis/ContaineranalysisFunctions.java index 3998ac1612..636d1a24ab 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/containeranalysis/ContaineranalysisFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/containeranalysis/ContaineranalysisFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.containeranalysis.inputs.GetNoteIamPolicyArgs; import com.pulumi.gcp.containeranalysis.inputs.GetNoteIamPolicyPlainArgs; @@ -143,6 +144,49 @@ public static CompletableFuture getNoteIamPolicyPlain(Ge public static Output getNoteIamPolicy(GetNoteIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", TypeShape.of(GetNoteIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for note + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.containeranalysis.ContaineranalysisFunctions;
+     * import com.pulumi.gcp.containeranalysis.inputs.GetNoteIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ContaineranalysisFunctions.getNoteIamPolicy(GetNoteIamPolicyArgs.builder()
+     *             .project(note.project())
+     *             .note(note.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNoteIamPolicy(GetNoteIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", TypeShape.of(GetNoteIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for note * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/datacatalog/DatacatalogFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/datacatalog/DatacatalogFunctions.java index 9495f434ba..f4781c6f97 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/datacatalog/DatacatalogFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/datacatalog/DatacatalogFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.datacatalog.inputs.GetEntryGroupIamPolicyArgs; import com.pulumi.gcp.datacatalog.inputs.GetEntryGroupIamPolicyPlainArgs; @@ -149,6 +150,48 @@ public static CompletableFuture getEntryGroupIamPo public static Output getEntryGroupIamPolicy(GetEntryGroupIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", TypeShape.of(GetEntryGroupIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for entrygroup + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.datacatalog.DatacatalogFunctions;
+     * import com.pulumi.gcp.datacatalog.inputs.GetEntryGroupIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DatacatalogFunctions.getEntryGroupIamPolicy(GetEntryGroupIamPolicyArgs.builder()
+     *             .entryGroup(basicEntryGroup.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEntryGroupIamPolicy(GetEntryGroupIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:datacatalog/getEntryGroupIamPolicy:getEntryGroupIamPolicy", TypeShape.of(GetEntryGroupIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for entrygroup * @@ -317,6 +360,48 @@ public static CompletableFuture getPolicyTagIamPoli public static Output getPolicyTagIamPolicy(GetPolicyTagIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", TypeShape.of(GetPolicyTagIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for policytag + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.datacatalog.DatacatalogFunctions;
+     * import com.pulumi.gcp.datacatalog.inputs.GetPolicyTagIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DatacatalogFunctions.getPolicyTagIamPolicy(GetPolicyTagIamPolicyArgs.builder()
+     *             .policyTag(basicPolicyTag.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPolicyTagIamPolicy(GetPolicyTagIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:datacatalog/getPolicyTagIamPolicy:getPolicyTagIamPolicy", TypeShape.of(GetPolicyTagIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for policytag * @@ -485,6 +570,48 @@ public static CompletableFuture getTagTemplateIam public static Output getTagTemplateIamPolicy(GetTagTemplateIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", TypeShape.of(GetTagTemplateIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for tagtemplate + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.datacatalog.DatacatalogFunctions;
+     * import com.pulumi.gcp.datacatalog.inputs.GetTagTemplateIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DatacatalogFunctions.getTagTemplateIamPolicy(GetTagTemplateIamPolicyArgs.builder()
+     *             .tagTemplate(basicTagTemplate.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagTemplateIamPolicy(GetTagTemplateIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:datacatalog/getTagTemplateIamPolicy:getTagTemplateIamPolicy", TypeShape.of(GetTagTemplateIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for tagtemplate * @@ -653,6 +780,48 @@ public static CompletableFuture getTaxonomyIamPolicy public static Output getTaxonomyIamPolicy(GetTaxonomyIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", TypeShape.of(GetTaxonomyIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for taxonomy + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.datacatalog.DatacatalogFunctions;
+     * import com.pulumi.gcp.datacatalog.inputs.GetTaxonomyIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DatacatalogFunctions.getTaxonomyIamPolicy(GetTaxonomyIamPolicyArgs.builder()
+     *             .taxonomy(basicTaxonomy.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTaxonomyIamPolicy(GetTaxonomyIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:datacatalog/getTaxonomyIamPolicy:getTaxonomyIamPolicy", TypeShape.of(GetTaxonomyIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for taxonomy * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/dataform/DataformFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/dataform/DataformFunctions.java index ae40ba5295..b5d62e84fd 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/dataform/DataformFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/dataform/DataformFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.dataform.inputs.GetRepositoryIamPolicyArgs; import com.pulumi.gcp.dataform.inputs.GetRepositoryIamPolicyPlainArgs; @@ -23,6 +24,9 @@ public static CompletableFuture getRepositoryIamPo public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getRepositoryIamPolicyPlain(GetRepositoryIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:dataform/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/datafusion/DatafusionFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/datafusion/DatafusionFunctions.java index 509e66c7c2..ada0b02a0c 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/datafusion/DatafusionFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/datafusion/DatafusionFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.datafusion.inputs.GetInstanceIamPolicyArgs; import com.pulumi.gcp.datafusion.inputs.GetInstanceIamPolicyPlainArgs; @@ -146,6 +147,50 @@ public static CompletableFuture getInstanceIamPolicy public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.datafusion.DatafusionFunctions;
+     * import com.pulumi.gcp.datafusion.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DatafusionFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(basicInstance.project())
+     *             .region(basicInstance.region())
+     *             .name(basicInstance.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:datafusion/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for instance * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/dataplex/DataplexFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/dataplex/DataplexFunctions.java index 8cb9bc5a95..aa98b0939e 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/dataplex/DataplexFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/dataplex/DataplexFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.dataplex.inputs.GetAspectTypeIamPolicyArgs; import com.pulumi.gcp.dataplex.inputs.GetAspectTypeIamPolicyPlainArgs; @@ -167,6 +168,50 @@ public static CompletableFuture getAspectTypeIamPo public static Output getAspectTypeIamPolicy(GetAspectTypeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", TypeShape.of(GetAspectTypeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for aspecttype + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetAspectTypeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getAspectTypeIamPolicy(GetAspectTypeIamPolicyArgs.builder()
+     *             .project(testAspectTypeBasic.project())
+     *             .location(testAspectTypeBasic.location())
+     *             .aspectTypeId(testAspectTypeBasic.aspectTypeId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAspectTypeIamPolicy(GetAspectTypeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getAspectTypeIamPolicy:getAspectTypeIamPolicy", TypeShape.of(GetAspectTypeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for aspecttype * @@ -349,6 +394,52 @@ public static CompletableFuture getAssetIamPolicyPlain( public static Output getAssetIamPolicy(GetAssetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", TypeShape.of(GetAssetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for asset + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetAssetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getAssetIamPolicy(GetAssetIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .location(example.location())
+     *             .lake(example.lake())
+     *             .dataplexZone(example.dataplexZone())
+     *             .asset(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAssetIamPolicy(GetAssetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getAssetIamPolicy:getAssetIamPolicy", TypeShape.of(GetAssetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for asset * @@ -527,6 +618,50 @@ public static CompletableFuture getDatascanIamPolicy public static Output getDatascanIamPolicy(GetDatascanIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", TypeShape.of(GetDatascanIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for datascan + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetDatascanIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getDatascanIamPolicy(GetDatascanIamPolicyArgs.builder()
+     *             .project(basicProfile.project())
+     *             .location(basicProfile.location())
+     *             .dataScanId(basicProfile.dataScanId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatascanIamPolicy(GetDatascanIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getDatascanIamPolicy:getDatascanIamPolicy", TypeShape.of(GetDatascanIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for datascan * @@ -703,6 +838,50 @@ public static CompletableFuture getEntryGroupIamPo public static Output getEntryGroupIamPolicy(GetEntryGroupIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", TypeShape.of(GetEntryGroupIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for entrygroup + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetEntryGroupIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getEntryGroupIamPolicy(GetEntryGroupIamPolicyArgs.builder()
+     *             .project(testEntryGroupBasic.project())
+     *             .location(testEntryGroupBasic.location())
+     *             .entryGroupId(testEntryGroupBasic.entryGroupId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEntryGroupIamPolicy(GetEntryGroupIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getEntryGroupIamPolicy:getEntryGroupIamPolicy", TypeShape.of(GetEntryGroupIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for entrygroup * @@ -879,6 +1058,50 @@ public static CompletableFuture getEntryTypeIamPoli public static Output getEntryTypeIamPolicy(GetEntryTypeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", TypeShape.of(GetEntryTypeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for entrytype + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetEntryTypeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getEntryTypeIamPolicy(GetEntryTypeIamPolicyArgs.builder()
+     *             .project(testEntryTypeBasic.project())
+     *             .location(testEntryTypeBasic.location())
+     *             .entryTypeId(testEntryTypeBasic.entryTypeId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEntryTypeIamPolicy(GetEntryTypeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getEntryTypeIamPolicy:getEntryTypeIamPolicy", TypeShape.of(GetEntryTypeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for entrytype * @@ -1055,6 +1278,50 @@ public static CompletableFuture getLakeIamPolicyPlain(Ge public static Output getLakeIamPolicy(GetLakeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", TypeShape.of(GetLakeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for lake + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetLakeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getLakeIamPolicy(GetLakeIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .location(example.location())
+     *             .lake(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLakeIamPolicy(GetLakeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getLakeIamPolicy:getLakeIamPolicy", TypeShape.of(GetLakeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for lake * @@ -1234,6 +1501,51 @@ public static CompletableFuture getTaskIamPolicyPlain(Ge public static Output getTaskIamPolicy(GetTaskIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", TypeShape.of(GetTaskIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for task + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetTaskIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getTaskIamPolicy(GetTaskIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .location(example.location())
+     *             .lake(example.lake())
+     *             .taskId(example.taskId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTaskIamPolicy(GetTaskIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getTaskIamPolicy:getTaskIamPolicy", TypeShape.of(GetTaskIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for task * @@ -1414,6 +1726,51 @@ public static CompletableFuture getZoneIamPolicyPlain(Ge public static Output getZoneIamPolicy(GetZoneIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", TypeShape.of(GetZoneIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for zone + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataplex.DataplexFunctions;
+     * import com.pulumi.gcp.dataplex.inputs.GetZoneIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataplexFunctions.getZoneIamPolicy(GetZoneIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .location(example.location())
+     *             .lake(example.lake())
+     *             .dataplexZone(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getZoneIamPolicy(GetZoneIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataplex/getZoneIamPolicy:getZoneIamPolicy", TypeShape.of(GetZoneIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for zone * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java index da6bc3473e..61417cdf6b 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.dataproc.inputs.GetAutoscalingPolicyIamPolicyArgs; import com.pulumi.gcp.dataproc.inputs.GetAutoscalingPolicyIamPolicyPlainArgs; @@ -161,6 +162,50 @@ public static CompletableFuture getAutoscal public static Output getAutoscalingPolicyIamPolicy(GetAutoscalingPolicyIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", TypeShape.of(GetAutoscalingPolicyIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for autoscalingpolicy + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetAutoscalingPolicyIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataprocFunctions.getAutoscalingPolicyIamPolicy(GetAutoscalingPolicyIamPolicyArgs.builder()
+     *             .project(basic.project())
+     *             .location(basic.location())
+     *             .policyId(basic.policyId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAutoscalingPolicyIamPolicy(GetAutoscalingPolicyIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataproc/getAutoscalingPolicyIamPolicy:getAutoscalingPolicyIamPolicy", TypeShape.of(GetAutoscalingPolicyIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for autoscalingpolicy * @@ -334,6 +379,49 @@ public static CompletableFuture getClusterIamPolicyPl public static Output getClusterIamPolicy(GetClusterIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", TypeShape.of(GetClusterIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Dataproc cluster. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetClusterIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataprocFunctions.getClusterIamPolicy(GetClusterIamPolicyArgs.builder()
+     *             .cluster(cluster.name())
+     *             .region("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusterIamPolicy(GetClusterIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataproc/getClusterIamPolicy:getClusterIamPolicy", TypeShape.of(GetClusterIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Dataproc cluster. * @@ -506,6 +594,49 @@ public static CompletableFuture getJobIamPolicyPlain(GetJ public static Output getJobIamPolicy(GetJobIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", TypeShape.of(GetJobIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Dataproc job. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetJobIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataprocFunctions.getJobIamPolicy(GetJobIamPolicyArgs.builder()
+     *             .jobId(pyspark.reference()[0].jobId())
+     *             .region("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getJobIamPolicy(GetJobIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataproc/getJobIamPolicy:getJobIamPolicy", TypeShape.of(GetJobIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Dataproc job. * @@ -681,6 +812,50 @@ public static CompletableFuture getMetast public static Output getMetastoreFederationIamPolicy(GetMetastoreFederationIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", TypeShape.of(GetMetastoreFederationIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for federation + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetMetastoreFederationIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataprocFunctions.getMetastoreFederationIamPolicy(GetMetastoreFederationIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .federationId(default_.federationId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMetastoreFederationIamPolicy(GetMetastoreFederationIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataproc/getMetastoreFederationIamPolicy:getMetastoreFederationIamPolicy", TypeShape.of(GetMetastoreFederationIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for federation * @@ -854,6 +1029,49 @@ public static CompletableFuture getMetastoreServicePl public static Output getMetastoreService(GetMetastoreServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataproc/getMetastoreService:getMetastoreService", TypeShape.of(GetMetastoreServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Get a Dataproc Metastore service from Google Cloud by its id and location. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = DataprocFunctions.getMetastoreService(GetMetastoreServiceArgs.builder()
+     *             .serviceId("foo-bar")
+     *             .location("global")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMetastoreService(GetMetastoreServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataproc/getMetastoreService:getMetastoreService", TypeShape.of(GetMetastoreServiceResult.class), args, Utilities.withVersion(options)); + } /** * Get a Dataproc Metastore service from Google Cloud by its id and location. * @@ -1029,6 +1247,50 @@ public static CompletableFuture getMetastore public static Output getMetastoreServiceIamPolicy(GetMetastoreServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", TypeShape.of(GetMetastoreServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for service + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DataprocFunctions.getMetastoreServiceIamPolicy(GetMetastoreServiceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .serviceId(default_.serviceId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMetastoreServiceIamPolicy(GetMetastoreServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dataproc/getMetastoreServiceIamPolicy:getMetastoreServiceIamPolicy", TypeShape.of(GetMetastoreServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for service * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/datastream/DatastreamFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/datastream/DatastreamFunctions.java index 08cd661bf7..13f9d075ac 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/datastream/DatastreamFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/datastream/DatastreamFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.datastream.inputs.GetStaticIpsArgs; import com.pulumi.gcp.datastream.inputs.GetStaticIpsPlainArgs; @@ -149,6 +150,51 @@ public static CompletableFuture getStaticIpsPlain(GetStaticI public static Output getStaticIps(GetStaticIpsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:datastream/getStaticIps:getStaticIps", TypeShape.of(GetStaticIpsResult.class), args, Utilities.withVersion(options)); } + /** + * Returns the list of IP addresses that Datastream connects from. For more information see + * the [official documentation](https://cloud.google.com/datastream/docs/ip-allowlists-and-regions). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.datastream.DatastreamFunctions;
+     * import com.pulumi.gcp.datastream.inputs.GetStaticIpsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var datastreamIps = DatastreamFunctions.getStaticIps(GetStaticIpsArgs.builder()
+     *             .location("us-west1")
+     *             .project("my-project")
+     *             .build());
+     * 
+     *         ctx.export("ipList", datastreamIps.applyValue(getStaticIpsResult -> getStaticIpsResult.staticIps()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getStaticIps(GetStaticIpsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:datastream/getStaticIps:getStaticIps", TypeShape.of(GetStaticIpsResult.class), args, Utilities.withVersion(options)); + } /** * Returns the list of IP addresses that Datastream connects from. For more information see * the [official documentation](https://cloud.google.com/datastream/docs/ip-allowlists-and-regions). diff --git a/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java index 859c425036..995452b387 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.dns.inputs.GetKeysArgs; import com.pulumi.gcp.dns.inputs.GetKeysPlainArgs; @@ -218,6 +219,70 @@ public static CompletableFuture getKeysPlain(GetKeysPlainArgs arg public static Output getKeys(GetKeysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dns/getKeys:getKeys", TypeShape.of(GetKeysResult.class), args, Utilities.withVersion(options)); } + /** + * Get the DNSKEY and DS records of DNSSEC-signed managed zones. + * + * For more information see the + * [official documentation](https://cloud.google.com/dns/docs/dnskeys/) + * and [API](https://cloud.google.com/dns/docs/reference/v1/dnsKeys). + * + * > A gcp.dns.ManagedZone resource must have DNSSEC enabled in order + * to contain any DNSKEYs. Queries to managed zones without this setting + * enabled will result in a 404 error as the collection of DNSKEYs does + * not exist in the DNS API. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.inputs.ManagedZoneDnssecConfigArgs;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetKeysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var foo = new ManagedZone("foo", ManagedZoneArgs.builder()
+     *             .name("foobar")
+     *             .dnsName("foo.bar.")
+     *             .dnssecConfig(ManagedZoneDnssecConfigArgs.builder()
+     *                 .state("on")
+     *                 .nonExistence("nsec3")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var fooDnsKeys = DnsFunctions.getKeys(GetKeysArgs.builder()
+     *             .managedZone(foo.id())
+     *             .build());
+     * 
+     *         ctx.export("fooDnsDsRecord", fooDnsKeys.applyValue(getKeysResult -> getKeysResult).applyValue(fooDnsKeys -> fooDnsKeys.applyValue(getKeysResult -> getKeysResult.keySigningKeys()[0].dsRecord())));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKeys(GetKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dns/getKeys:getKeys", TypeShape.of(GetKeysResult.class), args, Utilities.withVersion(options)); + } /** * Get the DNSKEY and DS records of DNSSEC-signed managed zones. * @@ -444,6 +509,60 @@ public static CompletableFuture getManagedZonePlain(GetMan public static Output getManagedZone(GetManagedZoneArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dns/getManagedZone:getManagedZone", TypeShape.of(GetManagedZoneResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to a zone's attributes within Google Cloud DNS. + * For more information see + * [the official documentation](https://cloud.google.com/dns/zones/) + * and + * [API](https://cloud.google.com/dns/api/v1/managedZones). + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var envDnsZone = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()
+     *             .name("qa-zone")
+     *             .build());
+     * 
+     *         var dns = new RecordSet("dns", RecordSetArgs.builder()
+     *             .name(String.format("my-address.%s", envDnsZone.applyValue(getManagedZoneResult -> getManagedZoneResult.dnsName())))
+     *             .type("TXT")
+     *             .ttl(300)
+     *             .managedZone(envDnsZone.applyValue(getManagedZoneResult -> getManagedZoneResult.name()))
+     *             .rrdatas("test")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagedZone(GetManagedZoneArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dns/getManagedZone:getManagedZone", TypeShape.of(GetManagedZoneResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to a zone's attributes within Google Cloud DNS. * For more information see @@ -627,6 +746,49 @@ public static CompletableFuture getManagedZoneIam public static Output getManagedZoneIamPolicy(GetManagedZoneIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", TypeShape.of(GetManagedZoneIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for managedzone + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZoneIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = DnsFunctions.getManagedZoneIamPolicy(GetManagedZoneIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .managedZone(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagedZoneIamPolicy(GetManagedZoneIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dns/getManagedZoneIamPolicy:getManagedZoneIamPolicy", TypeShape.of(GetManagedZoneIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for managedzone * @@ -890,6 +1052,50 @@ public static CompletableFuture getManagedZonesPlain(GetM public static Output getManagedZones(GetManagedZonesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dns/getManagedZones:getManagedZones", TypeShape.of(GetManagedZonesResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to a list of zones within Google Cloud DNS. + * For more information see + * [the official documentation](https://cloud.google.com/dns/zones/) + * and + * [API](https://cloud.google.com/dns/api/v1/managedZones). + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZonesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var zones = DnsFunctions.getManagedZones(GetManagedZonesArgs.builder()
+     *             .project("my-project-id")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagedZones(GetManagedZonesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dns/getManagedZones:getManagedZones", TypeShape.of(GetManagedZonesResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to a list of zones within Google Cloud DNS. * For more information see @@ -1093,6 +1299,59 @@ public static CompletableFuture getRecordSetPlain(GetRecordS public static Output getRecordSet(GetRecordSetArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dns/getRecordSet:getRecordSet", TypeShape.of(GetRecordSetResult.class), args, Utilities.withVersion(options)); } + /** + * Get a DNS record set within Google Cloud DNS + * For more information see + * [the official documentation](https://cloud.google.com/dns/docs/records) + * and + * [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;
+     * import com.pulumi.gcp.dns.inputs.GetRecordSetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sample = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()
+     *             .name("sample-zone")
+     *             .build());
+     * 
+     *         final var rs = DnsFunctions.getRecordSet(GetRecordSetArgs.builder()
+     *             .managedZone(sample.applyValue(getManagedZoneResult -> getManagedZoneResult.name()))
+     *             .name(String.format("my-record.%s", sample.applyValue(getManagedZoneResult -> getManagedZoneResult.dnsName())))
+     *             .type("A")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRecordSet(GetRecordSetArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:dns/getRecordSet:getRecordSet", TypeShape.of(GetRecordSetResult.class), args, Utilities.withVersion(options)); + } /** * Get a DNS record set within Google Cloud DNS * For more information see diff --git a/sdk/java/src/main/java/com/pulumi/gcp/endpoints/EndpointsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/endpoints/EndpointsFunctions.java index 5c8fada331..5fe8f7e7e6 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/endpoints/EndpointsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/endpoints/EndpointsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.endpoints.inputs.GetServiceConsumersIamPolicyArgs; import com.pulumi.gcp.endpoints.inputs.GetServiceConsumersIamPolicyPlainArgs; @@ -38,6 +39,13 @@ public static CompletableFuture getServiceCo public static Output getServiceConsumersIamPolicy(GetServiceConsumersIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", TypeShape.of(GetServiceConsumersIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for serviceconsumers + * + */ + public static Output getServiceConsumersIamPolicy(GetServiceConsumersIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:endpoints/getServiceConsumersIamPolicy:getServiceConsumersIamPolicy", TypeShape.of(GetServiceConsumersIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for serviceconsumers * @@ -171,6 +179,48 @@ public static CompletableFuture getServiceIamPolicyPl public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for service + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.endpoints.EndpointsFunctions;
+     * import com.pulumi.gcp.endpoints.inputs.GetServiceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = EndpointsFunctions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder()
+     *             .serviceName(endpointsService.serviceName())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:endpoints/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for service * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java index aae3169593..08d04e259c 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.filestore.inputs.GetInstanceArgs; import com.pulumi.gcp.filestore.inputs.GetInstancePlainArgs; @@ -149,6 +150,51 @@ public static CompletableFuture getInstancePlain(GetInstanceP public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:filestore/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); } + /** + * Get info about a Google Cloud Filestore instance. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.filestore.FilestoreFunctions;
+     * import com.pulumi.gcp.filestore.inputs.GetInstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myInstance = FilestoreFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-filestore-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceIpAddresses", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().ipAddresses()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().connectMode()));
+     *         ctx.export("instanceFileShareName", myInstance.applyValue(getInstanceResult -> getInstanceResult.fileShares().name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstance(GetInstanceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:filestore/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); + } /** * Get info about a Google Cloud Filestore instance. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/firebase/FirebaseFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/firebase/FirebaseFunctions.java index 7c28e7bbee..8bf8a97c85 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/firebase/FirebaseFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/firebase/FirebaseFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.firebase.inputs.GetAndroidAppArgs; import com.pulumi.gcp.firebase.inputs.GetAndroidAppConfigArgs; @@ -41,6 +42,9 @@ public static CompletableFuture getAndroidAppPlain(GetAndro public static Output getAndroidApp(GetAndroidAppArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:firebase/getAndroidApp:getAndroidApp", TypeShape.of(GetAndroidAppResult.class), args, Utilities.withVersion(options)); } + public static Output getAndroidApp(GetAndroidAppArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:firebase/getAndroidApp:getAndroidApp", TypeShape.of(GetAndroidAppResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAndroidAppPlain(GetAndroidAppPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:firebase/getAndroidApp:getAndroidApp", TypeShape.of(GetAndroidAppResult.class), args, Utilities.withVersion(options)); } @@ -53,6 +57,9 @@ public static CompletableFuture getAndroidAppConfigPl public static Output getAndroidAppConfig(GetAndroidAppConfigArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", TypeShape.of(GetAndroidAppConfigResult.class), args, Utilities.withVersion(options)); } + public static Output getAndroidAppConfig(GetAndroidAppConfigArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", TypeShape.of(GetAndroidAppConfigResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAndroidAppConfigPlain(GetAndroidAppConfigPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:firebase/getAndroidAppConfig:getAndroidAppConfig", TypeShape.of(GetAndroidAppConfigResult.class), args, Utilities.withVersion(options)); } @@ -65,6 +72,9 @@ public static CompletableFuture getAppleAppPlain(GetAppleAppP public static Output getAppleApp(GetAppleAppArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:firebase/getAppleApp:getAppleApp", TypeShape.of(GetAppleAppResult.class), args, Utilities.withVersion(options)); } + public static Output getAppleApp(GetAppleAppArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:firebase/getAppleApp:getAppleApp", TypeShape.of(GetAppleAppResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAppleAppPlain(GetAppleAppPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:firebase/getAppleApp:getAppleApp", TypeShape.of(GetAppleAppResult.class), args, Utilities.withVersion(options)); } @@ -77,6 +87,9 @@ public static CompletableFuture getAppleAppConfigPlain( public static Output getAppleAppConfig(GetAppleAppConfigArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:firebase/getAppleAppConfig:getAppleAppConfig", TypeShape.of(GetAppleAppConfigResult.class), args, Utilities.withVersion(options)); } + public static Output getAppleAppConfig(GetAppleAppConfigArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:firebase/getAppleAppConfig:getAppleAppConfig", TypeShape.of(GetAppleAppConfigResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAppleAppConfigPlain(GetAppleAppConfigPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:firebase/getAppleAppConfig:getAppleAppConfig", TypeShape.of(GetAppleAppConfigResult.class), args, Utilities.withVersion(options)); } @@ -89,6 +102,9 @@ public static CompletableFuture getHostingChannelPlain( public static Output getHostingChannel(GetHostingChannelArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:firebase/getHostingChannel:getHostingChannel", TypeShape.of(GetHostingChannelResult.class), args, Utilities.withVersion(options)); } + public static Output getHostingChannel(GetHostingChannelArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:firebase/getHostingChannel:getHostingChannel", TypeShape.of(GetHostingChannelResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getHostingChannelPlain(GetHostingChannelPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:firebase/getHostingChannel:getHostingChannel", TypeShape.of(GetHostingChannelResult.class), args, Utilities.withVersion(options)); } @@ -113,6 +129,13 @@ public static CompletableFuture getWebAppPlain(GetWebAppPlainAr public static Output getWebApp(GetWebAppArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:firebase/getWebApp:getWebApp", TypeShape.of(GetWebAppResult.class), args, Utilities.withVersion(options)); } + /** + * A Google Cloud Firebase web application instance + * + */ + public static Output getWebApp(GetWebAppArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:firebase/getWebApp:getWebApp", TypeShape.of(GetWebAppResult.class), args, Utilities.withVersion(options)); + } /** * A Google Cloud Firebase web application instance * @@ -159,6 +182,19 @@ public static CompletableFuture getWebAppConfigPlain(GetW public static Output getWebAppConfig(GetWebAppConfigArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:firebase/getWebAppConfig:getWebAppConfig", TypeShape.of(GetWebAppConfigResult.class), args, Utilities.withVersion(options)); } + /** + * A Google Cloud Firebase web application configuration + * + * To get more information about WebApp, see: + * + * * [API documentation](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.webApps) + * * How-to Guides + * * [Official Documentation](https://firebase.google.com/) + * + */ + public static Output getWebAppConfig(GetWebAppConfigArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:firebase/getWebAppConfig:getWebAppConfig", TypeShape.of(GetWebAppConfigResult.class), args, Utilities.withVersion(options)); + } /** * A Google Cloud Firebase web application configuration * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/folder/FolderFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/folder/FolderFunctions.java index 6b51b61d72..e0acd65577 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/folder/FolderFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/folder/FolderFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.folder.inputs.GetIamPolicyArgs; import com.pulumi.gcp.folder.inputs.GetIamPolicyPlainArgs; @@ -143,6 +144,48 @@ public static CompletableFuture getIamPolicyPlain(GetIamPoli public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:folder/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a folder. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.folder.FolderFunctions;
+     * import com.pulumi.gcp.folder.inputs.GetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var test = FolderFunctions.getIamPolicy(GetIamPolicyArgs.builder()
+     *             .folder(permissiontest.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:folder/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a folder. * @@ -323,6 +366,52 @@ public static CompletableFuture getOrganizationPoli public static Output getOrganizationPolicy(GetOrganizationPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", TypeShape.of(GetOrganizationPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Allows management of Organization policies for a Google Folder. For more information see + * [the official + * documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.folder.FolderFunctions;
+     * import com.pulumi.gcp.folder.inputs.GetOrganizationPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = FolderFunctions.getOrganizationPolicy(GetOrganizationPolicyArgs.builder()
+     *             .folder("folders/folderid")
+     *             .constraint("constraints/compute.trustedImageProjects")
+     *             .build());
+     * 
+     *         ctx.export("version", policy.applyValue(getOrganizationPolicyResult -> getOrganizationPolicyResult.version()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOrganizationPolicy(GetOrganizationPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:folder/getOrganizationPolicy:getOrganizationPolicy", TypeShape.of(GetOrganizationPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Allows management of Organization policies for a Google Folder. For more information see * [the official diff --git a/sdk/java/src/main/java/com/pulumi/gcp/gkebackup/GkebackupFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/gkebackup/GkebackupFunctions.java index d9829fd64d..e84ae5585f 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/gkebackup/GkebackupFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/gkebackup/GkebackupFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.gkebackup.inputs.GetBackupPlanIamPolicyArgs; import com.pulumi.gcp.gkebackup.inputs.GetBackupPlanIamPolicyPlainArgs; @@ -149,6 +150,50 @@ public static CompletableFuture getBackupPlanIamPo public static Output getBackupPlanIamPolicy(GetBackupPlanIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", TypeShape.of(GetBackupPlanIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for backupplan + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.gkebackup.GkebackupFunctions;
+     * import com.pulumi.gcp.gkebackup.inputs.GetBackupPlanIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = GkebackupFunctions.getBackupPlanIamPolicy(GetBackupPlanIamPolicyArgs.builder()
+     *             .project(basic.project())
+     *             .location(basic.location())
+     *             .name(basic.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPlanIamPolicy(GetBackupPlanIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:gkebackup/getBackupPlanIamPolicy:getBackupPlanIamPolicy", TypeShape.of(GetBackupPlanIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for backupplan * @@ -325,6 +370,50 @@ public static CompletableFuture getRestorePlanIam public static Output getRestorePlanIamPolicy(GetRestorePlanIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", TypeShape.of(GetRestorePlanIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for restoreplan + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.gkebackup.GkebackupFunctions;
+     * import com.pulumi.gcp.gkebackup.inputs.GetRestorePlanIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = GkebackupFunctions.getRestorePlanIamPolicy(GetRestorePlanIamPolicyArgs.builder()
+     *             .project(allNs.project())
+     *             .location(allNs.location())
+     *             .name(allNs.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRestorePlanIamPolicy(GetRestorePlanIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:gkebackup/getRestorePlanIamPolicy:getRestorePlanIamPolicy", TypeShape.of(GetRestorePlanIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for restoreplan * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/gkehub/GkehubFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/gkehub/GkehubFunctions.java index 28409471da..f66da996a8 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/gkehub/GkehubFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/gkehub/GkehubFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.gkehub.inputs.GetFeatureIamPolicyArgs; import com.pulumi.gcp.gkehub.inputs.GetFeatureIamPolicyPlainArgs; @@ -155,6 +156,50 @@ public static CompletableFuture getFeatureIamPolicyPl public static Output getFeatureIamPolicy(GetFeatureIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", TypeShape.of(GetFeatureIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for feature + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.gkehub.GkehubFunctions;
+     * import com.pulumi.gcp.gkehub.inputs.GetFeatureIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = GkehubFunctions.getFeatureIamPolicy(GetFeatureIamPolicyArgs.builder()
+     *             .project(feature.project())
+     *             .location(feature.location())
+     *             .name(feature.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFeatureIamPolicy(GetFeatureIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:gkehub/getFeatureIamPolicy:getFeatureIamPolicy", TypeShape.of(GetFeatureIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for feature * @@ -208,6 +253,9 @@ public static CompletableFuture getMembershipBinding public static Output getMembershipBinding(GetMembershipBindingArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:gkehub/getMembershipBinding:getMembershipBinding", TypeShape.of(GetMembershipBindingResult.class), args, Utilities.withVersion(options)); } + public static Output getMembershipBinding(GetMembershipBindingArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:gkehub/getMembershipBinding:getMembershipBinding", TypeShape.of(GetMembershipBindingResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getMembershipBindingPlain(GetMembershipBindingPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:gkehub/getMembershipBinding:getMembershipBinding", TypeShape.of(GetMembershipBindingResult.class), args, Utilities.withVersion(options)); } @@ -343,6 +391,50 @@ public static CompletableFuture getMembershipIamPo public static Output getMembershipIamPolicy(GetMembershipIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", TypeShape.of(GetMembershipIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for membership + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.gkehub.GkehubFunctions;
+     * import com.pulumi.gcp.gkehub.inputs.GetMembershipIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = GkehubFunctions.getMembershipIamPolicy(GetMembershipIamPolicyArgs.builder()
+     *             .project(membership.project())
+     *             .location(membership.location())
+     *             .membershipId(membership.membershipId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMembershipIamPolicy(GetMembershipIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:gkehub/getMembershipIamPolicy:getMembershipIamPolicy", TypeShape.of(GetMembershipIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for membership * @@ -516,6 +608,49 @@ public static CompletableFuture getScopeIamPolicyPlain( public static Output getScopeIamPolicy(GetScopeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", TypeShape.of(GetScopeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for scope + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.gkehub.GkehubFunctions;
+     * import com.pulumi.gcp.gkehub.inputs.GetScopeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = GkehubFunctions.getScopeIamPolicy(GetScopeIamPolicyArgs.builder()
+     *             .project(scope.project())
+     *             .scopeId(scope.scopeId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getScopeIamPolicy(GetScopeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", TypeShape.of(GetScopeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for scope * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/healthcare/HealthcareFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/healthcare/HealthcareFunctions.java index cb690c259c..4d2af5ed88 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/healthcare/HealthcareFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/healthcare/HealthcareFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.healthcare.inputs.GetConsentStoreIamPolicyArgs; import com.pulumi.gcp.healthcare.inputs.GetConsentStoreIamPolicyPlainArgs; @@ -155,6 +156,49 @@ public static CompletableFuture getConsentStoreI public static Output getConsentStoreIamPolicy(GetConsentStoreIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", TypeShape.of(GetConsentStoreIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for consentstore + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.healthcare.HealthcareFunctions;
+     * import com.pulumi.gcp.healthcare.inputs.GetConsentStoreIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = HealthcareFunctions.getConsentStoreIamPolicy(GetConsentStoreIamPolicyArgs.builder()
+     *             .dataset(my_consent.dataset())
+     *             .consentStoreId(my_consent.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConsentStoreIamPolicy(GetConsentStoreIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:healthcare/getConsentStoreIamPolicy:getConsentStoreIamPolicy", TypeShape.of(GetConsentStoreIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for consentstore * @@ -324,6 +368,48 @@ public static CompletableFuture getDatasetIamPolicyPl public static Output getDatasetIamPolicy(GetDatasetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", TypeShape.of(GetDatasetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Google Cloud Healthcare dataset. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.healthcare.HealthcareFunctions;
+     * import com.pulumi.gcp.healthcare.inputs.GetDatasetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = HealthcareFunctions.getDatasetIamPolicy(GetDatasetIamPolicyArgs.builder()
+     *             .datasetId(dataset.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatasetIamPolicy(GetDatasetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:healthcare/getDatasetIamPolicy:getDatasetIamPolicy", TypeShape.of(GetDatasetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Google Cloud Healthcare dataset. * @@ -492,6 +578,48 @@ public static CompletableFuture getDicomStoreIamPo public static Output getDicomStoreIamPolicy(GetDicomStoreIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", TypeShape.of(GetDicomStoreIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Google Cloud Healthcare DICOM store. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.healthcare.HealthcareFunctions;
+     * import com.pulumi.gcp.healthcare.inputs.GetDicomStoreIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = HealthcareFunctions.getDicomStoreIamPolicy(GetDicomStoreIamPolicyArgs.builder()
+     *             .dicomStoreId(dicomStore.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDicomStoreIamPolicy(GetDicomStoreIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:healthcare/getDicomStoreIamPolicy:getDicomStoreIamPolicy", TypeShape.of(GetDicomStoreIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Google Cloud Healthcare DICOM store. * @@ -660,6 +788,48 @@ public static CompletableFuture getFhirStoreIamPoli public static Output getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", TypeShape.of(GetFhirStoreIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Google Cloud Healthcare FHIR store. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.healthcare.HealthcareFunctions;
+     * import com.pulumi.gcp.healthcare.inputs.GetFhirStoreIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = HealthcareFunctions.getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs.builder()
+     *             .fhirStoreId(fhirStore.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy", TypeShape.of(GetFhirStoreIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Google Cloud Healthcare FHIR store. * @@ -828,6 +998,48 @@ public static CompletableFuture getHl7V2StoreIamPo public static Output getHl7V2StoreIamPolicy(GetHl7V2StoreIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", TypeShape.of(GetHl7V2StoreIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Google Cloud Healthcare HL7v2 store. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.healthcare.HealthcareFunctions;
+     * import com.pulumi.gcp.healthcare.inputs.GetHl7V2StoreIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = HealthcareFunctions.getHl7V2StoreIamPolicy(GetHl7V2StoreIamPolicyArgs.builder()
+     *             .hl7V2StoreId(hl7V2Store.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getHl7V2StoreIamPolicy(GetHl7V2StoreIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:healthcare/getHl7V2StoreIamPolicy:getHl7V2StoreIamPolicy", TypeShape.of(GetHl7V2StoreIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Google Cloud Healthcare HL7v2 store. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java index fd300fc46a..3c96b9060b 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.iam.inputs.GetRuleArgs; import com.pulumi.gcp.iam.inputs.GetRulePlainArgs; @@ -146,6 +147,47 @@ public static CompletableFuture getRulePlain(GetRulePlainArgs arg public static Output getRule(GetRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iam/getRule:getRule", TypeShape.of(GetRuleResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Google IAM Role. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetRuleArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var roleinfo = IamFunctions.getRule(GetRuleArgs.builder()
+     *             .name("roles/compute.viewer")
+     *             .build());
+     * 
+     *         ctx.export("theRolePermissions", roleinfo.applyValue(getRuleResult -> getRuleResult.includedPermissions()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRule(GetRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iam/getRule:getRule", TypeShape.of(GetRuleResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Google IAM Role. * @@ -328,6 +370,53 @@ public static CompletableFuture getTestablePermiss public static Output getTestablePermissions(GetTestablePermissionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iam/getTestablePermissions:getTestablePermissions", TypeShape.of(GetTestablePermissionsResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieve a list of testable permissions for a resource. Testable permissions mean the permissions that user can add or remove in a role at a given resource. The resource can be referenced either via the full resource name or via a URI. + * + * ## Example Usage + * + * Retrieve all the supported permissions able to be set on `my-project` that are in either GA or BETA. This is useful for dynamically constructing custom roles. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetTestablePermissionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var perms = IamFunctions.getTestablePermissions(GetTestablePermissionsArgs.builder()
+     *             .fullResourceName("//cloudresourcemanager.googleapis.com/projects/my-project")
+     *             .stages(            
+     *                 "GA",
+     *                 "BETA")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTestablePermissions(GetTestablePermissionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iam/getTestablePermissions:getTestablePermissions", TypeShape.of(GetTestablePermissionsResult.class), args, Utilities.withVersion(options)); + } /** * Retrieve a list of testable permissions for a resource. Testable permissions mean the permissions that user can add or remove in a role at a given resource. The resource can be referenced either via the full resource name or via a URI. * @@ -501,6 +590,48 @@ public static CompletableFuture getWorkloadIdenti public static Output getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", TypeShape.of(GetWorkloadIdentityPoolResult.class), args, Utilities.withVersion(options)); } + /** + * Get a IAM workload identity pool from Google Cloud by its id. + * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", TypeShape.of(GetWorkloadIdentityPoolResult.class), args, Utilities.withVersion(options)); + } /** * Get a IAM workload identity pool from Google Cloud by its id. * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. @@ -672,6 +803,49 @@ public static CompletableFuture getWorklo public static Output getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", TypeShape.of(GetWorkloadIdentityPoolProviderResult.class), args, Utilities.withVersion(options)); } + /** + * Get a IAM workload identity provider from Google Cloud by its id. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolProviderArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .workloadIdentityPoolProviderId("bar-provider")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", TypeShape.of(GetWorkloadIdentityPoolProviderResult.class), args, Utilities.withVersion(options)); + } /** * Get a IAM workload identity provider from Google Cloud by its id. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java index 5146119031..0ee02946b5 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.iap.inputs.GetAppEngineServiceIamPolicyArgs; import com.pulumi.gcp.iap.inputs.GetAppEngineServiceIamPolicyPlainArgs; @@ -176,6 +177,50 @@ public static CompletableFuture getAppEngine public static Output getAppEngineServiceIamPolicy(GetAppEngineServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", TypeShape.of(GetAppEngineServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for appengineservice + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetAppEngineServiceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getAppEngineServiceIamPolicy(GetAppEngineServiceIamPolicyArgs.builder()
+     *             .project(version.project())
+     *             .appId(version.project())
+     *             .service(version.service())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppEngineServiceIamPolicy(GetAppEngineServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getAppEngineServiceIamPolicy:getAppEngineServiceIamPolicy", TypeShape.of(GetAppEngineServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for appengineservice * @@ -355,6 +400,51 @@ public static CompletableFuture getAppEngine public static Output getAppEngineVersionIamPolicy(GetAppEngineVersionIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", TypeShape.of(GetAppEngineVersionIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for appengineversion + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetAppEngineVersionIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getAppEngineVersionIamPolicy(GetAppEngineVersionIamPolicyArgs.builder()
+     *             .project(version.project())
+     *             .appId(version.project())
+     *             .service(version.service())
+     *             .versionId(version.versionId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppEngineVersionIamPolicy(GetAppEngineVersionIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getAppEngineVersionIamPolicy:getAppEngineVersionIamPolicy", TypeShape.of(GetAppEngineVersionIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for appengineversion * @@ -547,6 +637,55 @@ public static CompletableFuture getClientPlain(GetClientPlainAr public static Output getClient(GetClientArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getClient:getClient", TypeShape.of(GetClientResult.class), args, Utilities.withVersion(options)); } + /** + * Get info about a Google Cloud IAP Client. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetClientArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
+     *             .projectId("foobar")
+     *             .build());
+     * 
+     *         final var projectClient = IapFunctions.getClient(GetClientArgs.builder()
+     *             .brand(String.format("projects/%s/brands/[BRAND_NUMBER]", project.applyValue(getProjectResult -> getProjectResult.number())))
+     *             .clientId(apps.googleusercontent().com())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClient(GetClientArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getClient:getClient", TypeShape.of(GetClientResult.class), args, Utilities.withVersion(options)); + } /** * Get info about a Google Cloud IAP Client. * @@ -728,6 +867,50 @@ public static CompletableFuture getTunnelDest public static Output getTunnelDestGroupIamPolicy(GetTunnelDestGroupIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", TypeShape.of(GetTunnelDestGroupIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for tunneldestgroup + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetTunnelDestGroupIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getTunnelDestGroupIamPolicy(GetTunnelDestGroupIamPolicyArgs.builder()
+     *             .project(destGroup.project())
+     *             .region(destGroup.region())
+     *             .destGroup(destGroup.groupName())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTunnelDestGroupIamPolicy(GetTunnelDestGroupIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getTunnelDestGroupIamPolicy:getTunnelDestGroupIamPolicy", TypeShape.of(GetTunnelDestGroupIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for tunneldestgroup * @@ -982,6 +1165,48 @@ public static CompletableFuture getTunnelIamPolicyPlai public static Output getTunnelIamPolicy(GetTunnelIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", TypeShape.of(GetTunnelIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for tunnel + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetTunnelIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getTunnelIamPolicy(GetTunnelIamPolicyArgs.builder()
+     *             .project(projectService.project())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTunnelIamPolicy(GetTunnelIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getTunnelIamPolicy:getTunnelIamPolicy", TypeShape.of(GetTunnelIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for tunnel * @@ -1156,6 +1381,50 @@ public static CompletableFuture getTunnelInsta public static Output getTunnelInstanceIamPolicy(GetTunnelInstanceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", TypeShape.of(GetTunnelInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for tunnelinstance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetTunnelInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getTunnelInstanceIamPolicy(GetTunnelInstanceIamPolicyArgs.builder()
+     *             .project(tunnelvm.project())
+     *             .zone(tunnelvm.zone())
+     *             .instance(tunnelvm.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTunnelInstanceIamPolicy(GetTunnelInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getTunnelInstanceIamPolicy:getTunnelInstanceIamPolicy", TypeShape.of(GetTunnelInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for tunnelinstance * @@ -1329,6 +1598,49 @@ public static CompletableFuture getWebBacke public static Output getWebBackendServiceIamPolicy(GetWebBackendServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", TypeShape.of(GetWebBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for webbackendservice + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetWebBackendServiceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getWebBackendServiceIamPolicy(GetWebBackendServiceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .webBackendService(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWebBackendServiceIamPolicy(GetWebBackendServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getWebBackendServiceIamPolicy:getWebBackendServiceIamPolicy", TypeShape.of(GetWebBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for webbackendservice * @@ -1582,6 +1894,48 @@ public static CompletableFuture getWebIamPolicyPlain(GetW public static Output getWebIamPolicy(GetWebIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getWebIamPolicy:getWebIamPolicy", TypeShape.of(GetWebIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for web + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetWebIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getWebIamPolicy(GetWebIamPolicyArgs.builder()
+     *             .project(projectService.project())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWebIamPolicy(GetWebIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getWebIamPolicy:getWebIamPolicy", TypeShape.of(GetWebIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for web * @@ -1756,6 +2110,50 @@ public static CompletableFuture getWe public static Output getWebRegionBackendServiceIamPolicy(GetWebRegionBackendServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", TypeShape.of(GetWebRegionBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for webregionbackendservice + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetWebRegionBackendServiceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getWebRegionBackendServiceIamPolicy(GetWebRegionBackendServiceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .region(default_.region())
+     *             .webRegionBackendService(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWebRegionBackendServiceIamPolicy(GetWebRegionBackendServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getWebRegionBackendServiceIamPolicy:getWebRegionBackendServiceIamPolicy", TypeShape.of(GetWebRegionBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for webregionbackendservice * @@ -1929,6 +2327,49 @@ public static CompletableFuture getWebTypeAp public static Output getWebTypeAppEngineIamPolicy(GetWebTypeAppEngineIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", TypeShape.of(GetWebTypeAppEngineIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for webtypeappengine + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetWebTypeAppEngineIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getWebTypeAppEngineIamPolicy(GetWebTypeAppEngineIamPolicyArgs.builder()
+     *             .project(app.project())
+     *             .appId(app.appId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWebTypeAppEngineIamPolicy(GetWebTypeAppEngineIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getWebTypeAppEngineIamPolicy:getWebTypeAppEngineIamPolicy", TypeShape.of(GetWebTypeAppEngineIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for webtypeappengine * @@ -2182,6 +2623,48 @@ public static CompletableFuture getWebTypeComp public static Output getWebTypeComputeIamPolicy(GetWebTypeComputeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", TypeShape.of(GetWebTypeComputeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for webtypecompute + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetWebTypeComputeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = IapFunctions.getWebTypeComputeIamPolicy(GetWebTypeComputeIamPolicyArgs.builder()
+     *             .project(projectService.project())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getWebTypeComputeIamPolicy(GetWebTypeComputeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:iap/getWebTypeComputeIamPolicy:getWebTypeComputeIamPolicy", TypeShape.of(GetWebTypeComputeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for webtypecompute * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/kms/KmsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/kms/KmsFunctions.java index 8acfabb855..3f0a4ec53b 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/kms/KmsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/kms/KmsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.kms.inputs.GetCryptoKeyIamPolicyArgs; import com.pulumi.gcp.kms.inputs.GetCryptoKeyIamPolicyPlainArgs; @@ -176,6 +177,48 @@ public static CompletableFuture getCryptoKeyIamPoli public static Output getCryptoKeyIamPolicy(GetCryptoKeyIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", TypeShape.of(GetCryptoKeyIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Google Cloud KMS crypto key. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetCryptoKeyIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = KmsFunctions.getCryptoKeyIamPolicy(GetCryptoKeyIamPolicyArgs.builder()
+     *             .cryptoKeyId(cryptoKey.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCryptoKeyIamPolicy(GetCryptoKeyIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", TypeShape.of(GetCryptoKeyIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Google Cloud KMS crypto key. * @@ -389,6 +432,63 @@ public static CompletableFuture getCryptoKeyLat public static Output getCryptoKeyLatestVersion(GetCryptoKeyLatestVersionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", TypeShape.of(GetCryptoKeyLatestVersionResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to the latest Google Cloud Platform KMS CryptoKeyVersion in a CryptoKey. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + * and + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs;
+     * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyArgs;
+     * import com.pulumi.gcp.kms.inputs.GetCryptoKeyLatestVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder()
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *         final var myCryptoKey = KmsFunctions.getKMSCryptoKey(GetKMSCryptoKeyArgs.builder()
+     *             .name("my-crypto-key")
+     *             .keyRing(myKeyRing.applyValue(getKMSKeyRingResult -> getKMSKeyRingResult.id()))
+     *             .build());
+     * 
+     *         final var myCryptoKeyLatestVersion = KmsFunctions.getCryptoKeyLatestVersion(GetCryptoKeyLatestVersionArgs.builder()
+     *             .cryptoKey(myKey.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCryptoKeyLatestVersion(GetCryptoKeyLatestVersionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getCryptoKeyLatestVersion:getCryptoKeyLatestVersion", TypeShape.of(GetCryptoKeyLatestVersionResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to the latest Google Cloud Platform KMS CryptoKeyVersion in a CryptoKey. For more information see * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) @@ -617,6 +717,63 @@ public static CompletableFuture getCryptoKeyVersions public static Output getCryptoKeyVersions(GetCryptoKeyVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", TypeShape.of(GetCryptoKeyVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to Google Cloud Platform KMS CryptoKeyVersions. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + * and + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs;
+     * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyArgs;
+     * import com.pulumi.gcp.kms.inputs.GetCryptoKeyVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder()
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *         final var myCryptoKey = KmsFunctions.getKMSCryptoKey(GetKMSCryptoKeyArgs.builder()
+     *             .name("my-crypto-key")
+     *             .keyRing(myKeyRing.applyValue(getKMSKeyRingResult -> getKMSKeyRingResult.id()))
+     *             .build());
+     * 
+     *         final var myCryptoKeyVersions = KmsFunctions.getCryptoKeyVersions(GetCryptoKeyVersionsArgs.builder()
+     *             .cryptoKey(myKey.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCryptoKeyVersions(GetCryptoKeyVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getCryptoKeyVersions:getCryptoKeyVersions", TypeShape.of(GetCryptoKeyVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to Google Cloud Platform KMS CryptoKeyVersions. For more information see * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) @@ -713,6 +870,19 @@ public static CompletableFuture getCryptoKeysPlain(GetCrypt public static Output getCryptoKeys(GetCryptoKeysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:kms/getCryptoKeys:getCryptoKeys", TypeShape.of(GetCryptoKeysResult.class), args, Utilities.withVersion(options)); } + /** + * Provides access to all Google Cloud Platform KMS CryptoKeys in a given KeyRing. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key) + * and + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys). + * + * A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a + * Google Cloud KMS KeyRing. + * + */ + public static Output getCryptoKeys(GetCryptoKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getCryptoKeys:getCryptoKeys", TypeShape.of(GetCryptoKeysResult.class), args, Utilities.withVersion(options)); + } /** * Provides access to all Google Cloud Platform KMS CryptoKeys in a given KeyRing. For more information see * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key) @@ -858,6 +1028,50 @@ public static CompletableFuture getEkmConnectio public static Output getEkmConnectionIamPolicy(GetEkmConnectionIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", TypeShape.of(GetEkmConnectionIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for ekmconnection + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetEkmConnectionIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = KmsFunctions.getEkmConnectionIamPolicy(GetEkmConnectionIamPolicyArgs.builder()
+     *             .project(example_ekmconnection.project())
+     *             .location(example_ekmconnection.location())
+     *             .name(example_ekmconnection.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEkmConnectionIamPolicy(GetEkmConnectionIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getEkmConnectionIamPolicy:getEkmConnectionIamPolicy", TypeShape.of(GetEkmConnectionIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for ekmconnection * @@ -1119,16 +1333,17 @@ public static Output getKMSCryptoKey(GetKMSCryptoKeyArgs * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getKMSCryptoKeyPlain(GetKMSCryptoKeyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", TypeShape.of(GetKMSCryptoKeyResult.class), args, Utilities.withVersion(options)); + public static Output getKMSCryptoKey(GetKMSCryptoKeyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", TypeShape.of(GetKMSCryptoKeyResult.class), args, Utilities.withVersion(options)); } /** - * Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see - * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + * Provides access to a Google Cloud Platform KMS CryptoKey. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key) * and - * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys). * - * A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. + * A CryptoKey is an interface to key material which can be used to encrypt and decrypt data. A CryptoKey belongs to a + * Google Cloud KMS KeyRing. * * ## Example Usage * @@ -1143,7 +1358,6 @@ public static CompletableFuture getKMSCryptoKeyPlain(GetK * import com.pulumi.gcp.kms.KmsFunctions; * import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs; * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyArgs; - * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyVersionArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1167,10 +1381,6 @@ public static CompletableFuture getKMSCryptoKeyPlain(GetK * .keyRing(myKeyRing.applyValue(getKMSKeyRingResult -> getKMSKeyRingResult.id())) * .build()); * - * final var myCryptoKeyVersion = KmsFunctions.getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs.builder() - * .cryptoKey(myKey.id()) - * .build()); - * * } * } * } @@ -1178,8 +1388,8 @@ public static CompletableFuture getKMSCryptoKeyPlain(GetK * <!--End PulumiCodeChooser --> * */ - public static Output getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs args) { - return getKMSCryptoKeyVersion(args, InvokeOptions.Empty); + public static CompletableFuture getKMSCryptoKeyPlain(GetKMSCryptoKeyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:kms/getKMSCryptoKey:getKMSCryptoKey", TypeShape.of(GetKMSCryptoKeyResult.class), args, Utilities.withVersion(options)); } /** * Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see @@ -1237,8 +1447,8 @@ public static Output getKMSCryptoKeyVersion(GetKMS * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getKMSCryptoKeyVersionPlain(GetKMSCryptoKeyVersionPlainArgs args) { - return getKMSCryptoKeyVersionPlain(args, InvokeOptions.Empty); + public static Output getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs args) { + return getKMSCryptoKeyVersion(args, InvokeOptions.Empty); } /** * Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see @@ -1296,8 +1506,8 @@ public static CompletableFuture getKMSCryptoKeyVer * <!--End PulumiCodeChooser --> * */ - public static Output getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", TypeShape.of(GetKMSCryptoKeyVersionResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getKMSCryptoKeyVersionPlain(GetKMSCryptoKeyVersionPlainArgs args) { + return getKMSCryptoKeyVersionPlain(args, InvokeOptions.Empty); } /** * Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see @@ -1355,17 +1565,16 @@ public static Output getKMSCryptoKeyVersion(GetKMS * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getKMSCryptoKeyVersionPlain(GetKMSCryptoKeyVersionPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", TypeShape.of(GetKMSCryptoKeyVersionResult.class), args, Utilities.withVersion(options)); + public static Output getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", TypeShape.of(GetKMSCryptoKeyVersionResult.class), args, Utilities.withVersion(options)); } /** - * Provides access to Google Cloud Platform KMS KeyRing. For more information see - * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_ring) + * Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) * and - * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings). + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). * - * A KeyRing is a grouping of CryptoKeys for organizational purposes. A KeyRing belongs to a Google Cloud Platform Project - * and resides in a specific location. + * A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. * * ## Example Usage * @@ -1379,6 +1588,8 @@ public static CompletableFuture getKMSCryptoKeyVer * import com.pulumi.core.Output; * import com.pulumi.gcp.kms.KmsFunctions; * import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs; + * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyArgs; + * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyVersionArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1397,10 +1608,127 @@ public static CompletableFuture getKMSCryptoKeyVer * .location("us-central1") * .build()); * - * } - * } - * } - *
+ * final var myCryptoKey = KmsFunctions.getKMSCryptoKey(GetKMSCryptoKeyArgs.builder() + * .name("my-crypto-key") + * .keyRing(myKeyRing.applyValue(getKMSKeyRingResult -> getKMSKeyRingResult.id())) + * .build()); + * + * final var myCryptoKeyVersion = KmsFunctions.getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs.builder() + * .cryptoKey(myKey.id()) + * .build()); + * + * } + * } + * } + * + * <!--End PulumiCodeChooser --> + * + */ + public static Output getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", TypeShape.of(GetKMSCryptoKeyVersionResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to a Google Cloud Platform KMS CryptoKeyVersion. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_version) + * and + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions). + * + * A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs;
+     * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyArgs;
+     * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder()
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *         final var myCryptoKey = KmsFunctions.getKMSCryptoKey(GetKMSCryptoKeyArgs.builder()
+     *             .name("my-crypto-key")
+     *             .keyRing(myKeyRing.applyValue(getKMSKeyRingResult -> getKMSKeyRingResult.id()))
+     *             .build());
+     * 
+     *         final var myCryptoKeyVersion = KmsFunctions.getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs.builder()
+     *             .cryptoKey(myKey.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getKMSCryptoKeyVersionPlain(GetKMSCryptoKeyVersionPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:kms/getKMSCryptoKeyVersion:getKMSCryptoKeyVersion", TypeShape.of(GetKMSCryptoKeyVersionResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to Google Cloud Platform KMS KeyRing. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_ring) + * and + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings). + * + * A KeyRing is a grouping of CryptoKeys for organizational purposes. A KeyRing belongs to a Google Cloud Platform Project + * and resides in a specific location. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder()
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
* <!--End PulumiCodeChooser --> * */ @@ -1538,10 +1866,315 @@ public static Output getKMSKeyRing(GetKMSKeyRingArgs args, * Pulumi.run(App::stack); * } * - * public static void stack(Context ctx) { - * final var myKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder() - * .name("my-key-ring") - * .location("us-central1") + * public static void stack(Context ctx) { + * final var myKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder() + * .name("my-key-ring") + * .location("us-central1") + * .build()); + * + * } + * } + * } + * + * <!--End PulumiCodeChooser --> + * + */ + public static Output getKMSKeyRing(GetKMSKeyRingArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSKeyRing:getKMSKeyRing", TypeShape.of(GetKMSKeyRingResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to Google Cloud Platform KMS KeyRing. For more information see + * [the official documentation](https://cloud.google.com/kms/docs/object-hierarchy#key_ring) + * and + * [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings). + * + * A KeyRing is a grouping of CryptoKeys for organizational purposes. A KeyRing belongs to a Google Cloud Platform Project + * and resides in a specific location. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSKeyRingArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myKeyRing = KmsFunctions.getKMSKeyRing(GetKMSKeyRingArgs.builder()
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getKMSKeyRingPlain(GetKMSKeyRingPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:kms/getKMSKeyRing:getKMSKeyRing", TypeShape.of(GetKMSKeyRingResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source allows you to use data encrypted with Google Cloud KMS + * within your resource definitions. + * + * For more information see + * [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). + * + * > **NOTE:** Using this data provider will allow you to conceal secret data within your + * resource definitions, but it does not take care of protecting that data in the + * logging output, plan output, or state output. Please take care to secure your secret + * data outside of resource definitions. + * + * ## Example Usage + * + * First, create a KMS KeyRing and CryptoKey using the resource definitions: + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KeyRing;
+     * import com.pulumi.gcp.kms.KeyRingArgs;
+     * import com.pulumi.gcp.kms.CryptoKey;
+     * import com.pulumi.gcp.kms.CryptoKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var myKeyRing = new KeyRing("myKeyRing", KeyRingArgs.builder()
+     *             .project("my-project")
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *         var myCryptoKey = new CryptoKey("myCryptoKey", CryptoKeyArgs.builder()
+     *             .name("my-crypto-key")
+     *             .keyRing(myKeyRing.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Next, use the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/encrypt) to encrypt some + * sensitive information: + * + * Finally, reference the encrypted ciphertext in your resource definitions: + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSSecretArgs;
+     * import com.pulumi.random.RandomId;
+     * import com.pulumi.random.RandomIdArgs;
+     * import com.pulumi.gcp.sql.DatabaseInstance;
+     * import com.pulumi.gcp.sql.DatabaseInstanceArgs;
+     * import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsArgs;
+     * import com.pulumi.gcp.sql.User;
+     * import com.pulumi.gcp.sql.UserArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sqlUserPassword = KmsFunctions.getKMSSecret(GetKMSSecretArgs.builder()
+     *             .cryptoKey(myCryptoKey.id())
+     *             .ciphertext("CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU=")
+     *             .build());
+     * 
+     *         var dbNameSuffix = new RandomId("dbNameSuffix", RandomIdArgs.builder()
+     *             .byteLength(4)
+     *             .build());
+     * 
+     *         var main = new DatabaseInstance("main", DatabaseInstanceArgs.builder()
+     *             .name(dbNameSuffix.hex().applyValue(hex -> String.format("main-instance-%s", hex)))
+     *             .databaseVersion("MYSQL_5_7")
+     *             .settings(DatabaseInstanceSettingsArgs.builder()
+     *                 .tier("db-f1-micro")
+     *                 .build())
+     *             .build());
+     * 
+     *         var users = new User("users", UserArgs.builder()
+     *             .name("me")
+     *             .instance(main.name())
+     *             .host("me.com")
+     *             .password(sqlUserPassword.applyValue(getKMSSecretResult -> getKMSSecretResult.plaintext()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * This will result in a Cloud SQL user being created with password `my-secret-password`. + * + */ + public static Output getKMSSecret(GetKMSSecretArgs args) { + return getKMSSecret(args, InvokeOptions.Empty); + } + /** + * This data source allows you to use data encrypted with Google Cloud KMS + * within your resource definitions. + * + * For more information see + * [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). + * + * > **NOTE:** Using this data provider will allow you to conceal secret data within your + * resource definitions, but it does not take care of protecting that data in the + * logging output, plan output, or state output. Please take care to secure your secret + * data outside of resource definitions. + * + * ## Example Usage + * + * First, create a KMS KeyRing and CryptoKey using the resource definitions: + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KeyRing;
+     * import com.pulumi.gcp.kms.KeyRingArgs;
+     * import com.pulumi.gcp.kms.CryptoKey;
+     * import com.pulumi.gcp.kms.CryptoKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var myKeyRing = new KeyRing("myKeyRing", KeyRingArgs.builder()
+     *             .project("my-project")
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *         var myCryptoKey = new CryptoKey("myCryptoKey", CryptoKeyArgs.builder()
+     *             .name("my-crypto-key")
+     *             .keyRing(myKeyRing.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Next, use the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/encrypt) to encrypt some + * sensitive information: + * + * Finally, reference the encrypted ciphertext in your resource definitions: + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSSecretArgs;
+     * import com.pulumi.random.RandomId;
+     * import com.pulumi.random.RandomIdArgs;
+     * import com.pulumi.gcp.sql.DatabaseInstance;
+     * import com.pulumi.gcp.sql.DatabaseInstanceArgs;
+     * import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsArgs;
+     * import com.pulumi.gcp.sql.User;
+     * import com.pulumi.gcp.sql.UserArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sqlUserPassword = KmsFunctions.getKMSSecret(GetKMSSecretArgs.builder()
+     *             .cryptoKey(myCryptoKey.id())
+     *             .ciphertext("CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU=")
+     *             .build());
+     * 
+     *         var dbNameSuffix = new RandomId("dbNameSuffix", RandomIdArgs.builder()
+     *             .byteLength(4)
+     *             .build());
+     * 
+     *         var main = new DatabaseInstance("main", DatabaseInstanceArgs.builder()
+     *             .name(dbNameSuffix.hex().applyValue(hex -> String.format("main-instance-%s", hex)))
+     *             .databaseVersion("MYSQL_5_7")
+     *             .settings(DatabaseInstanceSettingsArgs.builder()
+     *                 .tier("db-f1-micro")
+     *                 .build())
+     *             .build());
+     * 
+     *         var users = new User("users", UserArgs.builder()
+     *             .name("me")
+     *             .instance(main.name())
+     *             .host("me.com")
+     *             .password(sqlUserPassword.applyValue(getKMSSecretResult -> getKMSSecretResult.plaintext()))
      *             .build());
      * 
      *     }
@@ -1550,9 +2183,11 @@ public static Output getKMSKeyRing(GetKMSKeyRingArgs args,
      * 
* <!--End PulumiCodeChooser --> * + * This will result in a Cloud SQL user being created with password `my-secret-password`. + * */ - public static CompletableFuture getKMSKeyRingPlain(GetKMSKeyRingPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:kms/getKMSKeyRing:getKMSKeyRing", TypeShape.of(GetKMSKeyRingResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getKMSSecretPlain(GetKMSSecretPlainArgs args) { + return getKMSSecretPlain(args, InvokeOptions.Empty); } /** * This data source allows you to use data encrypted with Google Cloud KMS @@ -1680,8 +2315,8 @@ public static CompletableFuture getKMSKeyRingPlain(GetKMSKe * This will result in a Cloud SQL user being created with password `my-secret-password`. * */ - public static Output getKMSSecret(GetKMSSecretArgs args) { - return getKMSSecret(args, InvokeOptions.Empty); + public static Output getKMSSecret(GetKMSSecretArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSSecret:getKMSSecret", TypeShape.of(GetKMSSecretResult.class), args, Utilities.withVersion(options)); } /** * This data source allows you to use data encrypted with Google Cloud KMS @@ -1809,8 +2444,8 @@ public static Output getKMSSecret(GetKMSSecretArgs args) { * This will result in a Cloud SQL user being created with password `my-secret-password`. * */ - public static CompletableFuture getKMSSecretPlain(GetKMSSecretPlainArgs args) { - return getKMSSecretPlain(args, InvokeOptions.Empty); + public static Output getKMSSecret(GetKMSSecretArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSSecret:getKMSSecret", TypeShape.of(GetKMSSecretResult.class), args, Utilities.withVersion(options)); } /** * This data source allows you to use data encrypted with Google Cloud KMS @@ -1938,21 +2573,10 @@ public static CompletableFuture getKMSSecretPlain(GetKMSSecr * This will result in a Cloud SQL user being created with password `my-secret-password`. * */ - public static Output getKMSSecret(GetKMSSecretArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:kms/getKMSSecret:getKMSSecret", TypeShape.of(GetKMSSecretResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getKMSSecretPlain(GetKMSSecretPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:kms/getKMSSecret:getKMSSecret", TypeShape.of(GetKMSSecretResult.class), args, Utilities.withVersion(options)); } /** - * This data source allows you to use data encrypted with Google Cloud KMS - * within your resource definitions. - * - * For more information see - * [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). - * - * > **NOTE:** Using this data provider will allow you to conceal secret data within your - * resource definitions, but it does not take care of protecting that data in the - * logging output, plan output, or state output. Please take care to secure your secret - * data outside of resource definitions. - * * ## Example Usage * * First, create a KMS KeyRing and CryptoKey using the resource definitions: @@ -1969,6 +2593,9 @@ public static Output getKMSSecret(GetKMSSecretArgs args, Inv * import com.pulumi.gcp.kms.KeyRingArgs; * import com.pulumi.gcp.kms.CryptoKey; * import com.pulumi.gcp.kms.CryptoKeyArgs; + * import com.pulumi.gcp.kms.inputs.CryptoKeyVersionTemplateArgs; + * import com.pulumi.gcp.kms.KmsFunctions; + * import com.pulumi.gcp.kms.inputs.GetKMSCryptoKeyVersionArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -1988,9 +2615,17 @@ public static Output getKMSSecret(GetKMSSecretArgs args, Inv * .location("us-central1") * .build()); * - * var myCryptoKey = new CryptoKey("myCryptoKey", CryptoKeyArgs.builder() + * var myCryptoKeyCryptoKey = new CryptoKey("myCryptoKeyCryptoKey", CryptoKeyArgs.builder() * .name("my-crypto-key") * .keyRing(myKeyRing.id()) + * .purpose("ASYMMETRIC_DECRYPT") + * .versionTemplate(CryptoKeyVersionTemplateArgs.builder() + * .algorithm("RSA_DECRYPT_OAEP_4096_SHA256") + * .build()) + * .build()); + * + * final var myCryptoKey = KmsFunctions.getKMSCryptoKeyVersion(GetKMSCryptoKeyVersionArgs.builder() + * .cryptoKey(myCryptoKeyCryptoKey.id()) * .build()); * * } @@ -1999,8 +2634,8 @@ public static Output getKMSSecret(GetKMSSecretArgs args, Inv * * <!--End PulumiCodeChooser --> * - * Next, use the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/encrypt) to encrypt some - * sensitive information: + * Next, use the [Cloud SDK](https://cloud.google.com/kms/docs/encrypt-decrypt-rsa#kms-encrypt-asymmetric-cli) to encrypt + * some sensitive information: * * Finally, reference the encrypted ciphertext in your resource definitions: * @@ -2013,7 +2648,7 @@ public static Output getKMSSecret(GetKMSSecretArgs args, Inv * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.kms.KmsFunctions; - * import com.pulumi.gcp.kms.inputs.GetKMSSecretArgs; + * import com.pulumi.gcp.kms.inputs.GetKMSSecretAsymmetricArgs; * import com.pulumi.random.RandomId; * import com.pulumi.random.RandomIdArgs; * import com.pulumi.gcp.sql.DatabaseInstance; @@ -2034,9 +2669,22 @@ public static Output getKMSSecret(GetKMSSecretArgs args, Inv * } * * public static void stack(Context ctx) { - * final var sqlUserPassword = KmsFunctions.getKMSSecret(GetKMSSecretArgs.builder() - * .cryptoKey(myCryptoKey.id()) - * .ciphertext("CiQAqD+xX4SXOSziF4a8JYvq4spfAuWhhYSNul33H85HnVtNQW4SOgDu2UZ46dQCRFl5MF6ekabviN8xq+F+2035ZJ85B+xTYXqNf4mZs0RJitnWWuXlYQh6axnnJYu3kDU=") + * final var sqlUserPassword = KmsFunctions.getKMSSecretAsymmetric(GetKMSSecretAsymmetricArgs.builder() + * .cryptoKeyVersion(myCryptoKey.id()) + * .crc32("12c59e54") + * .ciphertext(""" + * M7nUoba9EGVTu2LjNjBKGdGVBYjyS/i/AY+4yQMQF0Qf/RfUfX31Jw6+VO9OuThq + * ylu/7ihX9XD4bM7yYdXnMv9p1OHQUlorSBSbb/J6n1W9UJhcp6um8Tw8/Isx4f75 + * 4PskYS6f8Y2ItliGt1/A9iR5BTgGtJBwOxMlgoX2Ggq+Nh4E5SbdoaE5o6CO1nBx + * eIPsPEebQ6qC4JehQM3IGuV/lrm58+hZhaXAqNzX1cEYyAt5GYqJIVCiI585SUYs + * wRToGyTgaN+zthF0HP9IWlR4Am4LmJ/1OcePTnYw11CkU8wNRbDzVAzogwNH+rXr + * LTmf7hxVjBm6bBSVSNFcBKAXFlllubSfIeZ5hgzGqn54OmSf6odO12L5JxllddHc + * yAd54vWKs2kJtnsKV2V4ZdkI0w6y1TeI67baFZDNGo6qsCpFMPnvv7d46Pg2VOp1 + * J6Ivner0NnNHE4MzNmpZRk8WXMwqq4P/gTiT7F/aCX6oFCUQ4AWPQhJYh2dkcOmL + * IP+47Veb10aFn61F1CJwpmOOiGNXKdDT1vK8CMnnwhm825K0q/q9Zqpzc1+1ae1z + * mSqol1zCoa88CuSN6nTLQlVnN/dzfrGbc0boJPaM0iGhHtSzHk4SWg84LhiJB1q9 + * A9XFJmOVdkvRY9nnz/iVLAdd0Q3vFtLqCdUYsNN2yh4= + * """) * .build()); * * var dbNameSuffix = new RandomId("dbNameSuffix", RandomIdArgs.builder() @@ -2055,7 +2703,7 @@ public static Output getKMSSecret(GetKMSSecretArgs args, Inv * .name("me") * .instance(main.name()) * .host("me.com") - * .password(sqlUserPassword.applyValue(getKMSSecretResult -> getKMSSecretResult.plaintext())) + * .password(sqlUserPasswordGoogleKmsSecret.plaintext()) * .build()); * * } @@ -2067,8 +2715,8 @@ public static Output getKMSSecret(GetKMSSecretArgs args, Inv * This will result in a Cloud SQL user being created with password `my-secret-password`. * */ - public static CompletableFuture getKMSSecretPlain(GetKMSSecretPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:kms/getKMSSecret:getKMSSecret", TypeShape.of(GetKMSSecretResult.class), args, Utilities.withVersion(options)); + public static Output getKMSSecretAsymmetric(GetKMSSecretAsymmetricArgs args) { + return getKMSSecretAsymmetric(args, InvokeOptions.Empty); } /** * ## Example Usage @@ -2209,8 +2857,8 @@ public static CompletableFuture getKMSSecretPlain(GetKMSSecr * This will result in a Cloud SQL user being created with password `my-secret-password`. * */ - public static Output getKMSSecretAsymmetric(GetKMSSecretAsymmetricArgs args) { - return getKMSSecretAsymmetric(args, InvokeOptions.Empty); + public static CompletableFuture getKMSSecretAsymmetricPlain(GetKMSSecretAsymmetricPlainArgs args) { + return getKMSSecretAsymmetricPlain(args, InvokeOptions.Empty); } /** * ## Example Usage @@ -2351,8 +2999,8 @@ public static Output getKMSSecretAsymmetric(GetKMS * This will result in a Cloud SQL user being created with password `my-secret-password`. * */ - public static CompletableFuture getKMSSecretAsymmetricPlain(GetKMSSecretAsymmetricPlainArgs args) { - return getKMSSecretAsymmetricPlain(args, InvokeOptions.Empty); + public static Output getKMSSecretAsymmetric(GetKMSSecretAsymmetricArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", TypeShape.of(GetKMSSecretAsymmetricResult.class), args, Utilities.withVersion(options)); } /** * ## Example Usage @@ -2493,7 +3141,7 @@ public static CompletableFuture getKMSSecretAsymme * This will result in a Cloud SQL user being created with password `my-secret-password`. * */ - public static Output getKMSSecretAsymmetric(GetKMSSecretAsymmetricArgs args, InvokeOptions options) { + public static Output getKMSSecretAsymmetric(GetKMSSecretAsymmetricArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("gcp:kms/getKMSSecretAsymmetric:getKMSSecretAsymmetric", TypeShape.of(GetKMSSecretAsymmetricResult.class), args, Utilities.withVersion(options)); } /** @@ -3131,6 +3779,130 @@ public static Output getKMSSecretCiphertext(GetKMS * and decrypt it, e.g. using the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/decrypt)): * */ + public static Output getKMSSecretCiphertext(GetKMSSecretCiphertextArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", TypeShape.of(GetKMSSecretCiphertextResult.class), args, Utilities.withVersion(options)); + } + /** + * !> **Warning:** This data source is deprecated. Use the `gcp.kms.SecretCiphertext` **resource** instead. + * + * This data source allows you to encrypt data with Google Cloud KMS and use the + * ciphertext within your resource definitions. + * + * For more information see + * [the official documentation](https://cloud.google.com/kms/docs/encrypt-decrypt). + * + * > **NOTE:** Using this data source will allow you to conceal secret data within your + * resource definitions, but it does not take care of protecting that data in the + * logging output, plan output, or state output. Please take care to secure your secret + * data outside of resource definitions. + * + * ## Example Usage + * + * First, create a KMS KeyRing and CryptoKey using the resource definitions: + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KeyRing;
+     * import com.pulumi.gcp.kms.KeyRingArgs;
+     * import com.pulumi.gcp.kms.CryptoKey;
+     * import com.pulumi.gcp.kms.CryptoKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var myKeyRing = new KeyRing("myKeyRing", KeyRingArgs.builder()
+     *             .project("my-project")
+     *             .name("my-key-ring")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *         var myCryptoKey = new CryptoKey("myCryptoKey", CryptoKeyArgs.builder()
+     *             .name("my-crypto-key")
+     *             .keyRing(myKeyRing.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Next, encrypt some sensitive information and use the encrypted data in your resource definitions: + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKMSSecretCiphertextArgs;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myPassword = KmsFunctions.getKMSSecretCiphertext(GetKMSSecretCiphertextArgs.builder()
+     *             .cryptoKey(myCryptoKey.id())
+     *             .plaintext("my-secret-password")
+     *             .build());
+     * 
+     *         var instance = new Instance("instance", InstanceArgs.builder()
+     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
+     *                 .accessConfigs()
+     *                 .network("default")
+     *                 .build())
+     *             .name("test")
+     *             .machineType("e2-medium")
+     *             .zone("us-central1-a")
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
+     *                     .image("debian-cloud/debian-11")
+     *                     .build())
+     *                 .build())
+     *             .metadata(Map.of("password", myPassword.applyValue(getKMSSecretCiphertextResult -> getKMSSecretCiphertextResult.ciphertext())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * The resulting instance can then access the encrypted password from its metadata + * and decrypt it, e.g. using the [Cloud SDK](https://cloud.google.com/sdk/gcloud/reference/kms/decrypt)): + * + */ public static CompletableFuture getKMSSecretCiphertextPlain(GetKMSSecretCiphertextPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:kms/getKMSSecretCiphertext:getKMSSecretCiphertext", TypeShape.of(GetKMSSecretCiphertextResult.class), args, Utilities.withVersion(options)); } @@ -3260,6 +4032,48 @@ public static CompletableFuture getKeyRingIamPolicyPl public static Output getKeyRingIamPolicy(GetKeyRingIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", TypeShape.of(GetKeyRingIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Google Cloud KMS key ring. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.kms.KmsFunctions;
+     * import com.pulumi.gcp.kms.inputs.GetKeyRingIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var testKeyRingIamPolicy = KmsFunctions.getKeyRingIamPolicy(GetKeyRingIamPolicyArgs.builder()
+     *             .keyRingId("{project_id}/{location_name}/{key_ring_name}")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getKeyRingIamPolicy(GetKeyRingIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKeyRingIamPolicy:getKeyRingIamPolicy", TypeShape.of(GetKeyRingIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Google Cloud KMS key ring. * @@ -3311,6 +4125,9 @@ public static CompletableFuture getKeyRingsPlain(GetKeyRingsP public static Output getKeyRings(GetKeyRingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:kms/getKeyRings:getKeyRings", TypeShape.of(GetKeyRingsResult.class), args, Utilities.withVersion(options)); } + public static Output getKeyRings(GetKeyRingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:kms/getKeyRings:getKeyRings", TypeShape.of(GetKeyRingsResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getKeyRingsPlain(GetKeyRingsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:kms/getKeyRings:getKeyRings", TypeShape.of(GetKeyRingsResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/logging/LoggingFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/logging/LoggingFunctions.java index a2eca478df..4e26b8788b 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/logging/LoggingFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/logging/LoggingFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.logging.inputs.GetFolderSettingsArgs; import com.pulumi.gcp.logging.inputs.GetFolderSettingsPlainArgs; @@ -176,6 +177,55 @@ public static CompletableFuture getFolderSettingsPlain( public static Output getFolderSettings(GetFolderSettingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:logging/getFolderSettings:getFolderSettings", TypeShape.of(GetFolderSettingsResult.class), args, Utilities.withVersion(options)); } + /** + * Describes the settings associated with a folder. + * + * To get more information about LoggingFolderSettings, see: + * + * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/folders/getSettings) + * * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + * + * ## Example Usage + * + * ### Logging Folder Settings Basic + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.logging.LoggingFunctions;
+     * import com.pulumi.gcp.logging.inputs.GetFolderSettingsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var settings = LoggingFunctions.getFolderSettings(GetFolderSettingsArgs.builder()
+     *             .folder("my-folder-name")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFolderSettings(GetFolderSettingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:logging/getFolderSettings:getFolderSettings", TypeShape.of(GetFolderSettingsResult.class), args, Utilities.withVersion(options)); + } /** * Describes the settings associated with a folder. * @@ -360,6 +410,51 @@ public static CompletableFuture getLogViewIamPolicyPl public static Output getLogViewIamPolicy(GetLogViewIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", TypeShape.of(GetLogViewIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for logview + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.logging.LoggingFunctions;
+     * import com.pulumi.gcp.logging.inputs.GetLogViewIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = LoggingFunctions.getLogViewIamPolicy(GetLogViewIamPolicyArgs.builder()
+     *             .parent(loggingLogView.parent())
+     *             .location(loggingLogView.location())
+     *             .bucket(loggingLogView.bucket())
+     *             .name(loggingLogView.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLogViewIamPolicy(GetLogViewIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:logging/getLogViewIamPolicy:getLogViewIamPolicy", TypeShape.of(GetLogViewIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for logview * @@ -552,6 +647,55 @@ public static CompletableFuture getOrganizationSe public static Output getOrganizationSettings(GetOrganizationSettingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:logging/getOrganizationSettings:getOrganizationSettings", TypeShape.of(GetOrganizationSettingsResult.class), args, Utilities.withVersion(options)); } + /** + * Describes the settings associated with a organization. + * + * To get more information about LoggingOrganizationSettings, see: + * + * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/organizations/getSettings) + * * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + * + * ## Example Usage + * + * ### Logging Organization Settings Basic + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.logging.LoggingFunctions;
+     * import com.pulumi.gcp.logging.inputs.GetOrganizationSettingsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var settings = LoggingFunctions.getOrganizationSettings(GetOrganizationSettingsArgs.builder()
+     *             .organization("my-organization-name")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOrganizationSettings(GetOrganizationSettingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:logging/getOrganizationSettings:getOrganizationSettings", TypeShape.of(GetOrganizationSettingsResult.class), args, Utilities.withVersion(options)); + } /** * Describes the settings associated with a organization. * @@ -748,6 +892,55 @@ public static CompletableFuture getProjectCmekSett public static Output getProjectCmekSettings(GetProjectCmekSettingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", TypeShape.of(GetProjectCmekSettingsResult.class), args, Utilities.withVersion(options)); } + /** + * Describes the customer-managed encryption key (CMEK) settings associated with a project. + * + * To get more information about Service, see: + * + * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getCmekSettings) + * * [Enable CMEK](https://cloud.google.com/logging/docs/routing/managed-encryption-storage#enable). + * + * ## Example Usage + * + * ### Logging Project Cmek Settings Basic + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.logging.LoggingFunctions;
+     * import com.pulumi.gcp.logging.inputs.GetProjectCmekSettingsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var cmekSettings = LoggingFunctions.getProjectCmekSettings(GetProjectCmekSettingsArgs.builder()
+     *             .project("my-project-name")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProjectCmekSettings(GetProjectCmekSettingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:logging/getProjectCmekSettings:getProjectCmekSettings", TypeShape.of(GetProjectCmekSettingsResult.class), args, Utilities.withVersion(options)); + } /** * Describes the customer-managed encryption key (CMEK) settings associated with a project. * @@ -944,6 +1137,55 @@ public static CompletableFuture getProjectSettingsPlai public static Output getProjectSettings(GetProjectSettingsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:logging/getProjectSettings:getProjectSettings", TypeShape.of(GetProjectSettingsResult.class), args, Utilities.withVersion(options)); } + /** + * Describes the settings associated with a project. + * + * To get more information about LoggingProjectSettings, see: + * + * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getSettings) + * * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings). + * + * ## Example Usage + * + * ### Logging Project Settings Basic + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.logging.LoggingFunctions;
+     * import com.pulumi.gcp.logging.inputs.GetProjectSettingsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var settings = LoggingFunctions.getProjectSettings(GetProjectSettingsArgs.builder()
+     *             .project("my-project-name")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProjectSettings(GetProjectSettingsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:logging/getProjectSettings:getProjectSettings", TypeShape.of(GetProjectSettingsResult.class), args, Utilities.withVersion(options)); + } /** * Describes the settings associated with a project. * @@ -1134,6 +1376,53 @@ public static CompletableFuture getSinkPlain(GetSinkPlainArgs arg public static Output getSink(GetSinkArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:logging/getSink:getSink", TypeShape.of(GetSinkResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get a project, folder, organization or billing account logging sink details. + * To get more information about Service, see: + * + * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks) + * + * ## Example Usage + * + * ### Retrieve Project Logging Sink Basic + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.logging.LoggingFunctions;
+     * import com.pulumi.gcp.logging.inputs.GetSinkArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var project-sink = LoggingFunctions.getSink(GetSinkArgs.builder()
+     *             .id("projects/0123456789/sinks/my-sink-name")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSink(GetSinkArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:logging/getSink:getSink", TypeShape.of(GetSinkResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get a project, folder, organization or billing account logging sink details. * To get more information about Service, see: diff --git a/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java index ccf58753b2..f7e85702f3 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.monitoring.inputs.GetAppEngineServiceArgs; import com.pulumi.gcp.monitoring.inputs.GetAppEngineServicePlainArgs; @@ -325,6 +326,104 @@ public static CompletableFuture getAppEngineServicePl public static Output getAppEngineService(GetAppEngineServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:monitoring/getAppEngineService:getAppEngineService", TypeShape.of(GetAppEngineServiceResult.class), args, Utilities.withVersion(options)); } + /** + * A Monitoring Service is the root resource under which operational aspects of a + * generic service are accessible. A service is some discrete, autonomous, and + * network-accessible unit, designed to solve an individual concern + * + * An App Engine monitoring service is automatically created by GCP to monitor + * App Engine services. + * + * To get more information about Service, see: + * + * * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + * * How-to Guides + * * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + * * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + * + * ## Example Usage + * + * ### Monitoring App Engine Service + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.Bucket;
+     * import com.pulumi.gcp.storage.BucketArgs;
+     * import com.pulumi.gcp.storage.BucketObject;
+     * import com.pulumi.gcp.storage.BucketObjectArgs;
+     * import com.pulumi.gcp.appengine.StandardAppVersion;
+     * import com.pulumi.gcp.appengine.StandardAppVersionArgs;
+     * import com.pulumi.gcp.appengine.inputs.StandardAppVersionEntrypointArgs;
+     * import com.pulumi.gcp.appengine.inputs.StandardAppVersionDeploymentArgs;
+     * import com.pulumi.gcp.appengine.inputs.StandardAppVersionDeploymentZipArgs;
+     * import com.pulumi.gcp.monitoring.MonitoringFunctions;
+     * import com.pulumi.gcp.monitoring.inputs.GetAppEngineServiceArgs;
+     * import com.pulumi.asset.FileAsset;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var bucket = new Bucket("bucket", BucketArgs.builder()
+     *             .name("appengine-static-content")
+     *             .location("US")
+     *             .build());
+     * 
+     *         var object = new BucketObject("object", BucketObjectArgs.builder()
+     *             .name("hello-world.zip")
+     *             .bucket(bucket.name())
+     *             .source(new FileAsset("./test-fixtures/hello-world.zip"))
+     *             .build());
+     * 
+     *         var myapp = new StandardAppVersion("myapp", StandardAppVersionArgs.builder()
+     *             .versionId("v1")
+     *             .service("myapp")
+     *             .runtime("nodejs20")
+     *             .entrypoint(StandardAppVersionEntrypointArgs.builder()
+     *                 .shell("node ./app.js")
+     *                 .build())
+     *             .deployment(StandardAppVersionDeploymentArgs.builder()
+     *                 .zip(StandardAppVersionDeploymentZipArgs.builder()
+     *                     .sourceUrl(Output.tuple(bucket.name(), object.name()).applyValue(values -> {
+     *                         var bucketName = values.t1;
+     *                         var objectName = values.t2;
+     *                         return String.format("https://storage.googleapis.com/%s/%s", bucketName,objectName);
+     *                     }))
+     *                     .build())
+     *                 .build())
+     *             .envVariables(Map.of("port", "8080"))
+     *             .deleteServiceOnDestroy(false)
+     *             .build());
+     * 
+     *         // Monitors the default AppEngine service
+     *         final var srv = MonitoringFunctions.getAppEngineService(GetAppEngineServiceArgs.builder()
+     *             .moduleId(myapp.service())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAppEngineService(GetAppEngineServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:monitoring/getAppEngineService:getAppEngineService", TypeShape.of(GetAppEngineServiceResult.class), args, Utilities.withVersion(options)); + } /** * A Monitoring Service is the root resource under which operational aspects of a * generic service are accessible. A service is some discrete, autonomous, and @@ -603,6 +702,66 @@ public static CompletableFuture getClusterIstioSer public static Output getClusterIstioService(GetClusterIstioServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:monitoring/getClusterIstioService:getClusterIstioService", TypeShape.of(GetClusterIstioServiceResult.class), args, Utilities.withVersion(options)); } + /** + * A Monitoring Service is the root resource under which operational aspects of a + * generic service are accessible. A service is some discrete, autonomous, and + * network-accessible unit, designed to solve an individual concern + * + * An Cluster Istio monitoring service is automatically created by GCP to monitor + * Cluster Istio services. + * + * To get more information about Service, see: + * + * * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + * * How-to Guides + * * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + * * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + * + * ## Example Usage + * + * ### Monitoring Cluster Istio Service + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.monitoring.MonitoringFunctions;
+     * import com.pulumi.gcp.monitoring.inputs.GetClusterIstioServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Monitors the default ClusterIstio service
+     *         final var default = MonitoringFunctions.getClusterIstioService(GetClusterIstioServiceArgs.builder()
+     *             .location("us-west2-a")
+     *             .clusterName("west")
+     *             .serviceNamespace("istio-system")
+     *             .serviceName("istio-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClusterIstioService(GetClusterIstioServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:monitoring/getClusterIstioService:getClusterIstioService", TypeShape.of(GetClusterIstioServiceResult.class), args, Utilities.withVersion(options)); + } /** * A Monitoring Service is the root resource under which operational aspects of a * generic service are accessible. A service is some discrete, autonomous, and @@ -840,6 +999,65 @@ public static CompletableFuture getIstioCanonica public static Output getIstioCanonicalService(GetIstioCanonicalServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", TypeShape.of(GetIstioCanonicalServiceResult.class), args, Utilities.withVersion(options)); } + /** + * A Monitoring Service is the root resource under which operational aspects of a + * generic service are accessible. A service is some discrete, autonomous, and + * network-accessible unit, designed to solve an individual concern + * + * A monitoring Istio Canonical Service is automatically created by GCP to monitor + * Istio Canonical Services. + * + * To get more information about Service, see: + * + * * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + * * How-to Guides + * * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + * * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + * + * ## Example Usage + * + * ### Monitoring Istio Canonical Service + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.monitoring.MonitoringFunctions;
+     * import com.pulumi.gcp.monitoring.inputs.GetIstioCanonicalServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Monitors the default MeshIstio service
+     *         final var default = MonitoringFunctions.getIstioCanonicalService(GetIstioCanonicalServiceArgs.builder()
+     *             .meshUid("proj-573164786102")
+     *             .canonicalServiceNamespace("istio-system")
+     *             .canonicalService("prometheus")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIstioCanonicalService(GetIstioCanonicalServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", TypeShape.of(GetIstioCanonicalServiceResult.class), args, Utilities.withVersion(options)); + } /** * A Monitoring Service is the root resource under which operational aspects of a * generic service are accessible. A service is some discrete, autonomous, and @@ -1076,6 +1294,65 @@ public static CompletableFuture getMeshIstioServicePl public static Output getMeshIstioService(GetMeshIstioServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:monitoring/getMeshIstioService:getMeshIstioService", TypeShape.of(GetMeshIstioServiceResult.class), args, Utilities.withVersion(options)); } + /** + * A Monitoring Service is the root resource under which operational aspects of a + * generic service are accessible. A service is some discrete, autonomous, and + * network-accessible unit, designed to solve an individual concern + * + * An Mesh Istio monitoring service is automatically created by GCP to monitor + * Mesh Istio services. + * + * To get more information about Service, see: + * + * * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) + * * How-to Guides + * * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) + * * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + * + * ## Example Usage + * + * ### Monitoring Mesh Istio Service + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.monitoring.MonitoringFunctions;
+     * import com.pulumi.gcp.monitoring.inputs.GetMeshIstioServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         // Monitors the default MeshIstio service
+     *         final var default = MonitoringFunctions.getMeshIstioService(GetMeshIstioServiceArgs.builder()
+     *             .meshUid("proj-573164786102")
+     *             .serviceNamespace("istio-system")
+     *             .serviceName("prometheus")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getMeshIstioService(GetMeshIstioServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:monitoring/getMeshIstioService:getMeshIstioService", TypeShape.of(GetMeshIstioServiceResult.class), args, Utilities.withVersion(options)); + } /** * A Monitoring Service is the root resource under which operational aspects of a * generic service are accessible. A service is some discrete, autonomous, and @@ -1515,6 +1792,82 @@ public static CompletableFuture getNotificationCha public static Output getNotificationChannel(GetNotificationChannelArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:monitoring/getNotificationChannel:getNotificationChannel", TypeShape.of(GetNotificationChannelResult.class), args, Utilities.withVersion(options)); } + /** + * A NotificationChannel is a medium through which an alert is delivered + * when a policy violation is detected. Examples of channels include email, SMS, + * and third-party messaging applications. Fields containing sensitive information + * like authentication tokens or contact info are only partially populated on retrieval. + * + * To get more information about NotificationChannel, see: + * + * * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels) + * * How-to Guides + * * [Notification Options](https://cloud.google.com/monitoring/support/notification-options) + * * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) + * + * ## Example Usage + * + * ### Notification Channel Basic + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.monitoring.MonitoringFunctions;
+     * import com.pulumi.gcp.monitoring.inputs.GetNotificationChannelArgs;
+     * import com.pulumi.gcp.monitoring.AlertPolicy;
+     * import com.pulumi.gcp.monitoring.AlertPolicyArgs;
+     * import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionArgs;
+     * import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionThresholdArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var basic = MonitoringFunctions.getNotificationChannel(GetNotificationChannelArgs.builder()
+     *             .displayName("Test Notification Channel")
+     *             .build());
+     * 
+     *         var alertPolicy = new AlertPolicy("alertPolicy", AlertPolicyArgs.builder()
+     *             .displayName("My Alert Policy")
+     *             .notificationChannels(basic.applyValue(getNotificationChannelResult -> getNotificationChannelResult.name()))
+     *             .combiner("OR")
+     *             .conditions(AlertPolicyConditionArgs.builder()
+     *                 .displayName("test condition")
+     *                 .conditionThreshold(AlertPolicyConditionConditionThresholdArgs.builder()
+     *                     .filter("metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"")
+     *                     .duration("60s")
+     *                     .comparison("COMPARISON_GT")
+     *                     .aggregations(AlertPolicyConditionConditionThresholdAggregationArgs.builder()
+     *                         .alignmentPeriod("60s")
+     *                         .perSeriesAligner("ALIGN_RATE")
+     *                         .build())
+     *                     .build())
+     *                 .build())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNotificationChannel(GetNotificationChannelArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:monitoring/getNotificationChannel:getNotificationChannel", TypeShape.of(GetNotificationChannelResult.class), args, Utilities.withVersion(options)); + } /** * A NotificationChannel is a medium through which an alert is delivered * when a policy violation is detected. Examples of channels include email, SMS, @@ -1772,6 +2125,52 @@ public static Output getSecretVersion(GetSecretVersionAr * */ @Deprecated /* gcp.monitoring.getSecretVersion has been deprecated in favor of gcp.secretmanager.getSecretVersion */ + public static Output getSecretVersion(GetSecretVersionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:monitoring/getSecretVersion:getSecretVersion", TypeShape.of(GetSecretVersionResult.class), args, Utilities.withVersion(options)); + } + /** + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetSecretVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var basic = SecretmanagerFunctions.getSecretVersion(GetSecretVersionArgs.builder()
+     *             .secret("my-secret")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * @deprecated + * gcp.monitoring.getSecretVersion has been deprecated in favor of gcp.secretmanager.getSecretVersion + * + */ + @Deprecated /* gcp.monitoring.getSecretVersion has been deprecated in favor of gcp.secretmanager.getSecretVersion */ public static CompletableFuture getSecretVersionPlain(GetSecretVersionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:monitoring/getSecretVersion:getSecretVersion", TypeShape.of(GetSecretVersionResult.class), args, Utilities.withVersion(options)); } @@ -1980,6 +2379,47 @@ public static CompletableFuture getUptimeCheckIPsPlain( public static Output getUptimeCheckIPs(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", TypeShape.of(GetUptimeCheckIPsResult.class), args, Utilities.withVersion(options)); } + /** + * Returns the list of IP addresses that checkers run from. For more information see + * the [official documentation](https://cloud.google.com/monitoring/uptime-checks#get-ips). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.monitoring.MonitoringFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ips = MonitoringFunctions.getUptimeCheckIPs();
+     * 
+     *         ctx.export("ipList", ips.applyValue(getUptimeCheckIPsResult -> getUptimeCheckIPsResult.uptimeCheckIps()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getUptimeCheckIPs(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:monitoring/getUptimeCheckIPs:getUptimeCheckIPs", TypeShape.of(GetUptimeCheckIPsResult.class), args, Utilities.withVersion(options)); + } /** * Returns the list of IP addresses that checkers run from. For more information see * the [official documentation](https://cloud.google.com/monitoring/uptime-checks#get-ips). diff --git a/sdk/java/src/main/java/com/pulumi/gcp/networksecurity/NetworksecurityFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/networksecurity/NetworksecurityFunctions.java index f37f07aa7a..f7bfa59ab0 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/networksecurity/NetworksecurityFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/networksecurity/NetworksecurityFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.networksecurity.inputs.GetAddressGroupIamPolicyArgs; import com.pulumi.gcp.networksecurity.inputs.GetAddressGroupIamPolicyPlainArgs; @@ -35,6 +36,13 @@ public static CompletableFuture getAddressGroupI public static Output getAddressGroupIamPolicy(GetAddressGroupIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", TypeShape.of(GetAddressGroupIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for projectaddressgroup + * + */ + public static Output getAddressGroupIamPolicy(GetAddressGroupIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:networksecurity/getAddressGroupIamPolicy:getAddressGroupIamPolicy", TypeShape.of(GetAddressGroupIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for projectaddressgroup * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/notebooks/NotebooksFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/notebooks/NotebooksFunctions.java index e03b778249..fd205e0012 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/notebooks/NotebooksFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/notebooks/NotebooksFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.notebooks.inputs.GetInstanceIamPolicyArgs; import com.pulumi.gcp.notebooks.inputs.GetInstanceIamPolicyPlainArgs; @@ -149,6 +150,50 @@ public static CompletableFuture getInstanceIamPolicy public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.notebooks.NotebooksFunctions;
+     * import com.pulumi.gcp.notebooks.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = NotebooksFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(instance.project())
+     *             .location(instance.location())
+     *             .instanceName(instance.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:notebooks/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for instance * @@ -325,6 +370,50 @@ public static CompletableFuture getRuntimeIamPolicyPl public static Output getRuntimeIamPolicy(GetRuntimeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", TypeShape.of(GetRuntimeIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for runtime + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.notebooks.NotebooksFunctions;
+     * import com.pulumi.gcp.notebooks.inputs.GetRuntimeIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = NotebooksFunctions.getRuntimeIamPolicy(GetRuntimeIamPolicyArgs.builder()
+     *             .project(runtime.project())
+     *             .location(runtime.location())
+     *             .runtimeName(runtime.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRuntimeIamPolicy(GetRuntimeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:notebooks/getRuntimeIamPolicy:getRuntimeIamPolicy", TypeShape.of(GetRuntimeIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for runtime * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/oracledatabase/OracledatabaseFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/oracledatabase/OracledatabaseFunctions.java index 7de895d363..cf080d1ebc 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/oracledatabase/OracledatabaseFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/oracledatabase/OracledatabaseFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.oracledatabase.inputs.GetAutonomousDatabaseArgs; import com.pulumi.gcp.oracledatabase.inputs.GetAutonomousDatabasePlainArgs; @@ -173,6 +174,52 @@ public static CompletableFuture getAutonomousDataba public static Output getAutonomousDatabase(GetAutonomousDatabaseArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", TypeShape.of(GetAutonomousDatabaseResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about an AutonomousDatabase. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetAutonomousDatabaseArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-instance = OracledatabaseFunctions.getAutonomousDatabase(GetAutonomousDatabaseArgs.builder()
+     *             .location("us-east4")
+     *             .autonomousDatabaseId("autonomous_database_id")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAutonomousDatabase(GetAutonomousDatabaseArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getAutonomousDatabase:getAutonomousDatabase", TypeShape.of(GetAutonomousDatabaseResult.class), args, Utilities.withVersion(options)); + } /** * Get information about an AutonomousDatabase. * @@ -354,6 +401,51 @@ public static CompletableFuture getAutonomousDatab public static Output getAutonomousDatabases(GetAutonomousDatabasesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", TypeShape.of(GetAutonomousDatabasesResult.class), args, Utilities.withVersion(options)); } + /** + * List all AutonomousDatabases. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.autonomousDatabases). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetAutonomousDatabasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-adbs = OracledatabaseFunctions.getAutonomousDatabases(GetAutonomousDatabasesArgs.builder()
+     *             .location("us-east4")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAutonomousDatabases(GetAutonomousDatabasesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getAutonomousDatabases:getAutonomousDatabases", TypeShape.of(GetAutonomousDatabasesResult.class), args, Utilities.withVersion(options)); + } /** * List all AutonomousDatabases. * @@ -537,6 +629,52 @@ public static CompletableFuture getCloudExa public static Output getCloudExadataInfrastructure(GetCloudExadataInfrastructureArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", TypeShape.of(GetCloudExadataInfrastructureResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about an ExadataInfrastructure. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetCloudExadataInfrastructureArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-instance = OracledatabaseFunctions.getCloudExadataInfrastructure(GetCloudExadataInfrastructureArgs.builder()
+     *             .location("us-east4")
+     *             .cloudExadataInfrastructureId("exadata-id")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCloudExadataInfrastructure(GetCloudExadataInfrastructureArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudExadataInfrastructure:getCloudExadataInfrastructure", TypeShape.of(GetCloudExadataInfrastructureResult.class), args, Utilities.withVersion(options)); + } /** * Get information about an ExadataInfrastructure. * @@ -718,6 +856,51 @@ public static CompletableFuture getCloudEx public static Output getCloudExadataInfrastructures(GetCloudExadataInfrastructuresArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", TypeShape.of(GetCloudExadataInfrastructuresResult.class), args, Utilities.withVersion(options)); } + /** + * List all ExadataInfrastructures. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetCloudExadataInfrastructuresArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myExadatas = OracledatabaseFunctions.getCloudExadataInfrastructures(GetCloudExadataInfrastructuresArgs.builder()
+     *             .location("us-east4")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCloudExadataInfrastructures(GetCloudExadataInfrastructuresArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudExadataInfrastructures:getCloudExadataInfrastructures", TypeShape.of(GetCloudExadataInfrastructuresResult.class), args, Utilities.withVersion(options)); + } /** * List all ExadataInfrastructures. * @@ -901,6 +1084,52 @@ public static CompletableFuture getCloudVmClusterPlain( public static Output getCloudVmCluster(GetCloudVmClusterArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", TypeShape.of(GetCloudVmClusterResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a CloudVmCluster. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetCloudVmClusterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-vmcluster = OracledatabaseFunctions.getCloudVmCluster(GetCloudVmClusterArgs.builder()
+     *             .location("us-east4")
+     *             .cloudVmClusterId("vmcluster-id")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCloudVmCluster(GetCloudVmClusterArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudVmCluster:getCloudVmCluster", TypeShape.of(GetCloudVmClusterResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a CloudVmCluster. * @@ -1082,6 +1311,51 @@ public static CompletableFuture getCloudVmClustersPlai public static Output getCloudVmClusters(GetCloudVmClustersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", TypeShape.of(GetCloudVmClustersResult.class), args, Utilities.withVersion(options)); } + /** + * List all CloudVmClusters. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetCloudVmClustersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myVmclusters = OracledatabaseFunctions.getCloudVmClusters(GetCloudVmClustersArgs.builder()
+     *             .location("us-east4")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCloudVmClusters(GetCloudVmClustersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getCloudVmClusters:getCloudVmClusters", TypeShape.of(GetCloudVmClustersResult.class), args, Utilities.withVersion(options)); + } /** * List all CloudVmClusters. * @@ -1385,6 +1659,92 @@ public static CompletableFuture getDbNodesPlain(GetDbNodesPlai public static Output getDbNodes(GetDbNodesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getDbNodes:getDbNodes", TypeShape.of(GetDbNodesResult.class), args, Utilities.withVersion(options)); } + /** + * List all DbNodes of a Cloud VmCluster. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudVmClusters.dbNodes). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetDbNodesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myDbNodes = OracledatabaseFunctions.getDbNodes(GetDbNodesArgs.builder()
+     *             .location("us-east4")
+     *             .cloudVmCluster("vmcluster-id")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ## Attributes reference + * + * The following attributes are exported: + * + * * `db_nodes` - List of dbNodes. Structure is documented below. + * + * <a name="nested_dbnodes"></a> The `db_nodes` block supports: + * + * * `name` - The name of the database node resource in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}/dbNodes/{db_node} + * + * * `properties` - Various properties of the database node. Structure is documented below. + * + * <a name="nested_properties"></a> The `properties` block supports: + * + * * `ocid`- OCID of database node. + * + * * `ocpu_count` - OCPU count per database node. + * + * * `memory_size_gb` - The allocated memory in GBs on the database node. + * + * * `db_node_storage_size_gb` - The allocated local node storage in GBs on the database node. + * + * * `db_server_ocid` - The OCID of the Database server associated with the database node. + * + * * `hostname` - The host name for the database node. + * + * * `state` - State of the database node. + * <a name="nested_states"></a>Possible values for `state` are:<br> + * `PROVISIONING` - Indicates that the resource is being provisioned.<br> + * `AVAILABLE` - Indicates that the resource is available.<br> + * `UPDATING` - Indicates that the resource is being updated.<br> + * `STOPPING` - Indicates that the resource is being stopped.<br> + * `STOPPED` - Indicates that the resource is stopped.<br> + * `STARTING` - Indicates that the resource is being started.<br> + * `TERMINATING` - Indicates that the resource is being terminated.<br> + * `TERMINATED` - Indicates that the resource is terminated.<br> + * `FAILED` - Indicates that the resource has failed.<br> + * + * * `total_cpu_core_count` - The total number of CPU cores reserved on the database node. + * + */ + public static Output getDbNodes(GetDbNodesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getDbNodes:getDbNodes", TypeShape.of(GetDbNodesResult.class), args, Utilities.withVersion(options)); + } /** * List all DbNodes of a Cloud VmCluster. * @@ -1729,6 +2089,92 @@ public static CompletableFuture getDbServersPlain(GetDbServe public static Output getDbServers(GetDbServersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:oracledatabase/getDbServers:getDbServers", TypeShape.of(GetDbServersResult.class), args, Utilities.withVersion(options)); } + /** + * List all DbServers of a Cloud Exdata Infrastructure. + * + * For more information see the + * [API](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures.dbServers). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.oracledatabase.OracledatabaseFunctions;
+     * import com.pulumi.gcp.oracledatabase.inputs.GetDbServersArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myDbServers = OracledatabaseFunctions.getDbServers(GetDbServersArgs.builder()
+     *             .location("us-east4")
+     *             .cloudExadataInfrastructure("exadata-id")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ## Attributes reference + * + * The following attributes are exported: + * + * * `db_servers` - List of dbServers. Structure is documented below. + * + * <a name="nested_dbservers"></a> The `db_servers` block supports: + * + * * `display_name` - User friendly name for the resource. + * + * * `properties` - Various properties of the databse server. Structure is documented below. + * + * <a name="nested_properties"></a> The `properties` block supports: + * + * * `ocid` - The OCID of database server. + * + * * `ocpu_count` - The OCPU count per database. + * + * * `max_ocpu_count` - The total number of CPU cores available. + * + * * `memory_size_gb` - The allocated memory in gigabytes on the database server. + * + * * `max_memory_size_gb` - The total memory available in gigabytes. + * + * * `db_node_storage_size_gb` - The local storage per VM. + * + * * `max_db_node_storage_size_gb` - The total local node storage available in GBs. + * + * * `vm_count` - The VM count per database. + * + * * `state` - The current state of the database server. + * <a name="nested_states"></a>Allowed values for `state` are:<br> + * `CREATING` - Indicates that the resource is being created.<br> + * `AVAILABLE` - Indicates that the resource is available.<br> + * `UNAVAILABLE` - Indicates that the resource is unavailable.<br> + * `DELETING` - Indicates that the resource is being deleted.<br> + * `DELETED` - Indicates that the resource has been deleted.<br> + * + * * `db_node_ids` - The OCID of database nodes associated with the database server. + * + */ + public static Output getDbServers(GetDbServersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:oracledatabase/getDbServers:getDbServers", TypeShape.of(GetDbServersResult.class), args, Utilities.withVersion(options)); + } /** * List all DbServers of a Cloud Exdata Infrastructure. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java index 5784fab6b0..79e4a03156 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs; import com.pulumi.gcp.organizations.inputs.GetActiveFolderPlainArgs; @@ -164,6 +165,49 @@ public static CompletableFuture getActiveFolderPlain(GetA public static Output getActiveFolder(GetActiveFolderArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getActiveFolder:getActiveFolder", TypeShape.of(GetActiveFolderResult.class), args, Utilities.withVersion(options)); } + /** + * Get an active folder within GCP by `display_name` and `parent`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var department1 = OrganizationsFunctions.getActiveFolder(GetActiveFolderArgs.builder()
+     *             .displayName("Department 1")
+     *             .parent("organizations/1234567")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getActiveFolder(GetActiveFolderArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getActiveFolder:getActiveFolder", TypeShape.of(GetActiveFolderResult.class), args, Utilities.withVersion(options)); + } /** * Get an active folder within GCP by `display_name` and `parent`. * @@ -457,6 +501,56 @@ public static CompletableFuture getBillingAccountPlain( public static Output getBillingAccount(GetBillingAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getBillingAccount:getBillingAccount", TypeShape.of(GetBillingAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Google Billing Account. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetBillingAccountArgs;
+     * import com.pulumi.gcp.organizations.Project;
+     * import com.pulumi.gcp.organizations.ProjectArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var acct = OrganizationsFunctions.getBillingAccount(GetBillingAccountArgs.builder()
+     *             .displayName("My Billing Account")
+     *             .open(true)
+     *             .build());
+     * 
+     *         var myProject = new Project("myProject", ProjectArgs.builder()
+     *             .name("My Project")
+     *             .projectId("your-project-id")
+     *             .orgId("1234567")
+     *             .billingAccount(acct.applyValue(getBillingAccountResult -> getBillingAccountResult.id()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBillingAccount(GetBillingAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getBillingAccount:getBillingAccount", TypeShape.of(GetBillingAccountResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Google Billing Account. * @@ -892,6 +986,83 @@ public static CompletableFuture getClientConfigPlain(Invo public static Output getClientConfig(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getClientConfig:getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var current = OrganizationsFunctions.getClientConfig();
+     * 
+     *         ctx.export("project", current.applyValue(getClientConfigResult -> getClientConfigResult.project()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Configure Kubernetes Provider With OAuth2 Access Token + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .zone("us-east1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getClientConfig(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getClientConfig:getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * @@ -1254,6 +1425,63 @@ public static CompletableFuture getClientOpenIdUs public static Output getClientOpenIdUserInfo(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", TypeShape.of(GetClientOpenIdUserInfoResult.class), args, Utilities.withVersion(options)); } + /** + * Get OpenID userinfo about the credentials used with the Google provider, + * specifically the email. + * + * This datasource enables you to export the email of the account you've + * authenticated the provider with; this can be used alongside + * `data.google_client_config`'s `access_token` to perform OpenID Connect + * authentication with GKE and configure an RBAC role for the email used. + * + * > This resource will only work as expected if the provider is configured to + * use the `https://www.googleapis.com/auth/userinfo.email` scope! You will + * receive an error otherwise. The provider uses this scope by default. + * + * ## Example Usage + * + * ### Exporting An Email + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var me = OrganizationsFunctions.getClientOpenIdUserInfo();
+     * 
+     *         ctx.export("my-email", me.applyValue(getClientOpenIdUserInfoResult -> getClientOpenIdUserInfoResult.email()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### OpenID Connect W/ Kubernetes Provider + RBAC IAM Role + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + */ + public static Output getClientOpenIdUserInfo(InvokeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getClientOpenIdUserInfo:getClientOpenIdUserInfo", TypeShape.of(GetClientOpenIdUserInfoResult.class), args, Utilities.withVersion(options)); + } /** * Get OpenID userinfo about the credentials used with the Google provider, * specifically the email. @@ -1452,6 +1680,53 @@ public static CompletableFuture getFolderPlain(GetFolderPlainAr public static Output getFolder(GetFolderArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getFolder:getFolder", TypeShape.of(GetFolderResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Google Cloud Folder. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetFolderArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myFolder1 = OrganizationsFunctions.getFolder(GetFolderArgs.builder()
+     *             .folder("folders/12345")
+     *             .lookupOrganization(true)
+     *             .build());
+     * 
+     *         final var myFolder2 = OrganizationsFunctions.getFolder(GetFolderArgs.builder()
+     *             .folder("folders/23456")
+     *             .build());
+     * 
+     *         ctx.export("myFolder1Organization", myFolder1.applyValue(getFolderResult -> getFolderResult.organization()));
+     *         ctx.export("myFolder2Parent", myFolder2.applyValue(getFolderResult -> getFolderResult.parent()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFolder(GetFolderArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getFolder:getFolder", TypeShape.of(GetFolderResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Google Cloud Folder. * @@ -1652,6 +1927,57 @@ public static CompletableFuture getFoldersPlain(GetFoldersPlai public static Output getFolders(GetFoldersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getFolders:getFolders", TypeShape.of(GetFoldersResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieve information about a set of folders based on a parent ID. See the + * [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list) + * for more details. + * + * ## Example Usage + * + * ### Searching For Folders At The Root Of An Org + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetFoldersArgs;
+     * import com.pulumi.gcp.organizations.inputs.GetFolderArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-org-folders = OrganizationsFunctions.getFolders(GetFoldersArgs.builder()
+     *             .parentId(String.format("organizations/%s", organizationId))
+     *             .build());
+     * 
+     *         final var first-folder = OrganizationsFunctions.getFolder(GetFolderArgs.builder()
+     *             .folder(my_org_folders.folders()[0].name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getFolders(GetFoldersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getFolders:getFolders", TypeShape.of(GetFoldersResult.class), args, Utilities.withVersion(options)); + } /** * Retrieve information about a set of folders based on a parent ID. See the * [REST API](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list) @@ -1753,6 +2079,16 @@ public static CompletableFuture getIAMPolicyPlain(GetIAMPoli public static Output getIAMPolicy(GetIAMPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getIAMPolicy:getIAMPolicy", TypeShape.of(GetIAMPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Generates an IAM policy document that may be referenced by and applied to + * other Google Cloud Platform IAM resources, such as the `gcp.projects.IAMPolicy` resource. + * + * **Note:** Please review the documentation of the resource that you will be using the datasource with. Some resources such as `gcp.projects.IAMPolicy` and others have limitations in their API methods which are noted on their respective page. + * + */ + public static Output getIAMPolicy(GetIAMPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getIAMPolicy:getIAMPolicy", TypeShape.of(GetIAMPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Generates an IAM policy document that may be referenced by and applied to * other Google Cloud Platform IAM resources, such as the `gcp.projects.IAMPolicy` resource. @@ -1998,6 +2334,53 @@ public static CompletableFuture getOrganizationPlain(GetO public static Output getOrganization(GetOrganizationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getOrganization:getOrganization", TypeShape.of(GetOrganizationResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Organization. Note that you must have the `roles/resourcemanager.organizationViewer` role (or equivalent permissions) at the organization level to use this datasource. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetOrganizationArgs;
+     * import com.pulumi.gcp.organizations.Folder;
+     * import com.pulumi.gcp.organizations.FolderArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var org = OrganizationsFunctions.getOrganization(GetOrganizationArgs.builder()
+     *             .domain("example.com")
+     *             .build());
+     * 
+     *         var sales = new Folder("sales", FolderArgs.builder()
+     *             .displayName("Sales")
+     *             .parent(org.applyValue(getOrganizationResult -> getOrganizationResult.name()))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOrganization(GetOrganizationArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getOrganization:getOrganization", TypeShape.of(GetOrganizationResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Organization. Note that you must have the `roles/resourcemanager.organizationViewer` role (or equivalent permissions) at the organization level to use this datasource. * @@ -2260,6 +2643,49 @@ public static CompletableFuture getProjectPlain(GetProjectPlai public static Output getProject(GetProjectArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get project details. + * For more information see + * [API](https://cloud.google.com/resource-manager/reference/rest/v1/projects#Project) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var project = OrganizationsFunctions.getProject();
+     * 
+     *         ctx.export("projectNumber", project.applyValue(getProjectResult -> getProjectResult.number()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProject(GetProjectArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:organizations/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get project details. * For more information see diff --git a/sdk/java/src/main/java/com/pulumi/gcp/privilegedaccessmanager/PrivilegedaccessmanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/privilegedaccessmanager/PrivilegedaccessmanagerFunctions.java index d0225f1a72..12dc371d93 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/privilegedaccessmanager/PrivilegedaccessmanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/privilegedaccessmanager/PrivilegedaccessmanagerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.privilegedaccessmanager.inputs.GetEntitlementArgs; import com.pulumi.gcp.privilegedaccessmanager.inputs.GetEntitlementPlainArgs; @@ -264,6 +265,56 @@ public static CompletableFuture getEntitlementPlain(GetEnt public static Output getEntitlement(GetEntitlementArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", TypeShape.of(GetEntitlementResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Google Cloud Privileged Access Manager Entitlement. + * + * To get more information about Privileged Access Manager, see: + * + * * [API Documentation](https://cloud.google.com/iam/docs/reference/pam/rest) + * * How-to guides + * * [Official documentation](https://cloud.google.com/iam/docs/pam-overview) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.privilegedaccessmanager.PrivilegedaccessmanagerFunctions;
+     * import com.pulumi.gcp.privilegedaccessmanager.inputs.GetEntitlementArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-entitlement = PrivilegedaccessmanagerFunctions.getEntitlement(GetEntitlementArgs.builder()
+     *             .parent("projects/my-project")
+     *             .location("global")
+     *             .entitlementId("my-entitlement")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getEntitlement(GetEntitlementArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:privilegedaccessmanager/getEntitlement:getEntitlement", TypeShape.of(GetEntitlementResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Google Cloud Privileged Access Manager Entitlement. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/projects/ProjectsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/projects/ProjectsFunctions.java index 4cd9976f9e..e7c308bed6 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/projects/ProjectsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/projects/ProjectsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.projects.inputs.GetIamPolicyArgs; import com.pulumi.gcp.projects.inputs.GetIamPolicyPlainArgs; @@ -149,6 +150,48 @@ public static CompletableFuture getIamPolicyPlain(GetIamPoli public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:projects/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a project. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.projects.ProjectsFunctions;
+     * import com.pulumi.gcp.projects.inputs.GetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ProjectsFunctions.getIamPolicy(GetIamPolicyArgs.builder()
+     *             .project("myproject")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:projects/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a project. * @@ -329,6 +372,52 @@ public static CompletableFuture getOrganizationPoli public static Output getOrganizationPolicy(GetOrganizationPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", TypeShape.of(GetOrganizationPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Allows management of Organization policies for a Google Project. For more information see + * [the official + * documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.projects.ProjectsFunctions;
+     * import com.pulumi.gcp.projects.inputs.GetOrganizationPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = ProjectsFunctions.getOrganizationPolicy(GetOrganizationPolicyArgs.builder()
+     *             .project("project-id")
+     *             .constraint("constraints/serviceuser.services")
+     *             .build());
+     * 
+     *         ctx.export("version", policy.applyValue(getOrganizationPolicyResult -> getOrganizationPolicyResult.version()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getOrganizationPolicy(GetOrganizationPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:projects/getOrganizationPolicy:getOrganizationPolicy", TypeShape.of(GetOrganizationPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Allows management of Organization policies for a Google Project. For more information see * [the official @@ -531,6 +620,58 @@ public static CompletableFuture getProjectPlain(GetProjectPlai public static Output getProject(GetProjectArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:projects/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieve information about a set of projects based on a filter. See the + * [REST API](https://cloud.google.com/resource-manager/reference/rest/v1/projects/list) + * for more details. + * + * ## Example Usage + * + * ### Searching For Projects About To Be Deleted In An Org + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.projects.ProjectsFunctions;
+     * import com.pulumi.gcp.projects.inputs.GetProjectArgs;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-org-projects = ProjectsFunctions.getProject(GetProjectArgs.builder()
+     *             .filter("parent.id:012345678910 lifecycleState:DELETE_REQUESTED")
+     *             .build());
+     * 
+     *         final var deletion-candidate = OrganizationsFunctions.getProject(GetProjectArgs.builder()
+     *             .projectId(my_org_projects.projects()[0].projectId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProject(GetProjectArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:projects/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options)); + } /** * Retrieve information about a set of projects based on a filter. See the * [REST API](https://cloud.google.com/resource-manager/reference/rest/v1/projects/list) @@ -745,6 +886,60 @@ public static CompletableFuture getProjectServicePlain( public static Output getProjectService(GetProjectServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:projects/getProjectService:getProjectService", TypeShape.of(GetProjectServiceResult.class), args, Utilities.withVersion(options)); } + /** + * Verify the API service for the Google Cloud Platform project to see if it is enabled or not. + * + * For a list of services available, visit the [API library page](https://console.cloud.google.com/apis/library) + * or run `gcloud services list --available`. + * + * This datasource requires the [Service Usage API](https://console.cloud.google.com/apis/library/serviceusage.googleapis.com) + * to use. + * + * To get more information about `gcp.projects.Service`, see: + * + * * [API documentation](https://cloud.google.com/service-usage/docs/reference/rest/v1/services) + * * How-to Guides + * * [Enabling and Disabling Services](https://cloud.google.com/service-usage/docs/enable-disable) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.projects.ProjectsFunctions;
+     * import com.pulumi.gcp.projects.inputs.GetProjectServiceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-project-service = ProjectsFunctions.getProjectService(GetProjectServiceArgs.builder()
+     *             .service("my-project-service")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getProjectService(GetProjectServiceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:projects/getProjectService:getProjectService", TypeShape.of(GetProjectServiceResult.class), args, Utilities.withVersion(options)); + } /** * Verify the API service for the Google Cloud Platform project to see if it is enabled or not. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/pubsub/PubsubFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/pubsub/PubsubFunctions.java index 10349a87f6..852667d9d5 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/pubsub/PubsubFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/pubsub/PubsubFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.pubsub.inputs.GetSchemaIamPolicyArgs; import com.pulumi.gcp.pubsub.inputs.GetSchemaIamPolicyPlainArgs; @@ -155,6 +156,49 @@ public static CompletableFuture getSchemaIamPolicyPlai public static Output getSchemaIamPolicy(GetSchemaIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", TypeShape.of(GetSchemaIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for schema + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.pubsub.PubsubFunctions;
+     * import com.pulumi.gcp.pubsub.inputs.GetSchemaIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = PubsubFunctions.getSchemaIamPolicy(GetSchemaIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .schema(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSchemaIamPolicy(GetSchemaIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:pubsub/getSchemaIamPolicy:getSchemaIamPolicy", TypeShape.of(GetSchemaIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for schema * @@ -330,6 +374,50 @@ public static CompletableFuture getSubscriptionPlain(GetS public static Output getSubscription(GetSubscriptionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:pubsub/getSubscription:getSubscription", TypeShape.of(GetSubscriptionResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Pub/Sub Subscription. For more information see + * the [official documentation](https://cloud.google.com/pubsub/docs/) + * and [API](https://cloud.google.com/pubsub/docs/apis). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.pubsub.PubsubFunctions;
+     * import com.pulumi.gcp.pubsub.inputs.GetSubscriptionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-pubsub-subscription = PubsubFunctions.getSubscription(GetSubscriptionArgs.builder()
+     *             .name("my-pubsub-subscription")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubscription(GetSubscriptionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:pubsub/getSubscription:getSubscription", TypeShape.of(GetSubscriptionResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Pub/Sub Subscription. For more information see * the [official documentation](https://cloud.google.com/pubsub/docs/) @@ -500,6 +588,48 @@ public static CompletableFuture getSubscriptionI public static Output getSubscriptionIamPolicy(GetSubscriptionIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", TypeShape.of(GetSubscriptionIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Pubsub subscription. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.pubsub.PubsubFunctions;
+     * import com.pulumi.gcp.pubsub.inputs.GetSubscriptionIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = PubsubFunctions.getSubscriptionIamPolicy(GetSubscriptionIamPolicyArgs.builder()
+     *             .subscription(subscription.id())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubscriptionIamPolicy(GetSubscriptionIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:pubsub/getSubscriptionIamPolicy:getSubscriptionIamPolicy", TypeShape.of(GetSubscriptionIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Pubsub subscription. * @@ -674,6 +804,50 @@ public static CompletableFuture getTopicPlain(GetTopicPlainArgs public static Output getTopic(GetTopicArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:pubsub/getTopic:getTopic", TypeShape.of(GetTopicResult.class), args, Utilities.withVersion(options)); } + /** + * Get information about a Google Cloud Pub/Sub Topic. For more information see + * the [official documentation](https://cloud.google.com/pubsub/docs/) + * and [API](https://cloud.google.com/pubsub/docs/apis). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.pubsub.PubsubFunctions;
+     * import com.pulumi.gcp.pubsub.inputs.GetTopicArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-pubsub-topic = PubsubFunctions.getTopic(GetTopicArgs.builder()
+     *             .name("my-pubsub-topic")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTopic(GetTopicArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:pubsub/getTopic:getTopic", TypeShape.of(GetTopicResult.class), args, Utilities.withVersion(options)); + } /** * Get information about a Google Cloud Pub/Sub Topic. For more information see * the [official documentation](https://cloud.google.com/pubsub/docs/) @@ -847,6 +1021,49 @@ public static CompletableFuture getTopicIamPolicyPlain( public static Output getTopicIamPolicy(GetTopicIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", TypeShape.of(GetTopicIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for topic + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.pubsub.PubsubFunctions;
+     * import com.pulumi.gcp.pubsub.inputs.GetTopicIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = PubsubFunctions.getTopicIamPolicy(GetTopicIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .topic(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTopicIamPolicy(GetTopicIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:pubsub/getTopicIamPolicy:getTopicIamPolicy", TypeShape.of(GetTopicIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for topic * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java index 7ceaf7b98b..0d9fd53e97 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.redis.inputs.GetInstanceArgs; import com.pulumi.gcp.redis.inputs.GetInstancePlainArgs; @@ -149,6 +150,51 @@ public static CompletableFuture getInstancePlain(GetInstanceP public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:redis/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); } + /** + * Get info about a Google Cloud Redis instance. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.redis.RedisFunctions;
+     * import com.pulumi.gcp.redis.inputs.GetInstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myInstance = RedisFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-redis-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceMemorySizeGb", myInstance.applyValue(getInstanceResult -> getInstanceResult.memorySizeGb()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.connectMode()));
+     *         ctx.export("instanceAuthorizedNetwork", myInstance.applyValue(getInstanceResult -> getInstanceResult.authorizedNetwork()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstance(GetInstanceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:redis/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); + } /** * Get info about a Google Cloud Redis instance. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/runtimeconfig/RuntimeconfigFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/runtimeconfig/RuntimeconfigFunctions.java index f1629b6bcb..c8661e8756 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/runtimeconfig/RuntimeconfigFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/runtimeconfig/RuntimeconfigFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.runtimeconfig.inputs.GetConfigArgs; import com.pulumi.gcp.runtimeconfig.inputs.GetConfigIamPolicyArgs; @@ -140,6 +141,46 @@ public static CompletableFuture getConfigPlain(GetConfigPlainAr public static Output getConfig(GetConfigArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:runtimeconfig/getConfig:getConfig", TypeShape.of(GetConfigResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.runtimeconfig.RuntimeconfigFunctions;
+     * import com.pulumi.gcp.runtimeconfig.inputs.GetConfigArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var run-service = RuntimeconfigFunctions.getConfig(GetConfigArgs.builder()
+     *             .name("my-service")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConfig(GetConfigArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:runtimeconfig/getConfig:getConfig", TypeShape.of(GetConfigResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * @@ -189,6 +230,9 @@ public static CompletableFuture getConfigIamPolicyPlai public static Output getConfigIamPolicy(GetConfigIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", TypeShape.of(GetConfigIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getConfigIamPolicy(GetConfigIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", TypeShape.of(GetConfigIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getConfigIamPolicyPlain(GetConfigIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:runtimeconfig/getConfigIamPolicy:getConfigIamPolicy", TypeShape.of(GetConfigIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -315,6 +359,47 @@ public static CompletableFuture getVariablePlain(GetVariableP public static Output getVariable(GetVariableArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:runtimeconfig/getVariable:getVariable", TypeShape.of(GetVariableResult.class), args, Utilities.withVersion(options)); } + /** + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.runtimeconfig.RuntimeconfigFunctions;
+     * import com.pulumi.gcp.runtimeconfig.inputs.GetVariableArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var run-service = RuntimeconfigFunctions.getVariable(GetVariableArgs.builder()
+     *             .parent("my-service")
+     *             .name("prod-variables/hostname")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVariable(GetVariableArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:runtimeconfig/getVariable:getVariable", TypeShape.of(GetVariableResult.class), args, Utilities.withVersion(options)); + } /** * ## Example Usage * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java index bda72245e1..e0793cafb9 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretArgs; import com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretIamPolicyArgs; @@ -170,6 +171,49 @@ public static CompletableFuture getRegionalSecretPlain( public static Output getRegionalSecret(GetRegionalSecretArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecret:getRegionalSecret", TypeShape.of(GetRegionalSecretResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Secret Manager Regional Secret + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var secretDatasource = SecretmanagerFunctions.getRegionalSecret(GetRegionalSecretArgs.builder()
+     *             .secretId("secretname")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionalSecret(GetRegionalSecretArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecret:getRegionalSecret", TypeShape.of(GetRegionalSecretResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Secret Manager Regional Secret * @@ -345,6 +389,50 @@ public static CompletableFuture getRegionalSec public static Output getRegionalSecretIamPolicy(GetRegionalSecretIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", TypeShape.of(GetRegionalSecretIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for regionalsecret + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = SecretmanagerFunctions.getRegionalSecretIamPolicy(GetRegionalSecretIamPolicyArgs.builder()
+     *             .project(regional_secret_basic.project())
+     *             .location(regional_secret_basic.location())
+     *             .secretId(regional_secret_basic.secretId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionalSecretIamPolicy(GetRegionalSecretIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecretIamPolicy:getRegionalSecretIamPolicy", TypeShape.of(GetRegionalSecretIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for regionalsecret * @@ -518,6 +606,49 @@ public static CompletableFuture getRegionalSecre public static Output getRegionalSecretVersion(GetRegionalSecretVersionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", TypeShape.of(GetRegionalSecretVersionResult.class), args, Utilities.withVersion(options)); } + /** + * Get the value and metadata from a Secret Manager regional secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the regional secret version only), see also the gcp.secretmanager.getRegionalSecretVersionAccess datasource. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var basic = SecretmanagerFunctions.getRegionalSecretVersion(GetRegionalSecretVersionArgs.builder()
+     *             .secret("my-secret")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionalSecretVersion(GetRegionalSecretVersionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecretVersion:getRegionalSecretVersion", TypeShape.of(GetRegionalSecretVersionResult.class), args, Utilities.withVersion(options)); + } /** * Get the value and metadata from a Secret Manager regional secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the regional secret version only), see also the gcp.secretmanager.getRegionalSecretVersionAccess datasource. * @@ -690,6 +821,49 @@ public static CompletableFuture getRegiona public static Output getRegionalSecretVersionAccess(GetRegionalSecretVersionAccessArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", TypeShape.of(GetRegionalSecretVersionAccessResult.class), args, Utilities.withVersion(options)); } + /** + * Get the value from a Secret Manager regional secret version. This is similar to the gcp.secretmanager.RegionalSecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions/access). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretVersionAccessArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var latest = SecretmanagerFunctions.getRegionalSecretVersionAccess(GetRegionalSecretVersionAccessArgs.builder()
+     *             .secret("my-secret")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionalSecretVersionAccess(GetRegionalSecretVersionAccessArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecretVersionAccess:getRegionalSecretVersionAccess", TypeShape.of(GetRegionalSecretVersionAccessResult.class), args, Utilities.withVersion(options)); + } /** * Get the value from a Secret Manager regional secret version. This is similar to the gcp.secretmanager.RegionalSecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/regional-secrets-overview) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.locations.secrets.versions/access). * @@ -859,6 +1033,48 @@ public static CompletableFuture getRegionalSecretsPlai public static Output getRegionalSecrets(GetRegionalSecretsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", TypeShape.of(GetRegionalSecretsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to list the Secret Manager Regional Secrets. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetRegionalSecretsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var secrets = SecretmanagerFunctions.getRegionalSecrets(GetRegionalSecretsArgs.builder()
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionalSecrets(GetRegionalSecretsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getRegionalSecrets:getRegionalSecrets", TypeShape.of(GetRegionalSecretsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to list the Secret Manager Regional Secrets. * @@ -1027,6 +1243,48 @@ public static CompletableFuture getSecretPlain(GetSecretPlainAr public static Output getSecret(GetSecretArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getSecret:getSecret", TypeShape.of(GetSecretResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Secret Manager Secret + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetSecretArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var qa = SecretmanagerFunctions.getSecret(GetSecretArgs.builder()
+     *             .secretId("foobar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecret(GetSecretArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getSecret:getSecret", TypeShape.of(GetSecretResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Secret Manager Secret * @@ -1198,6 +1456,49 @@ public static CompletableFuture getSecretIamPolicyPlai public static Output getSecretIamPolicy(GetSecretIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", TypeShape.of(GetSecretIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for secret + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetSecretIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = SecretmanagerFunctions.getSecretIamPolicy(GetSecretIamPolicyArgs.builder()
+     *             .project(secret_basic.project())
+     *             .secretId(secret_basic.secretId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecretIamPolicy(GetSecretIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", TypeShape.of(GetSecretIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for secret * @@ -1367,6 +1668,48 @@ public static CompletableFuture getSecretVersionPlain(Ge public static Output getSecretVersion(GetSecretVersionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getSecretVersion:getSecretVersion", TypeShape.of(GetSecretVersionResult.class), args, Utilities.withVersion(options)); } + /** + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetSecretVersionArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var basic = SecretmanagerFunctions.getSecretVersion(GetSecretVersionArgs.builder()
+     *             .secret("my-secret")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecretVersion(GetSecretVersionArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getSecretVersion:getSecretVersion", TypeShape.of(GetSecretVersionResult.class), args, Utilities.withVersion(options)); + } /** * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * @@ -1535,6 +1878,48 @@ public static CompletableFuture getSecretVersionAc public static Output getSecretVersionAccess(GetSecretVersionAccessArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", TypeShape.of(GetSecretVersionAccessResult.class), args, Utilities.withVersion(options)); } + /** + * Get the value from a Secret Manager secret version. This is similar to the gcp.secretmanager.SecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions/access). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetSecretVersionAccessArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var basic = SecretmanagerFunctions.getSecretVersionAccess(GetSecretVersionAccessArgs.builder()
+     *             .secret("my-secret")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecretVersionAccess(GetSecretVersionAccessArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getSecretVersionAccess:getSecretVersionAccess", TypeShape.of(GetSecretVersionAccessResult.class), args, Utilities.withVersion(options)); + } /** * Get the value from a Secret Manager secret version. This is similar to the gcp.secretmanager.SecretVersion datasource, but it only requires the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions/access). * @@ -1777,6 +2162,46 @@ public static CompletableFuture getSecretsPlain(GetSecretsPlai public static Output getSecrets(GetSecretsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:secretmanager/getSecrets:getSecrets", TypeShape.of(GetSecretsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to list the Secret Manager Secrets + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.secretmanager.SecretmanagerFunctions;
+     * import com.pulumi.gcp.secretmanager.inputs.GetSecretsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var secrets = SecretmanagerFunctions.getSecrets();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSecrets(GetSecretsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:secretmanager/getSecrets:getSecrets", TypeShape.of(GetSecretsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to list the Secret Manager Secrets * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/securesourcemanager/SecuresourcemanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/securesourcemanager/SecuresourcemanagerFunctions.java index 83d46057c5..a23a08a501 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/securesourcemanager/SecuresourcemanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/securesourcemanager/SecuresourcemanagerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.securesourcemanager.inputs.GetInstanceIamPolicyArgs; import com.pulumi.gcp.securesourcemanager.inputs.GetInstanceIamPolicyPlainArgs; @@ -149,6 +150,50 @@ public static CompletableFuture getInstanceIamPolicy public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.securesourcemanager.SecuresourcemanagerFunctions;
+     * import com.pulumi.gcp.securesourcemanager.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = SecuresourcemanagerFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .instanceId(default_.instanceId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:securesourcemanager/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for instance * @@ -325,6 +370,50 @@ public static CompletableFuture getRepositoryIamPo public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for repository + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.securesourcemanager.SecuresourcemanagerFunctions;
+     * import com.pulumi.gcp.securesourcemanager.inputs.GetRepositoryIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = SecuresourcemanagerFunctions.getRepositoryIamPolicy(GetRepositoryIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .location(default_.location())
+     *             .repositoryId(default_.repositoryId())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:securesourcemanager/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for repository * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/securitycenter/SecuritycenterFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/securitycenter/SecuritycenterFunctions.java index 3cb80bfe05..f5d58db6c9 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/securitycenter/SecuritycenterFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/securitycenter/SecuritycenterFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.securitycenter.inputs.GetSourceIamPolicyArgs; import com.pulumi.gcp.securitycenter.inputs.GetSourceIamPolicyPlainArgs; @@ -143,6 +144,48 @@ public static CompletableFuture getSourceIamPolicyPlai public static Output getSourceIamPolicy(GetSourceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", TypeShape.of(GetSourceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for source + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.securitycenter.SecuritycenterFunctions;
+     * import com.pulumi.gcp.securitycenter.inputs.GetSourceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = SecuritycenterFunctions.getSourceIamPolicy(GetSourceIamPolicyArgs.builder()
+     *             .source(customSource.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSourceIamPolicy(GetSourceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:securitycenter/getSourceIamPolicy:getSourceIamPolicy", TypeShape.of(GetSourceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for source * @@ -311,6 +354,48 @@ public static CompletableFuture getV2Org public static Output getV2OrganizationSourceIamPolicy(GetV2OrganizationSourceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", TypeShape.of(GetV2OrganizationSourceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for organizationsource + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.securitycenter.SecuritycenterFunctions;
+     * import com.pulumi.gcp.securitycenter.inputs.GetV2OrganizationSourceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = SecuritycenterFunctions.getV2OrganizationSourceIamPolicy(GetV2OrganizationSourceIamPolicyArgs.builder()
+     *             .source(customSource.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getV2OrganizationSourceIamPolicy(GetV2OrganizationSourceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:securitycenter/getV2OrganizationSourceIamPolicy:getV2OrganizationSourceIamPolicy", TypeShape.of(GetV2OrganizationSourceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for organizationsource * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/serviceaccount/ServiceaccountFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/serviceaccount/ServiceaccountFunctions.java index 76849bb6a2..4df4a92802 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/serviceaccount/ServiceaccountFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/serviceaccount/ServiceaccountFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenArgs; import com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenPlainArgs; @@ -311,6 +312,99 @@ public static CompletableFuture getAccountPlain(GetAccountPlai public static Output getAccount(GetAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:serviceaccount/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Get the service account from a project. For more information see + * the official [API](https://cloud.google.com/compute/docs/access/service-accounts) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var objectViewer = ServiceaccountFunctions.getAccount(GetAccountArgs.builder()
+     *             .accountId("object-viewer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Save Key In Kubernetes Secret + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountArgs;
+     * import com.pulumi.gcp.serviceaccount.Key;
+     * import com.pulumi.gcp.serviceaccount.KeyArgs;
+     * import com.pulumi.kubernetes.core_v1.Secret;
+     * import com.pulumi.kubernetes.core_v1.SecretArgs;
+     * import com.pulumi.kubernetes.meta_v1.inputs.ObjectMetaArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myaccount = ServiceaccountFunctions.getAccount(GetAccountArgs.builder()
+     *             .accountId("myaccount-id")
+     *             .build());
+     * 
+     *         var mykey = new Key("mykey", KeyArgs.builder()
+     *             .serviceAccountId(myaccount.applyValue(getAccountResult -> getAccountResult.name()))
+     *             .build());
+     * 
+     *         var google_application_credentials = new Secret("google-application-credentials", SecretArgs.builder()
+     *             .metadata(ObjectMetaArgs.builder()
+     *                 .name("google-application-credentials")
+     *                 .build())
+     *             .data(Map.of("json", StdFunctions.base64decode().applyValue(invoke -> invoke.result())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccount(GetAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:serviceaccount/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options)); + } /** * Get the service account from a project. For more information see * the official [API](https://cloud.google.com/compute/docs/access/service-accounts) documentation. @@ -738,22 +832,273 @@ public static Output getAccountAccessToken(GetAccou * Pulumi.run(App::stack); * }}{@code * - * public static void stack(Context ctx) }{{@code - * var token_creator_iam = new IAMBinding("token-creator-iam", IAMBindingArgs.builder() - * .serviceAccountId("projects/-/serviceAccounts/service_B}{@literal @}{@code projectB.iam.gserviceaccount.com") - * .role("roles/iam.serviceAccountTokenCreator") - * .members("serviceAccount:service_A}{@literal @}{@code projectA.iam.gserviceaccount.com") + * public static void stack(Context ctx) }{{@code + * var token_creator_iam = new IAMBinding("token-creator-iam", IAMBindingArgs.builder() + * .serviceAccountId("projects/-/serviceAccounts/service_B}{@literal @}{@code projectB.iam.gserviceaccount.com") + * .role("roles/iam.serviceAccountTokenCreator") + * .members("serviceAccount:service_A}{@literal @}{@code projectA.iam.gserviceaccount.com") + * .build()); + * + * }}{@code + * }}{@code + * } + * + * <!--End PulumiCodeChooser --> + * + * Once the IAM permissions are set, you can apply the new token to a provider bootstrapped with it. Any resources that references the aliased provider will run as the new identity. + * + * In the example below, `gcp.organizations.Project` will run as `service_B`. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var defaultGetAccountAccessToken = ServiceaccountFunctions.getAccountAccessToken(GetAccountAccessTokenArgs.builder()
+     *             .targetServiceAccount("service_B}{@literal @}{@code projectB.iam.gserviceaccount.com")
+     *             .scopes(            
+     *                 "userinfo-email",
+     *                 "cloud-platform")
+     *             .lifetime("300s")
+     *             .build());
+     * 
+     *         final var me = OrganizationsFunctions.getClientOpenIdUserInfo();
+     * 
+     *         ctx.export("target-email", me.applyValue(getClientOpenIdUserInfoResult -> getClientOpenIdUserInfoResult.email()));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * > *Note*: the generated token is non-refreshable and can have a maximum `lifetime` of `3600` seconds. + * + */ + public static Output getAccountAccessToken(GetAccountAccessTokenArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", TypeShape.of(GetAccountAccessTokenResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides a google `oauth2` `access_token` for a different service account than the one initially running the script. + * + * For more information see + * [the official documentation](https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials) as well as [iamcredentials.generateAccessToken()](https://cloud.google.com/iam/credentials/reference/rest/v1/projects.serviceAccounts/generateAccessToken) + * + * ## Example Usage + * + * To allow `service_A` to impersonate `service_B`, grant the [Service Account Token Creator](https://cloud.google.com/iam/docs/service-accounts#the_service_account_token_creator_role) on B to A. + * + * In the IAM policy below, `service_A` is given the Token Creator role impersonate `service_B` + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.IAMBinding;
+     * import com.pulumi.gcp.serviceaccount.IAMBindingArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var token_creator_iam = new IAMBinding("token-creator-iam", IAMBindingArgs.builder()
+     *             .serviceAccountId("projects/-/serviceAccounts/service_B}{@literal @}{@code projectB.iam.gserviceaccount.com")
+     *             .role("roles/iam.serviceAccountTokenCreator")
+     *             .members("serviceAccount:service_A}{@literal @}{@code projectA.iam.gserviceaccount.com")
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Once the IAM permissions are set, you can apply the new token to a provider bootstrapped with it. Any resources that references the aliased provider will run as the new identity. + * + * In the example below, `gcp.organizations.Project` will run as `service_B`. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var defaultGetAccountAccessToken = ServiceaccountFunctions.getAccountAccessToken(GetAccountAccessTokenArgs.builder()
+     *             .targetServiceAccount("service_B}{@literal @}{@code projectB.iam.gserviceaccount.com")
+     *             .scopes(            
+     *                 "userinfo-email",
+     *                 "cloud-platform")
+     *             .lifetime("300s")
+     *             .build());
+     * 
+     *         final var me = OrganizationsFunctions.getClientOpenIdUserInfo();
+     * 
+     *         ctx.export("target-email", me.applyValue(getClientOpenIdUserInfoResult -> getClientOpenIdUserInfoResult.email()));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * > *Note*: the generated token is non-refreshable and can have a maximum `lifetime` of `3600` seconds. + * + */ + public static CompletableFuture getAccountAccessTokenPlain(GetAccountAccessTokenPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", TypeShape.of(GetAccountAccessTokenResult.class), args, Utilities.withVersion(options)); + } + /** + * This data source provides a Google OpenID Connect (`oidc`) `id_token`. Tokens issued from this data source are typically used to call external services that accept OIDC tokens for authentication (e.g. [Google Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service)). + * + * For more information see + * [OpenID Connect](https://openid.net/specs/openid-connect-core-1_0.html#IDToken). + * + * ## Example Usage + * + * ### ServiceAccount JSON Credential File. + * `gcp.serviceaccount.getAccountIdToken` will use the configured provider credentials + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountIdTokenArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var oidc = ServiceaccountFunctions.getAccountIdToken(GetAccountIdTokenArgs.builder()
+     *             .targetAudience("https://foo.bar/")
+     *             .build());
+     * 
+     *         ctx.export("oidcToken", oidc.applyValue(getAccountIdTokenResult -> getAccountIdTokenResult.idToken()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Service Account Impersonation. + * `gcp.serviceaccount.getAccountAccessToken` will use background impersonated credentials provided by `gcp.serviceaccount.getAccountAccessToken`. + * + * Note: to use the following, you must grant `target_service_account` the + * `roles/iam.serviceAccountTokenCreator` role on itself. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenArgs;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountIdTokenArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var impersonated = ServiceaccountFunctions.getAccountAccessToken(GetAccountAccessTokenArgs.builder()
+     *             .targetServiceAccount("impersonated-account}{@literal @}{@code project.iam.gserviceaccount.com")
+     *             .delegates()
+     *             .scopes(            
+     *                 "userinfo-email",
+     *                 "cloud-platform")
+     *             .lifetime("300s")
+     *             .build());
+     * 
+     *         final var oidc = ServiceaccountFunctions.getAccountIdToken(GetAccountIdTokenArgs.builder()
+     *             .targetServiceAccount("impersonated-account}{@literal @}{@code project.iam.gserviceaccount.com")
+     *             .delegates()
+     *             .includeEmail(true)
+     *             .targetAudience("https://foo.bar/")
      *             .build());
      * 
+     *         ctx.export("oidcToken", oidc.applyValue(getAccountIdTokenResult -> getAccountIdTokenResult.idToken()));
      *     }}{@code
      * }}{@code
      * }
      * 
* <!--End PulumiCodeChooser --> * - * Once the IAM permissions are set, you can apply the new token to a provider bootstrapped with it. Any resources that references the aliased provider will run as the new identity. + * ### Invoking Cloud Run Endpoint * - * In the example below, `gcp.organizations.Project` will run as `service_B`. + * The following configuration will invoke [Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service) endpoint where the service account for the provider has been granted `roles/run.invoker` role previously. * * <!--Start PulumiCodeChooser --> *
@@ -763,9 +1108,10 @@ public static Output getAccountAccessToken(GetAccou
      * import com.pulumi.Context;
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
-     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
      * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
-     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountAccessTokenArgs;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountIdTokenArgs;
+     * import com.pulumi.http.HttpFunctions;
+     * import com.pulumi.http.inputs.GetHttpArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -773,36 +1119,31 @@ public static Output getAccountAccessToken(GetAccou
      * import java.nio.file.Files;
      * import java.nio.file.Paths;
      * 
-     * public class App }{{@code
-     *     public static void main(String[] args) }{{@code
+     * public class App {
+     *     public static void main(String[] args) {
      *         Pulumi.run(App::stack);
-     *     }}{@code
-     * 
-     *     public static void stack(Context ctx) }{{@code
-     *         final var default = OrganizationsFunctions.getClientConfig();
+     *     }
      * 
-     *         final var defaultGetAccountAccessToken = ServiceaccountFunctions.getAccountAccessToken(GetAccountAccessTokenArgs.builder()
-     *             .targetServiceAccount("service_B}{@literal @}{@code projectB.iam.gserviceaccount.com")
-     *             .scopes(            
-     *                 "userinfo-email",
-     *                 "cloud-platform")
-     *             .lifetime("300s")
+     *     public static void stack(Context ctx) {
+     *         final var oidc = ServiceaccountFunctions.getAccountIdToken(GetAccountIdTokenArgs.builder()
+     *             .targetAudience("https://your.cloud.run.app/")
      *             .build());
      * 
-     *         final var me = OrganizationsFunctions.getClientOpenIdUserInfo();
+     *         final var cloudrun = HttpFunctions.getHttp(GetHttpArgs.builder()
+     *             .url("https://your.cloud.run.app/")
+     *             .requestHeaders(Map.of("Authorization", String.format("Bearer %s", oidc.applyValue(getAccountIdTokenResult -> getAccountIdTokenResult.idToken()))))
+     *             .build());
      * 
-     *         ctx.export("target-email", me.applyValue(getClientOpenIdUserInfoResult -> getClientOpenIdUserInfoResult.email()));
-     *     }}{@code
-     * }}{@code
+     *         ctx.export("cloudRunResponse", cloudrun.applyValue(getHttpResult -> getHttpResult.body()));
+     *     }
+     * }
      * }
      * 
* <!--End PulumiCodeChooser --> * - * > *Note*: the generated token is non-refreshable and can have a maximum `lifetime` of `3600` seconds. - * */ - public static CompletableFuture getAccountAccessTokenPlain(GetAccountAccessTokenPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:serviceaccount/getAccountAccessToken:getAccountAccessToken", TypeShape.of(GetAccountAccessTokenResult.class), args, Utilities.withVersion(options)); + public static Output getAccountIdToken(GetAccountIdTokenArgs args) { + return getAccountIdToken(args, InvokeOptions.Empty); } /** * This data source provides a Google OpenID Connect (`oidc`) `id_token`. Tokens issued from this data source are typically used to call external services that accept OIDC tokens for authentication (e.g. [Google Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service)). @@ -948,8 +1289,8 @@ public static CompletableFuture getAccountAccessTok * <!--End PulumiCodeChooser --> * */ - public static Output getAccountIdToken(GetAccountIdTokenArgs args) { - return getAccountIdToken(args, InvokeOptions.Empty); + public static CompletableFuture getAccountIdTokenPlain(GetAccountIdTokenPlainArgs args) { + return getAccountIdTokenPlain(args, InvokeOptions.Empty); } /** * This data source provides a Google OpenID Connect (`oidc`) `id_token`. Tokens issued from this data source are typically used to call external services that accept OIDC tokens for authentication (e.g. [Google Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service)). @@ -1095,8 +1436,8 @@ public static Output getAccountIdToken(GetAccountIdToke * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getAccountIdTokenPlain(GetAccountIdTokenPlainArgs args) { - return getAccountIdTokenPlain(args, InvokeOptions.Empty); + public static Output getAccountIdToken(GetAccountIdTokenArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", TypeShape.of(GetAccountIdTokenResult.class), args, Utilities.withVersion(options)); } /** * This data source provides a Google OpenID Connect (`oidc`) `id_token`. Tokens issued from this data source are typically used to call external services that accept OIDC tokens for authentication (e.g. [Google Cloud Run](https://cloud.google.com/run/docs/authenticating/service-to-service)). @@ -1242,7 +1583,7 @@ public static CompletableFuture getAccountIdTokenPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getAccountIdToken(GetAccountIdTokenArgs args, InvokeOptions options) { + public static Output getAccountIdToken(GetAccountIdTokenArgs args, InvokeOutputOptions options) { return Deployment.getInstance().invoke("gcp:serviceaccount/getAccountIdToken:getAccountIdToken", TypeShape.of(GetAccountIdTokenResult.class), args, Utilities.withVersion(options)); } /** @@ -1548,6 +1889,58 @@ public static CompletableFuture getAccountJwtPlain(GetAccou public static Output getAccountJwt(GetAccountJwtArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:serviceaccount/getAccountJwt:getAccountJwt", TypeShape.of(GetAccountJwtResult.class), args, Utilities.withVersion(options)); } + /** + * This data source provides a [self-signed JWT](https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-jwt). Tokens issued from this data source are typically used to call external services that accept JWTs for authentication. + * + * ## Example Usage + * + * Note: in order to use the following, the caller must have _at least_ `roles/iam.serviceAccountTokenCreator` on the `target_service_account`. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountJwtArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var foo = ServiceaccountFunctions.getAccountJwt(GetAccountJwtArgs.builder()
+     *             .targetServiceAccount("impersonated-account}{@literal @}{@code project.iam.gserviceaccount.com")
+     *             .payload(serializeJson(
+     *                 jsonObject(
+     *                     jsonProperty("foo", "bar"),
+     *                     jsonProperty("sub", "subject")
+     *                 )))
+     *             .expiresIn(60)
+     *             .build());
+     * 
+     *         ctx.export("jwt", foo.applyValue(getAccountJwtResult -> getAccountJwtResult.jwt()));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccountJwt(GetAccountJwtArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:serviceaccount/getAccountJwt:getAccountJwt", TypeShape.of(GetAccountJwtResult.class), args, Utilities.withVersion(options)); + } /** * This data source provides a [self-signed JWT](https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-jwt). Tokens issued from this data source are typically used to call external services that accept JWTs for authentication. * @@ -1765,6 +2158,61 @@ public static CompletableFuture getAccountKeyPlain(GetAccou public static Output getAccountKey(GetAccountKeyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:serviceaccount/getAccountKey:getAccountKey", TypeShape.of(GetAccountKeyResult.class), args, Utilities.withVersion(options)); } + /** + * Get service account public key. For more information, see [the official documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and [API](https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys/get). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.Account;
+     * import com.pulumi.gcp.serviceaccount.AccountArgs;
+     * import com.pulumi.gcp.serviceaccount.Key;
+     * import com.pulumi.gcp.serviceaccount.KeyArgs;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetAccountKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         var myaccount = new Account("myaccount", AccountArgs.builder()
+     *             .accountId("dev-foo-account")
+     *             .build());
+     * 
+     *         var mykeyKey = new Key("mykeyKey", KeyArgs.builder()
+     *             .serviceAccountId(myaccount.name())
+     *             .build());
+     * 
+     *         final var mykey = ServiceaccountFunctions.getAccountKey(GetAccountKeyArgs.builder()
+     *             .name(mykeyKey.name())
+     *             .publicKeyType("TYPE_X509_PEM_FILE")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getAccountKey(GetAccountKeyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:serviceaccount/getAccountKey:getAccountKey", TypeShape.of(GetAccountKeyResult.class), args, Utilities.withVersion(options)); + } /** * Get service account public key. For more information, see [the official documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys) and [API](https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts.keys/get). * @@ -1946,6 +2394,48 @@ public static CompletableFuture getIamPolicyPlain(GetIamPoli public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:serviceaccount/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a service account. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = ServiceaccountFunctions.getIamPolicy(GetIamPolicyArgs.builder()
+     *             .serviceAccountId(testAccount.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getIamPolicy(GetIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:serviceaccount/getIamPolicy:getIamPolicy", TypeShape.of(GetIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a service account. * @@ -2218,6 +2708,52 @@ public static CompletableFuture getSPlain(GetSPlainArgs args) { public static Output getS(GetSArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:serviceaccount/getS:getS", TypeShape.of(GetSResult.class), args, Utilities.withVersion(options)); } + /** + * Gets a list of all service accounts from a project. + * See [the official documentation](https://cloud.google.com/iam/docs/service-account-overview) + * and [API](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts). + * + * ## Example Usage + * + * Example service accounts. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.serviceaccount.ServiceaccountFunctions;
+     * import com.pulumi.gcp.serviceaccount.inputs.GetSArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = ServiceaccountFunctions.getS(GetSArgs.builder()
+     *             .project("example-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getS(GetSArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:serviceaccount/getS:getS", TypeShape.of(GetSResult.class), args, Utilities.withVersion(options)); + } /** * Gets a list of all service accounts from a project. * See [the official documentation](https://cloud.google.com/iam/docs/service-account-overview) diff --git a/sdk/java/src/main/java/com/pulumi/gcp/servicedirectory/ServicedirectoryFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/servicedirectory/ServicedirectoryFunctions.java index dae6a6d991..e61463bb9d 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/servicedirectory/ServicedirectoryFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/servicedirectory/ServicedirectoryFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.servicedirectory.inputs.GetNamespaceIamPolicyArgs; import com.pulumi.gcp.servicedirectory.inputs.GetNamespaceIamPolicyPlainArgs; @@ -26,6 +27,9 @@ public static CompletableFuture getNamespaceIamPoli public static Output getNamespaceIamPolicy(GetNamespaceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", TypeShape.of(GetNamespaceIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getNamespaceIamPolicy(GetNamespaceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", TypeShape.of(GetNamespaceIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getNamespaceIamPolicyPlain(GetNamespaceIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:servicedirectory/getNamespaceIamPolicy:getNamespaceIamPolicy", TypeShape.of(GetNamespaceIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -38,6 +42,9 @@ public static CompletableFuture getServiceIamPolicyPl public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getServiceIamPolicy(GetServiceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getServiceIamPolicyPlain(GetServiceIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:servicedirectory/getServiceIamPolicy:getServiceIamPolicy", TypeShape.of(GetServiceIamPolicyResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/servicenetworking/ServicenetworkingFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/servicenetworking/ServicenetworkingFunctions.java index d2673fa74e..333f73e4cf 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/servicenetworking/ServicenetworkingFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/servicenetworking/ServicenetworkingFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.servicenetworking.inputs.GetPeeredDnsDomainArgs; import com.pulumi.gcp.servicenetworking.inputs.GetPeeredDnsDomainPlainArgs; @@ -23,6 +24,9 @@ public static CompletableFuture getPeeredDnsDomainPlai public static Output getPeeredDnsDomain(GetPeeredDnsDomainArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", TypeShape.of(GetPeeredDnsDomainResult.class), args, Utilities.withVersion(options)); } + public static Output getPeeredDnsDomain(GetPeeredDnsDomainArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", TypeShape.of(GetPeeredDnsDomainResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getPeeredDnsDomainPlain(GetPeeredDnsDomainPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:servicenetworking/getPeeredDnsDomain:getPeeredDnsDomain", TypeShape.of(GetPeeredDnsDomainResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/siteverification/SiteverificationFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/siteverification/SiteverificationFunctions.java index d3085be19a..5cace2c26d 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/siteverification/SiteverificationFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/siteverification/SiteverificationFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.siteverification.inputs.GetTokenArgs; import com.pulumi.gcp.siteverification.inputs.GetTokenPlainArgs; @@ -281,6 +282,95 @@ public static CompletableFuture getTokenPlain(GetTokenPlainArgs public static Output getToken(GetTokenArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:siteverification/getToken:getToken", TypeShape.of(GetTokenResult.class), args, Utilities.withVersion(options)); } + /** + * A verification token is used to demonstrate ownership of a website or domain. + * + * To get more information about Token, see: + * + * * [API documentation](https://developers.google.com/site-verification/v1) + * * How-to Guides + * * [Getting Started](https://developers.google.com/site-verification/v1/getting_started) + * + * ## Example Usage + * + * ### Site Verification Via Site META Tag + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.siteverification.SiteverificationFunctions;
+     * import com.pulumi.gcp.siteverification.inputs.GetTokenArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = SiteverificationFunctions.getToken(GetTokenArgs.builder()
+     *             .type("SITE")
+     *             .identifier("https://www.example.com")
+     *             .verificationMethod("META")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Site Verification Via DNS TXT Record + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.siteverification.SiteverificationFunctions;
+     * import com.pulumi.gcp.siteverification.inputs.GetTokenArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = SiteverificationFunctions.getToken(GetTokenArgs.builder()
+     *             .type("INET_DOMAIN")
+     *             .identifier("www.example.com")
+     *             .verificationMethod("DNS_TXT")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getToken(GetTokenArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:siteverification/getToken:getToken", TypeShape.of(GetTokenResult.class), args, Utilities.withVersion(options)); + } /** * A verification token is used to demonstrate ownership of a website or domain. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/sourcerepo/SourcerepoFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/sourcerepo/SourcerepoFunctions.java index d910179276..ae578f4a3c 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/sourcerepo/SourcerepoFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/sourcerepo/SourcerepoFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.sourcerepo.inputs.GetRepositoryArgs; import com.pulumi.gcp.sourcerepo.inputs.GetRepositoryIamPolicyArgs; @@ -152,6 +153,51 @@ public static CompletableFuture getRepositoryPlain(GetRepos public static Output getRepository(GetRepositoryArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sourcerepo/getRepository:getRepository", TypeShape.of(GetRepositoryResult.class), args, Utilities.withVersion(options)); } + /** + * Get infomation about an existing Google Cloud Source Repository. + * For more information see [the official documentation](https://cloud.google.com/source-repositories) + * and + * [API](https://cloud.google.com/source-repositories/docs/reference/rest/v1/projects.repos). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sourcerepo.SourcerepoFunctions;
+     * import com.pulumi.gcp.sourcerepo.inputs.GetRepositoryArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-repo = SourcerepoFunctions.getRepository(GetRepositoryArgs.builder()
+     *             .name("my-repository")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRepository(GetRepositoryArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sourcerepo/getRepository:getRepository", TypeShape.of(GetRepositoryResult.class), args, Utilities.withVersion(options)); + } /** * Get infomation about an existing Google Cloud Source Repository. * For more information see [the official documentation](https://cloud.google.com/source-repositories) @@ -326,6 +372,49 @@ public static CompletableFuture getRepositoryIamPo public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for repository + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sourcerepo.SourcerepoFunctions;
+     * import com.pulumi.gcp.sourcerepo.inputs.GetRepositoryIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = SourcerepoFunctions.getRepositoryIamPolicy(GetRepositoryIamPolicyArgs.builder()
+     *             .project(my_repo.project())
+     *             .repository(my_repo.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRepositoryIamPolicy(GetRepositoryIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sourcerepo/getRepositoryIamPolicy:getRepositoryIamPolicy", TypeShape.of(GetRepositoryIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for repository * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java index 8f6bcb6666..be42bc24ac 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.spanner.inputs.GetDatabaseArgs; import com.pulumi.gcp.spanner.inputs.GetDatabaseIamPolicyArgs; @@ -152,6 +153,49 @@ public static CompletableFuture getDatabasePlain(GetDatabaseP public static Output getDatabase(GetDatabaseArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:spanner/getDatabase:getDatabase", TypeShape.of(GetDatabaseResult.class), args, Utilities.withVersion(options)); } + /** + * Get a spanner database from Google Cloud by its name and instance name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetDatabaseArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = SpannerFunctions.getDatabase(GetDatabaseArgs.builder()
+     *             .name("foo")
+     *             .instance(instance.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabase(GetDatabaseArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:spanner/getDatabase:getDatabase", TypeShape.of(GetDatabaseResult.class), args, Utilities.withVersion(options)); + } /** * Get a spanner database from Google Cloud by its name and instance name. * @@ -327,6 +371,50 @@ public static CompletableFuture getDatabaseIamPolicy public static Output getDatabaseIamPolicy(GetDatabaseIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", TypeShape.of(GetDatabaseIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Spanner database. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetDatabaseIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = SpannerFunctions.getDatabaseIamPolicy(GetDatabaseIamPolicyArgs.builder()
+     *             .project(database.project())
+     *             .database(database.name())
+     *             .instance(database.instance())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabaseIamPolicy(GetDatabaseIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:spanner/getDatabaseIamPolicy:getDatabaseIamPolicy", TypeShape.of(GetDatabaseIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Spanner database. * @@ -497,6 +585,48 @@ public static CompletableFuture getInstancePlain(GetInstanceP public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:spanner/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); } + /** + * Get a spanner instance from Google Cloud by its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetInstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = SpannerFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("bar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstance(GetInstanceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:spanner/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); + } /** * Get a spanner instance from Google Cloud by its name. * @@ -668,6 +798,49 @@ public static CompletableFuture getInstanceIamPolicy public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for a Spanner instance. + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var foo = SpannerFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(instance.project())
+     *             .instance(instance.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:spanner/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for a Spanner instance. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/sql/SqlFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/sql/SqlFunctions.java index 8ecc60abac..c76be89243 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/sql/SqlFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/sql/SqlFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.sql.inputs.GetBackupRunArgs; import com.pulumi.gcp.sql.inputs.GetBackupRunPlainArgs; @@ -164,6 +165,49 @@ public static CompletableFuture getBackupRunPlain(GetBackupR public static Output getBackupRun(GetBackupRunArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getBackupRun:getBackupRun", TypeShape.of(GetBackupRunResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Cloud SQL instance backup run. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sql.SqlFunctions;
+     * import com.pulumi.gcp.sql.inputs.GetBackupRunArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var backup = SqlFunctions.getBackupRun(GetBackupRunArgs.builder()
+     *             .instance(main.name())
+     *             .mostRecent(true)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupRun(GetBackupRunArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getBackupRun:getBackupRun", TypeShape.of(GetBackupRunResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Cloud SQL instance backup run. * @@ -237,6 +281,16 @@ public static CompletableFuture getCaCertsPlain(GetCaCertsPlai public static Output getCaCerts(GetCaCertsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getCaCerts:getCaCerts", TypeShape.of(GetCaCertsResult.class), args, Utilities.withVersion(options)); } + /** + * Get all of the trusted Certificate Authorities (CAs) for the specified SQL database instance. For more information see the + * [official documentation](https://cloud.google.com/sql/) + * and + * [API](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances/listServerCas). + * + */ + public static Output getCaCerts(GetCaCertsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getCaCerts:getCaCerts", TypeShape.of(GetCaCertsResult.class), args, Utilities.withVersion(options)); + } /** * Get all of the trusted Certificate Authorities (CAs) for the specified SQL database instance. For more information see the * [official documentation](https://cloud.google.com/sql/) @@ -376,6 +430,49 @@ public static CompletableFuture getDatabasePlain(GetDatabaseP public static Output getDatabase(GetDatabaseArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getDatabase:getDatabase", TypeShape.of(GetDatabaseResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a database in a Cloud SQL instance. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sql.SqlFunctions;
+     * import com.pulumi.gcp.sql.inputs.GetDatabaseArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var qa = SqlFunctions.getDatabase(GetDatabaseArgs.builder()
+     *             .name("test-sql-database")
+     *             .instance(main.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabase(GetDatabaseArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getDatabase:getDatabase", TypeShape.of(GetDatabaseResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a database in a Cloud SQL instance. * @@ -545,6 +642,48 @@ public static CompletableFuture getDatabaseInstancePl public static Output getDatabaseInstance(GetDatabaseInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getDatabaseInstance:getDatabaseInstance", TypeShape.of(GetDatabaseInstanceResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a Cloud SQL instance. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sql.SqlFunctions;
+     * import com.pulumi.gcp.sql.inputs.GetDatabaseInstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var qa = SqlFunctions.getDatabaseInstance(GetDatabaseInstanceArgs.builder()
+     *             .name("test-sql-instance")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabaseInstance(GetDatabaseInstanceArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getDatabaseInstance:getDatabaseInstance", TypeShape.of(GetDatabaseInstanceResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a Cloud SQL instance. * @@ -725,6 +864,52 @@ public static CompletableFuture get public static Output getDatabaseInstanceLatestRecoveryTime(GetDatabaseInstanceLatestRecoveryTimeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", TypeShape.of(GetDatabaseInstanceLatestRecoveryTimeResult.class), args, Utilities.withVersion(options)); } + /** + * Get Latest Recovery Time for a given instance. For more information see the + * [official documentation](https://cloud.google.com/sql/) + * and + * [API](https://cloud.google.com/sql/docs/postgres/backup-recovery/pitr#get-the-latest-recovery-time). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sql.SqlFunctions;
+     * import com.pulumi.gcp.sql.inputs.GetDatabaseInstanceLatestRecoveryTimeArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = SqlFunctions.getDatabaseInstanceLatestRecoveryTime(GetDatabaseInstanceLatestRecoveryTimeArgs.builder()
+     *             .instance("sample-instance")
+     *             .build());
+     * 
+     *         ctx.export("latestRecoveryTime", default_);
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabaseInstanceLatestRecoveryTime(GetDatabaseInstanceLatestRecoveryTimeArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getDatabaseInstanceLatestRecoveryTime:getDatabaseInstanceLatestRecoveryTime", TypeShape.of(GetDatabaseInstanceLatestRecoveryTimeResult.class), args, Utilities.withVersion(options)); + } /** * Get Latest Recovery Time for a given instance. For more information see the * [official documentation](https://cloud.google.com/sql/) @@ -981,6 +1166,48 @@ public static CompletableFuture getDatabaseInstances public static Output getDatabaseInstances(GetDatabaseInstancesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getDatabaseInstances:getDatabaseInstances", TypeShape.of(GetDatabaseInstancesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a list of Cloud SQL instances in a project. You can also apply some filters over this list to get a more filtered list of Cloud SQL instances. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sql.SqlFunctions;
+     * import com.pulumi.gcp.sql.inputs.GetDatabaseInstancesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var qa = SqlFunctions.getDatabaseInstances(GetDatabaseInstancesArgs.builder()
+     *             .project("test-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabaseInstances(GetDatabaseInstancesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getDatabaseInstances:getDatabaseInstances", TypeShape.of(GetDatabaseInstancesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a list of Cloud SQL instances in a project. You can also apply some filters over this list to get a more filtered list of Cloud SQL instances. * @@ -1146,6 +1373,47 @@ public static CompletableFuture getDatabasesPlain(GetDatabas public static Output getDatabases(GetDatabasesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getDatabases:getDatabases", TypeShape.of(GetDatabasesResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get information about a list of databases in a Cloud SQL instance. + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.sql.SqlFunctions;
+     * import com.pulumi.gcp.sql.inputs.GetDatabasesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var qa = SqlFunctions.getDatabases(GetDatabasesArgs.builder()
+     *             .instance(main.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getDatabases(GetDatabasesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getDatabases:getDatabases", TypeShape.of(GetDatabasesResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get information about a list of databases in a Cloud SQL instance. * ## Example Usage @@ -1262,6 +1530,21 @@ public static CompletableFuture getTiersPlain(GetTiersPlainArgs public static Output getTiers(GetTiersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:sql/getTiers:getTiers", TypeShape.of(GetTiersResult.class), args, Utilities.withVersion(options)); } + /** + * Get all available machine types (tiers) for a project, for example, db-custom-1-3840. For more information see the + * [official documentation](https://cloud.google.com/sql/) + * and + * [API](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/tiers/list). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + */ + public static Output getTiers(GetTiersArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:sql/getTiers:getTiers", TypeShape.of(GetTiersResult.class), args, Utilities.withVersion(options)); + } /** * Get all available machine types (tiers) for a project, for example, db-custom-1-3840. For more information see the * [official documentation](https://cloud.google.com/sql/) diff --git a/sdk/java/src/main/java/com/pulumi/gcp/storage/StorageFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/storage/StorageFunctions.java index e3d25cad17..269ab83785 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/storage/StorageFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/storage/StorageFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.storage.inputs.GetBucketArgs; import com.pulumi.gcp.storage.inputs.GetBucketIamPolicyArgs; @@ -179,6 +180,51 @@ public static CompletableFuture getBucketPlain(GetBucketPlainAr public static Output getBucket(GetBucketArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:storage/getBucket:getBucket", TypeShape.of(GetBucketResult.class), args, Utilities.withVersion(options)); } + /** + * Gets an existing bucket in Google Cloud Storage service (GCS). + * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#buckets) + * and + * [API](https://cloud.google.com/storage/docs/json_api/v1/buckets). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetBucketArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var my-bucket = StorageFunctions.getBucket(GetBucketArgs.builder()
+     *             .name("my-bucket")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBucket(GetBucketArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getBucket:getBucket", TypeShape.of(GetBucketResult.class), args, Utilities.withVersion(options)); + } /** * Gets an existing bucket in Google Cloud Storage service (GCS). * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#buckets) @@ -350,6 +396,48 @@ public static CompletableFuture getBucketIamPolicyPlai public static Output getBucketIamPolicy(GetBucketIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", TypeShape.of(GetBucketIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for bucket + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetBucketIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = StorageFunctions.getBucketIamPolicy(GetBucketIamPolicyArgs.builder()
+     *             .bucket(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBucketIamPolicy(GetBucketIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getBucketIamPolicy:getBucketIamPolicy", TypeShape.of(GetBucketIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for bucket * @@ -632,6 +720,54 @@ public static CompletableFuture getBucketObjectPlain(GetB public static Output getBucketObject(GetBucketObjectArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:storage/getBucketObject:getBucketObject", TypeShape.of(GetBucketObjectResult.class), args, Utilities.withVersion(options)); } + /** + * Gets an existing object inside an existing bucket in Google Cloud Storage service (GCS). + * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + * and + * [API](https://cloud.google.com/storage/docs/json_api/v1/objects). + * + * ## Example Usage + * + * Example picture stored within a folder. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetBucketObjectArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var picture = StorageFunctions.getBucketObject(GetBucketObjectArgs.builder()
+     *             .name("folder/butterfly01.jpg")
+     *             .bucket("image-store")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBucketObject(GetBucketObjectArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getBucketObject:getBucketObject", TypeShape.of(GetBucketObjectResult.class), args, Utilities.withVersion(options)); + } /** * Gets an existing object inside an existing bucket in Google Cloud Storage service (GCS). * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) @@ -833,6 +969,57 @@ public static CompletableFuture getBucketObjectCon public static Output getBucketObjectContent(GetBucketObjectContentArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:storage/getBucketObjectContent:getBucketObjectContent", TypeShape.of(GetBucketObjectContentResult.class), args, Utilities.withVersion(options)); } + /** + * Gets an existing object content inside an existing bucket in Google Cloud Storage service (GCS). + * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + * and + * [API](https://cloud.google.com/storage/docs/json_api/v1/objects). + * + * > **Warning:** The object content will be saved in the state, and visiable to everyone who has access to the state file. + * + * ## Example Usage + * + * Example file object stored within a folder. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetBucketObjectContentArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var key = StorageFunctions.getBucketObjectContent(GetBucketObjectContentArgs.builder()
+     *             .name("encryptedkey")
+     *             .bucket("keystore")
+     *             .build());
+     * 
+     *         ctx.export("encrypted", key.applyValue(getBucketObjectContentResult -> getBucketObjectContentResult.content()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBucketObjectContent(GetBucketObjectContentArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getBucketObjectContent:getBucketObjectContent", TypeShape.of(GetBucketObjectContentResult.class), args, Utilities.withVersion(options)); + } /** * Gets an existing object content inside an existing bucket in Google Cloud Storage service (GCS). * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) @@ -1022,6 +1209,52 @@ public static CompletableFuture getBucketObjectsPlain(Ge public static Output getBucketObjects(GetBucketObjectsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:storage/getBucketObjects:getBucketObjects", TypeShape.of(GetBucketObjectsResult.class), args, Utilities.withVersion(options)); } + /** + * Gets existing objects inside an existing bucket in Google Cloud Storage service (GCS). + * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) + * and [API](https://cloud.google.com/storage/docs/json_api/v1/objects/list). + * + * ## Example Usage + * + * Example files stored within a bucket. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetBucketObjectsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var files = StorageFunctions.getBucketObjects(GetBucketObjectsArgs.builder()
+     *             .bucket("file-store")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBucketObjects(GetBucketObjectsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getBucketObjects:getBucketObjects", TypeShape.of(GetBucketObjectsResult.class), args, Utilities.withVersion(options)); + } /** * Gets existing objects inside an existing bucket in Google Cloud Storage service (GCS). * See [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects) @@ -1330,8 +1563,163 @@ public static Output getBuckets(GetBucketsArgs args, InvokeOpt * } * * public static void stack(Context ctx) { - * final var example = StorageFunctions.getBuckets(GetBucketsArgs.builder() - * .project("example-project") + * final var example = StorageFunctions.getBuckets(GetBucketsArgs.builder() + * .project("example-project") + * .build()); + * + * } + * } + * } + * + * <!--End PulumiCodeChooser --> + * + */ + public static Output getBuckets(GetBucketsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getBuckets:getBuckets", TypeShape.of(GetBucketsResult.class), args, Utilities.withVersion(options)); + } + /** + * Gets a list of existing GCS buckets. + * See [the official documentation](https://cloud.google.com/storage/docs/introduction) + * and [API](https://cloud.google.com/storage/docs/json_api/v1/buckets/list). + * + * ## Example Usage + * + * Example GCS buckets. + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetBucketsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = StorageFunctions.getBuckets(GetBucketsArgs.builder()
+     *             .project("example-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getBucketsPlain(GetBucketsPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:storage/getBuckets:getBuckets", TypeShape.of(GetBucketsResult.class), args, Utilities.withVersion(options)); + } + public static Output getManagedFolderIamPolicy(GetManagedFolderIamPolicyArgs args) { + return getManagedFolderIamPolicy(args, InvokeOptions.Empty); + } + public static CompletableFuture getManagedFolderIamPolicyPlain(GetManagedFolderIamPolicyPlainArgs args) { + return getManagedFolderIamPolicyPlain(args, InvokeOptions.Empty); + } + public static Output getManagedFolderIamPolicy(GetManagedFolderIamPolicyArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", TypeShape.of(GetManagedFolderIamPolicyResult.class), args, Utilities.withVersion(options)); + } + public static Output getManagedFolderIamPolicy(GetManagedFolderIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", TypeShape.of(GetManagedFolderIamPolicyResult.class), args, Utilities.withVersion(options)); + } + public static CompletableFuture getManagedFolderIamPolicyPlain(GetManagedFolderIamPolicyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", TypeShape.of(GetManagedFolderIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * The Google Cloud storage signed URL data source generates a signed URL for a given storage object. Signed URLs provide a way to give time-limited read or write access to anyone in possession of the URL, regardless of whether they have a Google account. + * + * For more info about signed URL's is available [here](https://cloud.google.com/storage/docs/access-control/signed-urls). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetObjectSignedUrlArgs;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var artifact = StorageFunctions.getObjectSignedUrl(GetObjectSignedUrlArgs.builder()
+     *             .bucket("install_binaries")
+     *             .path("path/to/install_file.bin")
+     *             .build());
+     * 
+     *         var vm = new Instance("vm", InstanceArgs.builder()
+     *             .name("vm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ## Full Example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetObjectSignedUrlArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var getUrl = StorageFunctions.getObjectSignedUrl(GetObjectSignedUrlArgs.builder()
+     *             .bucket("fried_chicken")
+     *             .path("path/to/file")
+     *             .contentMd5("pRviqwS4c4OTJRTe03FD1w==")
+     *             .contentType("text/plain")
+     *             .duration("2d")
+     *             .credentials(StdFunctions.file(FileArgs.builder()
+     *                 .input("path/to/credentials.json")
+     *                 .build()).result())
+     *             .extensionHeaders(Map.of("x-goog-if-generation-match", 1))
      *             .build());
      * 
      *     }
@@ -1341,20 +1729,8 @@ public static Output getBuckets(GetBucketsArgs args, InvokeOpt
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getBucketsPlain(GetBucketsPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:storage/getBuckets:getBuckets", TypeShape.of(GetBucketsResult.class), args, Utilities.withVersion(options));
-    }
-    public static Output getManagedFolderIamPolicy(GetManagedFolderIamPolicyArgs args) {
-        return getManagedFolderIamPolicy(args, InvokeOptions.Empty);
-    }
-    public static CompletableFuture getManagedFolderIamPolicyPlain(GetManagedFolderIamPolicyPlainArgs args) {
-        return getManagedFolderIamPolicyPlain(args, InvokeOptions.Empty);
-    }
-    public static Output getManagedFolderIamPolicy(GetManagedFolderIamPolicyArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", TypeShape.of(GetManagedFolderIamPolicyResult.class), args, Utilities.withVersion(options));
-    }
-    public static CompletableFuture getManagedFolderIamPolicyPlain(GetManagedFolderIamPolicyPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy", TypeShape.of(GetManagedFolderIamPolicyResult.class), args, Utilities.withVersion(options));
+    public static Output getObjectSignedUrl(GetObjectSignedUrlArgs args) {
+        return getObjectSignedUrl(args, InvokeOptions.Empty);
     }
     /**
      * The Google Cloud storage signed URL data source generates a signed URL for a given storage object. Signed URLs provide a way to give time-limited read or write access to anyone in possession of the URL, regardless of whether they have a Google account.
@@ -1447,8 +1823,8 @@ public static CompletableFuture getManagedFolde
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getObjectSignedUrl(GetObjectSignedUrlArgs args) {
-        return getObjectSignedUrl(args, InvokeOptions.Empty);
+    public static CompletableFuture getObjectSignedUrlPlain(GetObjectSignedUrlPlainArgs args) {
+        return getObjectSignedUrlPlain(args, InvokeOptions.Empty);
     }
     /**
      * The Google Cloud storage signed URL data source generates a signed URL for a given storage object. Signed URLs provide a way to give time-limited read or write access to anyone in possession of the URL, regardless of whether they have a Google account.
@@ -1541,8 +1917,8 @@ public static Output getObjectSignedUrl(GetObjectSigne
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getObjectSignedUrlPlain(GetObjectSignedUrlPlainArgs args) {
-        return getObjectSignedUrlPlain(args, InvokeOptions.Empty);
+    public static Output getObjectSignedUrl(GetObjectSignedUrlArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", TypeShape.of(GetObjectSignedUrlResult.class), args, Utilities.withVersion(options));
     }
     /**
      * The Google Cloud storage signed URL data source generates a signed URL for a given storage object. Signed URLs provide a way to give time-limited read or write access to anyone in possession of the URL, regardless of whether they have a Google account.
@@ -1635,7 +2011,7 @@ public static CompletableFuture getObjectSignedUrlPlai
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getObjectSignedUrl(GetObjectSignedUrlArgs args, InvokeOptions options) {
+    public static Output getObjectSignedUrl(GetObjectSignedUrlArgs args, InvokeOutputOptions options) {
         return Deployment.getInstance().invoke("gcp:storage/getObjectSignedUrl:getObjectSignedUrl", TypeShape.of(GetObjectSignedUrlResult.class), args, Utilities.withVersion(options));
     }
     /**
@@ -2545,6 +2921,142 @@ public static Output getProjectServiceAccount(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
+    public static Output getProjectServiceAccount(GetProjectServiceAccountArgs args, InvokeOutputOptions options) {
+        return Deployment.getInstance().invoke("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", TypeShape.of(GetProjectServiceAccountResult.class), args, Utilities.withVersion(options));
+    }
+    /**
+     * Get the email address of a project's unique [automatic Google Cloud Storage service account](https://cloud.google.com/storage/docs/projects#service-accounts).
+     * 
+     * For each Google Cloud project, Google maintains a unique service account which
+     * is used as the identity for various Google Cloud Storage operations, including
+     * operations involving
+     * [customer-managed encryption keys](https://cloud.google.com/storage/docs/encryption/customer-managed-keys)
+     * and those involving
+     * [storage notifications to pub/sub](https://cloud.google.com/storage/docs/gsutil/commands/notification).
+     * This automatic Google service account requires access to the relevant Cloud KMS keys or pub/sub topics, respectively, in order for Cloud Storage to use
+     * these customer-managed resources.
+     * 
+     * The service account has a well-known, documented naming format which is parameterised on the numeric Google project ID.
+     * However, as noted in [the docs](https://cloud.google.com/storage/docs/projects#service-accounts), it is only created when certain relevant actions occur which
+     * presuppose its existence.
+     * These actions include calling a [Cloud Storage API endpoint](https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount/get) to yield the
+     * service account's identity, or performing some operations in the UI which must use the service account's identity, such as attempting to list Cloud KMS keys
+     * on the bucket creation page.
+     * 
+     * Use of this data source calls the relevant API endpoint to obtain the service account's identity and thus ensures it exists prior to any API operations
+     * which demand its existence, such as specifying it in Cloud IAM policy.
+     * Always prefer to use this data source over interpolating the project ID into the well-known format for this service account, as the latter approach may cause
+     * provider update errors in cases where the service account does not yet exist.
+     * 
+     * >  When you write provider code which uses features depending on this service account *and* your provider code adds the service account in IAM policy on other resources,
+     *    you must take care for race conditions between the establishment of the IAM policy and creation of the relevant Cloud Storage resource.
+     *    Cloud Storage APIs will require permissions on resources such as pub/sub topics or Cloud KMS keys to exist *before* the attempt to utilise them in a
+     *    bucket configuration, otherwise the API calls will fail.
+     *    You may need to use `depends_on` to create an explicit dependency between the IAM policy resource and the Cloud Storage resource which depends on it.
+     *    See the examples here and in the `gcp.storage.Notification` resource.
+     * 
+     * For more information see
+     * [the API reference](https://cloud.google.com/storage/docs/json_api/v1/projects/serviceAccount).
+     * 
+     * ## Example Usage
+     * 
+     * ### Pub/Sub Notifications
+     * 
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetProjectServiceAccountArgs;
+     * import com.pulumi.gcp.pubsub.TopicIAMBinding;
+     * import com.pulumi.gcp.pubsub.TopicIAMBindingArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var gcsAccount = StorageFunctions.getProjectServiceAccount();
+     * 
+     *         var binding = new TopicIAMBinding("binding", TopicIAMBindingArgs.builder()
+     *             .topic(topic.name())
+     *             .role("roles/pubsub.publisher")
+     *             .members(String.format("serviceAccount:%s", gcsAccount.applyValue(getProjectServiceAccountResult -> getProjectServiceAccountResult.emailAddress())))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Cloud KMS Keys + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetProjectServiceAccountArgs;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMBinding;
+     * import com.pulumi.gcp.kms.CryptoKeyIAMBindingArgs;
+     * import com.pulumi.gcp.storage.Bucket;
+     * import com.pulumi.gcp.storage.BucketArgs;
+     * import com.pulumi.gcp.storage.inputs.BucketEncryptionArgs;
+     * import com.pulumi.resources.CustomResourceOptions;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var gcsAccount = StorageFunctions.getProjectServiceAccount();
+     * 
+     *         var binding = new CryptoKeyIAMBinding("binding", CryptoKeyIAMBindingArgs.builder()
+     *             .cryptoKeyId("your-crypto-key-id")
+     *             .role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
+     *             .members(String.format("serviceAccount:%s", gcsAccount.applyValue(getProjectServiceAccountResult -> getProjectServiceAccountResult.emailAddress())))
+     *             .build());
+     * 
+     *         var bucket = new Bucket("bucket", BucketArgs.builder()
+     *             .name("kms-protected-bucket")
+     *             .location("US")
+     *             .encryption(BucketEncryptionArgs.builder()
+     *                 .defaultKmsKeyName("your-crypto-key-id")
+     *                 .build())
+     *             .build(), CustomResourceOptions.builder()
+     *                 .dependsOn(binding)
+     *                 .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ public static CompletableFuture getProjectServiceAccountPlain(GetProjectServiceAccountPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:storage/getProjectServiceAccount:getProjectServiceAccount", TypeShape.of(GetProjectServiceAccountResult.class), args, Utilities.withVersion(options)); } @@ -2753,6 +3265,47 @@ public static CompletableFuture getTrans public static Output getTransferProjectServiceAccount(GetTransferProjectServiceAccountArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", TypeShape.of(GetTransferProjectServiceAccountResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to retrieve Storage Transfer service account for this project + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetTransferProjectServiceAccountArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = StorageFunctions.getTransferProjectServiceAccount();
+     * 
+     *         ctx.export("defaultAccount", default_.email());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTransferProjectServiceAccount(GetTransferProjectServiceAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getTransferProjectServiceAccount:getTransferProjectServiceAccount", TypeShape.of(GetTransferProjectServiceAccountResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to retrieve Storage Transfer service account for this project * @@ -3061,6 +3614,51 @@ public static Output getTransferProjectSe * */ @Deprecated /* gcp.storage.getTransferProjectServieAccount has been deprecated in favor of gcp.storage.getTransferProjectServiceAccount */ + public static Output getTransferProjectServieAccount(GetTransferProjectServieAccountArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", TypeShape.of(GetTransferProjectServieAccountResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to retrieve Storage Transfer service account for this project + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.storage.StorageFunctions;
+     * import com.pulumi.gcp.storage.inputs.GetTransferProjectServiceAccountArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var default = StorageFunctions.getTransferProjectServiceAccount();
+     * 
+     *         ctx.export("defaultAccount", default_.email());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * @deprecated + * gcp.storage.getTransferProjectServieAccount has been deprecated in favor of gcp.storage.getTransferProjectServiceAccount + * + */ + @Deprecated /* gcp.storage.getTransferProjectServieAccount has been deprecated in favor of gcp.storage.getTransferProjectServiceAccount */ public static CompletableFuture getTransferProjectServieAccountPlain(GetTransferProjectServieAccountPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:storage/getTransferProjectServieAccount:getTransferProjectServieAccount", TypeShape.of(GetTransferProjectServieAccountResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java index 6fa38ff824..9a52e69971 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.tags.inputs.GetTagKeyArgs; import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs; @@ -257,6 +258,82 @@ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainAr public static Output getTagKey(GetTagKeyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagKey:getTagKey", TypeShape.of(GetTagKeyResult.class), args, Utilities.withVersion(options)); } + /** + * Get a tag key by org or project `parent` and `short_name`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("organizations/12345")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("projects/abc")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagKey(GetTagKeyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagKey:getTagKey", TypeShape.of(GetTagKeyResult.class), args, Utilities.withVersion(options)); + } /** * Get a tag key by org or project `parent` and `short_name`. * @@ -459,6 +536,48 @@ public static CompletableFuture getTagKeyIamPolicyPlai public static Output getTagKeyIamPolicy(GetTagKeyIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", TypeShape.of(GetTagKeyIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for tagkey + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
+     *             .tagKey(key.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagKeyIamPolicy(GetTagKeyIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", TypeShape.of(GetTagKeyIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for tagkey * @@ -723,6 +842,80 @@ public static CompletableFuture getTagKeysPlain(GetTagKeysPlai public static Output getTagKeys(GetTagKeysArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagKeys:getTagKeys", TypeShape.of(GetTagKeysResult.class), args, Utilities.withVersion(options)); } + /** + * Get tag keys by org or project `parent`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("organizations/12345")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("projects/abc")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagKeys(GetTagKeysArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagKeys:getTagKeys", TypeShape.of(GetTagKeysResult.class), args, Utilities.withVersion(options)); + } /** * Get tag keys by org or project `parent`. * @@ -926,6 +1119,49 @@ public static CompletableFuture getTagValuePlain(GetTagValueP public static Output getTagValue(GetTagValueArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagValue:getTagValue", TypeShape.of(GetTagValueResult.class), args, Utilities.withVersion(options)); } + /** + * Get a tag value by `parent` key and `short_name`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValueArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var environmentProdTagValue = TagsFunctions.getTagValue(GetTagValueArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .shortName("production")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagValue(GetTagValueArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagValue:getTagValue", TypeShape.of(GetTagValueResult.class), args, Utilities.withVersion(options)); + } /** * Get a tag value by `parent` key and `short_name`. * @@ -1095,6 +1331,48 @@ public static CompletableFuture getTagValueIamPolicy public static Output getTagValueIamPolicy(GetTagValueIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", TypeShape.of(GetTagValueIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for tagvalue + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValueIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = TagsFunctions.getTagValueIamPolicy(GetTagValueIamPolicyArgs.builder()
+     *             .tagValue(value.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagValueIamPolicy(GetTagValueIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagValueIamPolicy:getTagValueIamPolicy", TypeShape.of(GetTagValueIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for tagvalue * @@ -1263,6 +1541,48 @@ public static CompletableFuture getTagValuesPlain(GetTagValu public static Output getTagValues(GetTagValuesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagValues:getTagValues", TypeShape.of(GetTagValuesResult.class), args, Utilities.withVersion(options)); } + /** + * Get tag values from a `parent` key. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValuesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var environmentTagValues = TagsFunctions.getTagValues(GetTagValuesArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagValues(GetTagValuesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagValues:getTagValues", TypeShape.of(GetTagValuesResult.class), args, Utilities.withVersion(options)); + } /** * Get tag values from a `parent` key. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/tpu/TpuFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/tpu/TpuFunctions.java index a9a5fdbbec..571fc84564 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/tpu/TpuFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/tpu/TpuFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.tpu.inputs.GetTensorflowVersionsArgs; import com.pulumi.gcp.tpu.inputs.GetTensorflowVersionsPlainArgs; @@ -435,6 +436,89 @@ public static CompletableFuture getTensorflowVersio public static Output getTensorflowVersions(GetTensorflowVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tpu/getTensorflowVersions:getTensorflowVersions", TypeShape.of(GetTensorflowVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tpu.TpuFunctions;
+     * import com.pulumi.gcp.tpu.inputs.GetTensorflowVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = TpuFunctions.getTensorflowVersions();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Configure Basic TPU Node With Available Version + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tpu.TpuFunctions;
+     * import com.pulumi.gcp.tpu.inputs.GetTensorflowVersionsArgs;
+     * import com.pulumi.gcp.tpu.Node;
+     * import com.pulumi.gcp.tpu.NodeArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = TpuFunctions.getTensorflowVersions();
+     * 
+     *         var tpu = new Node("tpu", NodeArgs.builder()
+     *             .name("test-tpu")
+     *             .zone("us-central1-b")
+     *             .acceleratorType("v3-8")
+     *             .tensorflowVersion(available.applyValue(getTensorflowVersionsResult -> getTensorflowVersionsResult.versions()[0]))
+     *             .cidrBlock("10.2.0.0/29")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTensorflowVersions(GetTensorflowVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tpu/getTensorflowVersions:getTensorflowVersions", TypeShape.of(GetTensorflowVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions). * @@ -943,6 +1027,91 @@ public static CompletableFuture getV2AcceleratorTyp public static Output getV2AcceleratorTypes(GetV2AcceleratorTypesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", TypeShape.of(GetV2AcceleratorTypesResult.class), args, Utilities.withVersion(options)); } + /** + * Get accelerator types available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.acceleratorTypes). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tpu.TpuFunctions;
+     * import com.pulumi.gcp.tpu.inputs.GetV2AcceleratorTypesArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = TpuFunctions.getV2AcceleratorTypes();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Configure Basic TPU VM With Available Type + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tpu.TpuFunctions;
+     * import com.pulumi.gcp.tpu.inputs.GetV2AcceleratorTypesArgs;
+     * import com.pulumi.gcp.tpu.inputs.GetV2RuntimeVersionsArgs;
+     * import com.pulumi.gcp.tpu.V2Vm;
+     * import com.pulumi.gcp.tpu.V2VmArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = TpuFunctions.getV2AcceleratorTypes();
+     * 
+     *         final var availableGetV2RuntimeVersions = TpuFunctions.getV2RuntimeVersions();
+     * 
+     *         var tpu = new V2Vm("tpu", V2VmArgs.builder()
+     *             .name("test-tpu")
+     *             .zone("us-central1-b")
+     *             .runtimeVersion(availableGetV2RuntimeVersions.applyValue(getV2RuntimeVersionsResult -> getV2RuntimeVersionsResult.versions()[0]))
+     *             .acceleratorType(available.applyValue(getV2AcceleratorTypesResult -> getV2AcceleratorTypesResult.types()[0]))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getV2AcceleratorTypes(GetV2AcceleratorTypesArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tpu/getV2AcceleratorTypes:getV2AcceleratorTypes", TypeShape.of(GetV2AcceleratorTypesResult.class), args, Utilities.withVersion(options)); + } /** * Get accelerator types available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.acceleratorTypes). * @@ -1433,6 +1602,87 @@ public static CompletableFuture getV2RuntimeVersions public static Output getV2RuntimeVersions(GetV2RuntimeVersionsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", TypeShape.of(GetV2RuntimeVersionsResult.class), args, Utilities.withVersion(options)); } + /** + * Get runtime versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.runtimeVersions). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tpu.TpuFunctions;
+     * import com.pulumi.gcp.tpu.inputs.GetV2RuntimeVersionsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = TpuFunctions.getV2RuntimeVersions();
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Configure Basic TPU VM With Available Version + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tpu.TpuFunctions;
+     * import com.pulumi.gcp.tpu.inputs.GetV2RuntimeVersionsArgs;
+     * import com.pulumi.gcp.tpu.V2Vm;
+     * import com.pulumi.gcp.tpu.V2VmArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var available = TpuFunctions.getV2RuntimeVersions();
+     * 
+     *         var tpu = new V2Vm("tpu", V2VmArgs.builder()
+     *             .name("test-tpu")
+     *             .zone("us-central1-b")
+     *             .runtimeVersion(available.applyValue(getV2RuntimeVersionsResult -> getV2RuntimeVersionsResult.versions()[0]))
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getV2RuntimeVersions(GetV2RuntimeVersionsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:tpu/getV2RuntimeVersions:getV2RuntimeVersions", TypeShape.of(GetV2RuntimeVersionsResult.class), args, Utilities.withVersion(options)); + } /** * Get runtime versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v2/projects.locations.runtimeVersions). * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/vertex/VertexFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/vertex/VertexFunctions.java index a09d2f3ebf..8847efaa85 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/vertex/VertexFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/vertex/VertexFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.vertex.inputs.GetAiEndpointIamPolicyArgs; import com.pulumi.gcp.vertex.inputs.GetAiEndpointIamPolicyPlainArgs; @@ -32,6 +33,9 @@ public static CompletableFuture getAiEndpointIamPo public static Output getAiEndpointIamPolicy(GetAiEndpointIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", TypeShape.of(GetAiEndpointIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getAiEndpointIamPolicy(GetAiEndpointIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", TypeShape.of(GetAiEndpointIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAiEndpointIamPolicyPlain(GetAiEndpointIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:vertex/getAiEndpointIamPolicy:getAiEndpointIamPolicy", TypeShape.of(GetAiEndpointIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -44,6 +48,9 @@ public static CompletableFuture getA public static Output getAiFeaturestoreEntitytypeIamPolicy(GetAiFeaturestoreEntitytypeIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", TypeShape.of(GetAiFeaturestoreEntitytypeIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getAiFeaturestoreEntitytypeIamPolicy(GetAiFeaturestoreEntitytypeIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", TypeShape.of(GetAiFeaturestoreEntitytypeIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAiFeaturestoreEntitytypeIamPolicyPlain(GetAiFeaturestoreEntitytypeIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:vertex/getAiFeaturestoreEntitytypeIamPolicy:getAiFeaturestoreEntitytypeIamPolicy", TypeShape.of(GetAiFeaturestoreEntitytypeIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -56,6 +63,9 @@ public static CompletableFuture getAiFeaturest public static Output getAiFeaturestoreIamPolicy(GetAiFeaturestoreIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", TypeShape.of(GetAiFeaturestoreIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getAiFeaturestoreIamPolicy(GetAiFeaturestoreIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", TypeShape.of(GetAiFeaturestoreIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getAiFeaturestoreIamPolicyPlain(GetAiFeaturestoreIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:vertex/getAiFeaturestoreIamPolicy:getAiFeaturestoreIamPolicy", TypeShape.of(GetAiFeaturestoreIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -80,6 +90,13 @@ public static CompletableFuture getAiIndexPlain(GetAiIndexPlai public static Output getAiIndex(GetAiIndexArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vertex/getAiIndex:getAiIndex", TypeShape.of(GetAiIndexResult.class), args, Utilities.withVersion(options)); } + /** + * A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search. + * + */ + public static Output getAiIndex(GetAiIndexArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vertex/getAiIndex:getAiIndex", TypeShape.of(GetAiIndexResult.class), args, Utilities.withVersion(options)); + } /** * A representation of a collection of database items organized in a way that allows for approximate nearest neighbor (a.k.a ANN) algorithms search. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/vmwareengine/VmwareengineFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/vmwareengine/VmwareengineFunctions.java index 6318c287c7..d7f93a1b5e 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/vmwareengine/VmwareengineFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/vmwareengine/VmwareengineFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.vmwareengine.inputs.GetClusterArgs; import com.pulumi.gcp.vmwareengine.inputs.GetClusterPlainArgs; @@ -179,6 +180,52 @@ public static CompletableFuture getClusterPlain(GetClusterPlai public static Output getCluster(GetClusterArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getCluster:getCluster", TypeShape.of(GetClusterResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a cluster resource. + * + * To get more information about private cloud cluster, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.clusters) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetClusterArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myCluster = VmwareengineFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .parent("project/locations/us-west1-a/privateClouds/my-cloud")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getCluster(GetClusterArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getCluster:getCluster", TypeShape.of(GetClusterResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a cluster resource. * @@ -363,6 +410,52 @@ public static CompletableFuture getExternalAccessRu public static Output getExternalAccessRule(GetExternalAccessRuleArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", TypeShape.of(GetExternalAccessRuleResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a external access rule resource. + * + * To get more information about external address, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies.externalAccessRules) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetExternalAccessRuleArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myExternalAccessRule = VmwareengineFunctions.getExternalAccessRule(GetExternalAccessRuleArgs.builder()
+     *             .name("my-external-access-rule")
+     *             .parent("project/my-project/locations/us-west1-a/networkPolicies/my-network-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getExternalAccessRule(GetExternalAccessRuleArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getExternalAccessRule:getExternalAccessRule", TypeShape.of(GetExternalAccessRuleResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a external access rule resource. * @@ -547,6 +640,52 @@ public static CompletableFuture getExternalAddressPlai public static Output getExternalAddress(GetExternalAddressArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getExternalAddress:getExternalAddress", TypeShape.of(GetExternalAddressResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a external address resource. + * + * To get more information about external address, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.externalAddresses) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetExternalAddressArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myExternalAddress = VmwareengineFunctions.getExternalAddress(GetExternalAddressArgs.builder()
+     *             .name("my-external-address")
+     *             .parent("project/my-project/locations/us-west1-a/privateClouds/my-cloud")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getExternalAddress(GetExternalAddressArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getExternalAddress:getExternalAddress", TypeShape.of(GetExternalAddressResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a external address resource. * @@ -731,6 +870,52 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai public static Output getNetwork(GetNetworkArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a VMwareEngine network resource. + * + * To get more information about VMwareEngine Network, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.vmwareEngineNetworks) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetNetworkArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myNw = VmwareengineFunctions.getNetwork(GetNetworkArgs.builder()
+     *             .name("us-central1-default")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetwork(GetNetworkArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a VMwareEngine network resource. * @@ -912,6 +1097,51 @@ public static CompletableFuture getNetworkPeeringPlain( public static Output getNetworkPeering(GetNetworkPeeringArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a network peering resource. + * + * To get more information about network peering, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPeerings) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetNetworkPeeringArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myNetworkPeering = VmwareengineFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder()
+     *             .name("my-network-peering")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworkPeering(GetNetworkPeeringArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a network peering resource. * @@ -1095,6 +1325,52 @@ public static CompletableFuture getNetworkPolicyPlain(Ge public static Output getNetworkPolicy(GetNetworkPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", TypeShape.of(GetNetworkPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a network policy resource. + * + * To get more information about network policy, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetNetworkPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myNetworkPolicy = VmwareengineFunctions.getNetworkPolicy(GetNetworkPolicyArgs.builder()
+     *             .name("my-network-policy")
+     *             .location("us-central1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworkPolicy(GetNetworkPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getNetworkPolicy:getNetworkPolicy", TypeShape.of(GetNetworkPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a network policy resource. * @@ -1276,6 +1552,51 @@ public static CompletableFuture getNsxCredentialsPlain( public static Output getNsxCredentials(GetNsxCredentialsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", TypeShape.of(GetNsxCredentialsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get NSX credentials for a Private Cloud. + * + * To get more information about private cloud NSX credentials, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showNsxCredentials) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetNsxCredentialsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ds = VmwareengineFunctions.getNsxCredentials(GetNsxCredentialsArgs.builder()
+     *             .parent("projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNsxCredentials(GetNsxCredentialsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getNsxCredentials:getNsxCredentials", TypeShape.of(GetNsxCredentialsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get NSX credentials for a Private Cloud. * @@ -1459,6 +1780,52 @@ public static CompletableFuture getPrivateCloudPlain(GetP public static Output getPrivateCloud(GetPrivateCloudArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", TypeShape.of(GetPrivateCloudResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a private cloud resource. + * + * To get more information about private cloud, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetPrivateCloudArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var myPc = VmwareengineFunctions.getPrivateCloud(GetPrivateCloudArgs.builder()
+     *             .name("my-pc")
+     *             .location("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getPrivateCloud(GetPrivateCloudArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getPrivateCloud:getPrivateCloud", TypeShape.of(GetPrivateCloudResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a private cloud resource. * @@ -1643,6 +2010,52 @@ public static CompletableFuture getSubnetPlain(GetSubnetPlainAr public static Output getSubnet(GetSubnetArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getSubnet:getSubnet", TypeShape.of(GetSubnetResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource. + * + * To get more information about private cloud subnet, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetSubnetArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var mySubnet = VmwareengineFunctions.getSubnet(GetSubnetArgs.builder()
+     *             .name("service-1")
+     *             .parent("project/my-project/locations/us-west1-a/privateClouds/my-cloud")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getSubnet(GetSubnetArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getSubnet:getSubnet", TypeShape.of(GetSubnetResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource. * @@ -1824,6 +2237,51 @@ public static CompletableFuture getVcenterCredentia public static Output getVcenterCredentials(GetVcenterCredentialsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", TypeShape.of(GetVcenterCredentialsResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to get Vcenter credentials for a Private Cloud. + * + * To get more information about private cloud Vcenter credentials, see: + * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showVcenterCredentials) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
+     * import com.pulumi.gcp.vmwareengine.inputs.GetVcenterCredentialsArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var ds = VmwareengineFunctions.getVcenterCredentials(GetVcenterCredentialsArgs.builder()
+     *             .parent("projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getVcenterCredentials(GetVcenterCredentialsArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vmwareengine/getVcenterCredentials:getVcenterCredentials", TypeShape.of(GetVcenterCredentialsResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to get Vcenter credentials for a Private Cloud. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/vpcaccess/VpcaccessFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/vpcaccess/VpcaccessFunctions.java index 3b6eec2b9f..fd76b63a9d 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/vpcaccess/VpcaccessFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/vpcaccess/VpcaccessFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.vpcaccess.inputs.GetConnectorArgs; import com.pulumi.gcp.vpcaccess.inputs.GetConnectorPlainArgs; @@ -191,6 +192,65 @@ public static CompletableFuture getConnectorPlain(GetConnect public static Output getConnector(GetConnectorArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:vpcaccess/getConnector:getConnector", TypeShape.of(GetConnectorResult.class), args, Utilities.withVersion(options)); } + /** + * Get a Serverless VPC Access connector. + * + * To get more information about Connector, see: + * + * * [API documentation](https://cloud.google.com/vpc/docs/reference/vpcaccess/rest/v1/projects.locations.connectors) + * * How-to Guides + * * [Configuring Serverless VPC Access](https://cloud.google.com/vpc/docs/configure-serverless-vpc-access) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.vpcaccess.VpcaccessFunctions;
+     * import com.pulumi.gcp.vpcaccess.inputs.GetConnectorArgs;
+     * import com.pulumi.gcp.vpcaccess.Connector;
+     * import com.pulumi.gcp.vpcaccess.ConnectorArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var sample = VpcaccessFunctions.getConnector(GetConnectorArgs.builder()
+     *             .name("vpc-con")
+     *             .build());
+     * 
+     *         var connector = new Connector("connector", ConnectorArgs.builder()
+     *             .name("vpc-con")
+     *             .ipCidrRange("10.8.0.0/28")
+     *             .network("default")
+     *             .region("us-central1")
+     *             .minInstances(2)
+     *             .maxInstances(3)
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getConnector(GetConnectorArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:vpcaccess/getConnector:getConnector", TypeShape.of(GetConnectorResult.class), args, Utilities.withVersion(options)); + } /** * Get a Serverless VPC Access connector. * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/workbench/WorkbenchFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/workbench/WorkbenchFunctions.java index 37eb8b3f26..01bc1569bf 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/workbench/WorkbenchFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/workbench/WorkbenchFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.workbench.inputs.GetInstanceIamPolicyArgs; import com.pulumi.gcp.workbench.inputs.GetInstanceIamPolicyPlainArgs; @@ -146,6 +147,50 @@ public static CompletableFuture getInstanceIamPolicy public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.workbench.WorkbenchFunctions;
+     * import com.pulumi.gcp.workbench.inputs.GetInstanceIamPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var policy = WorkbenchFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(instance.project())
+     *             .location(instance.location())
+     *             .name(instance.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:workbench/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } /** * Retrieves the current IAM policy data for instance * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/workstations/WorkstationsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/workstations/WorkstationsFunctions.java index ab39d13aae..5f55872afd 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/workstations/WorkstationsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/workstations/WorkstationsFunctions.java @@ -7,6 +7,7 @@ import com.pulumi.core.TypeShape; import com.pulumi.deployment.Deployment; import com.pulumi.deployment.InvokeOptions; +import com.pulumi.deployment.InvokeOutputOptions; import com.pulumi.gcp.Utilities; import com.pulumi.gcp.workstations.inputs.GetWorkstationConfigIamPolicyArgs; import com.pulumi.gcp.workstations.inputs.GetWorkstationConfigIamPolicyPlainArgs; @@ -26,6 +27,9 @@ public static CompletableFuture getWorkstat public static Output getWorkstationConfigIamPolicy(GetWorkstationConfigIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", TypeShape.of(GetWorkstationConfigIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getWorkstationConfigIamPolicy(GetWorkstationConfigIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", TypeShape.of(GetWorkstationConfigIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getWorkstationConfigIamPolicyPlain(GetWorkstationConfigIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:workstations/getWorkstationConfigIamPolicy:getWorkstationConfigIamPolicy", TypeShape.of(GetWorkstationConfigIamPolicyResult.class), args, Utilities.withVersion(options)); } @@ -38,6 +42,9 @@ public static CompletableFuture getWorkstationIam public static Output getWorkstationIamPolicy(GetWorkstationIamPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", TypeShape.of(GetWorkstationIamPolicyResult.class), args, Utilities.withVersion(options)); } + public static Output getWorkstationIamPolicy(GetWorkstationIamPolicyArgs args, InvokeOutputOptions options) { + return Deployment.getInstance().invoke("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", TypeShape.of(GetWorkstationIamPolicyResult.class), args, Utilities.withVersion(options)); + } public static CompletableFuture getWorkstationIamPolicyPlain(GetWorkstationIamPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:workstations/getWorkstationIamPolicy:getWorkstationIamPolicy", TypeShape.of(GetWorkstationIamPolicyResult.class), args, Utilities.withVersion(options)); } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 01264b8f77..cb1319d173 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -13,7 +13,7 @@ "build": "tsc" }, "dependencies": { - "@pulumi/pulumi": "^3.136.0", + "@pulumi/pulumi": "^3.142.0", "@types/express": "^4.16.0", "read-package-json": "^2.0.13" }, diff --git a/sdk/python/pyproject.toml b/sdk/python/pyproject.toml index 39a99215b7..8571b5bad8 100644 --- a/sdk/python/pyproject.toml +++ b/sdk/python/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pulumi_gcp" description = "A Pulumi package for creating and managing Google Cloud Platform resources." - dependencies = ["parver>=0.2.1", "pulumi>=3.136.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] + dependencies = ["parver>=0.2.1", "pulumi>=3.142.0,<4.0.0", "semver>=2.8.1", "typing-extensions>=4.11; python_version < \"3.11\""] keywords = ["pulumi", "gcp"] readme = "README.md" - requires-python = ">=3.8" + requires-python = ">=3.9" version = "8.0.0a0+dev" [project.license] text = "Apache-2.0"