From f3bcf023523eb052cd6bede9c180696815d64756 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:56:34 -0700 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.79.0 (#446) This PR was generated via `$ upgrade-provider pulumi/pulumi-civo --kind=bridge --pr-reviewers=VenelinMartinov`. --- - Updating Java Gen version from 0.9.9 to 0.10.0. - Upgrading pulumi-terraform-bridge from v3.78.0 to v3.79.0. --- .pulumi-java-gen.version | 2 +- examples/go.mod | 18 ++++---- examples/go.sum | 38 +++++++++-------- provider/cmd/pulumi-resource-civo/schema.json | 12 +++--- provider/go.mod | 22 +++++----- provider/go.sum | 42 ++++++++++--------- sdk/dotnet/Volume.cs | 4 +- sdk/go.mod | 10 ++--- sdk/go.sum | 20 ++++----- sdk/java/build.gradle | 2 +- .../java/com/pulumi/civo/CivoFunctions.java | 6 +++ .../java/com/pulumi/civo/DnsDomainName.java | 1 + .../main/java/com/pulumi/civo/Firewall.java | 4 ++ .../civo/InstanceReservedIpAssignment.java | 2 + .../pulumi/civo/ObjectStoreCredential.java | 2 + .../src/main/java/com/pulumi/civo/Volume.java | 1 + 16 files changed, 105 insertions(+), 81 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 6f060dcb..2774f858 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.9.9 \ No newline at end of file +0.10.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index ae065eba..c5baa261 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-civo/examples/v2 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.111.1 +require github.com/pulumi/pulumi/pkg/v3 v3.112.0 require ( cloud.google.com/go v0.110.10 // indirect @@ -58,7 +58,7 @@ require ( github.com/djherbis/times v1.5.0 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect - github.com/fatih/color v1.13.0 // indirect + github.com/fatih/color v1.15.0 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.5.0 // indirect github.com/go-git/go-git/v5 v5.11.0 // indirect @@ -104,7 +104,7 @@ require ( github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect - github.com/mattn/go-colorable v0.1.12 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.19 // indirect github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.15 // indirect @@ -135,7 +135,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.6.2 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.111.1 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.112.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect @@ -145,7 +145,7 @@ require ( github.com/segmentio/encoding v0.3.5 // indirect github.com/sergi/go-diff v1.3.1 // indirect github.com/skeema/knownhosts v1.2.1 // indirect - github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect @@ -161,14 +161,14 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.36.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.17.0 // indirect + golang.org/x/crypto v0.21.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.14.0 // indirect - golang.org/x/net v0.19.0 // indirect + golang.org/x/net v0.21.0 // indirect golang.org/x/oauth2 v0.14.0 // indirect golang.org/x/sync v0.5.0 // indirect - golang.org/x/sys v0.15.0 // indirect - golang.org/x/term v0.15.0 // indirect + golang.org/x/sys v0.18.0 // indirect + golang.org/x/term v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.4.0 // indirect golang.org/x/tools v0.15.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 310c9b9d..9b837b0d 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -516,7 +516,7 @@ github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfc github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= @@ -604,8 +604,9 @@ github.com/evanphx/json-patch/v5 v5.5.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2Vvl github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= @@ -1183,8 +1184,9 @@ github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVc github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= -github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= @@ -1194,6 +1196,7 @@ github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcME github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4= @@ -1467,10 +1470,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= -github.com/pulumi/pulumi/pkg/v3 v3.111.1 h1:SrVgQE96T7YlZx/AZoFSlXYwur7ZmQUHyjbPI8sH96Q= -github.com/pulumi/pulumi/pkg/v3 v3.111.1/go.mod h1:ZWsq8Y0EMHZ5E2ju92jC+POz97TEXs3BbQ6r2o0U4SA= -github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw= -github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= +github.com/pulumi/pulumi/pkg/v3 v3.112.0 h1:vhoM6sx1eegJntIeUZENtck3VeMtK1zBiQ2E3EPOnHw= +github.com/pulumi/pulumi/pkg/v3 v3.112.0/go.mod h1:GQhNr0v5E8TACF8j0p6UQqyr7mZreUpoMfVjLeu6eY0= +github.com/pulumi/pulumi/sdk/v3 v3.112.0 h1:cq2x5N6iuYhSLdeOdRs+LIq0EneB0Cb54WOlD/VaX3E= +github.com/pulumi/pulumi/sdk/v3 v3.112.0/go.mod h1:JWSzKBoHd8rlncC1DhXLf7YdV+Bk/Qf+hSZOOQh0WwQ= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= @@ -1548,8 +1551,8 @@ github.com/spf13/cobra v0.0.2-0.20171109065643-2da4a54c5cee/go.mod h1:1l0Ry5zgKv github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= @@ -1787,8 +1790,8 @@ golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/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.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1915,8 +1918,8 @@ golang.org/x/net v0.0.0-20220802222814-0bcc04d9c69b/go.mod h1:YDH+HFinaLZZlnHAfS golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -2104,13 +2107,14 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -2119,8 +2123,8 @@ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuX 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.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= +golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= 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= diff --git a/provider/cmd/pulumi-resource-civo/schema.json b/provider/cmd/pulumi-resource-civo/schema.json index 7a59bd77..5e8ae039 100644 --- a/provider/cmd/pulumi-resource-civo/schema.json +++ b/provider/cmd/pulumi-resource-civo/schema.json @@ -1144,7 +1144,7 @@ } }, "civo:index/dnsDomainName:DnsDomainName": { - "description": "Provides a Civo DNS domain name resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\n// Create a new domain name\nconst main = new civo.DnsDomainName(\"main\", {});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\n# Create a new domain name\nmain = civo.DnsDomainName(\"main\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new domain name\n var main = new Civo.DnsDomainName(\"main\");\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Create a new domain name\n\t\t_, err := civo.NewDnsDomainName(ctx, \"main\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.DnsDomainName;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var main = new DnsDomainName(\"main\");\n\n }\n}\n```\n```yaml\nresources:\n # Create a new domain name\n main:\n type: civo:DnsDomainName\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing domain name\n\n```sh\n$ pulumi import civo:index/dnsDomainName:DnsDomainName main mydomain.com\n```\n\n", + "description": "Provides a Civo DNS domain name resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\n// Create a new domain name\nconst main = new civo.DnsDomainName(\"main\", {});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\n# Create a new domain name\nmain = civo.DnsDomainName(\"main\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new domain name\n var main = new Civo.DnsDomainName(\"main\");\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Create a new domain name\n\t\t_, err := civo.NewDnsDomainName(ctx, \"main\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.DnsDomainName;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // Create a new domain name\n var main = new DnsDomainName(\"main\");\n\n }\n}\n```\n```yaml\nresources:\n # Create a new domain name\n main:\n type: civo:DnsDomainName\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing domain name\n\n```sh\n$ pulumi import civo:index/dnsDomainName:DnsDomainName main mydomain.com\n```\n\n", "properties": { "accountId": { "type": "string", @@ -1306,7 +1306,7 @@ } }, "civo:index/firewall:Firewall": { - "description": "Provides a Civo firewall resource. This can be used to create, modify, and delete firewalls.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\n// Create a network\nconst customNet = new civo.Network(\"customNet\", {label: \"my-custom-network\"});\n// Create a firewall\nconst wwwFirewall = new civo.Firewall(\"wwwFirewall\", {networkId: customNet.id});\n// Create a firewall with the default rules\nconst wwwIndex_firewallFirewall = new civo.Firewall(\"wwwIndex/firewallFirewall\", {\n networkId: customNet.id,\n createDefaultRules: true,\n});\n// Create a firewall withouth the default rules but with a custom rule\nconst wwwCivoIndex_firewallFirewall = new civo.Firewall(\"wwwCivoIndex/firewallFirewall\", {\n networkId: customNet.id,\n createDefaultRules: false,\n ingressRules: [\n {\n label: \"k8s\",\n protocol: \"tcp\",\n portRange: \"6443\",\n cidrs: [\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action: \"allow\",\n },\n {\n label: \"ssh\",\n protocol: \"tcp\",\n portRange: \"22\",\n cidrs: [\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action: \"allow\",\n },\n ],\n egressRules: [{\n label: \"all\",\n protocol: \"tcp\",\n portRange: \"1-65535\",\n cidrs: [\"0.0.0.0/0\"],\n action: \"allow\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\n# Create a network\ncustom_net = civo.Network(\"customNet\", label=\"my-custom-network\")\n# Create a firewall\nwww_firewall = civo.Firewall(\"wwwFirewall\", network_id=custom_net.id)\n# Create a firewall with the default rules\nwww_index_firewall_firewall = civo.Firewall(\"wwwIndex/firewallFirewall\",\n network_id=custom_net.id,\n create_default_rules=True)\n# Create a firewall withouth the default rules but with a custom rule\nwww_civo_index_firewall_firewall = civo.Firewall(\"wwwCivoIndex/firewallFirewall\",\n network_id=custom_net.id,\n create_default_rules=False,\n ingress_rules=[\n civo.FirewallIngressRuleArgs(\n label=\"k8s\",\n protocol=\"tcp\",\n port_range=\"6443\",\n cidrs=[\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action=\"allow\",\n ),\n civo.FirewallIngressRuleArgs(\n label=\"ssh\",\n protocol=\"tcp\",\n port_range=\"22\",\n cidrs=[\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action=\"allow\",\n ),\n ],\n egress_rules=[civo.FirewallEgressRuleArgs(\n label=\"all\",\n protocol=\"tcp\",\n port_range=\"1-65535\",\n cidrs=[\"0.0.0.0/0\"],\n action=\"allow\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a network\n var customNet = new Civo.Network(\"customNet\", new()\n {\n Label = \"my-custom-network\",\n });\n\n // Create a firewall\n var wwwFirewall = new Civo.Firewall(\"wwwFirewall\", new()\n {\n NetworkId = customNet.Id,\n });\n\n // Create a firewall with the default rules\n var wwwIndex_firewallFirewall = new Civo.Firewall(\"wwwIndex/firewallFirewall\", new()\n {\n NetworkId = customNet.Id,\n CreateDefaultRules = true,\n });\n\n // Create a firewall withouth the default rules but with a custom rule\n var wwwCivoIndex_firewallFirewall = new Civo.Firewall(\"wwwCivoIndex/firewallFirewall\", new()\n {\n NetworkId = customNet.Id,\n CreateDefaultRules = false,\n IngressRules = new[]\n {\n new Civo.Inputs.FirewallIngressRuleArgs\n {\n Label = \"k8s\",\n Protocol = \"tcp\",\n PortRange = \"6443\",\n Cidrs = new[]\n {\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n },\n Action = \"allow\",\n },\n new Civo.Inputs.FirewallIngressRuleArgs\n {\n Label = \"ssh\",\n Protocol = \"tcp\",\n PortRange = \"22\",\n Cidrs = new[]\n {\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n },\n Action = \"allow\",\n },\n },\n EgressRules = new[]\n {\n new Civo.Inputs.FirewallEgressRuleArgs\n {\n Label = \"all\",\n Protocol = \"tcp\",\n PortRange = \"1-65535\",\n Cidrs = new[]\n {\n \"0.0.0.0/0\",\n },\n Action = \"allow\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Create a network\n\t\tcustomNet, err := civo.NewNetwork(ctx, \"customNet\", \u0026civo.NetworkArgs{\n\t\t\tLabel: pulumi.String(\"my-custom-network\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a firewall\n\t\t_, err = civo.NewFirewall(ctx, \"wwwFirewall\", \u0026civo.FirewallArgs{\n\t\t\tNetworkId: customNet.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a firewall with the default rules\n\t\t_, err = civo.NewFirewall(ctx, \"wwwIndex/firewallFirewall\", \u0026civo.FirewallArgs{\n\t\t\tNetworkId: customNet.ID(),\n\t\t\tCreateDefaultRules: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a firewall withouth the default rules but with a custom rule\n\t\t_, err = civo.NewFirewall(ctx, \"wwwCivoIndex/firewallFirewall\", \u0026civo.FirewallArgs{\n\t\t\tNetworkId: customNet.ID(),\n\t\t\tCreateDefaultRules: pulumi.Bool(false),\n\t\t\tIngressRules: civo.FirewallIngressRuleArray{\n\t\t\t\t\u0026civo.FirewallIngressRuleArgs{\n\t\t\t\t\tLabel: pulumi.String(\"k8s\"),\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPortRange: pulumi.String(\"6443\"),\n\t\t\t\t\tCidrs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"192.168.1.1/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.4/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.10/32\"),\n\t\t\t\t\t},\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t},\n\t\t\t\t\u0026civo.FirewallIngressRuleArgs{\n\t\t\t\t\tLabel: pulumi.String(\"ssh\"),\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPortRange: pulumi.String(\"22\"),\n\t\t\t\t\tCidrs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"192.168.1.1/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.4/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.10/32\"),\n\t\t\t\t\t},\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEgressRules: civo.FirewallEgressRuleArray{\n\t\t\t\t\u0026civo.FirewallEgressRuleArgs{\n\t\t\t\t\tLabel: pulumi.String(\"all\"),\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPortRange: pulumi.String(\"1-65535\"),\n\t\t\t\t\tCidrs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"0.0.0.0/0\"),\n\t\t\t\t\t},\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.Network;\nimport com.pulumi.civo.NetworkArgs;\nimport com.pulumi.civo.Firewall;\nimport com.pulumi.civo.FirewallArgs;\nimport com.pulumi.civo.inputs.FirewallIngressRuleArgs;\nimport com.pulumi.civo.inputs.FirewallEgressRuleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var customNet = new Network(\"customNet\", NetworkArgs.builder() \n .label(\"my-custom-network\")\n .build());\n\n var wwwFirewall = new Firewall(\"wwwFirewall\", FirewallArgs.builder() \n .networkId(customNet.id())\n .build());\n\n var wwwIndex_firewallFirewall = new Firewall(\"wwwIndex/firewallFirewall\", FirewallArgs.builder() \n .networkId(customNet.id())\n .createDefaultRules(true)\n .build());\n\n var wwwCivoIndex_firewallFirewall = new Firewall(\"wwwCivoIndex/firewallFirewall\", FirewallArgs.builder() \n .networkId(customNet.id())\n .createDefaultRules(false)\n .ingressRules( \n FirewallIngressRuleArgs.builder()\n .label(\"k8s\")\n .protocol(\"tcp\")\n .portRange(\"6443\")\n .cidrs( \n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\")\n .action(\"allow\")\n .build(),\n FirewallIngressRuleArgs.builder()\n .label(\"ssh\")\n .protocol(\"tcp\")\n .portRange(\"22\")\n .cidrs( \n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\")\n .action(\"allow\")\n .build())\n .egressRules(FirewallEgressRuleArgs.builder()\n .label(\"all\")\n .protocol(\"tcp\")\n .portRange(\"1-65535\")\n .cidrs(\"0.0.0.0/0\")\n .action(\"allow\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a network\n customNet:\n type: civo:Network\n properties:\n label: my-custom-network\n # Create a firewall\n wwwFirewall:\n type: civo:Firewall\n properties:\n networkId: ${customNet.id}\n # Create a firewall with the default rules\n wwwIndex/firewallFirewall:\n type: civo:Firewall\n properties:\n networkId: ${customNet.id}\n createDefaultRules: true\n # Create a firewall withouth the default rules but with a custom rule\n wwwCivoIndex/firewallFirewall:\n type: civo:Firewall\n properties:\n networkId: ${customNet.id}\n createDefaultRules: false\n ingressRules:\n - label: k8s\n protocol: tcp\n portRange: '6443'\n cidrs:\n - 192.168.1.1/32\n - 192.168.10.4/32\n - 192.168.10.10/32\n action: allow\n - label: ssh\n protocol: tcp\n portRange: '22'\n cidrs:\n - 192.168.1.1/32\n - 192.168.10.4/32\n - 192.168.10.10/32\n action: allow\n egressRules:\n - label: all\n protocol: tcp\n portRange: 1-65535\n cidrs:\n - 0.0.0.0/0\n action: allow\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing ID\n\n```sh\n$ pulumi import civo:index/firewall:Firewall www b8ecd2ab-2267-4a5e-8692-cbf1d32583e3\n```\n\n", + "description": "Provides a Civo firewall resource. This can be used to create, modify, and delete firewalls.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\n// Create a network\nconst customNet = new civo.Network(\"customNet\", {label: \"my-custom-network\"});\n// Create a firewall\nconst wwwFirewall = new civo.Firewall(\"wwwFirewall\", {networkId: customNet.id});\n// Create a firewall with the default rules\nconst wwwIndex_firewallFirewall = new civo.Firewall(\"wwwIndex/firewallFirewall\", {\n networkId: customNet.id,\n createDefaultRules: true,\n});\n// Create a firewall withouth the default rules but with a custom rule\nconst wwwCivoIndex_firewallFirewall = new civo.Firewall(\"wwwCivoIndex/firewallFirewall\", {\n networkId: customNet.id,\n createDefaultRules: false,\n ingressRules: [\n {\n label: \"k8s\",\n protocol: \"tcp\",\n portRange: \"6443\",\n cidrs: [\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action: \"allow\",\n },\n {\n label: \"ssh\",\n protocol: \"tcp\",\n portRange: \"22\",\n cidrs: [\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action: \"allow\",\n },\n ],\n egressRules: [{\n label: \"all\",\n protocol: \"tcp\",\n portRange: \"1-65535\",\n cidrs: [\"0.0.0.0/0\"],\n action: \"allow\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\n# Create a network\ncustom_net = civo.Network(\"customNet\", label=\"my-custom-network\")\n# Create a firewall\nwww_firewall = civo.Firewall(\"wwwFirewall\", network_id=custom_net.id)\n# Create a firewall with the default rules\nwww_index_firewall_firewall = civo.Firewall(\"wwwIndex/firewallFirewall\",\n network_id=custom_net.id,\n create_default_rules=True)\n# Create a firewall withouth the default rules but with a custom rule\nwww_civo_index_firewall_firewall = civo.Firewall(\"wwwCivoIndex/firewallFirewall\",\n network_id=custom_net.id,\n create_default_rules=False,\n ingress_rules=[\n civo.FirewallIngressRuleArgs(\n label=\"k8s\",\n protocol=\"tcp\",\n port_range=\"6443\",\n cidrs=[\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action=\"allow\",\n ),\n civo.FirewallIngressRuleArgs(\n label=\"ssh\",\n protocol=\"tcp\",\n port_range=\"22\",\n cidrs=[\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n ],\n action=\"allow\",\n ),\n ],\n egress_rules=[civo.FirewallEgressRuleArgs(\n label=\"all\",\n protocol=\"tcp\",\n port_range=\"1-65535\",\n cidrs=[\"0.0.0.0/0\"],\n action=\"allow\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a network\n var customNet = new Civo.Network(\"customNet\", new()\n {\n Label = \"my-custom-network\",\n });\n\n // Create a firewall\n var wwwFirewall = new Civo.Firewall(\"wwwFirewall\", new()\n {\n NetworkId = customNet.Id,\n });\n\n // Create a firewall with the default rules\n var wwwIndex_firewallFirewall = new Civo.Firewall(\"wwwIndex/firewallFirewall\", new()\n {\n NetworkId = customNet.Id,\n CreateDefaultRules = true,\n });\n\n // Create a firewall withouth the default rules but with a custom rule\n var wwwCivoIndex_firewallFirewall = new Civo.Firewall(\"wwwCivoIndex/firewallFirewall\", new()\n {\n NetworkId = customNet.Id,\n CreateDefaultRules = false,\n IngressRules = new[]\n {\n new Civo.Inputs.FirewallIngressRuleArgs\n {\n Label = \"k8s\",\n Protocol = \"tcp\",\n PortRange = \"6443\",\n Cidrs = new[]\n {\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n },\n Action = \"allow\",\n },\n new Civo.Inputs.FirewallIngressRuleArgs\n {\n Label = \"ssh\",\n Protocol = \"tcp\",\n PortRange = \"22\",\n Cidrs = new[]\n {\n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\",\n },\n Action = \"allow\",\n },\n },\n EgressRules = new[]\n {\n new Civo.Inputs.FirewallEgressRuleArgs\n {\n Label = \"all\",\n Protocol = \"tcp\",\n PortRange = \"1-65535\",\n Cidrs = new[]\n {\n \"0.0.0.0/0\",\n },\n Action = \"allow\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Create a network\n\t\tcustomNet, err := civo.NewNetwork(ctx, \"customNet\", \u0026civo.NetworkArgs{\n\t\t\tLabel: pulumi.String(\"my-custom-network\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a firewall\n\t\t_, err = civo.NewFirewall(ctx, \"wwwFirewall\", \u0026civo.FirewallArgs{\n\t\t\tNetworkId: customNet.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a firewall with the default rules\n\t\t_, err = civo.NewFirewall(ctx, \"wwwIndex/firewallFirewall\", \u0026civo.FirewallArgs{\n\t\t\tNetworkId: customNet.ID(),\n\t\t\tCreateDefaultRules: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a firewall withouth the default rules but with a custom rule\n\t\t_, err = civo.NewFirewall(ctx, \"wwwCivoIndex/firewallFirewall\", \u0026civo.FirewallArgs{\n\t\t\tNetworkId: customNet.ID(),\n\t\t\tCreateDefaultRules: pulumi.Bool(false),\n\t\t\tIngressRules: civo.FirewallIngressRuleArray{\n\t\t\t\t\u0026civo.FirewallIngressRuleArgs{\n\t\t\t\t\tLabel: pulumi.String(\"k8s\"),\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPortRange: pulumi.String(\"6443\"),\n\t\t\t\t\tCidrs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"192.168.1.1/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.4/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.10/32\"),\n\t\t\t\t\t},\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t},\n\t\t\t\t\u0026civo.FirewallIngressRuleArgs{\n\t\t\t\t\tLabel: pulumi.String(\"ssh\"),\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPortRange: pulumi.String(\"22\"),\n\t\t\t\t\tCidrs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"192.168.1.1/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.4/32\"),\n\t\t\t\t\t\tpulumi.String(\"192.168.10.10/32\"),\n\t\t\t\t\t},\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEgressRules: civo.FirewallEgressRuleArray{\n\t\t\t\t\u0026civo.FirewallEgressRuleArgs{\n\t\t\t\t\tLabel: pulumi.String(\"all\"),\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPortRange: pulumi.String(\"1-65535\"),\n\t\t\t\t\tCidrs: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"0.0.0.0/0\"),\n\t\t\t\t\t},\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.Network;\nimport com.pulumi.civo.NetworkArgs;\nimport com.pulumi.civo.Firewall;\nimport com.pulumi.civo.FirewallArgs;\nimport com.pulumi.civo.inputs.FirewallIngressRuleArgs;\nimport com.pulumi.civo.inputs.FirewallEgressRuleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // Create a network\n var customNet = new Network(\"customNet\", NetworkArgs.builder() \n .label(\"my-custom-network\")\n .build());\n\n // Create a firewall\n var wwwFirewall = new Firewall(\"wwwFirewall\", FirewallArgs.builder() \n .networkId(customNet.id())\n .build());\n\n // Create a firewall with the default rules\n var wwwIndex_firewallFirewall = new Firewall(\"wwwIndex/firewallFirewall\", FirewallArgs.builder() \n .networkId(customNet.id())\n .createDefaultRules(true)\n .build());\n\n // Create a firewall withouth the default rules but with a custom rule\n var wwwCivoIndex_firewallFirewall = new Firewall(\"wwwCivoIndex/firewallFirewall\", FirewallArgs.builder() \n .networkId(customNet.id())\n .createDefaultRules(false)\n .ingressRules( \n FirewallIngressRuleArgs.builder()\n .label(\"k8s\")\n .protocol(\"tcp\")\n .portRange(\"6443\")\n .cidrs( \n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\")\n .action(\"allow\")\n .build(),\n FirewallIngressRuleArgs.builder()\n .label(\"ssh\")\n .protocol(\"tcp\")\n .portRange(\"22\")\n .cidrs( \n \"192.168.1.1/32\",\n \"192.168.10.4/32\",\n \"192.168.10.10/32\")\n .action(\"allow\")\n .build())\n .egressRules(FirewallEgressRuleArgs.builder()\n .label(\"all\")\n .protocol(\"tcp\")\n .portRange(\"1-65535\")\n .cidrs(\"0.0.0.0/0\")\n .action(\"allow\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a network\n customNet:\n type: civo:Network\n properties:\n label: my-custom-network\n # Create a firewall\n wwwFirewall:\n type: civo:Firewall\n properties:\n networkId: ${customNet.id}\n # Create a firewall with the default rules\n wwwIndex/firewallFirewall:\n type: civo:Firewall\n properties:\n networkId: ${customNet.id}\n createDefaultRules: true\n # Create a firewall withouth the default rules but with a custom rule\n wwwCivoIndex/firewallFirewall:\n type: civo:Firewall\n properties:\n networkId: ${customNet.id}\n createDefaultRules: false\n ingressRules:\n - label: k8s\n protocol: tcp\n portRange: '6443'\n cidrs:\n - 192.168.1.1/32\n - 192.168.10.4/32\n - 192.168.10.10/32\n action: allow\n - label: ssh\n protocol: tcp\n portRange: '22'\n cidrs:\n - 192.168.1.1/32\n - 192.168.10.4/32\n - 192.168.10.10/32\n action: allow\n egressRules:\n - label: all\n protocol: tcp\n portRange: 1-65535\n cidrs:\n - 0.0.0.0/0\n action: allow\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing ID\n\n```sh\n$ pulumi import civo:index/firewall:Firewall www b8ecd2ab-2267-4a5e-8692-cbf1d32583e3\n```\n\n", "properties": { "createDefaultRules": { "type": "boolean", @@ -1879,7 +1879,7 @@ } }, "civo:index/instanceReservedIpAssignment:InstanceReservedIpAssignment": { - "description": "The instance reserved ip assignment resource schema definition\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\n// Send to create a reserved IP\nconst www = new civo.ReservedIp(\"www\", {});\n// We assign the reserved IP to the instance\nconst webserver_www = new civo.InstanceReservedIpAssignment(\"webserver-www\", {\n instanceId: civo_instance.www.id,\n reservedIpId: civo_reserved_ip[\"web-server\"].id,\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\n# Send to create a reserved IP\nwww = civo.ReservedIp(\"www\")\n# We assign the reserved IP to the instance\nwebserver_www = civo.InstanceReservedIpAssignment(\"webserver-www\",\n instance_id=civo_instance[\"www\"][\"id\"],\n reserved_ip_id=civo_reserved_ip[\"web-server\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Send to create a reserved IP\n var www = new Civo.ReservedIp(\"www\");\n\n // We assign the reserved IP to the instance\n var webserver_www = new Civo.InstanceReservedIpAssignment(\"webserver-www\", new()\n {\n InstanceId = civo_instance.Www.Id,\n ReservedIpId = civo_reserved_ip.Web_server.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Send to create a reserved IP\n\t\t_, err := civo.NewReservedIp(ctx, \"www\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// We assign the reserved IP to the instance\n\t\t_, err = civo.NewInstanceReservedIpAssignment(ctx, \"webserver-www\", \u0026civo.InstanceReservedIpAssignmentArgs{\n\t\t\tInstanceId: pulumi.Any(civo_instance.Www.Id),\n\t\t\tReservedIpId: pulumi.Any(civo_reserved_ip.WebServer.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.ReservedIp;\nimport com.pulumi.civo.InstanceReservedIpAssignment;\nimport com.pulumi.civo.InstanceReservedIpAssignmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var www = new ReservedIp(\"www\");\n\n var webserver_www = new InstanceReservedIpAssignment(\"webserver-www\", InstanceReservedIpAssignmentArgs.builder() \n .instanceId(civo_instance.www().id())\n .reservedIpId(civo_reserved_ip.web-server().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Send to create a reserved IP\n www:\n type: civo:ReservedIp\n # We assign the reserved IP to the instance\n webserver-www:\n type: civo:InstanceReservedIpAssignment\n properties:\n instanceId: ${civo_instance.www.id}\n reservedIpId: ${civo_reserved_ip\"web-server\"[%!s(MISSING)].id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The instance reserved ip assignment resource schema definition\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\n// Send to create a reserved IP\nconst www = new civo.ReservedIp(\"www\", {});\n// We assign the reserved IP to the instance\nconst webserver_www = new civo.InstanceReservedIpAssignment(\"webserver-www\", {\n instanceId: civo_instance.www.id,\n reservedIpId: civo_reserved_ip[\"web-server\"].id,\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\n# Send to create a reserved IP\nwww = civo.ReservedIp(\"www\")\n# We assign the reserved IP to the instance\nwebserver_www = civo.InstanceReservedIpAssignment(\"webserver-www\",\n instance_id=civo_instance[\"www\"][\"id\"],\n reserved_ip_id=civo_reserved_ip[\"web-server\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Send to create a reserved IP\n var www = new Civo.ReservedIp(\"www\");\n\n // We assign the reserved IP to the instance\n var webserver_www = new Civo.InstanceReservedIpAssignment(\"webserver-www\", new()\n {\n InstanceId = civo_instance.Www.Id,\n ReservedIpId = civo_reserved_ip.Web_server.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Send to create a reserved IP\n\t\t_, err := civo.NewReservedIp(ctx, \"www\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// We assign the reserved IP to the instance\n\t\t_, err = civo.NewInstanceReservedIpAssignment(ctx, \"webserver-www\", \u0026civo.InstanceReservedIpAssignmentArgs{\n\t\t\tInstanceId: pulumi.Any(civo_instance.Www.Id),\n\t\t\tReservedIpId: pulumi.Any(civo_reserved_ip.WebServer.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.ReservedIp;\nimport com.pulumi.civo.InstanceReservedIpAssignment;\nimport com.pulumi.civo.InstanceReservedIpAssignmentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // Send to create a reserved IP\n var www = new ReservedIp(\"www\");\n\n // We assign the reserved IP to the instance\n var webserver_www = new InstanceReservedIpAssignment(\"webserver-www\", InstanceReservedIpAssignmentArgs.builder() \n .instanceId(civo_instance.www().id())\n .reservedIpId(civo_reserved_ip.web-server().id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Send to create a reserved IP\n www:\n type: civo:ReservedIp\n # We assign the reserved IP to the instance\n webserver-www:\n type: civo:InstanceReservedIpAssignment\n properties:\n instanceId: ${civo_instance.www.id}\n reservedIpId: ${civo_reserved_ip\"web-server\"[%!s(MISSING)].id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "instanceId": { "type": "string", @@ -2489,7 +2489,7 @@ } }, "civo:index/objectStoreCredential:ObjectStoreCredential": { - "description": "Provides an Object Store Credential resource. This can be used to create, modify, and delete object stores credential.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst backupObjectStoreCredential = civo.getObjectStoreCredential({\n name: \"backup-server\",\n});\n// Create a credential for the object store with a specific access key and secret key\nconst backupIndex_objectStoreCredentialObjectStoreCredential = new civo.ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\", {\n accessKeyId: \"my-access-key\",\n secretAccessKey: \"my-secret-key\",\n});\n// Use the credential to create a bucket\nconst backupObjectStore = new civo.ObjectStore(\"backupObjectStore\", {\n maxSizeGb: 500,\n region: \"LON1\",\n accessKeyId: backupIndex / objectStoreCredentialObjectStoreCredential.accessKeyId,\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\nbackup_object_store_credential = civo.get_object_store_credential(name=\"backup-server\")\n# Create a credential for the object store with a specific access key and secret key\nbackup_index_object_store_credential_object_store_credential = civo.ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\",\n access_key_id=\"my-access-key\",\n secret_access_key=\"my-secret-key\")\n# Use the credential to create a bucket\nbackup_object_store = civo.ObjectStore(\"backupObjectStore\",\n max_size_gb=500,\n region=\"LON1\",\n access_key_id=backup_index / object_store_credential_object_store_credential[\"accessKeyId\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backupObjectStoreCredential = Civo.GetObjectStoreCredential.Invoke(new()\n {\n Name = \"backup-server\",\n });\n\n // Create a credential for the object store with a specific access key and secret key\n var backupIndex_objectStoreCredentialObjectStoreCredential = new Civo.ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\", new()\n {\n AccessKeyId = \"my-access-key\",\n SecretAccessKey = \"my-secret-key\",\n });\n\n // Use the credential to create a bucket\n var backupObjectStore = new Civo.ObjectStore(\"backupObjectStore\", new()\n {\n MaxSizeGb = 500,\n Region = \"LON1\",\n AccessKeyId = backupIndex / objectStoreCredentialObjectStoreCredential.AccessKeyId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := civo.LookupObjectStoreCredential(ctx, \u0026civo.LookupObjectStoreCredentialArgs{\n\t\t\tName: pulumi.StringRef(\"backup-server\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a credential for the object store with a specific access key and secret key\n\t\t_, err = civo.NewObjectStoreCredential(ctx, \"backupIndex/objectStoreCredentialObjectStoreCredential\", \u0026civo.ObjectStoreCredentialArgs{\n\t\t\tAccessKeyId: pulumi.String(\"my-access-key\"),\n\t\t\tSecretAccessKey: pulumi.String(\"my-secret-key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Use the credential to create a bucket\n\t\t_, err = civo.NewObjectStore(ctx, \"backupObjectStore\", \u0026civo.ObjectStoreArgs{\n\t\t\tMaxSizeGb: pulumi.Int(500),\n\t\t\tRegion: pulumi.String(\"LON1\"),\n\t\t\tAccessKeyId: backupIndex / objectStoreCredentialObjectStoreCredential.AccessKeyId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetObjectStoreCredentialArgs;\nimport com.pulumi.civo.ObjectStoreCredential;\nimport com.pulumi.civo.ObjectStoreCredentialArgs;\nimport com.pulumi.civo.ObjectStore;\nimport com.pulumi.civo.ObjectStoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var backupObjectStoreCredential = CivoFunctions.getObjectStoreCredential(GetObjectStoreCredentialArgs.builder()\n .name(\"backup-server\")\n .build());\n\n var backupIndex_objectStoreCredentialObjectStoreCredential = new ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\", ObjectStoreCredentialArgs.builder() \n .accessKeyId(\"my-access-key\")\n .secretAccessKey(\"my-secret-key\")\n .build());\n\n var backupObjectStore = new ObjectStore(\"backupObjectStore\", ObjectStoreArgs.builder() \n .maxSizeGb(500)\n .region(\"LON1\")\n .accessKeyId(backupIndex / objectStoreCredentialObjectStoreCredential.accessKeyId())\n .build());\n\n }\n}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing ID\n\n```sh\n$ pulumi import civo:index/objectStoreCredential:ObjectStoreCredential custom_object b8ecd2ab-2267-4a5e-8692-cbf1d32583e3\n```\n\n", + "description": "Provides an Object Store Credential resource. This can be used to create, modify, and delete object stores credential.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst backupObjectStoreCredential = civo.getObjectStoreCredential({\n name: \"backup-server\",\n});\n// Create a credential for the object store with a specific access key and secret key\nconst backupIndex_objectStoreCredentialObjectStoreCredential = new civo.ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\", {\n accessKeyId: \"my-access-key\",\n secretAccessKey: \"my-secret-key\",\n});\n// Use the credential to create a bucket\nconst backupObjectStore = new civo.ObjectStore(\"backupObjectStore\", {\n maxSizeGb: 500,\n region: \"LON1\",\n accessKeyId: backupIndex / objectStoreCredentialObjectStoreCredential.accessKeyId,\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\nbackup_object_store_credential = civo.get_object_store_credential(name=\"backup-server\")\n# Create a credential for the object store with a specific access key and secret key\nbackup_index_object_store_credential_object_store_credential = civo.ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\",\n access_key_id=\"my-access-key\",\n secret_access_key=\"my-secret-key\")\n# Use the credential to create a bucket\nbackup_object_store = civo.ObjectStore(\"backupObjectStore\",\n max_size_gb=500,\n region=\"LON1\",\n access_key_id=backup_index / object_store_credential_object_store_credential[\"accessKeyId\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backupObjectStoreCredential = Civo.GetObjectStoreCredential.Invoke(new()\n {\n Name = \"backup-server\",\n });\n\n // Create a credential for the object store with a specific access key and secret key\n var backupIndex_objectStoreCredentialObjectStoreCredential = new Civo.ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\", new()\n {\n AccessKeyId = \"my-access-key\",\n SecretAccessKey = \"my-secret-key\",\n });\n\n // Use the credential to create a bucket\n var backupObjectStore = new Civo.ObjectStore(\"backupObjectStore\", new()\n {\n MaxSizeGb = 500,\n Region = \"LON1\",\n AccessKeyId = backupIndex / objectStoreCredentialObjectStoreCredential.AccessKeyId,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := civo.LookupObjectStoreCredential(ctx, \u0026civo.LookupObjectStoreCredentialArgs{\n\t\t\tName: pulumi.StringRef(\"backup-server\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create a credential for the object store with a specific access key and secret key\n\t\t_, err = civo.NewObjectStoreCredential(ctx, \"backupIndex/objectStoreCredentialObjectStoreCredential\", \u0026civo.ObjectStoreCredentialArgs{\n\t\t\tAccessKeyId: pulumi.String(\"my-access-key\"),\n\t\t\tSecretAccessKey: pulumi.String(\"my-secret-key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Use the credential to create a bucket\n\t\t_, err = civo.NewObjectStore(ctx, \"backupObjectStore\", \u0026civo.ObjectStoreArgs{\n\t\t\tMaxSizeGb: pulumi.Int(500),\n\t\t\tRegion: pulumi.String(\"LON1\"),\n\t\t\tAccessKeyId: backupIndex / objectStoreCredentialObjectStoreCredential.AccessKeyId,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetObjectStoreCredentialArgs;\nimport com.pulumi.civo.ObjectStoreCredential;\nimport com.pulumi.civo.ObjectStoreCredentialArgs;\nimport com.pulumi.civo.ObjectStore;\nimport com.pulumi.civo.ObjectStoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var backupObjectStoreCredential = CivoFunctions.getObjectStoreCredential(GetObjectStoreCredentialArgs.builder()\n .name(\"backup-server\")\n .build());\n\n // Create a credential for the object store with a specific access key and secret key\n var backupIndex_objectStoreCredentialObjectStoreCredential = new ObjectStoreCredential(\"backupIndex/objectStoreCredentialObjectStoreCredential\", ObjectStoreCredentialArgs.builder() \n .accessKeyId(\"my-access-key\")\n .secretAccessKey(\"my-secret-key\")\n .build());\n\n // Use the credential to create a bucket\n var backupObjectStore = new ObjectStore(\"backupObjectStore\", ObjectStoreArgs.builder() \n .maxSizeGb(500)\n .region(\"LON1\")\n .accessKeyId(backupIndex / objectStoreCredentialObjectStoreCredential.accessKeyId())\n .build());\n\n }\n}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing ID\n\n```sh\n$ pulumi import civo:index/objectStoreCredential:ObjectStoreCredential custom_object b8ecd2ab-2267-4a5e-8692-cbf1d32583e3\n```\n\n", "properties": { "accessKeyId": { "type": "string", @@ -2669,7 +2669,7 @@ } }, "civo:index/volume:Volume": { - "description": "Provides a Civo volume which can be attached to an instance in order to provide expanded storage.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst defaultNetwork = civo.getNetwork({\n label: \"Default\",\n});\n// Create volume\nconst db = new civo.Volume(\"db\", {\n sizeGb: 5,\n networkId: defaultNetwork.then(defaultNetwork =\u003e defaultNetwork.id),\n}, {\n dependsOn: [defaultNetwork],\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\ndefault_network = civo.get_network(label=\"Default\")\n# Create volume\ndb = civo.Volume(\"db\",\n size_gb=5,\n network_id=default_network.id,\n opts=pulumi.ResourceOptions(depends_on=[default_network]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var defaultNetwork = Civo.GetNetwork.Invoke(new()\n {\n Label = \"Default\",\n });\n\n // Create volume\n var db = new Civo.Volume(\"db\", new()\n {\n SizeGb = 5,\n NetworkId = defaultNetwork.Apply(getNetworkResult =\u003e getNetworkResult.Id),\n }, new CustomResourceOptions\n {\n DependsOn = new[]\n {\n defaultNetwork,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdefaultNetwork, err := civo.LookupNetwork(ctx, \u0026civo.LookupNetworkArgs{\n\t\t\tLabel: pulumi.StringRef(\"Default\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create volume\n\t\t_, err = civo.NewVolume(ctx, \"db\", \u0026civo.VolumeArgs{\n\t\t\tSizeGb: pulumi.Int(5),\n\t\t\tNetworkId: pulumi.String(defaultNetwork.Id),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tdefaultNetwork,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetNetworkArgs;\nimport com.pulumi.civo.Volume;\nimport com.pulumi.civo.VolumeArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var defaultNetwork = CivoFunctions.getNetwork(GetNetworkArgs.builder()\n .label(\"Default\")\n .build());\n\n var db = new Volume(\"db\", VolumeArgs.builder() \n .sizeGb(5)\n .networkId(defaultNetwork.applyValue(getNetworkResult -\u003e getNetworkResult.id()))\n .build(), CustomResourceOptions.builder()\n .dependsOn(defaultNetwork.applyValue(getNetworkResult -\u003e getNetworkResult))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create volume\n db:\n type: civo:Volume\n properties:\n sizeGb: 5\n networkId: ${defaultNetwork.id}\n options:\n dependson:\n - ${defaultNetwork}\nvariables:\n defaultNetwork:\n fn::invoke:\n Function: civo:getNetwork\n Arguments:\n label: Default\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing ID\n\n```sh\n$ pulumi import civo:index/volume:Volume db 506f78a4-e098-11e5-ad9f-000f53306ae1\n```\n\n", + "description": "Provides a Civo volume which can be attached to an instance in order to provide expanded storage.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst defaultNetwork = civo.getNetwork({\n label: \"Default\",\n});\n// Create volume\nconst db = new civo.Volume(\"db\", {\n sizeGb: 5,\n networkId: defaultNetwork.then(defaultNetwork =\u003e defaultNetwork.id),\n}, {\n dependsOn: [defaultNetwork],\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\ndefault_network = civo.get_network(label=\"Default\")\n# Create volume\ndb = civo.Volume(\"db\",\n size_gb=5,\n network_id=default_network.id,\n opts=pulumi.ResourceOptions(depends_on=[default_network]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var defaultNetwork = Civo.GetNetwork.Invoke(new()\n {\n Label = \"Default\",\n });\n\n // Create volume\n var db = new Civo.Volume(\"db\", new()\n {\n SizeGb = 5,\n NetworkId = defaultNetwork.Apply(getNetworkResult =\u003e getNetworkResult.Id),\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n defaultNetwork, \n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdefaultNetwork, err := civo.LookupNetwork(ctx, \u0026civo.LookupNetworkArgs{\n\t\t\tLabel: pulumi.StringRef(\"Default\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create volume\n\t\t_, err = civo.NewVolume(ctx, \"db\", \u0026civo.VolumeArgs{\n\t\t\tSizeGb: pulumi.Int(5),\n\t\t\tNetworkId: pulumi.String(defaultNetwork.Id),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\tdefaultNetwork,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetNetworkArgs;\nimport com.pulumi.civo.Volume;\nimport com.pulumi.civo.VolumeArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var defaultNetwork = CivoFunctions.getNetwork(GetNetworkArgs.builder()\n .label(\"Default\")\n .build());\n\n // Create volume\n var db = new Volume(\"db\", VolumeArgs.builder() \n .sizeGb(5)\n .networkId(defaultNetwork.applyValue(getNetworkResult -\u003e getNetworkResult.id()))\n .build(), CustomResourceOptions.builder()\n .dependsOn(defaultNetwork.applyValue(getNetworkResult -\u003e getNetworkResult))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create volume\n db:\n type: civo:Volume\n properties:\n sizeGb: 5\n networkId: ${defaultNetwork.id}\n options:\n dependson:\n - ${defaultNetwork}\nvariables:\n defaultNetwork:\n fn::invoke:\n Function: civo:getNetwork\n Arguments:\n label: Default\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nusing ID\n\n```sh\n$ pulumi import civo:index/volume:Volume db 506f78a4-e098-11e5-ad9f-000f53306ae1\n```\n\n", "properties": { "mountPoint": { "type": "string", @@ -3788,7 +3788,7 @@ } }, "civo:index/getObjectStoreCredential:getObjectStoreCredential": { - "description": "Get information of an Object Store Credential for use in other resources. This data source provides all of the Object Store Credential's properties as configured on your Civo account.\n\nNote: This data source returns a single Object Store Credential. When specifying a name, an error will be raised if more than one Object Store Credentials with the same name found.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst backupObjectStoreCredential = civo.getObjectStoreCredential({\n name: \"backup-server\",\n});\n// Use the credential to create a bucket\nconst backupObjectStore = new civo.ObjectStore(\"backupObjectStore\", {\n maxSizeGb: 500,\n region: \"LON1\",\n accessKeyId: backupObjectStoreCredential.then(backupObjectStoreCredential =\u003e backupObjectStoreCredential.accessKeyId),\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\nbackup_object_store_credential = civo.get_object_store_credential(name=\"backup-server\")\n# Use the credential to create a bucket\nbackup_object_store = civo.ObjectStore(\"backupObjectStore\",\n max_size_gb=500,\n region=\"LON1\",\n access_key_id=backup_object_store_credential.access_key_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backupObjectStoreCredential = Civo.GetObjectStoreCredential.Invoke(new()\n {\n Name = \"backup-server\",\n });\n\n // Use the credential to create a bucket\n var backupObjectStore = new Civo.ObjectStore(\"backupObjectStore\", new()\n {\n MaxSizeGb = 500,\n Region = \"LON1\",\n AccessKeyId = backupObjectStoreCredential.Apply(getObjectStoreCredentialResult =\u003e getObjectStoreCredentialResult.AccessKeyId),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tbackupObjectStoreCredential, err := civo.LookupObjectStoreCredential(ctx, \u0026civo.LookupObjectStoreCredentialArgs{\n\t\t\tName: pulumi.StringRef(\"backup-server\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Use the credential to create a bucket\n\t\t_, err = civo.NewObjectStore(ctx, \"backupObjectStore\", \u0026civo.ObjectStoreArgs{\n\t\t\tMaxSizeGb: pulumi.Int(500),\n\t\t\tRegion: pulumi.String(\"LON1\"),\n\t\t\tAccessKeyId: pulumi.String(backupObjectStoreCredential.AccessKeyId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetObjectStoreCredentialArgs;\nimport com.pulumi.civo.ObjectStore;\nimport com.pulumi.civo.ObjectStoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var backupObjectStoreCredential = CivoFunctions.getObjectStoreCredential(GetObjectStoreCredentialArgs.builder()\n .name(\"backup-server\")\n .build());\n\n var backupObjectStore = new ObjectStore(\"backupObjectStore\", ObjectStoreArgs.builder() \n .maxSizeGb(500)\n .region(\"LON1\")\n .accessKeyId(backupObjectStoreCredential.applyValue(getObjectStoreCredentialResult -\u003e getObjectStoreCredentialResult.accessKeyId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Use the credential to create a bucket\n backupObjectStore:\n type: civo:ObjectStore\n properties:\n maxSizeGb: 500\n region: LON1\n accessKeyId: ${backupObjectStoreCredential.accessKeyId}\nvariables:\n backupObjectStoreCredential:\n fn::invoke:\n Function: civo:getObjectStoreCredential\n Arguments:\n name: backup-server\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Get information of an Object Store Credential for use in other resources. This data source provides all of the Object Store Credential's properties as configured on your Civo account.\n\nNote: This data source returns a single Object Store Credential. When specifying a name, an error will be raised if more than one Object Store Credentials with the same name found.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst backupObjectStoreCredential = civo.getObjectStoreCredential({\n name: \"backup-server\",\n});\n// Use the credential to create a bucket\nconst backupObjectStore = new civo.ObjectStore(\"backupObjectStore\", {\n maxSizeGb: 500,\n region: \"LON1\",\n accessKeyId: backupObjectStoreCredential.then(backupObjectStoreCredential =\u003e backupObjectStoreCredential.accessKeyId),\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\nbackup_object_store_credential = civo.get_object_store_credential(name=\"backup-server\")\n# Use the credential to create a bucket\nbackup_object_store = civo.ObjectStore(\"backupObjectStore\",\n max_size_gb=500,\n region=\"LON1\",\n access_key_id=backup_object_store_credential.access_key_id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backupObjectStoreCredential = Civo.GetObjectStoreCredential.Invoke(new()\n {\n Name = \"backup-server\",\n });\n\n // Use the credential to create a bucket\n var backupObjectStore = new Civo.ObjectStore(\"backupObjectStore\", new()\n {\n MaxSizeGb = 500,\n Region = \"LON1\",\n AccessKeyId = backupObjectStoreCredential.Apply(getObjectStoreCredentialResult =\u003e getObjectStoreCredentialResult.AccessKeyId),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tbackupObjectStoreCredential, err := civo.LookupObjectStoreCredential(ctx, \u0026civo.LookupObjectStoreCredentialArgs{\n\t\t\tName: pulumi.StringRef(\"backup-server\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Use the credential to create a bucket\n\t\t_, err = civo.NewObjectStore(ctx, \"backupObjectStore\", \u0026civo.ObjectStoreArgs{\n\t\t\tMaxSizeGb: pulumi.Int(500),\n\t\t\tRegion: pulumi.String(\"LON1\"),\n\t\t\tAccessKeyId: pulumi.String(backupObjectStoreCredential.AccessKeyId),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetObjectStoreCredentialArgs;\nimport com.pulumi.civo.ObjectStore;\nimport com.pulumi.civo.ObjectStoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var backupObjectStoreCredential = CivoFunctions.getObjectStoreCredential(GetObjectStoreCredentialArgs.builder()\n .name(\"backup-server\")\n .build());\n\n // Use the credential to create a bucket\n var backupObjectStore = new ObjectStore(\"backupObjectStore\", ObjectStoreArgs.builder() \n .maxSizeGb(500)\n .region(\"LON1\")\n .accessKeyId(backupObjectStoreCredential.applyValue(getObjectStoreCredentialResult -\u003e getObjectStoreCredentialResult.accessKeyId()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Use the credential to create a bucket\n backupObjectStore:\n type: civo:ObjectStore\n properties:\n maxSizeGb: 500\n region: LON1\n accessKeyId: ${backupObjectStoreCredential.accessKeyId}\nvariables:\n backupObjectStoreCredential:\n fn::invoke:\n Function: civo:getObjectStoreCredential\n Arguments:\n name: backup-server\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getObjectStoreCredential.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 81bc3b5e..166c3b26 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -6,8 +6,8 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf require ( github.com/civo/terraform-provider-civo v1.0.39 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0 - github.com/pulumi/pulumi/sdk/v3 v3.111.1 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.79.0 + github.com/pulumi/pulumi/sdk/v3 v3.112.0 ) require ( @@ -126,7 +126,7 @@ require ( github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.20.0 // indirect github.com/hashicorp/terraform-json v0.21.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.22.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.22.1 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-sdk v1.14.0 // indirect github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect @@ -180,10 +180,10 @@ require ( github.com/posener/complete v1.2.3 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.6.2 // indirect - github.com/pulumi/pulumi-java/pkg v0.9.9 // indirect + github.com/pulumi/pulumi-java/pkg v0.10.0 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect github.com/pulumi/pulumi-yaml v1.6.0 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.111.1 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.112.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect @@ -199,7 +199,7 @@ require ( github.com/skeema/knownhosts v1.2.1 // indirect github.com/spf13/afero v1.9.5 // indirect github.com/spf13/cast v1.5.0 // indirect - github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect @@ -224,14 +224,14 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.36.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.19.0 // indirect + golang.org/x/crypto v0.21.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.15.0 // indirect - golang.org/x/net v0.20.0 // indirect + golang.org/x/net v0.21.0 // indirect golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.17.0 // indirect - golang.org/x/term v0.17.0 // indirect + golang.org/x/sys v0.18.0 // indirect + golang.org/x/term v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.15.0 // indirect @@ -241,7 +241,7 @@ require ( google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect - google.golang.org/grpc v1.62.0 // indirect + google.golang.org/grpc v1.62.1 // indirect google.golang.org/protobuf v1.33.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index e25ee00c..cc8935f9 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1646,7 +1646,7 @@ github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfc github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= @@ -2252,8 +2252,9 @@ github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8j github.com/hashicorp/terraform-json v0.19.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= -github.com/hashicorp/terraform-plugin-go v0.22.0 h1:1OS1Jk5mO0f5hrziWJGXXIxBrMe2j/B8E+DVGw43Xmc= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= +github.com/hashicorp/terraform-plugin-go v0.22.1 h1:iTS7WHNVrn7uhe3cojtvWWn83cm2Z6ryIUDTRO0EV7w= +github.com/hashicorp/terraform-plugin-go v0.22.1/go.mod h1:qrjnqRghvQ6KnDbB12XeZ4FluclYwptntoWCr9QaXTI= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= @@ -2812,18 +2813,18 @@ github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= github.com/pulumi/providertest v0.0.11 h1:mg8MQ7Cq7+9XlHIkBD+aCqQO4mwAJEISngZgVdnQUe8= github.com/pulumi/providertest v0.0.11/go.mod h1:HsxjVsytcMIuNj19w1lT2W0QXY0oReXl1+h6eD2JXP8= -github.com/pulumi/pulumi-java/pkg v0.9.9 h1:F3xJUtMFDVrTGCxb7Rh2Q8s6tj7gMfM5pcoUthz7vFY= -github.com/pulumi/pulumi-java/pkg v0.9.9/go.mod h1:LVF1zeg3UkToHWxb67V+zEIxQc3EdMnlot5NWSt+FpA= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0 h1:zl1nXrx02X7u/w5kNjIVGVUzccEILcMWsIpg4QQanCI= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.78.0/go.mod h1:WpkN/lgtBrDYGrMyG9cmncy5pN95lnowbmjILHWcm0M= +github.com/pulumi/pulumi-java/pkg v0.10.0 h1:D1i5MiiNrxYr2uJ1szcj1aQwF9DYv7TTsPmajB9dKSw= +github.com/pulumi/pulumi-java/pkg v0.10.0/go.mod h1:xu6UgYtQm+xXOo1/DZNa2CWVPytu+RMkZVTtI7w7ffY= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.79.0 h1:h0HlgUsqaQAe57/+AP9kbhHo5SLI0uwl8lstjVG+I9U= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.79.0/go.mod h1:U5CqG4BJmdzCd4ALO2cx/dEP0yTHfIS2sk2ah1ngZq4= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= github.com/pulumi/pulumi-yaml v1.6.0 h1:mb/QkebWXTa1fR+P3ZkCCHGXOYC6iTN8X8By9eNz8xM= github.com/pulumi/pulumi-yaml v1.6.0/go.mod h1:RyEPo4MhL363sbAiFMVKRsQmXpQPDCY1S8pGv3E6Ij0= -github.com/pulumi/pulumi/pkg/v3 v3.111.1 h1:SrVgQE96T7YlZx/AZoFSlXYwur7ZmQUHyjbPI8sH96Q= -github.com/pulumi/pulumi/pkg/v3 v3.111.1/go.mod h1:ZWsq8Y0EMHZ5E2ju92jC+POz97TEXs3BbQ6r2o0U4SA= -github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw= -github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= +github.com/pulumi/pulumi/pkg/v3 v3.112.0 h1:vhoM6sx1eegJntIeUZENtck3VeMtK1zBiQ2E3EPOnHw= +github.com/pulumi/pulumi/pkg/v3 v3.112.0/go.mod h1:GQhNr0v5E8TACF8j0p6UQqyr7mZreUpoMfVjLeu6eY0= +github.com/pulumi/pulumi/sdk/v3 v3.112.0 h1:cq2x5N6iuYhSLdeOdRs+LIq0EneB0Cb54WOlD/VaX3E= +github.com/pulumi/pulumi/sdk/v3 v3.112.0/go.mod h1:JWSzKBoHd8rlncC1DhXLf7YdV+Bk/Qf+hSZOOQh0WwQ= 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= @@ -2927,8 +2928,8 @@ github.com/spf13/cobra v0.0.2-0.20171109065643-2da4a54c5cee/go.mod h1:1l0Ry5zgKv github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= -github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.1-0.20171106142849-4c012f6dcd95/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= @@ -3229,8 +3230,9 @@ golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= 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= @@ -3402,8 +3404,8 @@ golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= -golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= -golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -3637,8 +3639,9 @@ golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 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 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -3660,8 +3663,9 @@ golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= 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.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= +golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= 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= @@ -4180,8 +4184,8 @@ google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSs google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= -google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= -google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= +google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/sdk/dotnet/Volume.cs b/sdk/dotnet/Volume.cs index e1b89f86..20fc3620 100644 --- a/sdk/dotnet/Volume.cs +++ b/sdk/dotnet/Volume.cs @@ -35,9 +35,9 @@ namespace Pulumi.Civo /// NetworkId = defaultNetwork.Apply(getNetworkResult => getNetworkResult.Id), /// }, new CustomResourceOptions /// { - /// DependsOn = new[] + /// DependsOn = /// { - /// defaultNetwork, + /// defaultNetwork, /// }, /// }); /// diff --git a/sdk/go.mod b/sdk/go.mod index 81a75465..730ea5e5 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.111.1 + github.com/pulumi/pulumi/sdk/v3 v3.112.0 ) require ( @@ -75,13 +75,13 @@ 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.17.0 // indirect + golang.org/x/crypto v0.21.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.14.0 // indirect - golang.org/x/net v0.19.0 // indirect + golang.org/x/net v0.21.0 // indirect golang.org/x/sync v0.5.0 // indirect - golang.org/x/sys v0.15.0 // indirect - golang.org/x/term v0.15.0 // indirect + golang.org/x/sys v0.18.0 // indirect + golang.org/x/term v0.18.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/tools v0.15.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index d31a60b8..72db5c64 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.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= -github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw= -github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg= +github.com/pulumi/pulumi/sdk/v3 v3.112.0 h1:cq2x5N6iuYhSLdeOdRs+LIq0EneB0Cb54WOlD/VaX3E= +github.com/pulumi/pulumi/sdk/v3 v3.112.0/go.mod h1:JWSzKBoHd8rlncC1DhXLf7YdV+Bk/Qf+hSZOOQh0WwQ= 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= @@ -211,8 +211,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.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= +golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= @@ -234,8 +234,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= -golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -263,15 +263,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.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc= -golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= +golang.org/x/sys v0.18.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.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= +golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= +golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= 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= diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 5fd84a42..78bdd5e0 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.9.9") + implementation("com.pulumi:pulumi:0.10.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/civo/CivoFunctions.java b/sdk/java/src/main/java/com/pulumi/civo/CivoFunctions.java index 57ec324e..971509c1 100644 --- a/sdk/java/src/main/java/com/pulumi/civo/CivoFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/civo/CivoFunctions.java @@ -3057,6 +3057,7 @@ public static CompletableFuture getObjectStorePlain(GetObj * .name("backup-server") * .build()); * + * // Use the credential to create a bucket * var backupObjectStore = new ObjectStore("backupObjectStore", ObjectStoreArgs.builder() * .maxSizeGb(500) * .region("LON1") @@ -3107,6 +3108,7 @@ public static Output getObjectStoreCredential() * .name("backup-server") * .build()); * + * // Use the credential to create a bucket * var backupObjectStore = new ObjectStore("backupObjectStore", ObjectStoreArgs.builder() * .maxSizeGb(500) * .region("LON1") @@ -3157,6 +3159,7 @@ public static CompletableFuture getObjectStoreCr * .name("backup-server") * .build()); * + * // Use the credential to create a bucket * var backupObjectStore = new ObjectStore("backupObjectStore", ObjectStoreArgs.builder() * .maxSizeGb(500) * .region("LON1") @@ -3207,6 +3210,7 @@ public static Output getObjectStoreCredential(Ge * .name("backup-server") * .build()); * + * // Use the credential to create a bucket * var backupObjectStore = new ObjectStore("backupObjectStore", ObjectStoreArgs.builder() * .maxSizeGb(500) * .region("LON1") @@ -3257,6 +3261,7 @@ public static CompletableFuture getObjectStoreCr * .name("backup-server") * .build()); * + * // Use the credential to create a bucket * var backupObjectStore = new ObjectStore("backupObjectStore", ObjectStoreArgs.builder() * .maxSizeGb(500) * .region("LON1") @@ -3307,6 +3312,7 @@ public static Output getObjectStoreCredential(Ge * .name("backup-server") * .build()); * + * // Use the credential to create a bucket * var backupObjectStore = new ObjectStore("backupObjectStore", ObjectStoreArgs.builder() * .maxSizeGb(500) * .region("LON1") diff --git a/sdk/java/src/main/java/com/pulumi/civo/DnsDomainName.java b/sdk/java/src/main/java/com/pulumi/civo/DnsDomainName.java index b6f52b17..55e7d3c8 100644 --- a/sdk/java/src/main/java/com/pulumi/civo/DnsDomainName.java +++ b/sdk/java/src/main/java/com/pulumi/civo/DnsDomainName.java @@ -39,6 +39,7 @@ * } * * public static void stack(Context ctx) { + * // Create a new domain name * var main = new DnsDomainName("main"); * * } diff --git a/sdk/java/src/main/java/com/pulumi/civo/Firewall.java b/sdk/java/src/main/java/com/pulumi/civo/Firewall.java index 5278a876..76e0ffc6 100644 --- a/sdk/java/src/main/java/com/pulumi/civo/Firewall.java +++ b/sdk/java/src/main/java/com/pulumi/civo/Firewall.java @@ -49,19 +49,23 @@ * } * * public static void stack(Context ctx) { + * // Create a network * var customNet = new Network("customNet", NetworkArgs.builder() * .label("my-custom-network") * .build()); * + * // Create a firewall * var wwwFirewall = new Firewall("wwwFirewall", FirewallArgs.builder() * .networkId(customNet.id()) * .build()); * + * // Create a firewall with the default rules * var wwwIndex_firewallFirewall = new Firewall("wwwIndex/firewallFirewall", FirewallArgs.builder() * .networkId(customNet.id()) * .createDefaultRules(true) * .build()); * + * // Create a firewall withouth the default rules but with a custom rule * var wwwCivoIndex_firewallFirewall = new Firewall("wwwCivoIndex/firewallFirewall", FirewallArgs.builder() * .networkId(customNet.id()) * .createDefaultRules(false) diff --git a/sdk/java/src/main/java/com/pulumi/civo/InstanceReservedIpAssignment.java b/sdk/java/src/main/java/com/pulumi/civo/InstanceReservedIpAssignment.java index ad868bda..deb2f510 100644 --- a/sdk/java/src/main/java/com/pulumi/civo/InstanceReservedIpAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/civo/InstanceReservedIpAssignment.java @@ -41,8 +41,10 @@ * } * * public static void stack(Context ctx) { + * // Send to create a reserved IP * var www = new ReservedIp("www"); * + * // We assign the reserved IP to the instance * var webserver_www = new InstanceReservedIpAssignment("webserver-www", InstanceReservedIpAssignmentArgs.builder() * .instanceId(civo_instance.www().id()) * .reservedIpId(civo_reserved_ip.web-server().id()) diff --git a/sdk/java/src/main/java/com/pulumi/civo/ObjectStoreCredential.java b/sdk/java/src/main/java/com/pulumi/civo/ObjectStoreCredential.java index e3e10906..1ca70474 100644 --- a/sdk/java/src/main/java/com/pulumi/civo/ObjectStoreCredential.java +++ b/sdk/java/src/main/java/com/pulumi/civo/ObjectStoreCredential.java @@ -49,11 +49,13 @@ * .name("backup-server") * .build()); * + * // Create a credential for the object store with a specific access key and secret key * var backupIndex_objectStoreCredentialObjectStoreCredential = new ObjectStoreCredential("backupIndex/objectStoreCredentialObjectStoreCredential", ObjectStoreCredentialArgs.builder() * .accessKeyId("my-access-key") * .secretAccessKey("my-secret-key") * .build()); * + * // Use the credential to create a bucket * var backupObjectStore = new ObjectStore("backupObjectStore", ObjectStoreArgs.builder() * .maxSizeGb(500) * .region("LON1") diff --git a/sdk/java/src/main/java/com/pulumi/civo/Volume.java b/sdk/java/src/main/java/com/pulumi/civo/Volume.java index af78899a..ddeff7c5 100644 --- a/sdk/java/src/main/java/com/pulumi/civo/Volume.java +++ b/sdk/java/src/main/java/com/pulumi/civo/Volume.java @@ -49,6 +49,7 @@ * .label("Default") * .build()); * + * // Create volume * var db = new Volume("db", VolumeArgs.builder() * .sizeGb(5) * .networkId(defaultNetwork.applyValue(getNetworkResult -> getNetworkResult.id()))