From e05d700ee4fbb2c5c54fca6f27c262802d9c92c5 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 3 Oct 2023 01:38:56 +0000 Subject: [PATCH 1/2] make tfgen --- examples/go.mod | 6 +++--- examples/go.sum | 19 +++++++------------ provider/go.mod | 8 ++++---- provider/go.sum | 23 +++++++++-------------- sdk/go.mod | 2 +- sdk/go.sum | 4 ++-- 6 files changed, 26 insertions(+), 36 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index a0cfeb8..8671d0d 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-splunk/examples go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.81.0 +require github.com/pulumi/pulumi/pkg/v3 v3.86.0 require ( cloud.google.com/go v0.110.4 // indirect @@ -13,7 +13,7 @@ require ( cloud.google.com/go/logging v1.7.0 // indirect cloud.google.com/go/longrunning v0.5.1 // indirect cloud.google.com/go/storage v1.30.1 // indirect - github.com/AlecAivazis/survey/v2 v2.0.5 // indirect + github.com/AlecAivazis/survey/v2 v2.3.7 // indirect github.com/Azure/azure-sdk-for-go v66.0.0+incompatible // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 // indirect @@ -154,7 +154,7 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.81.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.86.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.9.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 18ee8c8..ab74542 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -93,8 +93,8 @@ contrib.go.opencensus.io/exporter/stackdriver v0.13.13/go.mod h1:5pSSGY0Bhuk7waT contrib.go.opencensus.io/integrations/ocsql v0.1.7/go.mod h1:8DsSdjz3F+APR+0z0WkU1aRorQCFfRxvqjUUPMbF3fE= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg= -github.com/AlecAivazis/survey/v2 v2.0.5 h1:xpZp+Q55wi5C7Iaze+40onHnEkex1jSc34CltJjOoPM= -github.com/AlecAivazis/survey/v2 v2.0.5/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74= +github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkkhIiSjQ= +github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo= github.com/Azure/azure-amqp-common-go/v3 v3.2.3/go.mod h1:7rPmbSfszeovxGfc5fSAXE4ehlXQZHpMja2OtxC2Tas= github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v63.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= @@ -192,7 +192,6 @@ github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5 github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= -github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8/go.mod h1:oX5x61PbNXchhh0oikYAH+4Pcfw5LKv21+Jnpr6r6Pc= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= @@ -1017,7 +1016,7 @@ github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hetznercloud/hcloud-go v1.33.1/go.mod h1:XX/TQub3ge0yWR2yHWmnDVIrB+MQbda1pHxkUmDlUME= github.com/hetznercloud/hcloud-go v1.35.0/go.mod h1:mepQwR6va27S3UQthaEPGS86jtzSY9xWL1e9dyxXpgA= -github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174/go.mod h1:DqJ97dSdRW1W22yXSB90986pcOyQ7r45iio1KN2ez1A= +github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02 h1:AgcIVYPa6XJnU3phs104wLj8l5GEththEw6+F79YsIY= github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= @@ -1142,7 +1141,6 @@ github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NB github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.4/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= @@ -1464,10 +1462,10 @@ github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1 github.com/prometheus/prometheus v0.35.0/go.mod h1:7HaLx5kEPKJ0GDgbODG0fZgXbQ8K/XjZNJXQmbmgQlY= github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGOON44WyAp4Xqbbk= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/pulumi/pulumi/pkg/v3 v3.81.0 h1:6rf2farQLszi8inHCu9YdJtDvK0fqNguix51b3FEDRQ= -github.com/pulumi/pulumi/pkg/v3 v3.81.0/go.mod h1:URXozJB/abhxb2yOwa5ywHjT2dqt9SmAX2iLkdcOOl0= -github.com/pulumi/pulumi/sdk/v3 v3.81.0 h1:d711GUpjZK1beNpIKFReC1LBmHXYE684sYWntJWQ4Q0= -github.com/pulumi/pulumi/sdk/v3 v3.81.0/go.mod h1:RMilNNVMlmK1h4Nl/qylb9vzbgh4F3mufZoUOnPy98o= +github.com/pulumi/pulumi/pkg/v3 v3.86.0 h1:G4spuT89ZN8lSxT9WkMF/JaP7n+wu7ubEly7Yy8uza0= +github.com/pulumi/pulumi/pkg/v3 v3.86.0/go.mod h1:Qs55gPhUwM/Dua3VRtHXLLlpY8uEe+llDBIZc+1pvHM= +github.com/pulumi/pulumi/sdk/v3 v3.86.0 h1:Cxg0rGdvMt9GqGvesFTj8+WaO/ihmALYlQf4zm1GzFw= +github.com/pulumi/pulumi/sdk/v3 v3.86.0/go.mod h1:vexSGJ5L834l3T7Fo/KpdywjGAgZ2CvChuqGFl+ebS0= 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= @@ -1570,7 +1568,6 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -1759,7 +1756,6 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= @@ -1980,7 +1976,6 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190522044717-8097e1b27ff5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190530182044-ad28b68e88f1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/provider/go.mod b/provider/go.mod index 3884175..fd1dc4a 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/aminueza/terraform-provider-minio v1.18.1 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.60.1 - github.com/pulumi/pulumi/sdk/v3 v3.81.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.61.0 + github.com/pulumi/pulumi/sdk/v3 v3.86.0 ) require ( @@ -20,7 +20,7 @@ require ( cloud.google.com/go/longrunning v0.5.1 // indirect cloud.google.com/go/storage v1.30.1 // indirect dario.cat/mergo v1.0.0 // indirect - github.com/AlecAivazis/survey/v2 v2.0.5 // indirect + github.com/AlecAivazis/survey/v2 v2.3.7 // indirect github.com/Azure/azure-sdk-for-go v66.0.0+incompatible // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 // indirect github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 // indirect @@ -206,7 +206,7 @@ require ( github.com/pulumi/pulumi-java/pkg v0.9.6 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect github.com/pulumi/pulumi-yaml v1.2.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.81.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.86.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 diff --git a/provider/go.sum b/provider/go.sum index 7c3106d..cf87591 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -629,8 +629,8 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7 gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= git.sr.ht/~sbinet/gg v0.3.1/go.mod h1:KGYtlADtqsqANL9ueOFkWymvzUvLMQllU5Ixo+8v3pc= github.com/AdaLogics/go-fuzz-headers v0.0.0-20210715213245-6c3934b029d8/go.mod h1:CzsSbkDixRphAF5hS6wbMKq0eI6ccJRb7/A0M6JBnwg= -github.com/AlecAivazis/survey/v2 v2.0.5 h1:xpZp+Q55wi5C7Iaze+40onHnEkex1jSc34CltJjOoPM= -github.com/AlecAivazis/survey/v2 v2.0.5/go.mod h1:WYBhg6f0y/fNYUuesWQc0PKbJcEliGcYHB9sNT3Bg74= +github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkkhIiSjQ= +github.com/AlecAivazis/survey/v2 v2.3.7/go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo= github.com/Azure/azure-amqp-common-go/v3 v3.2.3/go.mod h1:7rPmbSfszeovxGfc5fSAXE4ehlXQZHpMja2OtxC2Tas= github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v63.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= @@ -740,7 +740,6 @@ github.com/Microsoft/hcsshim/test v0.0.0-20201218223536-d3e5debf77da/go.mod h1:5 github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3/go.mod h1:mw7qgWloBUl75W/gVH3cQszUg1+gUITj7D6NY7ywVnY= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= -github.com/Netflix/go-expect v0.0.0-20180615182759-c93bf25de8e8/go.mod h1:oX5x61PbNXchhh0oikYAH+4Pcfw5LKv21+Jnpr6r6Pc= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s= github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= @@ -1692,7 +1691,7 @@ github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUq github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/hexops/valast v1.4.0 h1:sFzyxPDP0riFQUzSBXTCCrAbbIndHPWMndxuEjXdZlc= github.com/hexops/valast v1.4.0/go.mod h1:uVjKZ0smVuYlgCSPz9NRi5A04sl7lp6GtFWsROKDgEs= -github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174/go.mod h1:DqJ97dSdRW1W22yXSB90986pcOyQ7r45iio1KN2ez1A= +github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02 h1:AgcIVYPa6XJnU3phs104wLj8l5GEththEw6+F79YsIY= github.com/hinshun/vt10x v0.0.0-20220301184237-5011da428d02/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= @@ -1838,7 +1837,6 @@ github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NB github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.4/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= @@ -2217,16 +2215,16 @@ github.com/pulumi/pulumi-java/pkg v0.9.6 h1:UJrOAsYHRchwb4QlfI9Q224qg1TOI3rIsI6D github.com/pulumi/pulumi-java/pkg v0.9.6/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.60.1 h1:+W2JHLi4y+G57jLPLJbDLv1xvm/9L2NO0gWXrtR8MDM= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.60.1/go.mod h1:o0Vfch2UXtHOnGYpNElzGg4htT6B8X8hS9fa5AguP7g= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.61.0 h1:ryRfPhwm78Ni+U1uaAsITAI6dD2tLtb3suhJXGWb9cM= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.61.0/go.mod h1:k6iVhOWqTkMWxMdd7njoSkPXBJC/T2Rs44Iif3yDgXw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w= github.com/pulumi/pulumi-yaml v1.2.2 h1:W6BeUBLhDrJ2GSU0em1AUVelG9PBI4ABY61DdhJOO3E= github.com/pulumi/pulumi-yaml v1.2.2/go.mod h1:EgakC7b/4+VBNnlgM1RZIea2gUstV8s/7bdFJZt0P64= -github.com/pulumi/pulumi/pkg/v3 v3.81.0 h1:6rf2farQLszi8inHCu9YdJtDvK0fqNguix51b3FEDRQ= -github.com/pulumi/pulumi/pkg/v3 v3.81.0/go.mod h1:URXozJB/abhxb2yOwa5ywHjT2dqt9SmAX2iLkdcOOl0= -github.com/pulumi/pulumi/sdk/v3 v3.81.0 h1:d711GUpjZK1beNpIKFReC1LBmHXYE684sYWntJWQ4Q0= -github.com/pulumi/pulumi/sdk/v3 v3.81.0/go.mod h1:RMilNNVMlmK1h4Nl/qylb9vzbgh4F3mufZoUOnPy98o= +github.com/pulumi/pulumi/pkg/v3 v3.86.0 h1:G4spuT89ZN8lSxT9WkMF/JaP7n+wu7ubEly7Yy8uza0= +github.com/pulumi/pulumi/pkg/v3 v3.86.0/go.mod h1:Qs55gPhUwM/Dua3VRtHXLLlpY8uEe+llDBIZc+1pvHM= +github.com/pulumi/pulumi/sdk/v3 v3.86.0 h1:Cxg0rGdvMt9GqGvesFTj8+WaO/ihmALYlQf4zm1GzFw= +github.com/pulumi/pulumi/sdk/v3 v3.86.0/go.mod h1:vexSGJ5L834l3T7Fo/KpdywjGAgZ2CvChuqGFl+ebS0= 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= @@ -2368,7 +2366,6 @@ github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSS github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -2592,7 +2589,6 @@ golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaE golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= @@ -2868,7 +2864,6 @@ golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190514135907-3a4b5fb9f71f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190522044717-8097e1b27ff5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190530182044-ad28b68e88f1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/sdk/go.mod b/sdk/go.mod index 5264b64..09ac164 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.81.0 + github.com/pulumi/pulumi/sdk/v3 v3.86.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 47f9275..0559cbd 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -143,8 +143,8 @@ github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk= github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pulumi/pulumi/sdk/v3 v3.81.0 h1:d711GUpjZK1beNpIKFReC1LBmHXYE684sYWntJWQ4Q0= -github.com/pulumi/pulumi/sdk/v3 v3.81.0/go.mod h1:RMilNNVMlmK1h4Nl/qylb9vzbgh4F3mufZoUOnPy98o= +github.com/pulumi/pulumi/sdk/v3 v3.86.0 h1:Cxg0rGdvMt9GqGvesFTj8+WaO/ihmALYlQf4zm1GzFw= +github.com/pulumi/pulumi/sdk/v3 v3.86.0/go.mod h1:vexSGJ5L834l3T7Fo/KpdywjGAgZ2CvChuqGFl+ebS0= 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= From 048d30d8e8391e16ec99d1326d45226af69bb8a6 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 3 Oct 2023 01:40:19 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/dotnet/Config/Config.cs | 2 +- sdk/python/pulumi_minio/_inputs.py | 125 ++++++++++++++---- sdk/python/pulumi_minio/config/__init__.pyi | 2 +- sdk/python/pulumi_minio/config/vars.py | 2 +- .../pulumi_minio/get_iam_policy_document.py | 2 +- sdk/python/pulumi_minio/iam_group.py | 48 +++++-- .../pulumi_minio/iam_group_membership.py | 44 +++++- sdk/python/pulumi_minio/iam_group_policy.py | 52 ++++++-- .../iam_group_policy_attachment.py | 36 ++++- .../pulumi_minio/iam_group_user_attachment.py | 36 ++++- sdk/python/pulumi_minio/iam_policy.py | 44 +++++- .../pulumi_minio/iam_service_account.py | 64 +++++++-- sdk/python/pulumi_minio/iam_user.py | 72 ++++++++-- .../iam_user_policy_attachment.py | 36 ++++- sdk/python/pulumi_minio/ilm_policy.py | 36 ++++- sdk/python/pulumi_minio/kms_key.py | 28 +++- sdk/python/pulumi_minio/outputs.py | 125 ++++++++++++++---- sdk/python/pulumi_minio/provider.py | 71 +++++++--- sdk/python/pulumi_minio/s3_bucket.py | 76 ++++++++--- .../pulumi_minio/s3_bucket_notification.py | 36 ++++- sdk/python/pulumi_minio/s3_bucket_policy.py | 36 ++++- .../s3_bucket_server_side_encryption.py | 44 +++++- .../pulumi_minio/s3_bucket_versioning.py | 41 +++++- sdk/python/pulumi_minio/s3_object.py | 84 +++++++++--- 24 files changed, 938 insertions(+), 204 deletions(-) diff --git a/sdk/dotnet/Config/Config.cs b/sdk/dotnet/Config/Config.cs index 956e35c..95fde0b 100644 --- a/sdk/dotnet/Config/Config.cs +++ b/sdk/dotnet/Config/Config.cs @@ -8,7 +8,7 @@ namespace Pulumi.Minio { public static class Config { - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification = + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Double underscore prefix used to avoid conflicts with variable names.")] private sealed class __Value { diff --git a/sdk/python/pulumi_minio/_inputs.py b/sdk/python/pulumi_minio/_inputs.py index dad681e..d066ca0 100644 --- a/sdk/python/pulumi_minio/_inputs.py +++ b/sdk/python/pulumi_minio/_inputs.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = [ @@ -28,15 +28,32 @@ def __init__(__self__, *, """ :param pulumi.Input[str] id: The ID of this resource. """ - pulumi.set(__self__, "id", id) + IlmPolicyRuleArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + id=id, + expiration=expiration, + filter=filter, + status=status, + tags=tags, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + id: pulumi.Input[str], + expiration: Optional[pulumi.Input[str]] = None, + filter: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("id", id) if expiration is not None: - pulumi.set(__self__, "expiration", expiration) + _setter("expiration", expiration) if filter is not None: - pulumi.set(__self__, "filter", filter) + _setter("filter", filter) if status is not None: - pulumi.set(__self__, "status", status) + _setter("status", status) if tags is not None: - pulumi.set(__self__, "tags", tags) + _setter("tags", tags) @property @pulumi.getter @@ -98,14 +115,31 @@ def __init__(__self__, *, """ :param pulumi.Input[str] id: The ID of this resource. """ - pulumi.set(__self__, "events", events) - pulumi.set(__self__, "queue_arn", queue_arn) + S3BucketNotificationQueueArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + events=events, + queue_arn=queue_arn, + filter_prefix=filter_prefix, + filter_suffix=filter_suffix, + id=id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + events: pulumi.Input[Sequence[pulumi.Input[str]]], + queue_arn: pulumi.Input[str], + filter_prefix: Optional[pulumi.Input[str]] = None, + filter_suffix: Optional[pulumi.Input[str]] = None, + id: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("events", events) + _setter("queue_arn", queue_arn) if filter_prefix is not None: - pulumi.set(__self__, "filter_prefix", filter_prefix) + _setter("filter_prefix", filter_prefix) if filter_suffix is not None: - pulumi.set(__self__, "filter_suffix", filter_suffix) + _setter("filter_suffix", filter_suffix) if id is not None: - pulumi.set(__self__, "id", id) + _setter("id", id) @property @pulumi.getter @@ -162,11 +196,24 @@ def __init__(__self__, *, status: pulumi.Input[str], exclude_folders: Optional[pulumi.Input[bool]] = None, excluded_prefixes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): - pulumi.set(__self__, "status", status) + S3BucketVersioningVersioningConfigurationArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + status=status, + exclude_folders=exclude_folders, + excluded_prefixes=excluded_prefixes, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + status: pulumi.Input[str], + exclude_folders: Optional[pulumi.Input[bool]] = None, + excluded_prefixes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("status", status) if exclude_folders is not None: - pulumi.set(__self__, "exclude_folders", exclude_folders) + _setter("exclude_folders", exclude_folders) if excluded_prefixes is not None: - pulumi.set(__self__, "excluded_prefixes", excluded_prefixes) + _setter("excluded_prefixes", excluded_prefixes) @property @pulumi.getter @@ -205,18 +252,37 @@ def __init__(__self__, *, principal: Optional[str] = None, resources: Optional[Sequence[str]] = None, sid: Optional[str] = None): + GetIamPolicyDocumentStatementArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + actions=actions, + conditions=conditions, + effect=effect, + principal=principal, + resources=resources, + sid=sid, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + actions: Optional[Sequence[str]] = None, + conditions: Optional[Sequence['GetIamPolicyDocumentStatementConditionArgs']] = None, + effect: Optional[str] = None, + principal: Optional[str] = None, + resources: Optional[Sequence[str]] = None, + sid: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None): if actions is not None: - pulumi.set(__self__, "actions", actions) + _setter("actions", actions) if conditions is not None: - pulumi.set(__self__, "conditions", conditions) + _setter("conditions", conditions) if effect is not None: - pulumi.set(__self__, "effect", effect) + _setter("effect", effect) if principal is not None: - pulumi.set(__self__, "principal", principal) + _setter("principal", principal) if resources is not None: - pulumi.set(__self__, "resources", resources) + _setter("resources", resources) if sid is not None: - pulumi.set(__self__, "sid", sid) + _setter("sid", sid) @property @pulumi.getter @@ -279,9 +345,22 @@ def __init__(__self__, *, test: str, values: Sequence[str], variable: str): - pulumi.set(__self__, "test", test) - pulumi.set(__self__, "values", values) - pulumi.set(__self__, "variable", variable) + GetIamPolicyDocumentStatementConditionArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + test=test, + values=values, + variable=variable, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + test: str, + values: Sequence[str], + variable: str, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("test", test) + _setter("values", values) + _setter("variable", variable) @property @pulumi.getter diff --git a/sdk/python/pulumi_minio/config/__init__.pyi b/sdk/python/pulumi_minio/config/__init__.pyi index 56df290..7c47351 100644 --- a/sdk/python/pulumi_minio/config/__init__.pyi +++ b/sdk/python/pulumi_minio/config/__init__.pyi @@ -6,7 +6,7 @@ import copy import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from .. import _utilities minioAccessKey: Optional[str] diff --git a/sdk/python/pulumi_minio/config/vars.py b/sdk/python/pulumi_minio/config/vars.py index c673020..3ba72fb 100644 --- a/sdk/python/pulumi_minio/config/vars.py +++ b/sdk/python/pulumi_minio/config/vars.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from .. import _utilities import types diff --git a/sdk/python/pulumi_minio/get_iam_policy_document.py b/sdk/python/pulumi_minio/get_iam_policy_document.py index ea1ee0b..adc414d 100644 --- a/sdk/python/pulumi_minio/get_iam_policy_document.py +++ b/sdk/python/pulumi_minio/get_iam_policy_document.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * diff --git a/sdk/python/pulumi_minio/iam_group.py b/sdk/python/pulumi_minio/iam_group.py index a298168..43e27f0 100644 --- a/sdk/python/pulumi_minio/iam_group.py +++ b/sdk/python/pulumi_minio/iam_group.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamGroupArgs', 'IamGroup'] @@ -22,12 +22,25 @@ def __init__(__self__, *, :param pulumi.Input[bool] disable_group: Disable group :param pulumi.Input[bool] force_destroy: Delete group even if it has non-Terraform-managed members """ + IamGroupArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + disable_group=disable_group, + force_destroy=force_destroy, + name=name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + disable_group: Optional[pulumi.Input[bool]] = None, + force_destroy: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if disable_group is not None: - pulumi.set(__self__, "disable_group", disable_group) + _setter("disable_group", disable_group) if force_destroy is not None: - pulumi.set(__self__, "force_destroy", force_destroy) + _setter("force_destroy", force_destroy) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) @property @pulumi.getter(name="disableGroup") @@ -75,14 +88,29 @@ def __init__(__self__, *, :param pulumi.Input[bool] disable_group: Disable group :param pulumi.Input[bool] force_destroy: Delete group even if it has non-Terraform-managed members """ + _IamGroupState._configure( + lambda key, value: pulumi.set(__self__, key, value), + disable_group=disable_group, + force_destroy=force_destroy, + group_name=group_name, + name=name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + disable_group: Optional[pulumi.Input[bool]] = None, + force_destroy: Optional[pulumi.Input[bool]] = None, + group_name: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if disable_group is not None: - pulumi.set(__self__, "disable_group", disable_group) + _setter("disable_group", disable_group) if force_destroy is not None: - pulumi.set(__self__, "force_destroy", force_destroy) + _setter("force_destroy", force_destroy) if group_name is not None: - pulumi.set(__self__, "group_name", group_name) + _setter("group_name", group_name) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) @property @pulumi.getter(name="disableGroup") @@ -179,6 +207,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamGroupArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_group_membership.py b/sdk/python/pulumi_minio/iam_group_membership.py index 6deae0f..82ed37c 100644 --- a/sdk/python/pulumi_minio/iam_group_membership.py +++ b/sdk/python/pulumi_minio/iam_group_membership.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamGroupMembershipArgs', 'IamGroupMembership'] @@ -23,10 +23,23 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] users: Add user or list of users such as a group membership :param pulumi.Input[str] name: Name of group membership """ - pulumi.set(__self__, "group", group) - pulumi.set(__self__, "users", users) + IamGroupMembershipArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + group=group, + users=users, + name=name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group: pulumi.Input[str], + users: pulumi.Input[Sequence[pulumi.Input[str]]], + name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("group", group) + _setter("users", users) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) @property @pulumi.getter @@ -77,12 +90,25 @@ def __init__(__self__, *, :param pulumi.Input[str] name: Name of group membership :param pulumi.Input[Sequence[pulumi.Input[str]]] users: Add user or list of users such as a group membership """ + _IamGroupMembershipState._configure( + lambda key, value: pulumi.set(__self__, key, value), + group=group, + name=name, + users=users, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if group is not None: - pulumi.set(__self__, "group", group) + _setter("group", group) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) if users is not None: - pulumi.set(__self__, "users", users) + _setter("users", users) @property @pulumi.getter @@ -156,6 +182,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamGroupMembershipArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_group_policy.py b/sdk/python/pulumi_minio/iam_group_policy.py index a3bd420..a367f65 100644 --- a/sdk/python/pulumi_minio/iam_group_policy.py +++ b/sdk/python/pulumi_minio/iam_group_policy.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamGroupPolicyArgs', 'IamGroupPolicy'] @@ -21,12 +21,27 @@ def __init__(__self__, *, """ The set of arguments for constructing a IamGroupPolicy resource. """ - pulumi.set(__self__, "group", group) - pulumi.set(__self__, "policy", policy) + IamGroupPolicyArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + group=group, + policy=policy, + name=name, + name_prefix=name_prefix, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group: pulumi.Input[str], + policy: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + name_prefix: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("group", group) + _setter("policy", policy) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) if name_prefix is not None: - pulumi.set(__self__, "name_prefix", name_prefix) + _setter("name_prefix", name_prefix) @property @pulumi.getter @@ -75,14 +90,29 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering IamGroupPolicy resources. """ + _IamGroupPolicyState._configure( + lambda key, value: pulumi.set(__self__, key, value), + group=group, + name=name, + name_prefix=name_prefix, + policy=policy, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + name_prefix: Optional[pulumi.Input[str]] = None, + policy: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if group is not None: - pulumi.set(__self__, "group", group) + _setter("group", group) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) if name_prefix is not None: - pulumi.set(__self__, "name_prefix", name_prefix) + _setter("name_prefix", name_prefix) if policy is not None: - pulumi.set(__self__, "policy", policy) + _setter("policy", policy) @property @pulumi.getter @@ -208,6 +238,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamGroupPolicyArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_group_policy_attachment.py b/sdk/python/pulumi_minio/iam_group_policy_attachment.py index 5c1e1dd..c8b1935 100644 --- a/sdk/python/pulumi_minio/iam_group_policy_attachment.py +++ b/sdk/python/pulumi_minio/iam_group_policy_attachment.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamGroupPolicyAttachmentArgs', 'IamGroupPolicyAttachment'] @@ -19,8 +19,19 @@ def __init__(__self__, *, """ The set of arguments for constructing a IamGroupPolicyAttachment resource. """ - pulumi.set(__self__, "group_name", group_name) - pulumi.set(__self__, "policy_name", policy_name) + IamGroupPolicyAttachmentArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + group_name=group_name, + policy_name=policy_name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group_name: pulumi.Input[str], + policy_name: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("group_name", group_name) + _setter("policy_name", policy_name) @property @pulumi.getter(name="groupName") @@ -49,10 +60,21 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering IamGroupPolicyAttachment resources. """ + _IamGroupPolicyAttachmentState._configure( + lambda key, value: pulumi.set(__self__, key, value), + group_name=group_name, + policy_name=policy_name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group_name: Optional[pulumi.Input[str]] = None, + policy_name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if group_name is not None: - pulumi.set(__self__, "group_name", group_name) + _setter("group_name", group_name) if policy_name is not None: - pulumi.set(__self__, "policy_name", policy_name) + _setter("policy_name", policy_name) @property @pulumi.getter(name="groupName") @@ -104,6 +126,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamGroupPolicyAttachmentArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_group_user_attachment.py b/sdk/python/pulumi_minio/iam_group_user_attachment.py index 5a1611c..8e9613d 100644 --- a/sdk/python/pulumi_minio/iam_group_user_attachment.py +++ b/sdk/python/pulumi_minio/iam_group_user_attachment.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamGroupUserAttachmentArgs', 'IamGroupUserAttachment'] @@ -19,8 +19,19 @@ def __init__(__self__, *, """ The set of arguments for constructing a IamGroupUserAttachment resource. """ - pulumi.set(__self__, "group_name", group_name) - pulumi.set(__self__, "user_name", user_name) + IamGroupUserAttachmentArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + group_name=group_name, + user_name=user_name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group_name: pulumi.Input[str], + user_name: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("group_name", group_name) + _setter("user_name", user_name) @property @pulumi.getter(name="groupName") @@ -49,10 +60,21 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering IamGroupUserAttachment resources. """ + _IamGroupUserAttachmentState._configure( + lambda key, value: pulumi.set(__self__, key, value), + group_name=group_name, + user_name=user_name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + group_name: Optional[pulumi.Input[str]] = None, + user_name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if group_name is not None: - pulumi.set(__self__, "group_name", group_name) + _setter("group_name", group_name) if user_name is not None: - pulumi.set(__self__, "user_name", user_name) + _setter("user_name", user_name) @property @pulumi.getter(name="groupName") @@ -134,6 +156,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamGroupUserAttachmentArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_policy.py b/sdk/python/pulumi_minio/iam_policy.py index b05b898..e4080ce 100644 --- a/sdk/python/pulumi_minio/iam_policy.py +++ b/sdk/python/pulumi_minio/iam_policy.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamPolicyArgs', 'IamPolicy'] @@ -20,11 +20,24 @@ def __init__(__self__, *, """ The set of arguments for constructing a IamPolicy resource. """ - pulumi.set(__self__, "policy", policy) + IamPolicyArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + policy=policy, + name=name, + name_prefix=name_prefix, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + policy: pulumi.Input[str], + name: Optional[pulumi.Input[str]] = None, + name_prefix: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("policy", policy) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) if name_prefix is not None: - pulumi.set(__self__, "name_prefix", name_prefix) + _setter("name_prefix", name_prefix) @property @pulumi.getter @@ -63,12 +76,25 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering IamPolicy resources. """ + _IamPolicyState._configure( + lambda key, value: pulumi.set(__self__, key, value), + name=name, + name_prefix=name_prefix, + policy=policy, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + name: Optional[pulumi.Input[str]] = None, + name_prefix: Optional[pulumi.Input[str]] = None, + policy: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) if name_prefix is not None: - pulumi.set(__self__, "name_prefix", name_prefix) + _setter("name_prefix", name_prefix) if policy is not None: - pulumi.set(__self__, "policy", policy) + _setter("policy", policy) @property @pulumi.getter @@ -174,6 +200,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamPolicyArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_service_account.py b/sdk/python/pulumi_minio/iam_service_account.py index acc7fcf..f2f2bee 100644 --- a/sdk/python/pulumi_minio/iam_service_account.py +++ b/sdk/python/pulumi_minio/iam_service_account.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamServiceAccountArgs', 'IamServiceAccount'] @@ -24,13 +24,28 @@ def __init__(__self__, *, :param pulumi.Input[str] policy: policy of service account :param pulumi.Input[bool] update_secret: rotate secret key """ - pulumi.set(__self__, "target_user", target_user) + IamServiceAccountArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + target_user=target_user, + disable_user=disable_user, + policy=policy, + update_secret=update_secret, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + target_user: pulumi.Input[str], + disable_user: Optional[pulumi.Input[bool]] = None, + policy: Optional[pulumi.Input[str]] = None, + update_secret: Optional[pulumi.Input[bool]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("target_user", target_user) if disable_user is not None: - pulumi.set(__self__, "disable_user", disable_user) + _setter("disable_user", disable_user) if policy is not None: - pulumi.set(__self__, "policy", policy) + _setter("policy", policy) if update_secret is not None: - pulumi.set(__self__, "update_secret", update_secret) + _setter("update_secret", update_secret) @property @pulumi.getter(name="targetUser") @@ -94,20 +109,41 @@ def __init__(__self__, *, :param pulumi.Input[str] policy: policy of service account :param pulumi.Input[bool] update_secret: rotate secret key """ + _IamServiceAccountState._configure( + lambda key, value: pulumi.set(__self__, key, value), + access_key=access_key, + disable_user=disable_user, + policy=policy, + secret_key=secret_key, + status=status, + target_user=target_user, + update_secret=update_secret, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + access_key: Optional[pulumi.Input[str]] = None, + disable_user: Optional[pulumi.Input[bool]] = None, + policy: Optional[pulumi.Input[str]] = None, + secret_key: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + target_user: Optional[pulumi.Input[str]] = None, + update_secret: Optional[pulumi.Input[bool]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if access_key is not None: - pulumi.set(__self__, "access_key", access_key) + _setter("access_key", access_key) if disable_user is not None: - pulumi.set(__self__, "disable_user", disable_user) + _setter("disable_user", disable_user) if policy is not None: - pulumi.set(__self__, "policy", policy) + _setter("policy", policy) if secret_key is not None: - pulumi.set(__self__, "secret_key", secret_key) + _setter("secret_key", secret_key) if status is not None: - pulumi.set(__self__, "status", status) + _setter("status", status) if target_user is not None: - pulumi.set(__self__, "target_user", target_user) + _setter("target_user", target_user) if update_secret is not None: - pulumi.set(__self__, "update_secret", update_secret) + _setter("update_secret", update_secret) @property @pulumi.getter(name="accessKey") @@ -248,6 +284,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamServiceAccountArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_user.py b/sdk/python/pulumi_minio/iam_user.py index 2392c4d..64302b2 100644 --- a/sdk/python/pulumi_minio/iam_user.py +++ b/sdk/python/pulumi_minio/iam_user.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamUserArgs', 'IamUser'] @@ -26,18 +26,37 @@ def __init__(__self__, *, :param pulumi.Input[bool] force_destroy: Delete user even if it has non-Terraform-managed IAM access keys :param pulumi.Input[bool] update_secret: Rotate Minio User Secret Key """ + IamUserArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + disable_user=disable_user, + force_destroy=force_destroy, + name=name, + secret=secret, + tags=tags, + update_secret=update_secret, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + disable_user: Optional[pulumi.Input[bool]] = None, + force_destroy: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None, + secret: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + update_secret: Optional[pulumi.Input[bool]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if disable_user is not None: - pulumi.set(__self__, "disable_user", disable_user) + _setter("disable_user", disable_user) if force_destroy is not None: - pulumi.set(__self__, "force_destroy", force_destroy) + _setter("force_destroy", force_destroy) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) if secret is not None: - pulumi.set(__self__, "secret", secret) + _setter("secret", secret) if tags is not None: - pulumi.set(__self__, "tags", tags) + _setter("tags", tags) if update_secret is not None: - pulumi.set(__self__, "update_secret", update_secret) + _setter("update_secret", update_secret) @property @pulumi.getter(name="disableUser") @@ -119,20 +138,41 @@ def __init__(__self__, *, :param pulumi.Input[bool] force_destroy: Delete user even if it has non-Terraform-managed IAM access keys :param pulumi.Input[bool] update_secret: Rotate Minio User Secret Key """ + _IamUserState._configure( + lambda key, value: pulumi.set(__self__, key, value), + disable_user=disable_user, + force_destroy=force_destroy, + name=name, + secret=secret, + status=status, + tags=tags, + update_secret=update_secret, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + disable_user: Optional[pulumi.Input[bool]] = None, + force_destroy: Optional[pulumi.Input[bool]] = None, + name: Optional[pulumi.Input[str]] = None, + secret: Optional[pulumi.Input[str]] = None, + status: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + update_secret: Optional[pulumi.Input[bool]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if disable_user is not None: - pulumi.set(__self__, "disable_user", disable_user) + _setter("disable_user", disable_user) if force_destroy is not None: - pulumi.set(__self__, "force_destroy", force_destroy) + _setter("force_destroy", force_destroy) if name is not None: - pulumi.set(__self__, "name", name) + _setter("name", name) if secret is not None: - pulumi.set(__self__, "secret", secret) + _setter("secret", secret) if status is not None: - pulumi.set(__self__, "status", status) + _setter("status", status) if tags is not None: - pulumi.set(__self__, "tags", tags) + _setter("tags", tags) if update_secret is not None: - pulumi.set(__self__, "update_secret", update_secret) + _setter("update_secret", update_secret) @property @pulumi.getter(name="disableUser") @@ -275,6 +315,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamUserArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/iam_user_policy_attachment.py b/sdk/python/pulumi_minio/iam_user_policy_attachment.py index 7196caf..44debf6 100644 --- a/sdk/python/pulumi_minio/iam_user_policy_attachment.py +++ b/sdk/python/pulumi_minio/iam_user_policy_attachment.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['IamUserPolicyAttachmentArgs', 'IamUserPolicyAttachment'] @@ -19,8 +19,19 @@ def __init__(__self__, *, """ The set of arguments for constructing a IamUserPolicyAttachment resource. """ - pulumi.set(__self__, "policy_name", policy_name) - pulumi.set(__self__, "user_name", user_name) + IamUserPolicyAttachmentArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + policy_name=policy_name, + user_name=user_name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + policy_name: pulumi.Input[str], + user_name: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("policy_name", policy_name) + _setter("user_name", user_name) @property @pulumi.getter(name="policyName") @@ -49,10 +60,21 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering IamUserPolicyAttachment resources. """ + _IamUserPolicyAttachmentState._configure( + lambda key, value: pulumi.set(__self__, key, value), + policy_name=policy_name, + user_name=user_name, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + policy_name: Optional[pulumi.Input[str]] = None, + user_name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if policy_name is not None: - pulumi.set(__self__, "policy_name", policy_name) + _setter("policy_name", policy_name) if user_name is not None: - pulumi.set(__self__, "user_name", user_name) + _setter("user_name", user_name) @property @pulumi.getter(name="policyName") @@ -164,6 +186,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IamUserPolicyAttachmentArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/ilm_policy.py b/sdk/python/pulumi_minio/ilm_policy.py index 50ea70b..cbcb498 100644 --- a/sdk/python/pulumi_minio/ilm_policy.py +++ b/sdk/python/pulumi_minio/ilm_policy.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -21,8 +21,19 @@ def __init__(__self__, *, """ The set of arguments for constructing a IlmPolicy resource. """ - pulumi.set(__self__, "bucket", bucket) - pulumi.set(__self__, "rules", rules) + IlmPolicyArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + rules=rules, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: pulumi.Input[str], + rules: pulumi.Input[Sequence[pulumi.Input['IlmPolicyRuleArgs']]], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("bucket", bucket) + _setter("rules", rules) @property @pulumi.getter @@ -51,10 +62,21 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering IlmPolicy resources. """ + _IlmPolicyState._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + rules=rules, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: Optional[pulumi.Input[str]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input['IlmPolicyRuleArgs']]]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if bucket is not None: - pulumi.set(__self__, "bucket", bucket) + _setter("bucket", bucket) if rules is not None: - pulumi.set(__self__, "rules", rules) + _setter("rules", rules) @property @pulumi.getter @@ -138,6 +160,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + IlmPolicyArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/kms_key.py b/sdk/python/pulumi_minio/kms_key.py index 1162a8b..34f3f37 100644 --- a/sdk/python/pulumi_minio/kms_key.py +++ b/sdk/python/pulumi_minio/kms_key.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['KmsKeyArgs', 'KmsKey'] @@ -18,7 +18,16 @@ def __init__(__self__, *, """ The set of arguments for constructing a KmsKey resource. """ - pulumi.set(__self__, "key_id", key_id) + KmsKeyArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + key_id=key_id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + key_id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("key_id", key_id) @property @pulumi.getter(name="keyId") @@ -37,8 +46,17 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering KmsKey resources. """ + _KmsKeyState._configure( + lambda key, value: pulumi.set(__self__, key, value), + key_id=key_id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + key_id: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if key_id is not None: - pulumi.set(__self__, "key_id", key_id) + _setter("key_id", key_id) @property @pulumi.getter(name="keyId") @@ -80,6 +98,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + KmsKeyArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/outputs.py b/sdk/python/pulumi_minio/outputs.py index 2124a84..f6d6e08 100644 --- a/sdk/python/pulumi_minio/outputs.py +++ b/sdk/python/pulumi_minio/outputs.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs @@ -29,15 +29,32 @@ def __init__(__self__, *, """ :param str id: The ID of this resource. """ - pulumi.set(__self__, "id", id) + IlmPolicyRule._configure( + lambda key, value: pulumi.set(__self__, key, value), + id=id, + expiration=expiration, + filter=filter, + status=status, + tags=tags, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + id: str, + expiration: Optional[str] = None, + filter: Optional[str] = None, + status: Optional[str] = None, + tags: Optional[Mapping[str, Any]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("id", id) if expiration is not None: - pulumi.set(__self__, "expiration", expiration) + _setter("expiration", expiration) if filter is not None: - pulumi.set(__self__, "filter", filter) + _setter("filter", filter) if status is not None: - pulumi.set(__self__, "status", status) + _setter("status", status) if tags is not None: - pulumi.set(__self__, "tags", tags) + _setter("tags", tags) @property @pulumi.getter @@ -100,14 +117,31 @@ def __init__(__self__, *, """ :param str id: The ID of this resource. """ - pulumi.set(__self__, "events", events) - pulumi.set(__self__, "queue_arn", queue_arn) + S3BucketNotificationQueue._configure( + lambda key, value: pulumi.set(__self__, key, value), + events=events, + queue_arn=queue_arn, + filter_prefix=filter_prefix, + filter_suffix=filter_suffix, + id=id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + events: Sequence[str], + queue_arn: str, + filter_prefix: Optional[str] = None, + filter_suffix: Optional[str] = None, + id: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("events", events) + _setter("queue_arn", queue_arn) if filter_prefix is not None: - pulumi.set(__self__, "filter_prefix", filter_prefix) + _setter("filter_prefix", filter_prefix) if filter_suffix is not None: - pulumi.set(__self__, "filter_suffix", filter_suffix) + _setter("filter_suffix", filter_suffix) if id is not None: - pulumi.set(__self__, "id", id) + _setter("id", id) @property @pulumi.getter @@ -163,11 +197,24 @@ def __init__(__self__, *, status: str, exclude_folders: Optional[bool] = None, excluded_prefixes: Optional[Sequence[str]] = None): - pulumi.set(__self__, "status", status) + S3BucketVersioningVersioningConfiguration._configure( + lambda key, value: pulumi.set(__self__, key, value), + status=status, + exclude_folders=exclude_folders, + excluded_prefixes=excluded_prefixes, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + status: str, + exclude_folders: Optional[bool] = None, + excluded_prefixes: Optional[Sequence[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("status", status) if exclude_folders is not None: - pulumi.set(__self__, "exclude_folders", exclude_folders) + _setter("exclude_folders", exclude_folders) if excluded_prefixes is not None: - pulumi.set(__self__, "excluded_prefixes", excluded_prefixes) + _setter("excluded_prefixes", excluded_prefixes) @property @pulumi.getter @@ -194,18 +241,37 @@ def __init__(__self__, *, principal: Optional[str] = None, resources: Optional[Sequence[str]] = None, sid: Optional[str] = None): + GetIamPolicyDocumentStatementResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + actions=actions, + conditions=conditions, + effect=effect, + principal=principal, + resources=resources, + sid=sid, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + actions: Optional[Sequence[str]] = None, + conditions: Optional[Sequence['outputs.GetIamPolicyDocumentStatementConditionResult']] = None, + effect: Optional[str] = None, + principal: Optional[str] = None, + resources: Optional[Sequence[str]] = None, + sid: Optional[str] = None, + opts: Optional[pulumi.ResourceOptions]=None): if actions is not None: - pulumi.set(__self__, "actions", actions) + _setter("actions", actions) if conditions is not None: - pulumi.set(__self__, "conditions", conditions) + _setter("conditions", conditions) if effect is not None: - pulumi.set(__self__, "effect", effect) + _setter("effect", effect) if principal is not None: - pulumi.set(__self__, "principal", principal) + _setter("principal", principal) if resources is not None: - pulumi.set(__self__, "resources", resources) + _setter("resources", resources) if sid is not None: - pulumi.set(__self__, "sid", sid) + _setter("sid", sid) @property @pulumi.getter @@ -244,9 +310,22 @@ def __init__(__self__, *, test: str, values: Sequence[str], variable: str): - pulumi.set(__self__, "test", test) - pulumi.set(__self__, "values", values) - pulumi.set(__self__, "variable", variable) + GetIamPolicyDocumentStatementConditionResult._configure( + lambda key, value: pulumi.set(__self__, key, value), + test=test, + values=values, + variable=variable, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + test: str, + values: Sequence[str], + variable: str, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("test", test) + _setter("values", values) + _setter("variable", variable) @property @pulumi.getter diff --git a/sdk/python/pulumi_minio/provider.py b/sdk/python/pulumi_minio/provider.py index 821a8b1..fd29f81 100644 --- a/sdk/python/pulumi_minio/provider.py +++ b/sdk/python/pulumi_minio/provider.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['ProviderArgs', 'Provider'] @@ -40,37 +40,70 @@ def __init__(__self__, *, :param pulumi.Input[bool] minio_ssl: Minio SSL enabled (default: false) :param pulumi.Input[str] minio_user: Minio User """ - pulumi.set(__self__, "minio_server", minio_server) + ProviderArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + minio_server=minio_server, + minio_access_key=minio_access_key, + minio_api_version=minio_api_version, + minio_cacert_file=minio_cacert_file, + minio_cert_file=minio_cert_file, + minio_insecure=minio_insecure, + minio_key_file=minio_key_file, + minio_password=minio_password, + minio_region=minio_region, + minio_secret_key=minio_secret_key, + minio_session_token=minio_session_token, + minio_ssl=minio_ssl, + minio_user=minio_user, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + minio_server: pulumi.Input[str], + minio_access_key: Optional[pulumi.Input[str]] = None, + minio_api_version: Optional[pulumi.Input[str]] = None, + minio_cacert_file: Optional[pulumi.Input[str]] = None, + minio_cert_file: Optional[pulumi.Input[str]] = None, + minio_insecure: Optional[pulumi.Input[bool]] = None, + minio_key_file: Optional[pulumi.Input[str]] = None, + minio_password: Optional[pulumi.Input[str]] = None, + minio_region: Optional[pulumi.Input[str]] = None, + minio_secret_key: Optional[pulumi.Input[str]] = None, + minio_session_token: Optional[pulumi.Input[str]] = None, + minio_ssl: Optional[pulumi.Input[bool]] = None, + minio_user: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("minio_server", minio_server) if minio_access_key is not None: warnings.warn("""use minio_user instead""", DeprecationWarning) pulumi.log.warn("""minio_access_key is deprecated: use minio_user instead""") if minio_access_key is not None: - pulumi.set(__self__, "minio_access_key", minio_access_key) + _setter("minio_access_key", minio_access_key) if minio_api_version is not None: - pulumi.set(__self__, "minio_api_version", minio_api_version) + _setter("minio_api_version", minio_api_version) if minio_cacert_file is not None: - pulumi.set(__self__, "minio_cacert_file", minio_cacert_file) + _setter("minio_cacert_file", minio_cacert_file) if minio_cert_file is not None: - pulumi.set(__self__, "minio_cert_file", minio_cert_file) + _setter("minio_cert_file", minio_cert_file) if minio_insecure is not None: - pulumi.set(__self__, "minio_insecure", minio_insecure) + _setter("minio_insecure", minio_insecure) if minio_key_file is not None: - pulumi.set(__self__, "minio_key_file", minio_key_file) + _setter("minio_key_file", minio_key_file) if minio_password is not None: - pulumi.set(__self__, "minio_password", minio_password) + _setter("minio_password", minio_password) if minio_region is not None: - pulumi.set(__self__, "minio_region", minio_region) + _setter("minio_region", minio_region) if minio_secret_key is not None: warnings.warn("""use minio_password instead""", DeprecationWarning) pulumi.log.warn("""minio_secret_key is deprecated: use minio_password instead""") if minio_secret_key is not None: - pulumi.set(__self__, "minio_secret_key", minio_secret_key) + _setter("minio_secret_key", minio_secret_key) if minio_session_token is not None: - pulumi.set(__self__, "minio_session_token", minio_session_token) + _setter("minio_session_token", minio_session_token) if minio_ssl is not None: - pulumi.set(__self__, "minio_ssl", minio_ssl) + _setter("minio_ssl", minio_ssl) if minio_user is not None: - pulumi.set(__self__, "minio_user", minio_user) + _setter("minio_user", minio_user) @property @pulumi.getter(name="minioServer") @@ -286,6 +319,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + ProviderArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, @@ -313,9 +350,6 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = ProviderArgs.__new__(ProviderArgs) - if minio_access_key is not None and not opts.urn: - warnings.warn("""use minio_user instead""", DeprecationWarning) - pulumi.log.warn("""minio_access_key is deprecated: use minio_user instead""") __props__.__dict__["minio_access_key"] = minio_access_key __props__.__dict__["minio_api_version"] = minio_api_version __props__.__dict__["minio_cacert_file"] = minio_cacert_file @@ -324,9 +358,6 @@ def _internal_init(__self__, __props__.__dict__["minio_key_file"] = minio_key_file __props__.__dict__["minio_password"] = minio_password __props__.__dict__["minio_region"] = minio_region - if minio_secret_key is not None and not opts.urn: - warnings.warn("""use minio_password instead""", DeprecationWarning) - pulumi.log.warn("""minio_secret_key is deprecated: use minio_password instead""") __props__.__dict__["minio_secret_key"] = minio_secret_key if minio_server is None and not opts.urn: raise TypeError("Missing required property 'minio_server'") diff --git a/sdk/python/pulumi_minio/s3_bucket.py b/sdk/python/pulumi_minio/s3_bucket.py index 5fba33a..016232f 100644 --- a/sdk/python/pulumi_minio/s3_bucket.py +++ b/sdk/python/pulumi_minio/s3_bucket.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['S3BucketArgs', 'S3Bucket'] @@ -23,18 +23,37 @@ def __init__(__self__, *, """ The set of arguments for constructing a S3Bucket resource. """ + S3BucketArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + acl=acl, + bucket=bucket, + bucket_prefix=bucket_prefix, + force_destroy=force_destroy, + object_locking=object_locking, + quota=quota, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + acl: Optional[pulumi.Input[str]] = None, + bucket: Optional[pulumi.Input[str]] = None, + bucket_prefix: Optional[pulumi.Input[str]] = None, + force_destroy: Optional[pulumi.Input[bool]] = None, + object_locking: Optional[pulumi.Input[bool]] = None, + quota: Optional[pulumi.Input[int]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if acl is not None: - pulumi.set(__self__, "acl", acl) + _setter("acl", acl) if bucket is not None: - pulumi.set(__self__, "bucket", bucket) + _setter("bucket", bucket) if bucket_prefix is not None: - pulumi.set(__self__, "bucket_prefix", bucket_prefix) + _setter("bucket_prefix", bucket_prefix) if force_destroy is not None: - pulumi.set(__self__, "force_destroy", force_destroy) + _setter("force_destroy", force_destroy) if object_locking is not None: - pulumi.set(__self__, "object_locking", object_locking) + _setter("object_locking", object_locking) if quota is not None: - pulumi.set(__self__, "quota", quota) + _setter("quota", quota) @property @pulumi.getter @@ -105,22 +124,45 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering S3Bucket resources. """ + _S3BucketState._configure( + lambda key, value: pulumi.set(__self__, key, value), + acl=acl, + arn=arn, + bucket=bucket, + bucket_domain_name=bucket_domain_name, + bucket_prefix=bucket_prefix, + force_destroy=force_destroy, + object_locking=object_locking, + quota=quota, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + acl: Optional[pulumi.Input[str]] = None, + arn: Optional[pulumi.Input[str]] = None, + bucket: Optional[pulumi.Input[str]] = None, + bucket_domain_name: Optional[pulumi.Input[str]] = None, + bucket_prefix: Optional[pulumi.Input[str]] = None, + force_destroy: Optional[pulumi.Input[bool]] = None, + object_locking: Optional[pulumi.Input[bool]] = None, + quota: Optional[pulumi.Input[int]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if acl is not None: - pulumi.set(__self__, "acl", acl) + _setter("acl", acl) if arn is not None: - pulumi.set(__self__, "arn", arn) + _setter("arn", arn) if bucket is not None: - pulumi.set(__self__, "bucket", bucket) + _setter("bucket", bucket) if bucket_domain_name is not None: - pulumi.set(__self__, "bucket_domain_name", bucket_domain_name) + _setter("bucket_domain_name", bucket_domain_name) if bucket_prefix is not None: - pulumi.set(__self__, "bucket_prefix", bucket_prefix) + _setter("bucket_prefix", bucket_prefix) if force_destroy is not None: - pulumi.set(__self__, "force_destroy", force_destroy) + _setter("force_destroy", force_destroy) if object_locking is not None: - pulumi.set(__self__, "object_locking", object_locking) + _setter("object_locking", object_locking) if quota is not None: - pulumi.set(__self__, "quota", quota) + _setter("quota", quota) @property @pulumi.getter @@ -254,6 +296,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + S3BucketArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/s3_bucket_notification.py b/sdk/python/pulumi_minio/s3_bucket_notification.py index ed4c9d1..728d3fc 100644 --- a/sdk/python/pulumi_minio/s3_bucket_notification.py +++ b/sdk/python/pulumi_minio/s3_bucket_notification.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -21,9 +21,20 @@ def __init__(__self__, *, """ The set of arguments for constructing a S3BucketNotification resource. """ - pulumi.set(__self__, "bucket", bucket) + S3BucketNotificationArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + queues=queues, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: pulumi.Input[str], + queues: Optional[pulumi.Input[Sequence[pulumi.Input['S3BucketNotificationQueueArgs']]]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("bucket", bucket) if queues is not None: - pulumi.set(__self__, "queues", queues) + _setter("queues", queues) @property @pulumi.getter @@ -52,10 +63,21 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering S3BucketNotification resources. """ + _S3BucketNotificationState._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + queues=queues, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: Optional[pulumi.Input[str]] = None, + queues: Optional[pulumi.Input[Sequence[pulumi.Input['S3BucketNotificationQueueArgs']]]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if bucket is not None: - pulumi.set(__self__, "bucket", bucket) + _setter("bucket", bucket) if queues is not None: - pulumi.set(__self__, "queues", queues) + _setter("queues", queues) @property @pulumi.getter @@ -107,6 +129,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + S3BucketNotificationArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/s3_bucket_policy.py b/sdk/python/pulumi_minio/s3_bucket_policy.py index f187fb5..f53212c 100644 --- a/sdk/python/pulumi_minio/s3_bucket_policy.py +++ b/sdk/python/pulumi_minio/s3_bucket_policy.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['S3BucketPolicyArgs', 'S3BucketPolicy'] @@ -19,8 +19,19 @@ def __init__(__self__, *, """ The set of arguments for constructing a S3BucketPolicy resource. """ - pulumi.set(__self__, "bucket", bucket) - pulumi.set(__self__, "policy", policy) + S3BucketPolicyArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + policy=policy, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: pulumi.Input[str], + policy: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("bucket", bucket) + _setter("policy", policy) @property @pulumi.getter @@ -49,10 +60,21 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering S3BucketPolicy resources. """ + _S3BucketPolicyState._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + policy=policy, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: Optional[pulumi.Input[str]] = None, + policy: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if bucket is not None: - pulumi.set(__self__, "bucket", bucket) + _setter("bucket", bucket) if policy is not None: - pulumi.set(__self__, "policy", policy) + _setter("policy", policy) @property @pulumi.getter @@ -104,6 +126,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + S3BucketPolicyArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/s3_bucket_server_side_encryption.py b/sdk/python/pulumi_minio/s3_bucket_server_side_encryption.py index 7b9ea74..d7e5caa 100644 --- a/sdk/python/pulumi_minio/s3_bucket_server_side_encryption.py +++ b/sdk/python/pulumi_minio/s3_bucket_server_side_encryption.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['S3BucketServerSideEncryptionArgs', 'S3BucketServerSideEncryption'] @@ -20,9 +20,22 @@ def __init__(__self__, *, """ The set of arguments for constructing a S3BucketServerSideEncryption resource. """ - pulumi.set(__self__, "bucket", bucket) - pulumi.set(__self__, "encryption_type", encryption_type) - pulumi.set(__self__, "kms_key_id", kms_key_id) + S3BucketServerSideEncryptionArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + encryption_type=encryption_type, + kms_key_id=kms_key_id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: pulumi.Input[str], + encryption_type: pulumi.Input[str], + kms_key_id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("bucket", bucket) + _setter("encryption_type", encryption_type) + _setter("kms_key_id", kms_key_id) @property @pulumi.getter @@ -61,12 +74,25 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering S3BucketServerSideEncryption resources. """ + _S3BucketServerSideEncryptionState._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + encryption_type=encryption_type, + kms_key_id=kms_key_id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: Optional[pulumi.Input[str]] = None, + encryption_type: Optional[pulumi.Input[str]] = None, + kms_key_id: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if bucket is not None: - pulumi.set(__self__, "bucket", bucket) + _setter("bucket", bucket) if encryption_type is not None: - pulumi.set(__self__, "encryption_type", encryption_type) + _setter("encryption_type", encryption_type) if kms_key_id is not None: - pulumi.set(__self__, "kms_key_id", kms_key_id) + _setter("kms_key_id", kms_key_id) @property @pulumi.getter @@ -128,6 +154,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + S3BucketServerSideEncryptionArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_minio/s3_bucket_versioning.py b/sdk/python/pulumi_minio/s3_bucket_versioning.py index b793654..3d8ad1d 100644 --- a/sdk/python/pulumi_minio/s3_bucket_versioning.py +++ b/sdk/python/pulumi_minio/s3_bucket_versioning.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -21,8 +21,19 @@ def __init__(__self__, *, """ The set of arguments for constructing a S3BucketVersioning resource. """ - pulumi.set(__self__, "bucket", bucket) - pulumi.set(__self__, "versioning_configuration", versioning_configuration) + S3BucketVersioningArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + versioning_configuration=versioning_configuration, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: pulumi.Input[str], + versioning_configuration: pulumi.Input['S3BucketVersioningVersioningConfigurationArgs'], + opts: Optional[pulumi.ResourceOptions]=None): + _setter("bucket", bucket) + _setter("versioning_configuration", versioning_configuration) @property @pulumi.getter @@ -51,10 +62,21 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering S3BucketVersioning resources. """ + _S3BucketVersioningState._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket=bucket, + versioning_configuration=versioning_configuration, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket: Optional[pulumi.Input[str]] = None, + versioning_configuration: Optional[pulumi.Input['S3BucketVersioningVersioningConfigurationArgs']] = None, + opts: Optional[pulumi.ResourceOptions]=None): if bucket is not None: - pulumi.set(__self__, "bucket", bucket) + _setter("bucket", bucket) if versioning_configuration is not None: - pulumi.set(__self__, "versioning_configuration", versioning_configuration) + _setter("versioning_configuration", versioning_configuration) @property @pulumi.getter @@ -106,6 +128,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + S3BucketVersioningArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, @@ -125,6 +151,11 @@ def _internal_init(__self__, if bucket is None and not opts.urn: raise TypeError("Missing required property 'bucket'") __props__.__dict__["bucket"] = bucket + if versioning_configuration is not None and not isinstance(versioning_configuration, S3BucketVersioningVersioningConfigurationArgs): + versioning_configuration = versioning_configuration or {} + def _setter(key, value): + versioning_configuration[key] = value + S3BucketVersioningVersioningConfigurationArgs._configure(_setter, **versioning_configuration) if versioning_configuration is None and not opts.urn: raise TypeError("Missing required property 'versioning_configuration'") __props__.__dict__["versioning_configuration"] = versioning_configuration diff --git a/sdk/python/pulumi_minio/s3_object.py b/sdk/python/pulumi_minio/s3_object.py index d76384b..1b7d199 100644 --- a/sdk/python/pulumi_minio/s3_object.py +++ b/sdk/python/pulumi_minio/s3_object.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Mapping, Optional, Sequence, Union, overload +from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['S3ObjectArgs', 'S3Object'] @@ -25,20 +25,43 @@ def __init__(__self__, *, """ The set of arguments for constructing a S3Object resource. """ - pulumi.set(__self__, "bucket_name", bucket_name) - pulumi.set(__self__, "object_name", object_name) + S3ObjectArgs._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket_name=bucket_name, + object_name=object_name, + content=content, + content_base64=content_base64, + content_type=content_type, + etag=etag, + source=source, + version_id=version_id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket_name: pulumi.Input[str], + object_name: pulumi.Input[str], + content: Optional[pulumi.Input[str]] = None, + content_base64: Optional[pulumi.Input[str]] = None, + content_type: Optional[pulumi.Input[str]] = None, + etag: Optional[pulumi.Input[str]] = None, + source: Optional[pulumi.Input[str]] = None, + version_id: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): + _setter("bucket_name", bucket_name) + _setter("object_name", object_name) if content is not None: - pulumi.set(__self__, "content", content) + _setter("content", content) if content_base64 is not None: - pulumi.set(__self__, "content_base64", content_base64) + _setter("content_base64", content_base64) if content_type is not None: - pulumi.set(__self__, "content_type", content_type) + _setter("content_type", content_type) if etag is not None: - pulumi.set(__self__, "etag", etag) + _setter("etag", etag) if source is not None: - pulumi.set(__self__, "source", source) + _setter("source", source) if version_id is not None: - pulumi.set(__self__, "version_id", version_id) + _setter("version_id", version_id) @property @pulumi.getter(name="bucketName") @@ -127,22 +150,45 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering S3Object resources. """ + _S3ObjectState._configure( + lambda key, value: pulumi.set(__self__, key, value), + bucket_name=bucket_name, + content=content, + content_base64=content_base64, + content_type=content_type, + etag=etag, + object_name=object_name, + source=source, + version_id=version_id, + ) + @staticmethod + def _configure( + _setter: Callable[[Any, Any], None], + bucket_name: Optional[pulumi.Input[str]] = None, + content: Optional[pulumi.Input[str]] = None, + content_base64: Optional[pulumi.Input[str]] = None, + content_type: Optional[pulumi.Input[str]] = None, + etag: Optional[pulumi.Input[str]] = None, + object_name: Optional[pulumi.Input[str]] = None, + source: Optional[pulumi.Input[str]] = None, + version_id: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.ResourceOptions]=None): if bucket_name is not None: - pulumi.set(__self__, "bucket_name", bucket_name) + _setter("bucket_name", bucket_name) if content is not None: - pulumi.set(__self__, "content", content) + _setter("content", content) if content_base64 is not None: - pulumi.set(__self__, "content_base64", content_base64) + _setter("content_base64", content_base64) if content_type is not None: - pulumi.set(__self__, "content_type", content_type) + _setter("content_type", content_type) if etag is not None: - pulumi.set(__self__, "etag", etag) + _setter("etag", etag) if object_name is not None: - pulumi.set(__self__, "object_name", object_name) + _setter("object_name", object_name) if source is not None: - pulumi.set(__self__, "source", source) + _setter("source", source) if version_id is not None: - pulumi.set(__self__, "version_id", version_id) + _setter("version_id", version_id) @property @pulumi.getter(name="bucketName") @@ -288,6 +334,10 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: + kwargs = kwargs or {} + def _setter(key, value): + kwargs[key] = value + S3ObjectArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__,